home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
bbs
/
galempsc
/
arcade.scr
next >
Wrap
Text File
|
1988-03-09
|
2KB
|
153 lines
SCRIPT
;This script file will check to see if the user has played the game today
;and load the game if they have not played today yet. You must first run
;GALEMP.SCR to create the userlog for the game.
;by Eric Crofut 3/6/88
;Atari Outpost BBS 816-966-8188
abort off
clear
define cd
define user
define id
id = &31
define last_play_date
define today
today = &24
define date
define choice
define dummy
OPEN:
open 'c:\galemp\galemp.usr',input ;check userlog if played today
finput last_play_date id
user = note
decrease user 4
close
date = copy today,4,2
MENU:
clear screen
printe
printe 'Atari Outpost' center
printe 'Game Room' center
printe
printe ' \{A\} Play Galactic Empire v1.0'
printe ' \{B\} Galactic Empire News'
printe ' \{C\} Galactic Empire Scores'
printe ' \{D\} Doc for Galactic Empire'
printe
print 'Enter Selection, <Return> To Exit: '
GET_CHOICE:
if time_exceeded
exit
endif
get_key choice
if choice = 'a'
printe choice
goto check_level
ef choice = 'b'
printe choice
view 'c:\galemp\galemp.nws'
ef choice = 'c'
printe choice
view 'c:\galemp\galemp.sor'
ef choice = 'd'
printe choice
view 'c:\galemp\galdoc.dat'
ef choice = '$'
goto log
ef choice = ''
exit
else
goto get_choice
endif
printe
print 'Press Any Key To Continue...'
get_key dummy
goto menu
CHECK_LEVEL:
if command_level 1
goto check_date
else
printe
printe 'Sorry You Are Not Authorized Yet!'
printe
print 'Press Any Key To Continue...'
get_key dummy
goto menu
endif
CHECK_DATE:
if date = last_play_date
printe
printe 'Sorry but you can only play once a day!'
printe
print 'Press Any Key To Continue...'
get_key dummy
goto menu
endif
;if you want it to print out if they played the game that out the ';'
;and change the drive path name.
;open 'c:\bbs.log',append
; fprint 'Played Galactic Empire'
;close
open 'c:\galemp\galemp.usr',append ;save last played date.
point user
fprint date
close
GALEMP:
cd = file_chgdir 'c:\galemp\'
GEM 'C:\GALEMP\GALEMP.TOS'
cd = file_chgdir 'c:\'
goto open
LOG:
if command_level 32
view 'c:\galemp\galemp.log'
else
goto menu
endif
printe
print 'Press Any Key To Continue...'
get_key dummy
goto menu