home *** CD-ROM | disk | FTP | other *** search
- script
-
- ; WWIII By Scot LeGrand.
- ; Script file by Sam Furrow, October 1988.
- ; Revised, January, 1989.
-
- ; Modifications to this script file may be made as you see fit, but please
- ; leave current credits intact and add a credit for any modifications you do.
-
- clear variables
- define xx
- define minimumtime=15
- define timetoday
- define timecall
- define timeleft
- define timelimit
- define x
- margin (0)
-
- define WWIII_DIR='G:\EMPIRE\' ;specify where you want your WWIII data to
- ;be placed (instructions, standings.dat, etc).
- ;This MUST be the same path specified when
- ;initializing WWIII.
-
- define WWIII_PRG='G:\' ;This is where you will put the EMPIRE.TOS file.
- ;If WWII runs from a folder, you may want this
- ;to be the same as WWW_DIR, in case WWIII does
- ;not run from a folder, this gives you a
- ;different place to run it from.
-
- define GAMEMENU='G:\MENUS_80\GAMEMENU.HLP' ; If you use a game menu this is
- ; the place to define it. If
- ; you do not use a game menu
- ; remove all reference to it
- ; below.
-
- top:
- clear screen
- if &11=80
- margin 20
- endif
- printe '<<<<<<<<<<<<-------------->>>>>>>>>>>>'
- printe ' WORLD WAR III'
- printe ' The Game of EMPIRES!
- printe
- printe ' by Scott LeGrand'
- printe '<<<<<<<<<<<<-------------->>>>>>>>>>>>'
- printe
- printe '1. Play World War III!'
- printe '2. Read some documentation about WWIII'
- printe
- printe '0. Return to Games Menu'
- printe 'RETURN for to Main Menu'
- printe '--------------------------------------'
- print 'Enter your Selection: '
- xx=get_key
- if xx='1'
- goto PLAY
- ef xx='2'
- goto READ
- ef xx='3'
- clear screen
- margin 0
- execute '[gamemenu]'
- ef xx=''
- margin 0
- clear screen
- exit
- endif
- goto top
-
- play:
- timetoday=&15
- timecall=&32
- timelimit=&33
- x=timetoday+timecall
- timeleft=timelimit-x
-
- ; check for 300 Baud caller.
- if &29=300
- minimumtime=minimumtime+7
- endif
-
- if timeleft<minimumtime
- clear screen
- printe 'Sorry, you don\"t have enough time'
- printe 'left this call to play!'
- printe
- print 'Press a key to continue...'
- xx=get_key
- exit
- endif
- Printe
- print ' Play World War III? \{Y/n\}'
- xx=get_key
- if xx=''
- set xx='y'
- endif
- if xx='y'
- margin 0
- open '[WWIII_PRG]Player.dat',output
- fprinte &01 ;User's Handle
- fprinte &31 ;User's Number
- fprinte &11 ;User's Video Width (80 or 40)
- fprinte [timeleft] ;User's time left this call (in minutes)
- close
- clear screen
- tos '[WWIII_PRG]EMPIRE.TOS'
- endif
- goto top
-
- read:
- clear screen
- view '[WWIII_DIR]EMPIRE.DOC'
- printe
- printe 'Press a key to continue...'
- xx=get_key
- goto top
-
- əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə