Date: 2016/01/27 19:39:38 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
"Clucky":
type: assignment
default constants:
Food: i@4215|i@4216|i@4218|i@4219|i@4220|i@4221|i@4217
SeedQty: 5
EggQty: 1
interact scripts:
- 10 Feed Clucky
actions:
on assignment:
- trigger name:click toggle:true
- trigger name:proximity toggle:true
- trigger name:damage toggle:false
# Make the NPC so they can be killed by the player. They will respawn 60 seconds later.
- execute as_npc "npc sel <npc.id>"
# If you don't want the chicken to take damage or be killed, simply comment the line directly below.
- execute as_npc "npc vulnerable"
- execute as_npc "npc respawn 60"
# Make the NPC look at players
- lookclose state:true
on spawn:
- teleport npc 'location:-190,63,908,world'
on death by player:
- narrate "<red>You have killed <aqua><npc.name><red>. Luckily, she knows how to travel through space and time and will return shortly."
"Feed Clucky":
type: interact
steps:
1:
proximity trigger:
entry:
script:
- ^random {
- ^narrate "<aqua><npc.name><red> the chicken looks at you funny..."
- ^narrate "<red>The creepy chicken is eagerly watching your every move.."
- ^narrate "<red>You feel someone or something staring at you.."
- ^narrate "<red>Is this deja vu or have you seen that chicken before?"
- ^narrate "<red>You feel your mind being altered, implanted with an urge to feed that chicken staring at you."
- ^narrate "<red>You notice a chicken, watching you with it's one big eye."
- ^narrate "<red>For some reason, you feel like you are being watched." }
- ^playsound location:<npc.location> sound:chicken_idle
click trigger:
script:
- ^if <cons:Food> contains <player.item_in_Hand> {
- take <player.item_in_Hand>
- flag <player> CluckyCount:++
- run "Clucky Reward Check" }
else {
- random {
- narrate "<red>A single tear rolls down <aqua><npc.name><red>'s cheek ..."
- narrate "<red>You don't have any cooked apricorns to feed <aqua><npc.name><red>."
- narrate "<red>Poor <aqua><npc.name><red>, you don't have any cooked apricorns to feed her. Oh well, it's just a chicken anyway."
- narrate "<red>It's rare that someone approaches <aqua><npc.name><red> without any apricorns ... how could you <yellow><player.name><red>?"
- narrate "<red>Another day, another disappointment for poor <aqua><npc.name><red>."
- narrate "<red>You feel disappointed in yourself for not having any cooked apricorns to feed <aqua><npc.name><red>."
- narrate "<red>You feel ashamed in yourself for being the only person to disappoint <aqua><npc.name><red> in a year."
- narrate "<red>A sudden fear of being attacked ... by a chicken, overwhelms you."
}
}
damage trigger:
script:
- ^playsound location:<npc.location> sound:chicken_hurt
"Clucky Reward Check":
type: task
speed: 0
script:
- ^if <player.flag[CluckyCount]> == 1 narrate "<aqua><npc.name><red> gobbles up the apricorns, but is still hungry ..."
else if <player.flag[CluckyCount]> == 2 narrate "<aqua><npc.name><red> seems happier but is eagerly waiting for more ..."
else if <player.flag[CluckyCount]> == 3 narrate "<red>Yep, if you keep on feeding <aqua><npc.name><red> she might just ..."
else if <player.flag[CluckyCount]> == 4 narrate "<red>Almost ..."
else if <player.flag[CluckyCount]> >= <cons:SeedQty> run "Clucky Reward"
"Clucky Reward":
type: task
speed: 0
script:
- ^playsound location:<npc.location> sound:chicken_egg_pop
- ^random {
- ^drop i@4138 qty:1 location:<npc.location>
- ^drop i@4139 qty:1 location:<npc.location>
- ^drop i@4140 qty:1 location:<npc.location>
- ^drop i@4141 qty:1 location:<npc.location>
- ^drop i@4142 qty:1 location:<npc.location>
- ^drop i@4143 qty:1 location:<npc.location>
- ^drop i@4144 qty:1 location:<npc.location>
- ^drop i@4145 qty:1 location:<npc.location>
- ^drop i@4146 qty:1 location:<npc.location>
- ^drop i@4147 qty:1 location:<npc.location>
- ^drop i@4148 qty:1 location:<npc.location>
- ^drop i@4149 qty:1 location:<npc.location>
- ^drop i@4150 qty:1 location:<npc.location>
- ^drop i@4151 qty:1 location:<npc.location>
- ^drop i@4152 qty:1 location:<npc.location>
- ^drop i@4153 qty:1 location:<npc.location>
- ^drop i@4154 qty:1 location:<npc.location>
- ^drop i@4155 qty:1 location:<npc.location>
- ^drop i@4156 qty:1 location:<npc.location> }
- ^flag <player> CluckyCount:!
- ^random {
- narrate "<red>Why did it come out full-size?"
- narrate "<red>What an odd egg!"
- narrate "<red>Oh snap, a pokeball!"
- narrate "<red>Pokeball get!"
- narrate "<aqua><npc.name><red> laid an odd egg!"
- narrate "<red>In goes the food, out comes the ball ..." }