Date: 2016/02/08 05:57:56 UTC-08:00
Type: Denizen Script
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
#Thief returns gapples for life - shows up at end
#Thief knocks player out, doesn't show up
cael124:
type: assignment
actions:
on assignment:
- trigger name:chat state:true
- trigger name:click state:true
interact scripts:
- 1 CAELtest1
THIEF124:
type: assignment
actions:
on assignment:
- trigger name:chat state:true
- trigger name:click state:true
interact scripts:
- 1 THIEFtest1
CAELTEST1:
type: interact
steps:
1:
click trigger:
script:
- chat "Hello <PLAYER.NAME>, I was just looking for you."
- WAIT 1
- CHAT "We had a break in a few days ago, and a thief made off with some God Apples."
- WAIT 1
- CHAT "You've probably got better things to do, but I need you to hunt him down and retrieve them."
- zap step:2
2:
Chat Trigger:
1:
Trigger: /Yes/, okay
Script:
- CHAT "Thanks!"
- WAIT 1
- CHAT "I heard there was a thieves base at around -1100 -1900, go and take a look there."]
- flag player caeltest1
- zap step:3
2:
Trigger: /No/, not just now.
Script:
- CHAT "Okay, come back when you have time."
- zap step:1
3:
click trigger:
script:
- if <player.flag[thieftest3]> {
- chat "Hello <PLAYER.NAME>, have you got my God Apples?"
- if <player.flag[thieftest4]> {
- NARRATE "-----------------------------------------------------"
- NARRATE "1. The thief attacked me and disappeared."
- if <player.inventory.contains[golden_apple].quantity[2]> {
- NARRATE "2. The thief attacked me, but I have some spare God Apples - Give Own"
}
- NARRATE "-----------------------------------------------------"
- zap step:4
}
else {
- NARRATE "-------------------------------------------------"
- NARRATE "1. The thief wasn't there - Lie and keep apples "
- NARRATE "2. Yes - Give Apples"
- NARRATE "-------------------------------------------------"
- ZAP step:5
}
}
else {
- CHAT "Did you check the base at -1100 -1900 yet?"
}
4:
Chat Trigger:
1:
Trigger: "/1/. The thief attacked me and disappeared."
Script:
- CHAT "Oh dear <PLAYER.NAME>"
- WAIT 1
- CHAT "I'm afraid that's really rather unhelpful actually."
- zap step:6
2:
Trigger: "/2/. The thief attacked me, but I have some spare God Apples."
Script:
- CHAT "That's a kind offer <PLAYER.NAME>. Thank you very much."
- take golden_apple quantity:2
- zap step:6
5:
Chat Trigger:
1:
Trigger: /1/. The thief wasn't there.
Script:
- CHAT "Oh dear <PLAYER.NAME>"
- WAIT 1
- CHAT "I'm almost certain that's where the thieves camp out."
- WAIT 1
- CHAT "Oh well, we'll have to go without."
- zap step:6
2:
Trigger: /2/. Yes.
Script:
- if <player.inventory.contains[golden_apple].quantity[2].not> {
- chat "You don't have those golden apples!"
}
else {
- CHAT "Thank you so much <PLAYER.NAME>. These will be very useful in the future."
- take golden_apple quantity:2
- zap step:6
}
6:
click trigger:
script:
- chat "Thanks for all the help, <PLAYER.NAME>"
#Thief script -------------------------------------------------------
THIEFTEST1:
type: interact
on assignment:
- trigger chat true
- trigger click true
steps:
1:
click trigger:
script:
- if <player.flag[caeltest1]> {
- chat "Argh!"
- WAIT 1
- chat "Oh wait, it's just you, <PLAYER.NAME>"
- WAIT 1
- chat "I suppose you're here for those God Apples I stole from the Enclave."
- WAIT 1
- chat "I have a proposal, if you're interested."
- zap step:2
}
2:
Chat Trigger:
1:
Trigger: /Yes/, keep talking.
Script:
- CHAT "I stole the God Apples in the hope of making a quick profit."
- WAIT 1
- CHAT "I didn't realise that the Imperium had come back though."
- WAIT 1
- CHAT "If you let me leave with all my equipment, I'll return the God Apples."
- WAIT 1
- CHAT "Do you agree?"
- zap step:3
2:
Trigger: /No/, I'm going to kill you and take the God Apples.
Script:
- CHAT "That's rather unfortunate, I hoped it wouldn't come to this."
- flag player thieftest3
- flag player thieftest4
- WAIT 1
- NARRATE "Something hits you in the back of the head, and everything turns black."
- WAIT 1
- NARRATE "You wake up in a pond in the middle of nowhere, you'll need to explain the situation to Blacksmith Cael."
- ^execute as_server "tp <player.name> -988 66 -1955"
- ^execute as_server "effect <player.name> 9 10"
- ^execute as_server "effect <player.name> 15 5"
3:
Chat Trigger:
1:
Trigger: /Yes/, I do.
Script:
- CHAT "Oh good, here are the apples."
- WAIT 1
- CHAT "Our paths may cross again, <PLAYER.NAME>."
- give golden_apple quantity:2
- flag player thieftest3
- zap step:4
2:
Trigger: /No/, I'm going to kill you and take everything.
Script:
- CHAT "That's rather unfortunate, I hoped it wouldn't come to this."
- flag player thieftest4
- flag player thieftest3
- WAIT 1
- NARRATE "Something hits you in the back of the head, and everything turns black."
- WAIT 1
- NARRATE "You wake up in a pond in the middle of nowhere, you'll need to explain the situation to Blacksmith Cael."
- ^execute as_server "tp <player.name> -988 66 -1955"
- ^execute as_server "effect <player.name> 9 10"
- ^execute as_server "effect <player.name> 15 5"
- zap step:4
4:
click trigger:
script:
- chat "Hello there, <PLAYER.NAME>"