home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR11
/
TADEMO.ZIP
/
DEMO.SCR
< prev
next >
Wrap
Text File
|
1993-12-03
|
3KB
|
201 lines
; =====================
; Total Automation
; (C) Copyright 1993
; by Michael S. Hogg
; =====================
; Shareware Demo Version
;
; This version is a shareware release. Feel free to distribute,
; but do not modify the program. All this version will do is fight
; in the arena. For more information on the registered version,
; please see doc file.
;
string Status, Vitality, MVitality, Attack, NAttacks, Sound, XFlag
string Rep, User, LV1, LV2, LV3, ASpell, HSpell, CFlag, CPSpell
openfile config.ta read
readfile User
readfile LV1
readfile LV2
readfile LV3
readfile HSpell
readfile ASpell
readfile CPSpell
readfile NAttacks
closefile
INIT:
assign XFlag "off"
assign Sound "on"
assign CFlag "off"
if "$0" <> "on" CSOUND
timeout 4 SSCREEN
SSCREEN:
assign CFlag "on"
turnon SPLIT
send "=a^M"
waitfor "Ok, ANSI colors will not"
CSOUND:
if "$1" <> "off" START
assign Sound "off"
START:
turnon CASE
assign Rep "ring gong"
goto READROOM
CYCLE:
gosub GETHEALTH
send "act: is running demo of total automation!^M"
gosub T1
pause 10000
gosub T2
if $Vitality > $LV3 OSpell
MAIN:
if "$XFlag" = "on" CR
timeout 2 CYCLE
assign 3 $NAttacks
RA:
send "a $attack^M"
decr 3
if $3 > 0 RA
waitfor "Sorry, "
READROOM:
timeout 4 RMAP
CB:
pause 500
send "^M"
waitfor "There "
getx 0 4 " "
getx Attack 10 " "
getx 1 10 " "
if "$Attack" = "a" EXTRA
if "$Attack" = "an" EXTRA
if "$Attack" = "two" MULTIPLE
if "$Attack" = "three" MULTIPLE
if "$Attack" = "four" MULTIPLE
if "$XFlag" = "on" CR
goto EMPTY
CR:
return
EXTRA:
assign Attack $1
goto MAIN
MULTIPLE:
pause 500
send "^M"
waitfor "There "
getx 0 4 " "
getx 1 10 " "
getx Attack 10 " "
timeout 2 MAIN
send "a $attack^M"
waitfor "Sorry, you don't see"
pause 500
send "^M"
waitfor "There "
getx 0 4 " "
getx 1 10 " "
getx Attack 3 " "
goto MAIN
EMPTY:
if "$Attack" = "nobody" RMAP
timeout 2 MAIN
send "a $attack^M"
waitfor "Sorry, "
goto RMAP
RMAP:
send "$Rep^M"
gosub T1
pause 3500
gosub T2
goto READROOM
OSPELL:
timeout 2 MAIN
send "$ASpell $Attack^M"
waitfor "The "
assign XFlag "on"
assign 9 $Attack
gosub CB
assign XFlag "off"
if "$Attack" = "nothing" WSPELL
if "$Attack" = "nobody" WSPELL
assign Attack $9
goto MAIN
WSPELL:
gosub T1
pause 5000
gosub T2
goto RMAP
GETHEALTH:
timeout 2 GETHEALTH
send "he^M"
waitfor "Vitality: "
getx Vitality 3 " "
waitfor "/ "
getx MVitality 3 "^M"
waitfor "Status: "
getx Status 8 "^M"
CHKHEALTH:
if "$Status" = "Thirsty" THIRSTY
if "$Status" = "Hungry" HUNGRY
if "$Status" = "Poisoned" POISONED
if "$Vitality" < "$LV2" RUN
if "$Vitality" < "$LV1" HEL
return
HEL:
send "$HSpell $User^M"
return
RUN:
send "=$User: .SCRIPT MSG. Vitality was too low.^M"
send "/x^M"
goto TERM
THIRSTY:
send "drink waterskin^M"
goto GETHEALTH
HUNGRY:
send "eat ration^M"
goto GETHEALTH
POISONED:
send "$CPSpell $User^M"
goto GETHEALTH
TERM:
if "$CFlag" = "off" END
send "=a^M"
turnOFF split
END:
exit
T1:
if "$Sound" = "off" CR
beep 10000
return
T2:
if "$Sound" = "off" CR
beep 10000
beep 10000
return