Date: 2016/03/04 04:40:11 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
shipmatehandy:
type: assignment
interact scripts:
- 10 repairstart
repairstart:
type: interact
steps:
1:
click trigger:
script:
- chat "ARGH! I cant get this repair fixed without wood!"
- wait 1
- chat "You there! I need your help"
- wait 1
- chat "Will you help me?"
chat trigger:
1:
trigger: /Yes/, I can help. What do you need?
script:
- chat "I need wood, to get this hole fixed"
- wait 1
- chat "I should need about 50 wood, you bring me that and I'll pay ye 300 gold coins!"
- wait 1
- chat "Come back when ye got the wood!"
-zap step:2
2:
/No/, I cant right now.
script:
- chat "Argh! Come back when you can get me what wood.."
2:
click trigger:
script:
- if <player.inventory.contains[5].qty[50]> {
- take wood qty:50
- chat "Ah great! This should be enough to patch up this mess"
- wait 1
- chat "Thank ye so much!"
- give money qty:300
} else {
- chat "This hole could cause the ship to collapse!"
- wait 1
- chat "Please bring me that wood soon"
}
3:
click trigger:
script:
- chat "I should have this hole patched in no time!"
- wait 1
- chat "Thanks again for all ye help"