-
Notifications
You must be signed in to change notification settings - Fork 1
/
drain.cmd
101 lines (86 loc) · 1.6 KB
/
drain.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
debuglevel 5
gosub GENERAL_TRIGGERS
var GAG_ECHO NO
Start:
put avoid !all
pause 1
put avoid whisp
put avoid teach
pause 1
put avoid touch
pause 1
CheckEXP:
match DONE No skills have field experience
matchre DONE You are a ghost!
matchre DONE You are dead
match CHECK.INFECTION EXP HELP
put exp
matchwait 30
goto DONE
WAIT60:
pause 290
goto CheckEXP
GENERAL_TRIGGERS:
action (hunt) goto STUNNED when eval $stunned = 1
action (hunt) goto BLEEDING when eval $bleeding = 1
#action (hunt) goto DEAD when eval $health < 70
action (hunt) goto DEAD when eval $dead = 1
return
BLEEDING:
if ("%GAG_ECHO" != "YES") then
{
echo
echo *** BLEEDING: ***
echo You are bleeding.
echo Checking health.
echo
}
#action remove eval $bleeding = 1
CHECK.INFECTION:
action var INFECTED YES when ^You.+(infect|disease|oozing sores)
var GOING_TO %c
var INFECTED NO
put health
goto HEALTH_CHECK
STUNNED:
if ("%GAG_ECHO" != "YES") then
{
echo
echo *** STUNNED: ***
echo You have been stunned.
echo Checking health.
echo
}
#action remove eval $stunned = 1
var GOING_TO %c
HEALTH_CHECK:
gosub clear
CHECKING_HEALTH:
if ("%INFECTED" = "YES") then goto INFECTED
if ($stamina >= 50) then
{
echo
echo Not too beat up
echo
#action goto BLEEDING when eval $bleeding = 1
#action goto STUNNED when eval $stunned = 1
#action remove ^You.+(infect|disease)
goto WAIT60
} else
{
echo
echo Too beat up, aborting
echo
goto DEAD
}
INFECTED:
echo
echo Your wounds are infected, seek medical attention!!!
echo
put #beep
goto DEAD
DEAD:
DONE:
put invoke bond
pause 5
#put exit