Date: 2014/05/01 04:33:15 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
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
Zorgoth:
Type: Assignment
Interact scripts:
- 10 ZorgothQuest
ZorgothQuest:
Type: Interact
Steps:
1:
Click Trigger:
Script:
- chat "Welcome to my shop, Traveler!"
- wait 2
- chat "I would normally offer you ingredients but..."
- wait 2
- chat "...I'm afraid my supplies have been stolen by witches."
Click Trigger:
Script:
- chat "Are you offering assistance with my witch problem?"
- wait 2
- chat "I'm capable of brewing a fair reward for you."
- wait 2
- chat "Will you help me out?"
Chat Trigger:
Yes:
Trigger: /Yes/, I will help.
Script:
- chat "Ah, this is most excellent."
- wait 2
- chat "Please talk to the witches located about 150 meters to the South."
- wait 2
- chat "By talk I mean slaughter. Off you go now."
- listen kill type:npc target:n@Fantasio script: KilledFantasio
- listen kill type:npc target:n@Ossidiana script: KilledOssidiana
- zap step:3
No:
Trigger: /No/, I'm not ready nor willing to risk my life.
Script:
- chat "Oh, what a shame."
- wait 2
- chat "Let me know if you happen to change your mind."
- wait 2
- chat "It will be worth your time. Come talk to again me when you're able to help."
- zap step:2
3:
Click Trigger:
Script:
- chat "Please hurry, I'll sell you stuff when you're finished."
4:
Click Trigger:
Script:
- chat "Thanks, once again."
- wait 2
- chat "Here, check out my supplies!"
KilledFantasio:
Type: Task
Script:
- flag <player> has_killed:->:Fantasio
- if <player.flag[has_killed].contains[Ossidiana]> {
- run s@ZorgothQuestTask def:<player>
} else {
- narrate "She's dead!"
}
KilledOssidiana:
Type: Task
Script:
- flag <player> has_killed:->:Ossidiana
- if <player.flag[has_killed].contains[Fantasio]> {
- run s@ZorgothQuestTask def:<player>
} else {
- narrate "Why struggle!?"
}
ZorgothQuestTask:
Type: Task
Script:
- if <player.flag[has_killed].contains[Ossidiana]> && <player.flag[has_killed].contains[Fantasio]> {
- narrate "I should probably return to Zorgoth."
- zap step:4 script:ZorgothQuest player:%1%
}
NPCEngageScript:
Type: Assignment
Interact scripts:
- 10 ProximityEngage
Actions:
on assignment:
- trigger name:proximity radius:4
on death:
- vulnerable state:false
- wait 120s
- spawn <npc> <npc.flag[startLocation]>
- attack target:cancel
ProximityEngage:
Type: Interact
Steps:
1:
Proximity Trigger:
Entry:
Script:
- flag <npc> startLocation:<npc.location>
- random {
- chat "Intruder!"
- chat "Die scum!"
- chat "Have at thee!"
- chat "Die!"
}
- attack target:<player>
- vulnerable