Date: 2014/04/21 20:07:43 UTC-07: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
Zombie:
type: assignment
interact scripts:
- 10 KillQuest
KillQuest:
type: interact
steps:
1:
click trigger:
script:
- chat "You must be <player.name>! Please, help me kill those Zombies!"
- wait 1
- chat "The Zombies killed my entire family!"
- wait 1
- chat "Killing some Zombies would help ease my pain."
- wait 1
- chat "Can you kill 10 of those bastards for me?"
chat trigger:
1:
trigger: /Yes/, I shall slaughter them!
script:
- chat "Hell yeah! Kill them bastards!"
- wait 1
- chat "Please hurry!"
- listen kill type:entity name:Zombie qty:1 script ZombieQuestCheck
- flag player ZombieCount:0
- zap step:2
2:
trigger:
script:
- chat "Then leave coward!"
2:
click trigger:
script:
- chat "They are everywhere!"
- wait 1
- chat "You've only killed <player.flag[ZombieCount].asint> zombies!"
3:
click trigger:
script:
- chat "Thank god they're leaving!"
- wait 1
- chat "Here take this!"
- give money qty:300
- give xp qty:1000
- zap step:4
4:
click trigger:
script:
- chat "Thanks for killing those Zombies for me <player.name>!"
- wait 1
- chat "Come back later, I might have something else for you to do."
ZombieQuestCheck:
type: task
script:
- flag player ZombieCount:++
- narrate "You have slaughtered <player.flag[ZombieCount].asint>/10 zombies!"
- if <player.flag[ZombieCount].asint> >= 10 run ZombieQuestReward
else run ZombieQuestContinue
ZombieQuestContinue:
type: task
script:
- listen kill type:entity name:Zombie qty:1 script ZombieQuestCheck
ZombieQuestReward:
type: task
script:
- narrate "You have killed <player.flag[ZombieCount].asint>/10 zombies! return back to Zombie Hater!"
- zap step:3 script:KillQuest