home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
bbs
/
wrest151
/
wesmenu.scr
< prev
next >
Wrap
Text File
|
1988-10-22
|
5KB
|
175 lines
SCRIPT
; WRESMENU.SCR v1.0
; Mike Atkinson
; Tippy Express BBS
; (219) 453-4046 300/1200/2400
;
; Have gateway.tos in the same directory as BBS (bbs_path). Put your
; gateway.set file for wrestling in your wrestling folder (wrestle_path).
; Everything that's written to must be on the same drive as BBS
; * Your hard drive will read/write slower as the pathname lengthens.
; i.e. c:\bbs\games\wrestle\*.* is slower than c:\games\wrestle\*.*
abort off
printe ' Press ? for menu'
SETUP:
clear variables
define bbs_log = 'printer' ;or pathname to system log file
define bbs_path = 'c:\bbs\' ;path BBS is run from
define wrestle_path = 'c:\games\wrestle\' ;Wrestle path
define cutoff = 5 ; minutes left after which play is not allowed
define %0 ; 1 key input for user selection
define pause ; Dummy input, used to pause display
define access ; for level routine
define user_log ; For log print routine LOGPRINT
define docfile ; For file printer routine DOCPRINT
define fc ; Variable for file copy
integer cd ; Variable for directory changes
define prompt ; prompt for command routine
define option ; where command routine looks for choice
define time_used_call ; for time limit routine
define time_left_call ;
define time_used_day ;
define time_left_day ;
define time_on ;
define time_ok ;
define time_per_call = '&13' ;
define time_per_day = '&14' ;
define time_before = '&15' ;
define spc_date ; for empire new day routine
define spc_day ;
define today_date = '&24' ;
define date ; for empire status routine
user_log = 'Enters game menu' ;if you want to know when callers
gosub logprint ;enter games area
TOP:
prompt = '\r\iFWF Wrestling\o\b\v\{123-GX?\}:\v'
option = 'WRESTLE'
COMMAND:
abort off
printe
print '\b\o(&32 min) [prompt]' ; Hold the cursor on this line
if time_exceeded ;check time limit every time game prompt prints
printe ;blank line between game and BBS prompt
exit ;let BBS log them off
endif
get_key %0 ;get callers choice
goto [option] ;goto the appropriate if/ef choice routine
LOGPRINT:
open '[bbs_log]' ;logs callers activity
fprinte ' &23 [user_log]'
close
return
DOCPRINT:
printe
printe ' < Control-S to Pause,\vControl-X to Abort >'
printe
view '[docfile]' ;formats text output
return
TIMELIMIT:
increase cutoff
if &29 = 300 ;if 300 baud, cut them off
cutoff = [cutoff] + 5 ;5 minutes sooner
endif
time_ok = Y
time_on = &32
time_left_call = [time_per_call] - [time_on]
if time_left_call < cutoff
printe '\n Sorry, you don\"t have enough time\vduring this call to play.'
time_ok = N
endif
time_used_day = [time_before] + [time_on]
time_left_day = [time_per_day] - [time_used_day]
if time_left_day < cutoff
printe '\n Sorry, you don\"t have enough time\vleft for today to play.'
time_ok = N
endif
return
HIACCESS:
if command_level (2)
access = Y
else
printe
printe ' You\"re access level is not high\venough to play this game.'
access = N
endif
return
INVALID:
printe 'Enter ? For Menu...' ;what happens upon invalid command
goto command ;choice
WRESTLE:
if %0 = '?' ;choices for FWF Wrestling
printe 'Help!'
goto menuwrestle
ef %0 = 1
print 'Play FWF Wrestling? \{y,N\}: '
goto playwrestle
ef %0 = 2
printe 'FWF Wrestling News'
docfile = '[wrestle_path]news.asc' ;! FWF Wrestling news file
gosub docprint
goto command
ef %0 = 3
printe 'FWF Wrestling Scores'
docfile = '[wrestle_path]score.txt' ;! FWF Wrestling score file
gosub docprint
goto command
ef %0 = G
printe 'Exit To Game Menu...'
goto top
ef %0 = X
printe 'Exit to BBS..'
exit
endif
goto invalid
PLAYWRESTLE:
get_key %0
if %0 # Y
printe'No'
goto command
endif
printe 'Yes'
gosub hiaccess
if access = N
goto command
endif
gosub timelimit
if time_ok = N
user_log = '-->Attempts F.W.F. Wrestling after time limit!'
gosub logprint
goto command
endif
printe
printe ' Loading FWF Wrestling'
cd = file_chgdir '[wrestle_path]'
open 'passname.dat', output
fprinte '&01'
close
user_log = 'Plays FWF Wrestling'
gosub logprint
TOS '[bbs_path]gateway.tos'
GEM '[wrestle_path]wrestle.tos' ;! Wrestling prg filename
cd = file_chgdir '[bbs_path]'
goto command
əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə