Date: 2014/12/11 19:36:45 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
JayScript:
type: assignment
actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
interact scripts:
- JayInteract
JayInteract:
type: interact
steps:
1:
click trigger:
script:
- chat "Howdy there <YELLOW><player.name><GREEN>."
- wait 3
- chat "I haven't seen you around town!"
- wait 3
- chat "Can you go grab me some eggs so I can make some dough?"
- wait 3
- narrate "<YELLOW>Will you help the man?"
- narrate "<YELLOW> [YES]"
- narrate "<YELLOW> [NO]"
- zap step:2
2:
chat trigger:
1:
trigger: /Yes/
script:
- chat "Thank you!"
- wait 3
- chat "I'll be waiting!"
- zap step:3
2:
trigger: /No/
script:
- chat "Well now I can't make my dough!"
- zap step:1
3:
click trigger:
script:
- if <player.inventory.contains[EGG]> {
- chat "Thank you, <YELLOW><player.name><GREEN>!"
- wait 3
- take EGG gty:1
- chat "Here take this."
- give IRON_INGOT qty:1
- zap step:4
}
else {
- chat "Do you have the egg yet?"
}
4:
click trigger:
script:
- chat "Thanks again for the egg!"