Date: 2014/03/09 20:23:02 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
StoryQuest3:
type: assignment
default constants:
items: 340
interact scripts:
- 10 LostBook
actions:
on assignment:
- trigger name:proximity toggle:true
LostBook:
type: interact
steps:
1:
click trigger:
script:
- chat "I am sorry I'm not much in the mood for conversation."
2:
click trigger:
script:
- chat "Please help me! My house was attacked by those things and my book was left behind. It may hold the key to ending this invasion."
- wait 3
- chat "Will you please retrieve my book?"
chat trigger:
1:
trigger: /Yes/, I can help you, but where is your house?
script:
- chat "Great! My house is in hills near Elden. You can get to Elden by following the road outside of town."
- wait 4
- chat "Watch out for those monsters."
- zap step:3
2:
trigger: /No/, I don't have the time.
script:
- chat "I see....I guess I'll die trying to get it myself."
- zap step:2
3:
proximity trigger:
entry:
script:
- if <cons:items> contains <player.item_in_hand.id> runtask "FoundBook"
else {
- random {
- chat "Did you get the book?"
- chat "Where is the book?"
- chat "The fate of this world depends on that book."
}
}
"FoundBook":
type: task
steps:
1:
click trigger:
script:
- chat "My book! You found my book! Thank you so much!"
- wait 3
- chat "I will start searching through the book for anything that can help us."
- wait 3
- chat "Oh and here's something for your time."
- give money qty:200
- zap step:2
- FINISH
2:
click trigger:
script:
- chat "Return in a couple days. I should have something by then. Go try and help some other citizens around here in the meantime."