Date: 2014/04/28 20:46:20 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FarmWheat:
type: assignment
interact scripts:
- 10 WheatQuest
WheatQuest:
type: interact
steps:
1:
click trigger:
script:
- engage
- chat "Hello again, <player.name>!"
- wait 1
- chat "I don't know about you, but we're all getting pretty hungry."
- wait 1
- chat "Our food supplies are running low. Could you help us?"
- zap step:2
- disengage
2:
chat trigger:
1:
trigger: /Yes/, how can I help?
script:
- engage
- chat "Good! Grow us some wheat!"
- wait 1
- chat "Use some of that wood you have left over to make yourself a hoe"
- wait 1
- chat "After you make a hoe, cut some grass down to get some seeds!"
- wait 1
- chat "Then use your hoe to plant those seeds. Make sure to plant near some water!"
- wait 1
- chat "Plant about 10 of them! Good luck <player.name>!"
- listen block type:collect block:wheat qty:1 script:FarmQuestCheck
- flag player WheatCount:0
- zap step:3
- disengage
2:
trigger: /no/, go farm yourself!
script:
- chat "Fine then!"
3:
click trigger:
script:
- chat "You haven't planted enough wheat yet!"
- wait 1
- chat "You've only gathered <player.flag[WheatCount].asint>/10 Wheat!"
4:
click trigger:
script:
- engage
- chat "Mighty fine job of farming there <player.name>!"
- wait 1
- chat "Here's your reward!"
- give money:100
- give exp:300
- narrate "You obtained $100 and 300 exp!"
- zap step:5
- disengage
5:
click trigger:
script:
- engage
- chat "Thanks for planting all that wheat <player.name>!"
- wait 1
- chat "Come back soon for another job!"
- disengage
FarmQuestCheck:
type: task
script:
- flag player WheatCount:++
- narrate "You have planted <player.flag[WheatCount].asint>/10 Wheat!"
- if <player.flag[WheatCount].asint> >= 10 run FarmQuestReward
else run FarmQuestContinue
FarmQuestContinue:
type: task
script:
- listen block type:collect block:wheat qty:1 script:FarmQuestCheck
FarmQuestReward:
type: task
script:
- narrate "You have planted <player.flag[WheatCount].asint>/10 Wheat! Return to Zombie Hater!"
- zap step:4 script:WheatQuest