home *** CD-ROM | disk | FTP | other *** search
- SCRIPT
-
- ;Space Empire Elite Menu
- ;by Eric Crofut last updated 5/15/88
- ;Outpost BBS 816-966-8188 300/1200/2400
-
-
- abort off
- clear
- define path = 'd:\spcemp\' ; Set Drive path name for Space Empire files
- define cd
- define choice
- define dummy
- define spc_date
- define spc_day
- define fc
- define date
- define today_date
- today_date = '&24'
- define id
- id = '&31'
- define player
- define calls = '&27'
-
- define player_no
- define user_idx
- define se_name
- define se_player
- define player_idx
- define player_lines
- define last_date
- define score
- define total_planets
- define food_planets
- define ore_planets
- define soldier_planets
- define unknown
- define troops
- define ally
- define population
- define food
- define fighters
- define credits
- define generals
- define def_stations
- define command_ship
- define player_name
- define agents
- define heavy_cruisers
- define carriers
- define turns
- define insurgents
- define dead_planets
- define report
-
-
- MENU:
-
- clear screen
-
- printe
- printe ' Space Empire Elite v5.3'
- printe ' ======================='
- printe
- printe ' \{P\} Play Space Empire'
- printe ' \{N\} Space Empire News'
- printe ' \{S\} Space Empire Scores'
- printe ' \{F\} Space Empire Hall Of Fame'
- printe ' \{I\} Space Empire Instructions'
- printe ' \{R\} Space Empire RULES'
- if command_level 32
- printe ' \{L\} Space Empire Log'
- endif
- printe ' \{Y\} Your Player Status'
- printe ' \{A\} Your Activity Report'
- printe
- printe ' \{M\} Space Empire Message Base'
- printe
- printe ' \{X\} To Exit'
-
-
- GET_CHOICE:
- printe
- print 'Enter Selection: '
-
- if time_exceeded
- printe 'Sorry Your Out Of Time!'
- exit
- endif
-
- get_key choice
-
- if choice = 'P'
- printe 'Play Space Empire'
- goto spcemp
- ef choice = 'N'
- printe 'News'
- goto spc_news
- ef choice = 'S'
- printe 'Scores'
- view '[path]sescore.txt'
- ef choice = 'F'
- printe 'Hall Of Fame'
- printe
- view '[path]sefame.txt'
- ef choice = 'I'
- printe 'Instructions'
- view '[path]spcelite.doc'
- ef choice = 'R'
- printe 'Space Empire Rules'
- printe
- printe ' Any player that has the protected score of 4000 or below may NOT be'
- printe 'attack in any way, if you do than it will cost you 1/2 your Empire.'
- ef choice = 'y'
- printe 'Loading Status...'
- goto status
- ef choice = 'a'
- printe 'Activity Report'
- report = 'y'
- goto status
- ef choice = 'M'
- printe 'Message Base'
- execute 'd:\empmsg\empmsg.com'
- ef choice = 'l'
- goto spc_log
- ef choice = 'X'
- printe 'Exit'
- execute 'g:\arcade.com'
- ef choice = '?'
- goto menu
- else
- printe 'Enter ? For Help'
- goto get_choice
- endif
-
- goto get_choice
-
-
- SPC_LOG:
-
- if command_level 32
- else
- goto get_choice
- endif
-
- printe 'Log'
- print '\{T\}oday\"s \{Y\}esterday\"s Log: '
- get_key dummy
-
- if dummy = 'T'
- printe 'Today'
- printe
- view '[path]selog.txt'
- ef dummy = 'Y'
- printe 'Yesterday'
- printe
- view '[path]selog.old'
- else
- goto get_choice
- endif
-
- goto get_choice
-
-
- SPC_NEWS:
-
- print '\{T\}oday\"s \{Y\}esterday\"s News: '
- get_key dummy
-
- if dummy = 'T'
- printe 'Today'
- printe
- view '[path]senews.txt'
- ef dummy = 'Y'
- printe 'Yesterday'
- printe
- view '[path]senews.old'
- else
- goto get_choice
- endif
-
- goto get_choice
-
-
- SPCEMP:
-
- if command_level 1 ;must have access level 1 to play Space Empire
- else
- printe
- printe 'Sorry You Are Not Authorized Yet!'
- goto get_choice
- endif
-
- if calls = '0' ;Some users call before midnight and wait for the time to
- printe ;change. This will make them hang up first before playing.
- printe 'Sorry you must call back tomorrow'
- goto get_choice
- endif
-
- open 'd:\userlog\bbs.log', append ;Will print out when the user played
- fprinte 'Played Space Empire' ;to the User Log if you want it.
- close
-
- if file_exists '[path]senews.txt' ;check first time startup
- open '[path]senews.txt',input ;Input the date of Space Empire News file.
- finput spc_date 2
- close
- else
- goto eof
- endif
-
- spc_day = copy spc_date,10,2 ;Copying the day from SE news file
- date = copy today_date,4,2 ;Copying the day from current date
-
- if date # spc_day ;If date is not today then make todays, yesterdays news.
- fc = file_copy '[path]senews.txt', '[path]senews.old'
- fc = file_copy '[path]selog.txt', '[path]selog.old'
- endif
-
-
- RUN_SPCEMP:
- open '[path]sename.bbs', output ;Saving users name for Space Empire
- fprinte '&1'
- close
-
- cd = file_chgdir path ;change directory path to Space Empire folder
- gem 'spcelite.tos' ;run Space Empire
- cd = file_chgdir 'd:\' ;change directory path back to working BBS path
-
- goto menu
-
-
- STATUS: ;get user player status
- player_no = '1'
- player_idx = '24'
- open '[path]elitplr.dat', input
-
- FIND_SE_PLAYER:
- if player_no = '25'
- close
- printe
- printe 'Sorry, You Have No Player'
- goto get_choice
- endif
- finput se_name player_idx
- player_idx = '22'
- if se_name = &1
- player_lines = '1'
- goto list_player
- else
- increase player_no
- goto find_se_player
- endif
-
-
- LIST_PLAYER:
- if report = 'y'
- close
- goto list_activity
- endif
-
- player_idx = '1'
- finput last_date
- finput score
- finput total_planets
- finput food_planets
- finput ore_planets
- finput soldier_planets
- finput unknown
- finput troops
- finput ally
- finput population
- finput food
- finput fighters
- finput credits
- finput generals
- finput def_stations
- finput command_ship
- finput player_name
- finput agents
- finput heavy_cruisers
- finput carriers
- finput turns
- close
-
- increase player_no
- open '[path]insurge.dat', input
- finput insurgents player_no
- close
-
- open '[path]deadp.dat', input
- finput dead_planets player_no
- close
-
-
- printe
- printe ' Player Name: [player_name]'
- ;printe ' Ally Number: [ally]'
- printe ' Last Play Date: [last_date]'
- printe ' Turns Left: [turns]'
- printe ' Score: [score]'
- ;printe ' Total Planets: [total_planets]'
- printe ' Food Planets: [food_planets]'
- printe ' Ore Planets: [ore_planets]'
- printe 'Soldier Planets: [soldier_planets]'
- printe ' Population: [population]'
- printe ' Food: [food]'
- printe ' Credits: [credits]'
- printe ' Def. Stations: [def_stations]'
- printe ' Command Ship: [command_ship]%'
- printe ' Generals: [generals]'
- printe ' Troops: [troops]'
- printe ' Carriers: [carriers]'
- printe ' Fighters: [fighters]'
- printe ' Heavy Cruisers: [heavy_cruisers]'
- printe ' Agents: [agents]'
- printe ' Insurgents: [insurgents]'
- printe ' Dead Planets: [dead_planets]'
-
- goto get_choice
-
-
- EOF:
- close
-
- open '[path]senews.txt', output ;if first time - create news files
- fprint 'New Space Times'
- fprint 'As of:&24'
- fprint '---------------'
- close
- open '[path]senews.old', output
- fprinte 'No News...'
- close
-
- goto run_spcemp
-
-
- LIST_ACTIVITY:
- increase player_no
-
- if file_exists '[path]sem.[player_no]'
- printe
- view '[path]sem.[player_no]'
- endif
-
- printe
- printe 'No Activity To Report!'
-
- report = 'n'
- goto get_choice
-