Date: 2017/04/17 09:42:24 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
GoldBarQuest:
type: assignment
actions:
on assignment:
- trigger name:click state:true
interact scripts:
- 10 GoldBarStart
GoldBarStart:
type: interact
steps:
1:
click trigger:
script:
- chat "Hello <player.name>, I need some help!"
- wait 1
- chat "Can you help me?"
chat trigger:
1:
trigger: /yes/, I will help you!
script:
- chat "Oh great! I need 10 gold bars."
- wait 1
- chat "Come back when you have them"
- zap step:2
2:
trigger: /no/, I am too busy
script:
- chat "Oh darn, come back if you have some spare time..."
2:
click trigger:
script:
- if <player.inventory.contains[GOLD_INGOTS].qty[10]> {
- ^take gold_ingor qty:10
- chat "Oh great, you have my gold"
- wait 1
- chat "Thanks body"
- give ENDER_PEARL qty:2
- zap step:3
} else {
- chat "Oh, come nack when you have 10 GoldBars!"
- wait 1
- narrate "<npc.name> frowns at you."
}
3:
click trigger:
script:
- chat "Thank you so much for your help earlier!"
- wait 1
- chat "Id be broke wihtout you."