Date: 2014/05/13 19:43:21 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
TestQuest:
type: assignment
interact scripts:
- 10 TestStart
TestStart:
type: interact
steps:
1:
click trigger:
script:
- chat "Hello <player.name>!"
- wait 1
- chat "Would you be willing to help me? I can only offer you a small reward though.."
chat trigger:
1:
trigger: /yes/, i will help you!
script:
- chat "Oh great! If it's not too much to ask I would need 10 gold bars!
- wait 1
- chat "Please come back to me when you have them!."
- zap step:2
2:
trigger: /No/, I am too busy.
script:
- chat "Oh okay.., then please come back if you have some spare time!"
2:
click trigger:
script:
- if <player.inventory.contains[GOLD_INGOT].qty[10]> {
- ^take gold_ingot qty:10
- chat "That's all 10 of them? Perfect! thank you! Please wait a minute!"
- wait 1
- give item gold_ingot qty:2
- zap step:3
} else {
- chat "You still need a few more gold bars, I need 10 of them.."
- narrate "<npc.name> looks at you"
- wait 1
- narrate "<npc.name> looks at you"
}
3.
click trigger:
script:
- chat "Thank you for helping me earlier!"
- wait 1
- chat "It was really of great help!"