Paste #42513: Untitled Paste

Date: 2017/06/09 19:46:54 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403


monsterwithina:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 monsterwithini
monsterwithini:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good Day/.
          script:
            - if <player.flag[monsterwithinstart]> {
              - chat "You came back... Did you... find him?"
              - wait 2
              - chat "Please... anything helps..."
              }
              else {
              - chat "Oh... hello there..."
              - wait 2
              - chat "*The girl looks down, then around, really anywhere but you.*"
              - narrate "Who are you, what's wrong, rumors, the town?"
              }
        2:
          trigger: What's /Regex:Wrong/?
          script:
            - chat "It's... just my dad. He went out to go get some supplies..."
            - wait 2
            - chat "But.. he hasn't come back yet. It's nothing... he'll probably come home soon..."
            - narrate "Who are you, what's wrong, rumors, the town, offer help?"
        3:
          trigger: /Regex:Offer Help|help|offer/.
          script:
            - chat "You... want to help me?"
            - chat "*Her face lights up slightly.*"
            - wait 2
            - chat "The last time I saw him... he was going to scour the mountain line to the North West-"
            - wait 2
            - chat "of here... he loves the mountaintops. Please... find him."
            - flag player monsterwithinstart
        4:
          trigger: /Regex:The Town|town|merchants/?
          script:
            - chat "Moneta... it's a nice little place. Natives and Colonists trying to sell wares together."
            - wait 3
            - chat "We've never had anything really go wrong here... my daddy and I would always come-"
            - wait 3
            - chat "To sell gems and things that we've found in our travels..."
            - narrate "Who are you, what's wrong, rumors, the town?"
        5:
          trigger: /Regex:Who|who|you|You|Yourself/?
          script:
            - chat "My name is Hailee. My dad and I come here to sell things..."
            - wait 1
            - chat "*She turns... seeming to close off a bit.*"
            - narrate "Who are you, what's wrong, rumors, the town?"
        6:
          trigger: /Regex:Rumors|rumor|Rumor|rumors/?
          script:
            - chat "R-rumors? I... I don't know any right now..."
            - wait 2
            - chat "I'm... kinda busy."
monsterwithingirl:
  type: task
  script:
  - chat "I... I don't believe you... I don't."
  - wait 2
  - chat "My daddy will come back home to me. I believe in him."
  - wait 2
  - chat "He wouldn't leave me... He wouldn't..."
  - wait 2
  - chat "*She hangs her head, then turns around, saddened.*"
  - give memorybottle15
  - flag player monsterwithinfinish:false
monsterwithina2:
  type: task
  script:
  - chat "You... my daughter sent you... didn't she."
  - chat *cough cough*
  - wait 3
  - chat "I... wish I had better news... but I need you to tell her..."
  - wait 2
  - chat "Tell her..."
  - wait 2
  - chat "That I can't come home."
  - wait 2
  - ex run memory16

thevillagea:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 thevillagei
thevillagei:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good day/.
          script:
          - if <player.flag[CIVillageTH]> {
            - chat "Traveler... I wish to speak with you, in private."
            - wait 2
            - chat "You see... citizens here have told me much about your aid."
            - wait 2
            - chat "If you willing, I require one more task of you."
            - wait 2
            - chat "It is sensitive. Will you help us?"
            - narrate "Yes|No"
            - zap 2
            }
            else {
            - chat "Welcome, traveler."
            - wait 2
            - chat "If you wish to stay for more than a night, take caution."
            - wait 2
            - chat "Natives tend to not like others running around here..."
            - wait 2
            - chat "If you wish to change opinions, then you help them."
            }
    2:
      click trigger:
        script:
          - chat "Will you help us?"
          - narrate "Yes|No"
      chat trigger:
        1:
          trigger: /Regex:Yes|yes|Okay|okay|Of course|of course/.
          script:
          - chat "*The Chief smiles dimly.*"
          - wait 2
          - chat "You see... we are not only tribe plagued by Storm and by Colonist."
          - wait 2
          - chat "Ever since arrival, tension between grow."
          - wait 2
          - chat "There are some tribes, mainly one to South, which are considering riot."
          - wait 2
          - chat "They wish to stage coup, enslave other savages."
          - wait 2
          - chat "Some of my tribe are out there, slaves. Please... find tribe. Free slaves. Do what must."
          - wait 2
          - chat "Please... lives depend on action."
          - wait 2
          - chat "I will give blessing, if success."
          - flag player CIVillageTHQuest
          - zap 3
        2:
          trigger: /Regex:No|no/.
          script:
          - chat "I beg you change mind. Give time to think."
          - zap 1
    3:
      click trigger:
        script:
          - chat "Did you find the riot tribe?"
      chat trigger:
        1:
          trigger:/Regex:Hello|Hi|Hey|Greetings|Good day|Yes/.
          script:
          - if <player.inventory.contains[CIVillageNecklace]> {
            - chat "You... you did. Brought back my necklace..."
            - wait 2
            - chat "I cannot give enough thanks, kin."
            - wait 2
            - chat "Take this, it is all I can give."
            - give CIVillageReward
            - wait 2
            - chat "Thank you... thank you."
            - flag player CIVillageTHComplete
            - flag player CIVillageTHQuest:false
            }
            else {
            - chat "Did you find it? Anything? I need evidence you tried..."
             }
CIVillageNecklace:
  type: item
  material: i@diamond
  display name: <&c>Tribal Necklace
  lore:
  - An ornate, feathered necklace which
  - intricate carvings. Belongs to the
  - chief of one of the Central Tribes.
CIVillageReward:
  type: item
  material: i@leather_helmet
  display name: <&c>Ancient Tribal Headdress
  lore:
  - A feathered, rainbow headdress
  - given as a gift from a Tribal Village.
  - Rumored to protect from fire.
  enchantments:
  - PROTECTION_FIRE:3
thevillagea1:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 thevillagei1
thevillagei1:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good day/.
          script:
            - if <player.flag[Villagei1start]> {
              - chat "Did you bring the leather?"
              - narrate "Type Leather or Yes to continue"
              }
              else {
              - chat "You not belong here stranger."
              - wait 2
              - chat "*The native turns back to their leather stand.*"
              - narrate "The Tribe|Need Help"
              }
        2:
          trigger: /Regex:The tribe|The Tribe|tribe|Tribe/?
          script:
            - chat "Small tribe. Keep to self. Unlike colonists North..."
            - wait 1
            - chat "*He grunts, clearly not interested in chatting.*"
            - narrate "The Tribe|Need Help"
        3:
          trigger: /Regex:Need help|Need Help|help|Help|need/?
          script:
            - chat "Look. I give you chance around here."
            - wait 2
            - chat "Hunting has not gone well. Bring twenty leather pelts, and we talk more."
            - flag player Villagei1start
        4:
          trigger: /Regex:leather|Leather|Yes|yes/.
          script:
            - if <player.inventory.contains[leather].quantity[20]> {
              - chat "I see you bring leather."
              - take i@leather quantity:20
              - chat "Many thanks traveler. Perhaps hope for colonists yet."
              - flag player Villagei1start:false
              - if <player.flag[CIVillageTH1]> {
                - if <player.flag[CIVillageTH2]>{
                  - flag player CIVillageTH
                  }
                  else {
                  - flag player CIVillageTH2
                  }
                }
                else {
                - flag player CIVillageTH1}
              }
              else {
              - chat "*Your empty pack seems to displease him.*"
              - wait 2
              - chat "Where is leather..."
              }

thevillagea2:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 thevillagei2
thevillagei2:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good day/.
          script:
          - if <player.flag[CIVillage2start]> {
            - chat "Do you have meat for bears?"
            - if <player.inventory.contains[cooked_beef].quantity[10]> {
              - chat "Seems you do... Thank you."
              - wait 2
              - take cooked_beef quantity:20
              - chat "You good person. I'll tell Chief."
              - wait 1
              - chat "Take this. Native talisman. Brings luck."
              - give i@FireCrystal quantity:6
              - flag player CIVillage2start:false
              - if <player.flag[CIVillageTH1]> {
                - if <player.flag[CIVillageTH2]> {
                  - flag player CIVillageTH
                  }
                  else {
                  - flag player CIVillageTH2
                  }
                }
                else {
                - flag player CIVillageTH1
                }
              }
              else {
              - chat "You no have meat.."
              }
            }
            else {
            - chat "Another visitor. Popular late."
            - wait 2
            - chat "Chief said many would be around. Said to be careful."
            - narrate "The Tribe?|Need Help?|Careful?"
            }
        2:
          trigger: /Regex:The tribe|The Tribe|tribe|Tribe/?
          script:
            - chat "Tribe is peaceful. Live off white bear in area."
            - wait 2
            - chat "Time is rough, with Symfora abound."
            - narrate "The Tribe?|Need Help?|Careful?|Symfora?"
        3:
          trigger: /Regex:Need help|Need Help|help|Help|need/?
          script:
            - chat "Suppose I could use help, if offered."
            - wait 2
            - chat "Times are tough. Bears losing food."
            - wait 2
            - chat "Could you get 10 steak for the bears?"
            - wait 2
            - chat "I will give reward, unlike some others."
            - narrate "Quest started. Say Hello to complete."
            - flag player CIVillage2start
        4:
          trigger: /Regex:Careful|careful/?
          script:
            - chat "Some people have come around lately... start trouble."
            - wait 2
            - chat "Mostly runaway colonist from city. Hate us, no reason."
            - wait 2
            - chat "Dangerous, so must be careful."
            - narrate "The Tribe?|Need Help?|Careful?"
        5:
          trigger: /Regex:Symfora|symfora/?
          script:
            - chat "The storms. You see rain come, stay strong long time."
            - wait 2
            - chat "Since gods have ceased activity, Symfora rain down."
            - wait 2
            - chat "Corrupts good things... births evil."
            - narrate "The Tribe?|Need Help?|Careful?"
thevillagea3:
  type: assignment
  actions:
    on assignment:
    - narrate "Assignment set."
  interact scripts:
  - 1 thevillagei3
thevillagei3:
  type: interact
  steps:
    1:
      chat trigger:
        1:
          trigger: /Regex:Hello|Hi|Hey|Greetings|Good day/.
          script:
          - if <player.flag[CIVillage3start]> {
            - if <player.inventory.contains[wool].quantity[64]> {
              - chat "You brought it... wonderful..."
              - take wool quantity:64
              - flag player CIVillage3start:false
              - give i@AirCrystal quantity:6
              - if <player.flag[CIVillageTH1]> {
                - if <player.flag[CIVillageTH2]> {
                  - flag player CIVillageTH
                  }
                  else {
                  - flag player CIVillageTH2
                  }
                }
                else {
                - flag player CIVillageTH1
                }
              }
              else {
              - chat "Still await wool, friend."
              }
            }
            else {
            - chat "Good day, traveler."
            - wait 2
            - chat "I may be forward, but require aid."
            - wait 2
            - chat "Can you please bring me a crate (stack) of wool?"
            - chat "Plain colored would be best."
            - narrate "Accept|Decline"
            }

        2:
          trigger: /Regex:Accept|accept|Okay|Yes|yes/
          script:
          - chat "Thank you... traveler."
          - flag player CIVillage3start
        3:
          trigger: /Regex:Decline|decline|no|No/
          script:
          - chat "I see.. perhaps the rumors were true."