Date: 2017/06/24 22:03:39 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
JohnFisher:
type: assignment
actions:
on assignment:
- trigger name:chat toggle:true cooldown:1
interact scripts:
- 10 Fetch Base
'Fetch Base':
type: interact
steps:
'Introduction*':
click trigger:
script:
- if !<player.has_flag[started_fish_quest]> {
- if !<player.has_flag[finished_fish_quest]>{
- chat "Catch some fish for me with my rod"
- narrate "You can say 'Yes' or 'No'"
}
}
- if <player.has_flag[started_fish_quest]>{
- if <player.inventory.contains[Raw_Fish].qty> >= 10 {
- if <player.inventory.contains[Fishing_Rod].qty> >= 1 {
- ^engage now
- flag player started_fish_quest:!
- flag player finished_fish_quest
- chat "Thanks, keep the fish and pole"
- ^disengage
}
else{
- chat "missing rod!"
}
}
else{
- chat "missing fish!"
}
}
- if <player.has_flag[finished_fish_quest]> {
- chat "I have nothing else to say."
}
chat trigger:
'Yes':
trigger: /Yes/, I'll help.
script:
- if !<player.has_flag[started_fish_quest]> {
- if !<player.has_flag[finished_fish_quest]>{
- flag player started_fish_quest
- chat "Great!"
- ^disengage
}
}
'No':
trigger: /No/, not now.
script:
- if !<player.has_flag[started_fish_quest]> {
- if !<player.has_flag[finished_fish_quest]>{
- chat "Ask again"
}
}