Date: 2014/11/08 21:05:21 UTC-05: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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
"Herobrine Assignment":
type: assignment
actions:
on assignment:
- trigger name:chat toggle:true
- trigger name:click toggle:true
- trigger name:proximity toggle:true
- trigger name:damage toggle:true
interact scripts:
- 10 Herobrine Greeting
'Herobrine Greeting':
type: interact
steps:
'1*':
proximity trigger:
entry:
script:
- lookclose toggle:true
- if <player.in_group[Stormtrooper]> {
- zap 'step:2'
}
exit:
script:
- lookclose toggle:false
damage trigger:
script:
- engage
- execute as_server "smite <player.name>"
- chat "You dare strike me!"
- disengage
click trigger:
script:
- engage
- if <global.flag[Emperor]||null> == "" {
- chat "The Emperor has died."
}
else {
- chat "<global.flag[Emperor]> is the current Emperor."
}
- wait 1
- if <global.flag[Darth]||null> == "" {
- chat "There is no Sith apprentice."
}
else {
- chat "<global.flag[Darth]> is the Sith apprentice."
}
- wait 2
- if <global.flag[Emperor]||null> != "" && <global.flag[Darth]||null> != "" {
- chat "The Death Star is nearing completion and the Sith Lords will once again rule the galaxy."
}
- disengage
chat trigger:
'catch-all':
trigger: '/REGEX:\w+/'
script:
- engage
- chat "I'm sorry. I don't know what you're talking about."
- disengage
'2':
proximity trigger:
entry:
script:
exit:
script:
- lookclose toggle:false
- zap 'step:1'
damage trigger:
script:
- engage
- execute as_server "smite <player.name>"
- chat "You dare strike me!"
- disengage
click trigger:
script:
- engage
- if <player.in_group[Staff]> {
- if <global.flag[Emperor]||null> == "" {
- chat "The Emperor has died."
}
else {
- chat "<global.flag[Emperor]> is the current Emperor."
}
- wait 1
- if <global.flag[Darth]||null> == "" {
- chat "There is no Sith apprentice."
}
else {
- chat "<global.flag[Darth]> is the Sith apprentice."
}
- wait 2
- if <global.flag[Emperor]||null> != "" && <global.flag[Darth]||null> != "" {
- chat "The Death Star is nearing completion and the Sith Lords will once again rule the galaxy."
}
}
else if <player.in_group[Emperor]> {
- if <global.flag[Darth]||null> == "" {
- chat "A new apprentice must be found."
}
else {
- chat "What is your bidding my master?"
- wait 1
- chat "Has Lord <player.name> proven himself?"
}
}
else if <player.in_group[Darth]> {
- if <global.flag[Emperor]||null> == "" {
- chat "The Emperor is dead. You must step up and claim his place."
- wait 3
- chat "Go forth and spread imperial rule, Emperor <player.name>."
- flag global 'Emperor:<player.name>'
- flag global 'Darth:'
- execute as_server "manuadd <player.name> Emperor"
- announce "[<dark_red>Announcement<white>]<&co> Long live the new Emperor <player.name>!"
}
else {
- chat "How may I serve you Lord <player.name>?"
- chat "What is the Emperor <global.flag[Emperor]>'s bidding?"
}
}
else if <player.in_group[GrandMoff]> {
- chat "Sir, I believe you are needed in the War Room."
}
else if <player.in_group[Admiral]> {
- chat "I believe you are needed on the bridge sir."
}
else if <player.in_group[Lieutenant]> {
- if <global.flag[Darth]||null> == "" {
- chat "Come then my young Apprentice. There is much work to be done."
- flag global 'Darth:<player.name>'
- execute as_server "manuadd <player.name> Darth"
- announce "[<dark_red>Announcement<white>]<&co> May the force be with new Lord <player.name>!"
}
else {
- chat "There is much yet for you to learn."
}
}
else if <player.in_group[Gunner]> {
- chat "There is much yet for you to learn."
}
else {
- chat "There is much yet for you to learn."
}
- disengage
chat trigger:
'catch-all':
trigger: '/REGEX:\w+/'
script:
- engage
- chat "I'm sorry. I don't know what you're talking about."
- disengage