// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
Name | Type | is_array | initial_value |
boolean01 | boolean | No | |
boolean02 | boolean | No | |
boolean03 | boolean | No | |
boolean04 | boolean | No | |
boolean05 | boolean | No | |
boolean06 | boolean | No | |
booleans01 | boolean | Yes | |
booleans02 | boolean | Yes | |
booleans03 | boolean | Yes | |
booleans04 | boolean | Yes | |
booleans05 | boolean | Yes | |
booleans06 | boolean | Yes | |
booleans07 | boolean | Yes | |
booleans08 | boolean | Yes | |
booleans09 | boolean | Yes | |
booleans10 | boolean | Yes | |
booleans11 | boolean | Yes | |
booleans12 | boolean | Yes | |
booleans13 | boolean | Yes | |
booleans14 | boolean | Yes | |
booleans15 | boolean | Yes | |
booleans16 | boolean | Yes | |
booleans17 | boolean | Yes | |
booleans18 | boolean | Yes | |
booleans19 | boolean | Yes | |
booleans20 | boolean | Yes | |
booleans21 | boolean | Yes | |
booleans22 | boolean | Yes | |
booleans23 | boolean | Yes | |
booleans24 | boolean | Yes | |
booleans25 | boolean | Yes | |
booleans26 | boolean | Yes | |
booleans27 | boolean | Yes | |
booleans28 | boolean | Yes | |
booleans29 | boolean | Yes | |
booleans30 | boolean | Yes | |
booleans31 | boolean | Yes | |
booleans32 | boolean | Yes | |
booleans33 | boolean | Yes | |
booleans34 | boolean | Yes | |
booleans35 | boolean | Yes | |
button01 | button | No | |
button02 | button | No | |
button03 | button | No | |
button04 | button | No | |
button05 | button | No | |
button06 | button | No | |
button07 | button | No | |
button08 | button | No | |
button09 | button | No | |
buttons01 | button | Yes | |
buttons02 | button | Yes | |
buttons03 | button | Yes | |
buttons04 | button | Yes | |
buttons05 | button | Yes | |
buttons06 | button | Yes | |
buttons07 | button | Yes | |
buttons08 | button | Yes | |
buttons09 | button | Yes | |
buttons10 | button | Yes | |
buttons11 | button | Yes | |
camerasetup01 | camerasetup | No | |
camerasetup02 | camerasetup | No | |
camerasetup03 | camerasetup | No | |
camerasetup04 | camerasetup | No | |
camerasetup05 | camerasetup | No | |
camerasetup06 | camerasetup | No | |
camerasetup07 | camerasetup | No | |
camerasetup08 | camerasetup | No | |
camerasetup09 | camerasetup | No | |
camerasetup10 | camerasetup | No | |
camerasetup11 | camerasetup | No | |
camerasetup12 | camerasetup | No | |
camerasetup13 | camerasetup | No | |
camerasetup14 | camerasetup | No | |
camerasetup15 | camerasetup | No | |
camerasetup16 | camerasetup | No | |
camerasetup17 | camerasetup | No | |
camerasetup18 | camerasetup | No | |
camerasetup19 | camerasetup | No | |
camerasetup20 | camerasetup | No | |
camerasetup21 | camerasetup | No | |
camerasetup22 | camerasetup | No | |
camerasetup23 | camerasetup | No | |
camerasetup24 | camerasetup | No | |
camerasetup25 | camerasetup | No | |
camerasetup26 | camerasetup | No | |
destructable01 | destructable | No | |
destructable02 | destructable | No | |
destructable03 | destructable | No | |
destructable04 | destructable | No | |
destructable05 | destructable | No | |
destructable06 | destructable | No | |
destructable07 | destructable | No | |
destructable08 | destructable | No | |
destructable09 | destructable | No | |
destructable10 | destructable | No | |
destructable11 | destructable | No | |
destructable12 | destructable | No | |
destructable13 | destructable | No | |
destructable14 | destructable | No | |
destructable15 | destructable | No | |
destructable16 | destructable | No | |
destructable17 | destructable | No | |
destructable18 | destructable | No | |
destructable19 | destructable | No | |
destructable20 | destructable | No | |
destructable21 | destructable | No | |
destructable22 | destructable | No | |
destructable23 | destructable | No | |
destructable24 | destructable | No | |
destructable25 | destructable | No | |
destructable26 | destructable | No | |
destructable27 | destructable | No | |
destructables01 | destructable | Yes | |
dialog01 | dialog | No | |
dialog02 | dialog | No | |
dialog03 | dialog | No | |
dialog04 | dialog | No | |
dialog05 | dialog | No | |
dialog06 | dialog | No | |
dialog07 | dialog | No | |
dialog08 | dialog | No | |
dialog09 | dialog | No | |
dialog10 | dialog | No | |
dialog11 | dialog | No | |
dialog12 | dialog | No | |
dialog13 | dialog | No | |
dialog14 | dialog | No | |
dialogs01 | dialog | Yes | |
dialogs02 | dialog | Yes | |
dialogs03 | dialog | Yes | |
effect01 | effect | No | |
effects01 | effect | Yes | |
effects02 | effect | Yes | |
effects03 | effect | Yes | |
effects04 | effect | Yes | |
effects05 | effect | Yes | |
effects06 | effect | Yes | |
effects07 | effect | Yes | |
effects08 | effect | Yes | |
effects09 | effect | Yes | |
effects10 | effect | Yes | |
fogmodifiers01 | fogmodifier | Yes | |
force01 | force | No | |
force02 | force | No | |
force03 | force | No | |
force04 | force | No | |
force05 | force | No | |
force06 | force | No | |
forces01 | force | Yes | |
group01 | group | No | |
group02 | group | No | |
group03 | group | No | |
group04 | group | No | |
group05 | group | No | |
group06 | group | No | |
group07 | group | No | |
group08 | group | No | |
group09 | group | No | |
group10 | group | No | |
group11 | group | No | |
group12 | group | No | |
group13 | group | No | |
group14 | group | No | |
group15 | group | No | |
group16 | group | No | |
groups01 | group | Yes | |
groups02 | group | Yes | |
handle01 | handle | No | |
integer01 | integer | No | |
integer02 | integer | No | |
integer03 | integer | No | |
integer04 | integer | No | |
integer05 | integer | No | |
integer06 | integer | No | |
integer07 | integer | No | |
integer08 | integer | No | |
integer09 | integer | No | |
integer10 | integer | No | |
integer11 | integer | No | |
integer12 | integer | No | |
integer13 | integer | No | |
integer14 | integer | No | |
integer15 | integer | No | |
integer16 | integer | No | |
integer17 | integer | No | |
integer18 | integer | No | |
integer19 | integer | No | |
integer20 | integer | No | |
integer21 | integer | No | |
integer22 | integer | No | |
integer23 | integer | No | |
integer24 | integer | No | |
integer25 | integer | No | |
integer26 | integer | No | |
integer27 | integer | No | |
integer28 | integer | No | |
integer29 | integer | No | |
integer30 | integer | No | |
integer31 | integer | No | |
integer32 | integer | No | |
integer33 | integer | No | |
integer34 | integer | No | |
integer35 | integer | No | |
integer36 | integer | No | |
integer37 | integer | No | |
integer38 | integer | No | |
integer39 | integer | No | |
integer40 | integer | No | |
integer41 | integer | No | |
integer42 | integer | No | |
integer43 | integer | No | |
integer44 | integer | No | |
integer45 | integer | No | |
integer46 | integer | No | |
integer47 | integer | No | |
integer48 | integer | No | |
integer49 | integer | No | |
integer50 | integer | No | 10 |
integer51 | integer | No | |
integer52 | integer | No | |
integer53 | integer | No | 1 |
integers01 | integer | Yes | |
integers02 | integer | Yes | |
integers03 | integer | Yes | |
integers04 | integer | Yes | |
integers05 | integer | Yes | |
integers06 | integer | Yes | |
integers07 | integer | Yes | |
integers08 | integer | Yes | |
integers09 | integer | Yes | |
integers10 | integer | Yes | |
integers11 | integer | Yes | |
integers12 | integer | Yes | |
integers13 | integer | Yes | |
integers14 | integer | Yes | |
integers15 | integer | Yes | |
integers16 | integer | Yes | |
integers17 | integer | Yes | |
integers18 | integer | Yes | |
integers19 | integer | Yes | |
integers20 | integer | Yes | |
integers21 | integer | Yes | |
integers22 | integer | Yes | |
integers23 | integer | Yes | |
integers24 | integer | Yes | |
integers25 | integer | Yes | |
integers26 | integer | Yes | |
integers27 | integer | Yes | |
integers28 | integer | Yes | |
integers29 | integer | Yes | |
integers30 | integer | Yes | |
integers31 | integer | Yes | |
integers32 | integer | Yes | |
integers33 | integer | Yes | |
integers34 | integer | Yes | |
integers35 | integer | Yes | |
integers36 | integer | Yes | |
integers37 | integer | Yes | |
integers38 | integer | Yes | |
integers39 | integer | Yes | |
integers40 | integer | Yes | |
integers41 | integer | Yes | |
integers42 | integer | Yes | |
integers43 | integer | Yes | |
integers44 | integer | Yes | |
integers45 | integer | Yes | |
integers46 | integer | Yes | |
integers47 | integer | Yes | |
integers48 | integer | Yes | |
integers49 | integer | Yes | |
integers50 | integer | Yes | |
integers51 | integer | Yes | |
integers52 | integer | Yes | |
integers53 | integer | Yes | |
integers54 | integer | Yes | |
integers55 | integer | Yes | |
integers56 | integer | Yes | |
integers57 | integer | Yes | |
integers58 | integer | Yes | |
integers59 | integer | Yes | |
integers60 | integer | Yes | |
integers61 | integer | Yes | |
integers62 | integer | Yes | |
integers63 | integer | Yes | |
integers64 | integer | Yes | |
integers65 | integer | Yes | |
integers66 | integer | Yes | |
integers67 | integer | Yes | |
integers68 | integer | Yes | |
item01 | item | No | |
item02 | item | No | |
items01 | item | Yes | |
items02 | item | Yes | |
items03 | item | Yes | |
items04 | item | Yes | |
itemtype01 | itemtype | No | |
leaderboard01 | leaderboard | No | |
leaderboards01 | leaderboard | Yes | |
location01 | location | No | |
location02 | location | No | |
location03 | location | No | |
location04 | location | No | |
location05 | location | No | |
location06 | location | No | |
locations01 | location | Yes | |
locations02 | location | Yes | |
locations03 | location | Yes | |
multiboard01 | multiboard | No | |
player01 | player | No | |
player02 | player | No | |
player03 | player | No | |
player04 | player | No | |
real01 | real | No | |
real02 | real | No | |
real03 | real | No | |
real04 | real | No | |
real05 | real | No | |
real06 | real | No | |
real07 | real | No | |
real08 | real | No | |
real09 | real | No | |
real10 | real | No | |
real11 | real | No | |
real12 | real | No | |
real13 | real | No | |
real14 | real | No | |
real15 | real | No | |
real16 | real | No | |
real17 | real | No | 4.7 |
real18 | real | No | 12000. |
real19 | real | No | 65. |
reals01 | real | Yes | |
reals02 | real | Yes | |
reals03 | real | Yes | |
reals04 | real | Yes | |
reals05 | real | Yes | |
reals06 | real | Yes | |
reals07 | real | Yes | |
reals08 | real | Yes | |
reals09 | real | Yes | |
reals10 | real | Yes | |
reals11 | real | Yes | |
reals12 | real | Yes | |
reals13 | real | Yes | |
reals14 | real | Yes | |
reals15 | real | Yes | |
reals16 | real | Yes | |
reals17 | real | Yes | |
reals18 | real | Yes | |
reals19 | real | Yes | |
rect01 | rect | No | |
rect02 | rect | No | |
rect03 | rect | No | |
rect04 | rect | No | |
rect05 | rect | No | |
rect06 | rect | No | |
rect07 | rect | No | |
rect08 | rect | No | |
rect09 | rect | No | |
rect10 | rect | No | |
rect100 | rect | No | |
rect101 | rect | No | |
rect102 | rect | No | |
rect103 | rect | No | |
rect104 | rect | No | |
rect105 | rect | No | |
rect106 | rect | No | |
rect107 | rect | No | |
rect108 | rect | No | |
rect109 | rect | No | |
rect11 | rect | No | |
rect110 | rect | No | |
rect111 | rect | No | |
rect112 | rect | No | |
rect113 | rect | No | |
rect114 | rect | No | |
rect115 | rect | No | |
rect116 | rect | No | |
rect117 | rect | No | |
rect118 | rect | No | |
rect119 | rect | No | |
rect12 | rect | No | |
rect120 | rect | No | |
rect121 | rect | No | |
rect122 | rect | No | |
rect123 | rect | No | |
rect124 | rect | No | |
rect125 | rect | No | |
rect126 | rect | No | |
rect127 | rect | No | |
rect128 | rect | No | |
rect129 | rect | No | |
rect13 | rect | No | |
rect130 | rect | No | |
rect131 | rect | No | |
rect132 | rect | No | |
rect133 | rect | No | |
rect134 | rect | No | |
rect135 | rect | No | |
rect136 | rect | No | |
rect137 | rect | No | |
rect138 | rect | No | |
rect139 | rect | No | |
rect14 | rect | No | |
rect140 | rect | No | |
rect141 | rect | No | |
rect142 | rect | No | |
rect143 | rect | No | |
rect144 | rect | No | |
rect145 | rect | No | |
rect146 | rect | No | |
rect147 | rect | No | |
rect148 | rect | No | |
rect149 | rect | No | |
rect15 | rect | No | |
rect150 | rect | No | |
rect151 | rect | No | |
rect152 | rect | No | |
rect153 | rect | No | |
rect154 | rect | No | |
rect155 | rect | No | |
rect156 | rect | No | |
rect157 | rect | No | |
rect158 | rect | No | |
rect159 | rect | No | |
rect16 | rect | No | |
rect160 | rect | No | |
rect161 | rect | No | |
rect162 | rect | No | |
rect163 | rect | No | |
rect164 | rect | No | |
rect165 | rect | No | |
rect166 | rect | No | |
rect167 | rect | No | |
rect168 | rect | No | |
rect169 | rect | No | |
rect17 | rect | No | |
rect170 | rect | No | |
rect171 | rect | No | |
rect172 | rect | No | |
rect173 | rect | No | |
rect174 | rect | No | |
rect175 | rect | No | |
rect176 | rect | No | |
rect177 | rect | No | |
rect178 | rect | No | |
rect179 | rect | No | |
rect18 | rect | No | |
rect180 | rect | No | |
rect181 | rect | No | |
rect182 | rect | No | |
rect183 | rect | No | |
rect184 | rect | No | |
rect185 | rect | No | |
rect186 | rect | No | |
rect187 | rect | No | |
rect188 | rect | No | |
rect189 | rect | No | |
rect19 | rect | No | |
rect190 | rect | No | |
rect191 | rect | No | |
rect192 | rect | No | |
rect193 | rect | No | |
rect194 | rect | No | |
rect195 | rect | No | |
rect196 | rect | No | |
rect197 | rect | No | |
rect198 | rect | No | |
rect199 | rect | No | |
rect20 | rect | No | |
rect200 | rect | No | |
rect201 | rect | No | |
rect202 | rect | No | |
rect203 | rect | No | |
rect204 | rect | No | |
rect205 | rect | No | |
rect206 | rect | No | |
rect207 | rect | No | |
rect208 | rect | No | |
rect209 | rect | No | |
rect21 | rect | No | |
rect210 | rect | No | |
rect211 | rect | No | |
rect212 | rect | No | |
rect213 | rect | No | |
rect214 | rect | No | |
rect215 | rect | No | |
rect216 | rect | No | |
rect217 | rect | No | |
rect218 | rect | No | |
rect219 | rect | No | |
rect22 | rect | No | |
rect220 | rect | No | |
rect221 | rect | No | |
rect222 | rect | No | |
rect223 | rect | No | |
rect224 | rect | No | |
rect225 | rect | No | |
rect226 | rect | No | |
rect227 | rect | No | |
rect228 | rect | No | |
rect229 | rect | No | |
rect23 | rect | No | |
rect230 | rect | No | |
rect231 | rect | No | |
rect232 | rect | No | |
rect233 | rect | No | |
rect234 | rect | No | |
rect235 | rect | No | |
rect236 | rect | No | |
rect237 | rect | No | |
rect238 | rect | No | |
rect239 | rect | No | |
rect24 | rect | No | |
rect240 | rect | No | |
rect241 | rect | No | |
rect242 | rect | No | |
rect243 | rect | No | |
rect244 | rect | No | |
rect245 | rect | No | |
rect246 | rect | No | |
rect247 | rect | No | |
rect248 | rect | No | |
rect249 | rect | No | |
rect25 | rect | No | |
rect250 | rect | No | |
rect251 | rect | No | |
rect252 | rect | No | |
rect253 | rect | No | |
rect254 | rect | No | |
rect255 | rect | No | |
rect256 | rect | No | |
rect257 | rect | No | |
rect258 | rect | No | |
rect259 | rect | No | |
rect26 | rect | No | |
rect260 | rect | No | |
rect261 | rect | No | |
rect262 | rect | No | |
rect263 | rect | No | |
rect264 | rect | No | |
rect265 | rect | No | |
rect266 | rect | No | |
rect27 | rect | No | |
rect28 | rect | No | |
rect29 | rect | No | |
rect30 | rect | No | |
rect31 | rect | No | |
rect32 | rect | No | |
rect33 | rect | No | |
rect34 | rect | No | |
rect35 | rect | No | |
rect36 | rect | No | |
rect37 | rect | No | |
rect38 | rect | No | |
rect39 | rect | No | |
rect40 | rect | No | |
rect41 | rect | No | |
rect42 | rect | No | |
rect43 | rect | No | |
rect44 | rect | No | |
rect45 | rect | No | |
rect46 | rect | No | |
rect47 | rect | No | |
rect48 | rect | No | |
rect49 | rect | No | |
rect50 | rect | No | |
rect51 | rect | No | |
rect52 | rect | No | |
rect53 | rect | No | |
rect54 | rect | No | |
rect55 | rect | No | |
rect56 | rect | No | |
rect57 | rect | No | |
rect58 | rect | No | |
rect59 | rect | No | |
rect60 | rect | No | |
rect61 | rect | No | |
rect62 | rect | No | |
rect63 | rect | No | |
rect64 | rect | No | |
rect65 | rect | No | |
rect66 | rect | No | |
rect67 | rect | No | |
rect68 | rect | No | |
rect69 | rect | No | |
rect70 | rect | No | |
rect71 | rect | No | |
rect72 | rect | No | |
rect73 | rect | No | |
rect74 | rect | No | |
rect75 | rect | No | |
rect76 | rect | No | |
rect77 | rect | No | |
rect78 | rect | No | |
rect79 | rect | No | |
rect80 | rect | No | |
rect81 | rect | No | |
rect82 | rect | No | |
rect83 | rect | No | |
rect84 | rect | No | |
rect85 | rect | No | |
rect86 | rect | No | |
rect87 | rect | No | |
rect88 | rect | No | |
rect89 | rect | No | |
rect90 | rect | No | |
rect91 | rect | No | |
rect92 | rect | No | |
rect93 | rect | No | |
rect94 | rect | No | |
rect95 | rect | No | |
rect96 | rect | No | |
rect97 | rect | No | |
rect98 | rect | No | |
rect99 | rect | No | |
rects01 | rect | Yes | |
rects02 | rect | Yes | |
rects03 | rect | Yes | |
rects04 | rect | Yes | |
rects05 | rect | Yes | |
rects06 | rect | Yes | |
rects07 | rect | Yes | |
rects08 | rect | Yes | |
rects09 | rect | Yes | |
regions01 | region | Yes | |
sound01 | sound | No | |
sound02 | sound | No | |
sound03 | sound | No | |
sound04 | sound | No | |
sound05 | sound | No | |
sound06 | sound | No | |
sound07 | sound | No | |
sound08 | sound | No | |
sound09 | sound | No | |
sound10 | sound | No | |
sound100 | sound | No | |
sound101 | sound | No | |
sound102 | sound | No | |
sound103 | sound | No | |
sound104 | sound | No | |
sound105 | sound | No | |
sound106 | sound | No | |
sound107 | sound | No | |
sound108 | sound | No | |
sound109 | sound | No | |
sound11 | sound | No | |
sound110 | sound | No | |
sound111 | sound | No | |
sound112 | sound | No | |
sound113 | sound | No | |
sound114 | sound | No | |
sound115 | sound | No | |
sound116 | sound | No | |
sound117 | sound | No | |
sound118 | sound | No | |
sound119 | sound | No | |
sound12 | sound | No | |
sound120 | sound | No | |
sound121 | sound | No | |
sound122 | sound | No | |
sound123 | sound | No | |
sound124 | sound | No | |
sound125 | sound | No | |
sound126 | sound | No | |
sound127 | sound | No | |
sound128 | sound | No | |
sound129 | sound | No | |
sound13 | sound | No | |
sound130 | sound | No | |
sound131 | sound | No | |
sound132 | sound | No | |
sound133 | sound | No | |
sound134 | sound | No | |
sound135 | sound | No | |
sound136 | sound | No | |
sound137 | sound | No | |
sound138 | sound | No | |
sound139 | sound | No | |
sound14 | sound | No | |
sound140 | sound | No | |
sound141 | sound | No | |
sound142 | sound | No | |
sound143 | sound | No | |
sound144 | sound | No | |
sound145 | sound | No | |
sound146 | sound | No | |
sound147 | sound | No | |
sound148 | sound | No | |
sound149 | sound | No | |
sound15 | sound | No | |
sound150 | sound | No | |
sound151 | sound | No | |
sound152 | sound | No | |
sound153 | sound | No | |
sound154 | sound | No | |
sound155 | sound | No | |
sound156 | sound | No | |
sound157 | sound | No | |
sound158 | sound | No | |
sound159 | sound | No | |
sound16 | sound | No | |
sound160 | sound | No | |
sound161 | sound | No | |
sound162 | sound | No | |
sound163 | sound | No | |
sound164 | sound | No | |
sound165 | sound | No | |
sound166 | sound | No | |
sound167 | sound | No | |
sound168 | sound | No | |
sound169 | sound | No | |
sound17 | sound | No | |
sound170 | sound | No | |
sound171 | sound | No | |
sound172 | sound | No | |
sound173 | sound | No | |
sound174 | sound | No | |
sound175 | sound | No | |
sound176 | sound | No | |
sound177 | sound | No | |
sound178 | sound | No | |
sound179 | sound | No | |
sound18 | sound | No | |
sound180 | sound | No | |
sound181 | sound | No | |
sound182 | sound | No | |
sound183 | sound | No | |
sound184 | sound | No | |
sound185 | sound | No | |
sound186 | sound | No | |
sound187 | sound | No | |
sound188 | sound | No | |
sound189 | sound | No | |
sound19 | sound | No | |
sound190 | sound | No | |
sound191 | sound | No | |
sound192 | sound | No | |
sound193 | sound | No | |
sound194 | sound | No | |
sound195 | sound | No | |
sound20 | sound | No | |
sound21 | sound | No | |
sound22 | sound | No | |
sound23 | sound | No | |
sound24 | sound | No | |
sound25 | sound | No | |
sound26 | sound | No | |
sound27 | sound | No | |
sound28 | sound | No | |
sound29 | sound | No | |
sound30 | sound | No | |
sound31 | sound | No | |
sound32 | sound | No | |
sound33 | sound | No | |
sound34 | sound | No | |
sound35 | sound | No | |
sound36 | sound | No | |
sound37 | sound | No | |
sound38 | sound | No | |
sound39 | sound | No | |
sound40 | sound | No | |
sound41 | sound | No | |
sound42 | sound | No | |
sound43 | sound | No | |
sound44 | sound | No | |
sound45 | sound | No | |
sound46 | sound | No | |
sound47 | sound | No | |
sound48 | sound | No | |
sound49 | sound | No | |
sound50 | sound | No | |
sound51 | sound | No | |
sound52 | sound | No | |
sound53 | sound | No | |
sound54 | sound | No | |
sound55 | sound | No | |
sound56 | sound | No | |
sound57 | sound | No | |
sound58 | sound | No | |
sound59 | sound | No | |
sound60 | sound | No | |
sound61 | sound | No | |
sound62 | sound | No | |
sound63 | sound | No | |
sound64 | sound | No | |
sound65 | sound | No | |
sound66 | sound | No | |
sound67 | sound | No | |
sound68 | sound | No | |
sound69 | sound | No | |
sound70 | sound | No | |
sound71 | sound | No | |
sound72 | sound | No | |
sound73 | sound | No | |
sound74 | sound | No | |
sound75 | sound | No | |
sound76 | sound | No | |
sound77 | sound | No | |
sound78 | sound | No | |
sound79 | sound | No | |
sound80 | sound | No | |
sound81 | sound | No | |
sound82 | sound | No | |
sound83 | sound | No | |
sound84 | sound | No | |
sound85 | sound | No | |
sound86 | sound | No | |
sound87 | sound | No | |
sound88 | sound | No | |
sound89 | sound | No | |
sound90 | sound | No | |
sound91 | sound | No | |
sound92 | sound | No | |
sound93 | sound | No | |
sound94 | sound | No | |
sound95 | sound | No | |
sound96 | sound | No | |
sound97 | sound | No | |
sound98 | sound | No | |
sound99 | sound | No | |
sounds01 | sound | Yes | |
sounds02 | sound | Yes | |
sounds03 | sound | Yes | |
string01 | string | No | |
string02 | string | No | |
string03 | string | No | |
string04 | string | No | |
string05 | string | No | |
string06 | string | No | |
string07 | string | No | |
string08 | string | No | |
string09 | string | No | |
string10 | string | No | |
string11 | string | No | |
string12 | string | No | |
string13 | string | No | |
string14 | string | No | |
string15 | string | No | |
string16 | string | No | |
string17 | string | No | |
string18 | string | No | |
string19 | string | No | |
string20 | string | No | |
string21 | string | No | |
string22 | string | No | |
string23 | string | No | |
string24 | string | No | |
string25 | string | No | |
string26 | string | No | |
string27 | string | No | Sound\\Music\\mp3Music\\HumanDefeat.mp3 |
strings01 | string | Yes | |
strings02 | string | Yes | |
strings03 | string | Yes | |
strings04 | string | Yes | |
strings05 | string | Yes | |
strings06 | string | Yes | |
strings07 | string | Yes | |
strings08 | string | Yes | |
strings09 | string | Yes | |
strings10 | string | Yes | |
strings11 | string | Yes | |
strings12 | string | Yes | |
strings13 | string | Yes | |
strings14 | string | Yes | |
strings15 | string | Yes | |
strings16 | string | Yes | |
strings17 | string | Yes | |
strings18 | string | Yes | |
strings19 | string | Yes | |
strings20 | string | Yes | |
strings21 | string | Yes | |
strings22 | string | Yes | |
texttags01 | texttag | Yes | |
timer01 | timer | No | |
timer02 | timer | No | |
timerdialog01 | timerdialog | No | |
timerdialog02 | timerdialog | No | |
timers01 | timer | Yes | |
timers02 | timer | Yes | |
timers03 | timer | Yes | |
trigger01 | trigger | No | |
trigger02 | trigger | No | |
trigger03 | trigger | No | |
trigger04 | trigger | No | |
trigger05 | trigger | No | |
trigger06 | trigger | No | |
trigger07 | trigger | No | |
trigger08 | trigger | No | |
trigger09 | trigger | No | |
trigger10 | trigger | No | |
trigger100 | trigger | No | |
trigger101 | trigger | No | |
trigger102 | trigger | No | |
trigger103 | trigger | No | |
trigger104 | trigger | No | |
trigger105 | trigger | No | |
trigger106 | trigger | No | |
trigger107 | trigger | No | |
trigger108 | trigger | No | |
trigger109 | trigger | No | |
trigger11 | trigger | No | |
trigger110 | trigger | No | |
trigger111 | trigger | No | |
trigger112 | trigger | No | |
trigger113 | trigger | No | |
trigger114 | trigger | No | |
trigger115 | trigger | No | |
trigger116 | trigger | No | |
trigger117 | trigger | No | |
trigger118 | trigger | No | |
trigger119 | trigger | No | |
trigger12 | trigger | No | |
trigger120 | trigger | No | |
trigger121 | trigger | No | |
trigger122 | trigger | No | |
trigger123 | trigger | No | |
trigger124 | trigger | No | |
trigger125 | trigger | No | |
trigger126 | trigger | No | |
trigger127 | trigger | No | |
trigger128 | trigger | No | |
trigger129 | trigger | No | |
trigger13 | trigger | No | |
trigger130 | trigger | No | |
trigger131 | trigger | No | |
trigger132 | trigger | No | |
trigger133 | trigger | No | |
trigger134 | trigger | No | |
trigger135 | trigger | No | |
trigger136 | trigger | No | |
trigger137 | trigger | No | |
trigger138 | trigger | No | |
trigger139 | trigger | No | |
trigger14 | trigger | No | |
trigger140 | trigger | No | |
trigger141 | trigger | No | |
trigger142 | trigger | No | |
trigger143 | trigger | No | |
trigger144 | trigger | No | |
trigger145 | trigger | No | |
trigger146 | trigger | No | |
trigger147 | trigger | No | |
trigger148 | trigger | No | |
trigger149 | trigger | No | |
trigger15 | trigger | No | |
trigger150 | trigger | No | |
trigger151 | trigger | No | |
trigger152 | trigger | No | |
trigger153 | trigger | No | |
trigger154 | trigger | No | |
trigger155 | trigger | No | |
trigger156 | trigger | No | |
trigger157 | trigger | No | |
trigger158 | trigger | No | |
trigger159 | trigger | No | |
trigger16 | trigger | No | |
trigger160 | trigger | No | |
trigger161 | trigger | No | |
trigger162 | trigger | No | |
trigger163 | trigger | No | |
trigger164 | trigger | No | |
trigger165 | trigger | No | |
trigger166 | trigger | No | |
trigger167 | trigger | No | |
trigger168 | trigger | No | |
trigger169 | trigger | No | |
trigger17 | trigger | No | |
trigger170 | trigger | No | |
trigger171 | trigger | No | |
trigger172 | trigger | No | |
trigger173 | trigger | No | |
trigger174 | trigger | No | |
trigger175 | trigger | No | |
trigger176 | trigger | No | |
trigger177 | trigger | No | |
trigger178 | trigger | No | |
trigger179 | trigger | No | |
trigger18 | trigger | No | |
trigger180 | trigger | No | |
trigger181 | trigger | No | |
trigger182 | trigger | No | |
trigger183 | trigger | No | |
trigger184 | trigger | No | |
trigger185 | trigger | No | |
trigger186 | trigger | No | |
trigger187 | trigger | No | |
trigger188 | trigger | No | |
trigger189 | trigger | No | |
trigger19 | trigger | No | |
trigger190 | trigger | No | |
trigger191 | trigger | No | |
trigger192 | trigger | No | |
trigger193 | trigger | No | |
trigger194 | trigger | No | |
trigger195 | trigger | No | |
trigger196 | trigger | No | |
trigger197 | trigger | No | |
trigger198 | trigger | No | |
trigger199 | trigger | No | |
trigger20 | trigger | No | |
trigger200 | trigger | No | |
trigger201 | trigger | No | |
trigger202 | trigger | No | |
trigger203 | trigger | No | |
trigger204 | trigger | No | |
trigger205 | trigger | No | |
trigger206 | trigger | No | |
trigger207 | trigger | No | |
trigger208 | trigger | No | |
trigger209 | trigger | No | |
trigger21 | trigger | No | |
trigger210 | trigger | No | |
trigger211 | trigger | No | |
trigger212 | trigger | No | |
trigger213 | trigger | No | |
trigger214 | trigger | No | |
trigger215 | trigger | No | |
trigger216 | trigger | No | |
trigger217 | trigger | No | |
trigger218 | trigger | No | |
trigger219 | trigger | No | |
trigger22 | trigger | No | |
trigger220 | trigger | No | |
trigger221 | trigger | No | |
trigger222 | trigger | No | |
trigger223 | trigger | No | |
trigger224 | trigger | No | |
trigger225 | trigger | No | |
trigger226 | trigger | No | |
trigger227 | trigger | No | |
trigger228 | trigger | No | |
trigger229 | trigger | No | |
trigger23 | trigger | No | |
trigger230 | trigger | No | |
trigger231 | trigger | No | |
trigger232 | trigger | No | |
trigger233 | trigger | No | |
trigger234 | trigger | No | |
trigger235 | trigger | No | |
trigger236 | trigger | No | |
trigger237 | trigger | No | |
trigger238 | trigger | No | |
trigger239 | trigger | No | |
trigger24 | trigger | No | |
trigger240 | trigger | No | |
trigger241 | trigger | No | |
trigger242 | trigger | No | |
trigger243 | trigger | No | |
trigger244 | trigger | No | |
trigger245 | trigger | No | |
trigger246 | trigger | No | |
trigger247 | trigger | No | |
trigger248 | trigger | No | |
trigger249 | trigger | No | |
trigger25 | trigger | No | |
trigger250 | trigger | No | |
trigger251 | trigger | No | |
trigger252 | trigger | No | |
trigger253 | trigger | No | |
trigger254 | trigger | No | |
trigger255 | trigger | No | |
trigger256 | trigger | No | |
trigger257 | trigger | No | |
trigger258 | trigger | No | |
trigger259 | trigger | No | |
trigger26 | trigger | No | |
trigger260 | trigger | No | |
trigger261 | trigger | No | |
trigger262 | trigger | No | |
trigger263 | trigger | No | |
trigger264 | trigger | No | |
trigger265 | trigger | No | |
trigger266 | trigger | No | |
trigger267 | trigger | No | |
trigger268 | trigger | No | |
trigger269 | trigger | No | |
trigger27 | trigger | No | |
trigger270 | trigger | No | |
trigger271 | trigger | No | |
trigger272 | trigger | No | |
trigger273 | trigger | No | |
trigger274 | trigger | No | |
trigger275 | trigger | No | |
trigger276 | trigger | No | |
trigger277 | trigger | No | |
trigger278 | trigger | No | |
trigger279 | trigger | No | |
trigger28 | trigger | No | |
trigger280 | trigger | No | |
trigger281 | trigger | No | |
trigger282 | trigger | No | |
trigger283 | trigger | No | |
trigger284 | trigger | No | |
trigger285 | trigger | No | |
trigger286 | trigger | No | |
trigger287 | trigger | No | |
trigger288 | trigger | No | |
trigger289 | trigger | No | |
trigger29 | trigger | No | |
trigger290 | trigger | No | |
trigger291 | trigger | No | |
trigger292 | trigger | No | |
trigger293 | trigger | No | |
trigger294 | trigger | No | |
trigger295 | trigger | No | |
trigger296 | trigger | No | |
trigger297 | trigger | No | |
trigger298 | trigger | No | |
trigger299 | trigger | No | |
trigger30 | trigger | No | |
trigger300 | trigger | No | |
trigger301 | trigger | No | |
trigger302 | trigger | No | |
trigger303 | trigger | No | |
trigger304 | trigger | No | |
trigger305 | trigger | No | |
trigger306 | trigger | No | |
trigger307 | trigger | No | |
trigger308 | trigger | No | |
trigger309 | trigger | No | |
trigger31 | trigger | No | |
trigger310 | trigger | No | |
trigger311 | trigger | No | |
trigger312 | trigger | No | |
trigger313 | trigger | No | |
trigger314 | trigger | No | |
trigger315 | trigger | No | |
trigger316 | trigger | No | |
trigger317 | trigger | No | |
trigger318 | trigger | No | |
trigger319 | trigger | No | |
trigger32 | trigger | No | |
trigger320 | trigger | No | |
trigger321 | trigger | No | |
trigger322 | trigger | No | |
trigger33 | trigger | No | |
trigger34 | trigger | No | |
trigger35 | trigger | No | |
trigger36 | trigger | No | |
trigger37 | trigger | No | |
trigger38 | trigger | No | |
trigger39 | trigger | No | |
trigger40 | trigger | No | |
trigger41 | trigger | No | |
trigger42 | trigger | No | |
trigger43 | trigger | No | |
trigger44 | trigger | No | |
trigger45 | trigger | No | |
trigger46 | trigger | No | |
trigger47 | trigger | No | |
trigger48 | trigger | No | |
trigger49 | trigger | No | |
trigger50 | trigger | No | |
trigger51 | trigger | No | |
trigger52 | trigger | No | |
trigger53 | trigger | No | |
trigger54 | trigger | No | |
trigger55 | trigger | No | |
trigger56 | trigger | No | |
trigger57 | trigger | No | |
trigger58 | trigger | No | |
trigger59 | trigger | No | |
trigger60 | trigger | No | |
trigger61 | trigger | No | |
trigger62 | trigger | No | |
trigger63 | trigger | No | |
trigger64 | trigger | No | |
trigger65 | trigger | No | |
trigger66 | trigger | No | |
trigger67 | trigger | No | |
trigger68 | trigger | No | |
trigger69 | trigger | No | |
trigger70 | trigger | No | |
trigger71 | trigger | No | |
trigger72 | trigger | No | |
trigger73 | trigger | No | |
trigger74 | trigger | No | |
trigger75 | trigger | No | |
trigger76 | trigger | No | |
trigger77 | trigger | No | |
trigger78 | trigger | No | |
trigger79 | trigger | No | |
trigger80 | trigger | No | |
trigger81 | trigger | No | |
trigger82 | trigger | No | |
trigger83 | trigger | No | |
trigger84 | trigger | No | |
trigger85 | trigger | No | |
trigger86 | trigger | No | |
trigger87 | trigger | No | |
trigger88 | trigger | No | |
trigger89 | trigger | No | |
trigger90 | trigger | No | |
trigger91 | trigger | No | |
trigger92 | trigger | No | |
trigger93 | trigger | No | |
trigger94 | trigger | No | |
trigger95 | trigger | No | |
trigger96 | trigger | No | |
trigger97 | trigger | No | |
trigger98 | trigger | No | |
trigger99 | trigger | No | |
triggerconditions01 | triggercondition | Yes | |
triggers01 | trigger | Yes | |
triggers02 | trigger | Yes | |
triggers03 | trigger | Yes | |
triggers04 | trigger | Yes | |
triggers05 | trigger | Yes | |
triggers06 | trigger | Yes | |
unit01 | unit | No | |
unit02 | unit | No | |
unit03 | unit | No | |
unit04 | unit | No | |
unit05 | unit | No | |
unit06 | unit | No | |
unit07 | unit | No | |
unit08 | unit | No | |
unit09 | unit | No | |
unit10 | unit | No | |
unit11 | unit | No | |
unit12 | unit | No | |
unit13 | unit | No | |
unit14 | unit | No | |
unit15 | unit | No | |
unit16 | unit | No | |
unit17 | unit | No | |
unit18 | unit | No | |
unit19 | unit | No | |
unit20 | unit | No | |
unit21 | unit | No | |
unit22 | unit | No | |
unit23 | unit | No | |
unit24 | unit | No | |
unit25 | unit | No | |
unit26 | unit | No | |
unit27 | unit | No | |
unit28 | unit | No | |
unit29 | unit | No | |
unit30 | unit | No | |
unit31 | unit | No | |
unit32 | unit | No | |
unit33 | unit | No | |
unit34 | unit | No | |
unit35 | unit | No | |
unit36 | unit | No | |
unit37 | unit | No | |
unit38 | unit | No | |
unit39 | unit | No | |
unit40 | unit | No | |
unit41 | unit | No | |
unit42 | unit | No | |
unit43 | unit | No | |
unit44 | unit | No | |
units01 | unit | Yes | |
units02 | unit | Yes | |
units03 | unit | Yes | |
units04 | unit | Yes | |
units05 | unit | Yes | |
units06 | unit | Yes | |
units07 | unit | Yes | |
units08 | unit | Yes | |
units09 | unit | Yes | |
units10 | unit | Yes | |
units11 | unit | Yes | |
units12 | unit | Yes | |
units13 | unit | Yes | |
units14 | unit | Yes | |
units15 | unit | Yes | |
units16 | unit | Yes | |
units17 | unit | Yes | |
units18 | unit | Yes | |
units19 | unit | Yes | |
units20 | unit | Yes | |
units21 | unit | Yes | |
units22 | unit | Yes | |
units23 | unit | Yes | |
units24 | unit | Yes | |
units25 | unit | Yes | |
units26 | unit | Yes | |
units27 | unit | Yes | |
units28 | unit | Yes | |
units29 | unit | Yes | |
units30 | unit | Yes |
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
function Kh takes real KH returns nothing
local real Ki
local real st=TimerGetElapsed(udg_timer02)
if st<=0 then
set udg_timer02=CreateTimer()
call TimerStart(udg_timer02,0xF4240,false,null)
endif
if(KH>0)then
loop
set Ki=KH-TimerGetElapsed(udg_timer02)+st
exitwhen Ki<=0
if(Ki>bj_POLLED_WAIT_SKIP_THRESHOLD)then
call TriggerSleepAction(.1*Ki)
else
call TriggerSleepAction(bj_POLLED_WAIT_INTERVAL)
endif
endloop
endif
endfunction
function KI takes trigger Kj,rect r returns event
local region KJ=CreateRegion()
call RegionAddRect(KJ,r)
set udg_handle01=TriggerRegisterEnterRegion(Kj,KJ,null)
set KJ=null
return udg_handle01
endfunction
function Kk takes trigger Kj,rect r returns event
local region KJ=CreateRegion()
call RegionAddRect(KJ,r)
set udg_handle01=TriggerRegisterLeaveRegion(Kj,KJ,null)
set KJ=null
return udg_handle01
endfunction
function KK takes unit Kl,integer KL returns integer
local integer Km
local item KM
set Km=0
loop
set KM=UnitItemInSlot(Kl,Km)
if(KM!=null)and(GetItemTypeId(KM)==KL)then
set KM=null
return Km+1
endif
set Km=Km+1
exitwhen Km>=6
endloop
set KM=null
return 0
endfunction
function Kn takes unit Kl,integer KL returns item
local integer Km=KK(Kl,KL)
if(Km==0)then
return null
else
return UnitItemInSlot(Kl,Km-1)
endif
endfunction
function KN takes unit Kl,integer KL returns boolean
return KK(Kl,KL)>0
endfunction
function Ko takes location KO,real Kp,real KP returns location
local real x=KP*bj_DEGTORAD
return Location(GetLocationX(KO)+Kp*Cos(x),GetLocationY(KO)+Kp*Sin(x))
endfunction
function Kq takes nothing returns nothing
local unit KQ=GetEnumUnit()
if(GetUnitState(KQ,UNIT_STATE_LIFE)<=0)then
call SetUnitTimeScale(KQ,.0001)
endif
set KQ=null
endfunction
function Kr takes nothing returns nothing
local unit KQ=GetEnumUnit()
if(GetUnitState(KQ,UNIT_STATE_LIFE)<=0)then
call UnitSuspendDecay(KQ,true)
call SetUnitTimeScale(KQ,.0001)
endif
set KQ=null
endfunction
function KR takes nothing returns nothing
local unit KQ=GetEnumUnit()
if(GetUnitState(KQ,UNIT_STATE_LIFE)<=0)then
call UnitSuspendDecay(KQ,true)
call SetUnitTimeScale(KQ,10.)
call SetUnitAnimation(KQ,"decay flesh")
endif
set KQ=null
endfunction
function Ks takes nothing returns nothing
local group KS
local group Kt
set KS=bj_suspendDecayBoneGroup
set Kt=bj_suspendDecayFleshGroup
set bj_suspendDecayBoneGroup=CreateGroup()
set bj_suspendDecayFleshGroup=CreateGroup()
call ForGroup(Kt,function Kq)
call ForGroup(KS,function Kq)
call TriggerSleepAction(8.)
call ForGroup(Kt,function KR)
call ForGroup(KS,function Kr)
call TriggerSleepAction(.05)
call ForGroup(Kt,function Kq)
call DestroyGroup(KS)
call DestroyGroup(Kt)
set KS=null
set Kt=null
endfunction
function Kv takes boolean KV returns nothing
local integer Km
local player Kw
local group g
set bj_pauseAllUnitsFlag=KV
set g=CreateGroup()
set Km=0
loop
set Kw=Player(Km)
if(GetPlayerController(Kw)==MAP_CONTROL_COMPUTER)then
call PauseCompAI(Kw,KV)
endif
call GroupEnumUnitsOfPlayer(g,Kw,null)
call ForGroup(g,function PauseAllUnitsBJEnum)
call GroupClear(g)
set Km=Km+1
exitwhen Km==16
endloop
call DestroyGroup(g)
set g=null
endfunction
function KW takes unit Kx,integer KX,integer Ky returns unit
local unit KY
local boolean Kz
local integer Km
local item KM
local real KZ
if(Kx==null)then
set bj_lastReplacedUnit=null
return null
endif
set Kz=IsUnitHidden(Kx)
call ShowUnit(Kx,false)
if(KX=='ugol')then
set KY=CreateBlightedGoldmine(GetOwningPlayer(Kx),GetUnitX(Kx),GetUnitY(Kx),GetUnitFacing(Kx))
else
set KY=CreateUnit(GetOwningPlayer(Kx),KX,GetUnitX(Kx),GetUnitY(Kx),GetUnitFacing(Kx))
endif
if(Ky==1)then
if(GetUnitState(Kx,UNIT_STATE_MAX_LIFE)>0)then
set KZ=GetUnitState(Kx,UNIT_STATE_LIFE)/GetUnitState(Kx,UNIT_STATE_MAX_LIFE)
call SetUnitState(KY,UNIT_STATE_LIFE,KZ*GetUnitState(KY,UNIT_STATE_MAX_LIFE))
endif
if(GetUnitState(Kx,UNIT_STATE_MAX_MANA)>0)and(GetUnitState(KY,UNIT_STATE_MAX_MANA)>0)then
set KZ=GetUnitState(Kx,UNIT_STATE_MANA)/GetUnitState(Kx,UNIT_STATE_MAX_MANA)
call SetUnitState(KY,UNIT_STATE_MANA,KZ*GetUnitState(KY,UNIT_STATE_MAX_MANA))
endif
elseif(Ky==0)then
call SetUnitState(KY,UNIT_STATE_LIFE,GetUnitState(Kx,UNIT_STATE_LIFE))
if(GetUnitState(KY,UNIT_STATE_MAX_MANA)>0)then
call SetUnitState(KY,UNIT_STATE_MANA,GetUnitState(Kx,UNIT_STATE_MANA))
endif
elseif(Ky==2)then
elseif(Ky==3)then
call SetUnitState(KY,UNIT_STATE_LIFE,GetUnitState(KY,UNIT_STATE_MAX_LIFE))
call SetUnitState(KY,UNIT_STATE_MANA,GetUnitState(KY,UNIT_STATE_MAX_MANA))
endif
call SetResourceAmount(KY,GetResourceAmount(Kx))
if(IsUnitType(Kx,UNIT_TYPE_HERO)and IsUnitType(KY,UNIT_TYPE_HERO))then
call SetHeroXP(KY,GetHeroXP(Kx),false)
set Km=0
loop
set KM=UnitItemInSlot(Kx,Km)
if(KM!=null)then
call UnitRemoveItem(Kx,KM)
call UnitAddItem(KY,KM)
endif
set Km=Km+1
exitwhen Km>=6
endloop
endif
if Kz then
call KillUnit(Kx)
call RemoveUnit(Kx)
else
call RemoveUnit(Kx)
endif
set bj_lastReplacedUnit=KY
set KY=null
set KM=null
return bj_lastReplacedUnit
endfunction
function K0 takes nothing returns boolean
local location K1=GetDestructableLoc(GetFilterDestructable())
local boolean K2
set K2=(DistanceBetweenPoints(K1,bj_enumDestructableCenter)<=bj_enumDestructableRadius)
call RemoveLocation(K1)
set K1=null
return K2
endfunction
function K3 takes real K4,location K5,code K6 returns nothing
local rect r
if(K4>=0)then
set bj_enumDestructableCenter=K5
set bj_enumDestructableRadius=K4
set r=GetRectFromCircleBJ(K5,K4)
call EnumDestructablesInRect(r,filterEnumDestructablesInCircleBJ,K6)
call RemoveRect(r)
set r=null
endif
endfunction
function lG takes rect r,boolexpr lh returns group
local group g=CreateGroup()
call GroupEnumUnitsInRect(g,r,lh)
call DestroyBoolExpr(lh)
set udg_handle01=g
set g=null
return udg_handle01
endfunction
function lH takes rect r returns group
return lG(r,null)
endfunction
function li takes rect r,player KU returns group
local group g=CreateGroup()
set bj_groupEnumOwningPlayer=KU
call GroupEnumUnitsInRect(g,r,filterGetUnitsInRectOfPlayer)
set udg_handle01=g
set g=null
return udg_handle01
endfunction
function lI takes real K4,location lj,boolexpr lh returns group
local group g=CreateGroup()
call GroupEnumUnitsInRangeOfLoc(g,lj,K4,lh)
call DestroyBoolExpr(lh)
set udg_handle01=g
set g=null
return udg_handle01
endfunction
function lJ takes real K4,location lj returns group
return lI(K4,lj,null)
endfunction
function lk takes integer lK returns group
local group g=CreateGroup()
call GroupEnumUnitsOfType(g,UnitId2String(lK),null)
set udg_handle01=g
set g=null
return udg_handle01
endfunction
function ll takes player KU,boolexpr lh returns group
local group g=CreateGroup()
call GroupEnumUnitsOfPlayer(g,KU,lh)
call DestroyBoolExpr(lh)
set udg_handle01=g
set g=null
return udg_handle01
endfunction
function lL takes player KU returns group
return ll(KU,null)
endfunction
function lm takes player KU,integer lK returns group
local group g=CreateGroup()
set bj_groupEnumTypeId=lK
call GroupEnumUnitsOfPlayer(g,KU,filterGetUnitsOfPlayerAndTypeId)
set udg_handle01=g
set g=null
return udg_handle01
endfunction
function ln takes player KU returns force
local force f=CreateForce()
call ForceAddPlayer(f,KU)
set udg_handle01=f
set f=null
return udg_handle01
endfunction
function lN takes boolexpr lh returns force
local force f=CreateForce()
call ForceEnumPlayers(f,lh)
call DestroyBoolExpr(lh)
set udg_handle01=f
set f=null
return udg_handle01
endfunction
function lo takes integer lO,group lp returns group
set bj_randomSubGroupGroup=CreateGroup()
set bj_randomSubGroupWant=lO
set bj_randomSubGroupTotal=CountUnitsInGroup(lp)
if(bj_randomSubGroupWant<=0 or bj_randomSubGroupTotal<=0)then
return bj_randomSubGroupGroup
endif
set bj_randomSubGroupChance=I2R(bj_randomSubGroupWant)/I2R(bj_randomSubGroupTotal)
call ForGroup(lp,function GetRandomSubGroupEnum)
return bj_randomSubGroupGroup
endfunction
function lP takes nothing returns boolean
local unit lq=GetFilterUnit()
local boolean b=((GetWidgetLife(lq)>0)and(GetUnitTypeId(lq)==bj_livingPlayerUnitsTypeId))
if(b)then
set bj_groupCountUnits=bj_groupCountUnits+1
endif
set lq=null
return b
endfunction
function ls takes player KU returns nothing
local group lS=CreateGroup()
call CachePlayerHeroData(KU)
call GroupEnumUnitsOfPlayer(lS,KU,null)
call ForGroup(lS,function MakeUnitsPassiveForPlayerEnum)
call DestroyGroup(lS)
set lS=null
endfunction
function lt takes leaderboard lb,force lT returns nothing
local integer Km
local player Kw
set Km=0
loop
set Kw=Player(Km)
if IsPlayerInForce(Kw,lT)then
call PlayerSetLeaderboard(Kw,lb)
endif
set Km=Km+1
exitwhen Km==12
endloop
set Kw=null
endfunction
function lu takes force lT,string lU returns leaderboard
set bj_lastCreatedLeaderboard=CreateLeaderboard()
call LeaderboardSetLabel(bj_lastCreatedLeaderboard,lU)
call lt(bj_lastCreatedLeaderboard,lT)
call LeaderboardDisplay(bj_lastCreatedLeaderboard,true)
return bj_lastCreatedLeaderboard
endfunction
function lv takes multiboard mb,integer lV,integer lw,boolean lW,boolean lx returns nothing
local integer lX=0
local integer ly=0
local integer lY=MultiboardGetRowCount(mb)
local integer lz=MultiboardGetColumnCount(mb)
local multiboarditem lZ=null
loop
set lX=lX+1
exitwhen lX>lY
if(lw==0 or lw==lX)then
set ly=0
loop
set ly=ly+1
exitwhen ly>lz
if(lV==0 or lV==ly)then
set lZ=MultiboardGetItem(mb,lX-1,ly-1)
call MultiboardSetItemStyle(lZ,lW,lx)
call MultiboardReleaseItem(lZ)
endif
endloop
endif
endloop
set lZ=null
endfunction
function l0 takes multiboard mb,integer lV,integer lw,string l1 returns nothing
local integer lX=0
local integer ly=0
local integer lY=MultiboardGetRowCount(mb)
local integer lz=MultiboardGetColumnCount(mb)
local multiboarditem lZ=null
loop
set lX=lX+1
exitwhen lX>lY
if(lw==0 or lw==lX)then
set ly=0
loop
set ly=ly+1
exitwhen ly>lz
if(lV==0 or lV==ly)then
set lZ=MultiboardGetItem(mb,lX-1,ly-1)
call MultiboardSetItemValue(lZ,l1)
call MultiboardReleaseItem(lZ)
endif
endloop
endif
endloop
set lZ=null
endfunction
function l2 takes multiboard mb,integer lV,integer lw,real l3,real l4,real l5,real l6 returns nothing
local integer lX=0
local integer ly=0
local integer lY=MultiboardGetRowCount(mb)
local integer lz=MultiboardGetColumnCount(mb)
local multiboarditem lZ=null
loop
set lX=lX+1
exitwhen lX>lY
if(lw==0 or lw==lX)then
set ly=0
loop
set ly=ly+1
exitwhen ly>lz
if(lV==0 or lV==ly)then
set lZ=MultiboardGetItem(mb,lX-1,ly-1)
call MultiboardSetItemValueColor(lZ,PercentTo255(l3),PercentTo255(l4),PercentTo255(l5),PercentTo255(100.-l6))
call MultiboardReleaseItem(lZ)
endif
endloop
endif
endloop
set lZ=null
endfunction
function l7 takes multiboard mb,integer lV,integer lw,real l8 returns nothing
local integer lX=0
local integer ly=0
local integer lY=MultiboardGetRowCount(mb)
local integer lz=MultiboardGetColumnCount(mb)
local multiboarditem lZ=null
loop
set lX=lX+1
exitwhen lX>lY
if(lw==0 or lw==lX)then
set ly=0
loop
set ly=ly+1
exitwhen ly>lz
if(lV==0 or lV==ly)then
set lZ=MultiboardGetItem(mb,lX-1,ly-1)
call MultiboardSetItemWidth(lZ,l8/100.)
call MultiboardReleaseItem(lZ)
endif
endloop
endif
endloop
set lZ=null
endfunction
function l9 takes nothing returns nothing
local unit La=GetTriggerUnit()
if IsUnitType(La,UNIT_TYPE_STRUCTURE)then
call RescueUnitBJ(La,GetOwningPlayer(GetRescuer()),bj_rescueChangeColorBldg)
else
call RescueUnitBJ(La,GetOwningPlayer(GetRescuer()),bj_rescueChangeColorUnit)
endif
set La=null
endfunction
function LA takes nothing returns nothing
local integer Km
if(bj_rescueUnitBehavior==null)then
set bj_rescueUnitBehavior=CreateTrigger()
set Km=0
loop
call TriggerRegisterPlayerUnitEvent(bj_rescueUnitBehavior,Player(Km),EVENT_PLAYER_UNIT_RESCUED,null)
set Km=Km+1
exitwhen Km==16
endloop
call TriggerAddAction(bj_rescueUnitBehavior,function l9)
endif
endfunction
function Lc takes nothing returns nothing
local integer Km
set Km=0
loop
if(GetPlayerController(Player(Km))==MAP_CONTROL_RESCUABLE)then
call LA()
return
endif
set Km=Km+1
exitwhen Km==12
endloop
endfunction
function LF takes itemtype Lg,integer LG returns nothing
local group g
set bj_stockPickedItemType=Lg
set bj_stockPickedItemLevel=LG
set g=CreateGroup()
call GroupEnumUnitsOfType(g,"marketplace",null)
call ForGroup(g,function UpdateEachStockBuildingEnum)
call DestroyGroup(g)
set g=null
endfunction
function Lh takes nothing returns nothing
local integer pickedItemId
local itemtype LH
local integer Li=0
local integer LI=0
local integer LG
set LG=1
loop
if(bj_stockAllowedPermanent[LG])then
set LI=LI+1
if(GetRandomInt(1,LI)==1)then
set LH=ITEM_TYPE_PERMANENT
set Li=LG
endif
endif
if(bj_stockAllowedCharged[LG])then
set LI=LI+1
if(GetRandomInt(1,LI)==1)then
set LH=ITEM_TYPE_CHARGED
set Li=LG
endif
endif
if(bj_stockAllowedArtifact[LG])then
set LI=LI+1
if(GetRandomInt(1,LI)==1)then
set LH=ITEM_TYPE_ARTIFACT
set Li=LG
endif
endif
set LG=LG+1
exitwhen LG>10
endloop
if(LI==0)then
set LH=null
return
endif
call LF(LH,Li)
set LH=null
endfunction
function Lj takes nothing returns nothing
call Lh()
call TimerStart(bj_stockUpdateTimer,bj_STOCK_RESTOCK_INTERVAL,true,function Lh)
endfunction
function LJ takes unit Lk,integer LK returns item
local item Ll
if(LK==-1)then
return null
endif
set Ll=CreateItem(LK,GetUnitX(Lk)+GetRandomReal(-32,32),GetUnitY(Lk)+GetRandomReal(-32,32))
call SetItemDropID(Ll,GetUnitTypeId(Lk))
call UpdateStockAvailability(Ll)
set udg_handle01=Ll
set Ll=null
return udg_handle01
endfunction
function ItemTable000000_DropItems takes nothing returns nothing
local widget LL=null
local unit Lm=null
local integer LM=0
local boolean Ln=true
set LL=bj_lastDyingWidget
if(LL==null)then
set Lm=GetTriggerUnit()
endif
if(Lm!=null)then
set Ln=not IsUnitHidden(Lm)
if(Ln and GetChangingUnit()!=null)then
set Ln=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(Ln)then
call RandomDistReset()
call RandomDistAddItem('I004',15)
call RandomDistAddItem('I002',20)
call RandomDistAddItem('I003',10)
call RandomDistAddItem('I00I',5)
call RandomDistAddItem('I00J',5)
call RandomDistAddItem(-1,45)
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000001_DropItems takes nothing returns nothing
local widget LL=null
local unit Lm=null
local integer LM=0
local boolean Ln=true
set LL=bj_lastDyingWidget
if(LL==null)then
set Lm=GetTriggerUnit()
endif
if(Lm!=null)then
set Ln=not IsUnitHidden(Lm)
if(Ln and GetChangingUnit()!=null)then
set Ln=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(Ln)then
call RandomDistReset()
call RandomDistAddItem('I004',20)
call RandomDistAddItem('I002',20)
call RandomDistAddItem('I003',15)
call RandomDistAddItem('I00I',15)
call RandomDistAddItem('I00J',15)
call RandomDistAddItem(-1,15)
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000002_DropItems takes nothing returns nothing
local widget LL=null
local unit Lm=null
local integer LM=0
local boolean Ln=true
set LL=bj_lastDyingWidget
if(LL==null)then
set Lm=GetTriggerUnit()
endif
if(Lm!=null)then
set Ln=not IsUnitHidden(Lm)
if(Ln and GetChangingUnit()!=null)then
set Ln=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(Ln)then
call RandomDistReset()
call RandomDistAddItem('I004',15)
call RandomDistAddItem('I002',10)
call RandomDistAddItem('I003',20)
call RandomDistAddItem('I00I',10)
call RandomDistAddItem('I00J',10)
call RandomDistAddItem(-1,35)
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000003_DropItems takes nothing returns nothing
local widget LL=null
local unit Lm=null
local integer LM=0
local boolean Ln=true
set LL=bj_lastDyingWidget
if(LL==null)then
set Lm=GetTriggerUnit()
endif
if(Lm!=null)then
set Ln=not IsUnitHidden(Lm)
if(Ln and GetChangingUnit()!=null)then
set Ln=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(Ln)then
call RandomDistReset()
call RandomDistAddItem('I004',30)
call RandomDistAddItem('I00I',25)
call RandomDistAddItem('I00J',20)
call RandomDistAddItem('I003',25)
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I003',60)
call RandomDistAddItem('I001',40)
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000004_DropItems takes nothing returns nothing
local widget LL=null
local unit Lm=null
local integer LM=0
local boolean Ln=true
set LL=bj_lastDyingWidget
if(LL==null)then
set Lm=GetTriggerUnit()
endif
if(Lm!=null)then
set Ln=not IsUnitHidden(Lm)
if(Ln and GetChangingUnit()!=null)then
set Ln=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(Ln)then
call RandomDistReset()
call RandomDistAddItem('I004',45)
call RandomDistAddItem('I00I',35)
call RandomDistAddItem('I00J',20)
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I004',45)
call RandomDistAddItem('I00I',35)
call RandomDistAddItem('I00J',20)
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I004',45)
call RandomDistAddItem('I00I',35)
call RandomDistAddItem('I00J',20)
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I004','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I00I','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I00J','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I001','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I001','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I001','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I003','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I003','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I003','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
call RandomDistReset()
call RandomDistAddItem('I003','d')
set LM=RandomDistChoose()
if(Lm!=null)then
call LJ(Lm,LM)
else
call WidgetDropItem(LL,LM)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function LN takes string B returns integer
local integer L
if B==""then
return 0
endif
set L=1
loop
exitwhen SubStringBJ(B,L,L)==""
set L=L+1
endloop
return L-1
endfunction
function Lo takes nothing returns nothing
set udg_integers21[udg_integer13]=GetPlayerId(GetEnumPlayer())
set udg_integer13=udg_integer13+1
endfunction
function LO takes nothing returns integer
set udg_integer18=udg_integer18+1
return udg_integer18
endfunction
function Lp takes unit LP returns nothing
set udg_units16[LO()]=LP
endfunction
function Lq takes unit U returns integer
local integer LQ=1
local integer Id=udg_integer18+1
local integer Lr=-1
loop
exitwhen LQ>udg_integer18
if udg_units16[LQ]==null then
set Lr=LQ
endif
if udg_units16[LQ]==U then
set Id=LQ
set LQ=udg_integer18+1
else
set LQ=LQ+1
endif
endloop
if Id==udg_integer18+1 then
if Lr!=-1 then
set udg_units16[Lr]=U
return Lr
endif
call Lp(U)
endif
return Id
endfunction
function LT takes player Lu,string LU returns nothing
local sound Lv=CreateSound("Sound\\Interface\\Error.wav",false,false,false,10,10,"HeroAcksEAX")
if(GetLocalPlayer()==Lu)then
call ClearTextMessages()
call DisplayTimedTextToPlayer(Lu,.52,-1.,2.,"|cffffcc00"+LU+"|r")
call SetSoundParamsFromLabel(Lv,"InterfaceError")
call SetSoundDuration(Lv,614)
call SetSoundChannel(Lv,6)
call PlaySoundBJ(Lv)
endif
endfunction
function Lw takes nothing returns nothing
local integer LQ=GetPlayerId(GetTriggerPlayer())*12
call DialogDisplayBJ(false,udg_dialogs01[GetPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
loop
set udg_integers04[LQ]=0
exitwhen LQ==(GetPlayerId(GetTriggerPlayer())*12)+11
set LQ=LQ+1
endloop
set LQ=0
loop
exitwhen GetClickedButton()==udg_buttons01[LQ]
set LQ=LQ+1
endloop
set udg_integers05[GetPlayerId(GetTriggerPlayer())]=LQ+1-GetPlayerId(GetTriggerPlayer())*12
call ExecuteFunc(udg_strings02[LQ])
endfunction
function LW takes nothing returns nothing
local integer LQ=0
loop
set udg_dialogs01[LQ]=DialogCreate()
exitwhen LQ==11
set LQ=LQ+1
endloop
set LQ=0
loop
set udg_strings02[LQ]=""
set udg_triggers01[LQ]=CreateTrigger()
call TriggerRegisterDialogEvent(udg_triggers01[LQ],udg_dialogs01[LQ])
call TriggerAddAction(udg_triggers01[LQ],function Lw)
exitwhen LQ==11
set LQ=LQ+1
endloop
set udg_strings01[32]="Leertaste"
set udg_strings01[48]="0"
set udg_strings01[49]="1"
set udg_strings01[50]="2"
set udg_strings01[51]="3"
set udg_strings01[52]="4"
set udg_strings01[53]="5"
set udg_strings01[54]="6"
set udg_strings01[55]="7"
set udg_strings01[56]="8"
set udg_strings01[57]="9"
set udg_strings01[65]="A"
set udg_strings01[66]="B"
set udg_strings01[67]="C"
set udg_strings01[68]="D"
set udg_strings01[69]="E"
set udg_strings01[70]="F"
set udg_strings01[71]="G"
set udg_strings01[72]="H"
set udg_strings01[73]="I"
set udg_strings01[74]="J"
set udg_strings01[75]="K"
set udg_strings01[76]="L"
set udg_strings01[77]="M"
set udg_strings01[78]="N"
set udg_strings01[79]="O"
set udg_strings01[80]="P"
set udg_strings01[81]="Q"
set udg_strings01[82]="R"
set udg_strings01[83]="S"
set udg_strings01[84]="T"
set udg_strings01[85]="U"
set udg_strings01[86]="V"
set udg_strings01[87]="W"
set udg_strings01[88]="X"
set udg_strings01[89]="Y"
set udg_strings01[90]="Z"
set udg_strings01[96]="Numpad0"
set udg_strings01[97]="Numpad1"
set udg_strings01[98]="Numpad2"
set udg_strings01[99]="Numpad3"
set udg_strings01['d']="Numpad4"
set udg_strings01['e']="Numpad5"
set udg_strings01['f']="Numpad6"
set udg_strings01['g']="Numpad7"
set udg_strings01['h']="Numpad8"
set udg_strings01['i']="Numpad9"
set udg_strings01[512]="Escape"
endfunction
function Lz takes string S returns string
if S=="a"then
return"A"
elseif S=="b"then
return"B"
elseif S=="c"then
return"C"
elseif S=="d"then
return"D"
elseif S=="e"then
return"E"
elseif S=="f"then
return"F"
elseif S=="g"then
return"G"
elseif S=="h"then
return"H"
elseif S=="i"then
return"I"
elseif S=="j"then
return"J"
elseif S=="k"then
return"K"
elseif S=="l"then
return"L"
elseif S=="m"then
return"M"
elseif S=="n"then
return"N"
elseif S=="o"then
return"O"
elseif S=="p"then
return"P"
elseif S=="q"then
return"Q"
elseif S=="r"then
return"R"
endif
if S=="s"then
return"S"
elseif S=="t"then
return"T"
elseif S=="u"then
return"U"
elseif S=="v"then
return"V"
elseif S=="w"then
return"W"
elseif S=="x"then
return"X"
elseif S=="y"then
return"Y"
elseif S=="z"then
return"Z"
endif
return S
endfunction
function L0 takes string S returns string
local integer L=LN(S)
local integer LQ=1
local string ma=""
loop
set ma=ma+Lz(SubStringBJ(S,LQ,LQ))
exitwhen LQ==L
set LQ=LQ+1
endloop
return ma
endfunction
function mI takes boolean mj,string a,string b returns string
if(mj)then
return a
else
return b
endif
return b
endfunction
function mJ takes integer mk returns string
local string mK="..................................!.#$&'()*+,-./0123456789:;<=>.@ABCDEFGHIJKLMNOPQRSTUVWXYZ[.]^_`abcdefghijklmnopqrstuvwxyz{|}~................................................................................................................................."
local string K2=""
local integer ml=mk
local integer mL
local integer mm
set mm=0
loop
set mL=ModuloInteger(ml,256)
set ml=ml/256
set K2=SubString(mK,mL,mL+1)+K2
set mm=mm+1
exitwhen mm==4
endloop
return K2
endfunction
function mR takes string S returns string
local integer L=LN(S)
local integer mp=R2I(L/5)
local integer mo
local integer mP
local string array mq
local string ma=""
local integer LQ=0
local integer mQ=0
local integer mr=0
if mp>20 then
set mp=20
elseif mp==0 then
set mp=1
endif
set mo=ModuloInteger(L,mp)
set mP=(L-mo)/mp
loop
exitwhen LQ>=L
if mr<mo then
set LQ=LQ+1
set mq[udg_integers26[mr]+(mP+1)*20]=SubStringBJ(S,LQ,LQ)
endif
set mQ=1
loop
exitwhen mQ>mP
set LQ=LQ+1
set mq[udg_integers26[mr]+(mP-mQ+1)*20]=SubStringBJ(S,LQ,LQ)
set mQ=mQ+1
endloop
set mr=mr+1
endloop
set LQ=0
set mr=1
set mQ=1
loop
exitwhen mQ>L
if LQ>=mp then
set mr=mr+1
set LQ=LQ-mp
endif
set ma=ma+mq[udg_integers26[LQ]+mr*20]
set LQ=LQ+1
set mQ=mQ+1
endloop
return ma
endfunction
function GetTheTriggerOrderString takes nothing returns string
return OrderId2StringBJ(GetIssuedOrderId())
endfunction
function Mc takes trigger MC returns nothing
local integer LQ=0
loop
call TriggerRegisterPlayerUnitEventSimple(MC,Player(LQ),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterPlayerUnitEventSimple(MC,Player(LQ),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterPlayerUnitEventSimple(MC,Player(LQ),EVENT_PLAYER_UNIT_ISSUED_ORDER)
exitwhen LQ==11
set LQ=LQ+1
endloop
endfunction
function Md takes nothing returns nothing
call Lq(GetEnumUnit())
call TriggerRegisterUnitEvent(udg_trigger18,GetEnumUnit(),EVENT_UNIT_DAMAGED)
endfunction
function MD takes nothing returns nothing
set udg_real08='d'
set udg_real08=0
endfunction
function ME takes nothing returns integer
local integer LQ=0
local integer Mf=0
loop
if GetPlayerSlotState(Player(LQ))==PLAYER_SLOT_STATE_PLAYING then
if GetPlayerController(Player(LQ))==MAP_CONTROL_USER then
if IsPlayerObserver(Player(LQ))==false then
set Mf=Mf+1
endif
endif
endif
exitwhen LQ==11
set LQ=LQ+1
endloop
return Mf
endfunction
function Ix takes integer x,integer y returns integer
return(x*12+y)
endfunction
function MK takes unit Ml,integer t returns nothing
local integer i=0
loop
call UnitRemoveAbility(Ml,udg_integers13[Ix(t,i)])
exitwhen i==11
set i=i+1
endloop
endfunction
function ML takes unit Ml,integer t returns integer
local integer array Mm
local integer i=1
local integer MM=0
set Mm[0]=1
loop
set Mm[i]=Mm[i-1]*2
exitwhen i==11
set i=i+1
endloop
set i=i+1
loop
if(UnitRemoveAbilityBJ(udg_integers13[Ix(t,i)],Ml))then
call UnitAddAbility(Ml,udg_integers13[Ix(t,i)])
set MM=MM+Mm[i]
endif
exitwhen i==0
set i=i-1
endloop
return(MM)
endfunction
function Mn takes integer MN,unit Ml,integer t returns boolean
local integer MM=MN
local integer array Mm
local integer i=1
set Mm[0]=1
loop
set Mm[i]=Mm[i-1]*2
exitwhen i==11
set i=i+1
endloop
call MK(Ml,t)
loop
if(MM>=Mm[i])then
call UnitAddAbility(Ml,udg_integers13[Ix(t,i)])
set MM=MM-Mm[i]
endif
exitwhen i==0
set i=i-1
endloop
return(MN<=4095 and t<=3 and t>=0 and MN>=0 and Ml!=null)
endfunction
function Mo takes integer MN,unit Ml,integer t returns boolean
return Mn((ML(Ml,t)+MN),Ml,t)
endfunction
function Mr takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function MR takes nothing returns boolean
return GetItemTypeId(GetFilterItem())==udg_integer20
endfunction
function Ms takes nothing returns boolean
return GetItemType(GetFilterItem())==udg_itemtype01
endfunction
function MS takes nothing returns nothing
set udg_boolean03=true
endfunction
function Mt takes nothing returns boolean
return GetItemType(GetFilterItem())==udg_itemtype01
endfunction
function MT takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Mu takes nothing returns nothing
call SetUnitOwner(GetTriggerUnit(),Player(15),false)
endfunction
function MU takes nothing returns boolean
return IsPlayerObserver(GetTriggerPlayer())==false
endfunction
function Mv takes nothing returns nothing
local integer LQ=0
loop
call DisplayTimedTextToPlayer(Player(LQ),0,0,5,"Player "+I2S(GetPlayerId(GetTriggerPlayer()))+" has left the game.")
exitwhen LQ==1
set LQ=LQ+1
endloop
call CachePlayerHeroData(GetTriggerPlayer())
call ls(GetTriggerPlayer())
endfunction
function MV takes nothing returns nothing
local real Mw=5
local destructable MW=GetDyingDestructable()
call Kh(Mw)
call DestructableRestoreLife(MW,GetDestructableMaxLife(MW),true)
endfunction
function Mx takes nothing returns nothing
if GetDestructableTypeId(GetEnumDestructable())=='LTlt'or GetDestructableTypeId(GetEnumDestructable())=='NTtw'or GetDestructableTypeId(GetEnumDestructable())=='WTtw'or GetDestructableTypeId(GetEnumDestructable())=='WTst'or GetDestructableTypeId(GetEnumDestructable())=='YTct'then
call TriggerRegisterDeathEvent(udg_trigger16,GetEnumDestructable())
elseif GetDestructableTypeId(GetEnumDestructable())=='YTwt'or GetDestructableTypeId(GetEnumDestructable())=='YTst'or GetDestructableTypeId(GetEnumDestructable())=='YTft'or GetDestructableTypeId(GetEnumDestructable())=='VTlt'or GetDestructableTypeId(GetEnumDestructable())=='ATtr'then
call TriggerRegisterDeathEvent(udg_trigger16,GetEnumDestructable())
elseif GetDestructableTypeId(GetEnumDestructable())=='BTtw'or GetDestructableTypeId(GetEnumDestructable())=='CTtr'or GetDestructableTypeId(GetEnumDestructable())=='FTtw'or GetDestructableTypeId(GetEnumDestructable())=='ZTtw'or GetDestructableTypeId(GetEnumDestructable())=='ITtw'then
call TriggerRegisterDeathEvent(udg_trigger16,GetEnumDestructable())
elseif GetDestructableTypeId(GetEnumDestructable())=='ATtc'or GetDestructableTypeId(GetEnumDestructable())=='OTtw'or GetDestructableTypeId(GetEnumDestructable())=='KTtw'or GetDestructableTypeId(GetEnumDestructable())=='JTct'or GetDestructableTypeId(GetEnumDestructable())=='JTtw'then
call TriggerRegisterDeathEvent(udg_trigger16,GetEnumDestructable())
elseif GetDestructableTypeId(GetEnumDestructable())=='BTtc'or GetDestructableTypeId(GetEnumDestructable())=='CTtc'or GetDestructableTypeId(GetEnumDestructable())=='NTtc'or GetDestructableTypeId(GetEnumDestructable())=='ZTtc'or GetDestructableTypeId(GetEnumDestructable())=='ITtc'then
call TriggerRegisterDeathEvent(udg_trigger16,GetEnumDestructable())
endif
endfunction
function MX takes player P returns boolean
local boolean My=false
local integer I=0
loop
if udg_booleans05[I]then
if P==Player(I)or IsPlayerAlly(P,Player(I))then
set My=true
endif
endif
exitwhen I==11
set I=I+1
endloop
return My
endfunction
function MY takes player P returns integer
local integer LQ=-1
local integer I=0
loop
if IsPlayerAlly(P,Player(I))or(P==Player(I))then
if udg_booleans05[I]then
set LQ=I
endif
endif
exitwhen I==11
set I=I+1
endloop
return LQ
endfunction
function Mz takes nothing returns integer
local integer LQ=0
local integer MZ=0
loop
if udg_booleans05[LQ]then
set MZ=MZ+1
endif
exitwhen LQ==11
set LQ=LQ+1
endloop
return MZ
endfunction
function M0 takes nothing returns boolean
local integer Id=GetPlayerId(GetOwningPlayer(GetTriggerUnit()))
if GetPlayerController(GetOwningPlayer(GetTriggerUnit()))!=MAP_CONTROL_USER then
return false
endif
if udg_booleans05[Id]then
set udg_integer12=Id
return true
endif
if MY(GetOwningPlayer(GetTriggerUnit()))==-1 then
if Mz()>0 then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,4.,"Another unit has already closed your portal.")
endif
return false
endif
set udg_integer12=MY(GetOwningPlayer(GetTriggerUnit()))
return true
endfunction
function na takes nothing returns nothing
local integer Id=udg_integer12
set udg_real07=1
set udg_real07=0
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rects04[Id]),0,-200.))
call TriggerSleepAction(.01)
call IssueImmediateOrderById(GetTriggerUnit(),851972)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
call TriggerSleepAction(.01)
call DestroyEffect(udg_effects02[Id])
set udg_effects02[Id]=null
if Mz()<=1 then
call DestroyEffect(udg_effect01)
set udg_effect01=null
endif
call SetSoundPositionLocBJ(udg_sound26,GetRectCenter(udg_rects04[Id]),0)
call PlaySoundBJ(udg_sound26)
set udg_booleans05[Id]=false
endfunction
function nA takes nothing returns boolean
local integer Id=GetPlayerId(GetOwningPlayer(GetTriggerUnit()))
local integer LQ=0
local integer nb=-1
if GetPlayerController(GetOwningPlayer(GetTriggerUnit()))!=MAP_CONTROL_USER then
return false
endif
if MX(GetOwningPlayer(GetTriggerUnit()))==false then
return false
endif
loop
if DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetRectCenter(udg_rects04[LQ]))<200.then
set nb=LQ
endif
exitwhen LQ==11
set LQ=LQ+1
endloop
if nb==-1 then
return false
endif
if udg_booleans05[nb]==false then
return false
endif
if IsPlayerAlly(Player(nb),GetOwningPlayer(GetTriggerUnit()))==false then
return false
endif
return true
endfunction
function nB takes nothing returns nothing
set udg_real06=1
set udg_real06=0
call SetUnitPositionLoc(GetTriggerUnit(),OffsetLocation(GetRectCenter(udg_rect03),0,-200.))
call TriggerSleepAction(.01)
call IssueImmediateOrderById(GetTriggerUnit(),851972)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
endfunction
function nc takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='Ix00')
endfunction
function nC takes nothing returns nothing
local integer Id=GetPlayerId(GetOwningPlayer(GetTriggerUnit()))
local integer LQ=0
if RectContainsUnit(udg_rect02,GetTriggerUnit())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,3.,"You are already in the town.")
call TriggerSleepAction(.01)
call UnitAddItemByIdSwapped('Ix00',GetTriggerUnit())
return
endif
if udg_booleans05[Id]then
call DestroyEffect(udg_effects02[Id])
set udg_effects02[Id]=null
if Mz()<1 then
call DestroyEffect(udg_effect01)
set udg_effect01=null
endif
call SetSoundPositionLocBJ(udg_sound26,GetRectCenter(udg_rect03),0)
call PlaySoundBJ(udg_sound26)
call TriggerSleepAction(.01)
endif
set udg_rects04[Id]=RectFromCenterSizeBJ(OffsetLocation(GetUnitLoc(GetManipulatingUnit()),0,200.),150.,150.)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rects04[Id]),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdx")
set udg_effects02[Id]=bj_lastCreatedEffect
if Mz()==0 then
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect03),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdx")
set udg_effect01=bj_lastCreatedEffect
endif
call SetSoundPositionLocBJ(udg_sound27,GetRectCenter(udg_rects04[Id]),0)
call PlaySoundBJ(udg_sound27)
call ResetTrigger(udg_trigger03)
loop
call KI(udg_trigger03,udg_rects04[LQ])
exitwhen LQ==11
set LQ=LQ+1
endloop
call TriggerAddCondition(udg_trigger03,Condition(function nA))
call TriggerAddAction(udg_trigger03,function nB)
set udg_booleans05[Id]=true
endfunction
function GetTPCenter takes nothing returns location
return GetRectCenter(udg_rect03)
endfunction
function ne takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function nE takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group07))
endfunction
function nf takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==udg_integer11)
endfunction
function RestrictTPToHeros takes nothing returns nothing
if udg_triggerconditions01[0]!=null then
call TriggerRemoveCondition(udg_trigger03,udg_triggerconditions01[0])
endif
if udg_triggerconditions01[1]!=null then
call TriggerRemoveCondition(udg_trigger04,udg_triggerconditions01[1])
endif
set udg_triggerconditions01[0]=TriggerAddCondition(udg_trigger03,Condition(function ne))
set udg_triggerconditions01[1]=TriggerAddCondition(udg_trigger04,Condition(function ne))
endfunction
function TPRemoveRestrictions takes nothing returns nothing
if udg_triggerconditions01[0]!=null then
call TriggerRemoveCondition(udg_trigger03,udg_triggerconditions01[0])
endif
if udg_triggerconditions01[1]!=null then
call TriggerRemoveCondition(udg_trigger04,udg_triggerconditions01[1])
endif
endfunction
function ng takes player KU,sound nG returns nothing
if(KU==GetLocalPlayer())then
call PlaySoundBJ(nG)
endif
endfunction
function GetIssuedOrderItem takes nothing returns item
if not(GetIssuedOrderId()>=852008)and(GetIssuedOrderId()<=852013)then
return null
endif
return(UnitItemInSlot(GetTriggerUnit(),(GetIssuedOrderId()-852008)))
endfunction
function GetIssuedOrderItemSlot takes nothing returns integer
if not(GetIssuedOrderId()>=852008)and(GetIssuedOrderId()<=852013)then
return 0
endif
return(GetIssuedOrderId()-852007)
endfunction
function nh takes nothing returns nothing
local integer nH=255
local integer l3=S2I(SubString(bj_cineFadeContinueTex,1,4))
local integer l4=S2I(SubString(bj_cineFadeContinueTex,4,7))
local integer l5=S2I(SubString(bj_cineFadeContinueTex,7,10))
local texttag t=bj_lastCreatedTextTag
call DestroyTrigger(GetTriggeringTrigger())
call TriggerSleepAction(1.)
loop
set nH=nH-32
exitwhen nH<=0
call SetTextTagColor(t,l3,l4,l5,nH)
call TriggerSleepAction(.01)
endloop
call DestroyTextTag(t)
set t=null
endfunction
function ni takes nothing returns nothing
local texttag t=bj_lastCreatedTextTag
local integer nH=55
call DestroyTrigger(GetTriggeringTrigger())
call TriggerSleepAction(1.)
loop
set nH=nH-64
exitwhen nH<=0
call SetTextTagColor(t,255,220,0,nH)
call TriggerSleepAction(.01)
endloop
call DestroyTextTag(t)
set t=null
endfunction
function nI takes nothing returns nothing
local texttag t=bj_lastCreatedTextTag
local integer nH=255
call DestroyTrigger(GetTriggeringTrigger())
call TriggerSleepAction(1.)
loop
set nH=nH-32
exitwhen nH<=0
call SetTextTagColor(t,255,0,0,nH)
call TriggerSleepAction(.01)
endloop
call DestroyTextTag(t)
set t=null
endfunction
function nk takes nothing returns boolean
if GetTriggerEventId()!=EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER then
return true
endif
if OrderId2StringBJ(GetIssuedOrderId())=="attack"or OrderId2StringBJ(GetIssuedOrderId())=="smart"then
return false
endif
if GetOrderTargetUnit()!=null then
return true
endif
return false
endfunction
function nK takes nothing returns boolean
if OrderId2StringBJ(GetIssuedOrderId())=="attack"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="smart"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="load"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="repair"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="renew"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="restoration"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="load"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="board"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="loadarcher"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="loadcorpse"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="revive"then
return false
endif
return true
endfunction
function GetLastCreatedMultiboardBJ takes nothing returns multiboard
return null
endfunction
function GetLastCreatedMultiboardItemBJ takes nothing returns multiboarditem
return null
endfunction
function nL takes integer I returns nothing
set udg_booleans15[I]=false
call DestroyEffect(udg_effects03[I])
set udg_effects03[I]=null
call DestroyTrigger(udg_triggers04[I])
set udg_triggers04[I]=null
set udg_booleans16[I]=true
endfunction
function GetIndexOfLastMovingSFX takes nothing returns integer
return udg_integer14
endfunction
function nm takes trigger T returns integer
local integer LQ=1
loop
exitwhen udg_triggers04[LQ]==T
if LQ==udg_integer15 then
return-1
endif
set LQ=LQ+1
endloop
return LQ
endfunction
function nM takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local real nn=0
local real nN=0
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_SPELLS,.0)
if udg_integers23[L]==0 then
if udg_integers22[L]/2>udg_integers24[L]then
set nN=udg_reals13[L]*((udg_integers22[L]/2)-udg_integers24[L])
set nn=udg_reals15[L]
else
set nN=udg_reals13[L]*(udg_integers24[L]-(udg_integers22[L]/2))
if udg_reals15[L]>=180 then
set nn=udg_reals15[L]-180
else
set nn=udg_reals15[L]+180
endif
endif
elseif udg_integers23[L]==1 or udg_integers23[L]==3 or udg_integers23[L]==5 then
set nN=udg_reals14[L]
set nn=udg_reals15[L]+udg_reals13[L]*udg_integers24[L]
if nn>360 then
set nn=nn-360
endif
elseif udg_integers23[L]==2 or udg_integers23[L]==4 or udg_integers23[L]==6 then
set nN=udg_reals14[L]
set nn=udg_reals15[L]-udg_reals13[L]*udg_integers24[L]
if nn<0 then
set nn=nn+360
endif
endif
set udg_effects03[L]=AddSpecialEffectLocBJ(Ko(udg_locations01[L],nN,nn),udg_strings07[L])
set udg_integers24[L]=udg_integers24[L]+1
call Kh(udg_reals12[L])
if udg_integers24[L]==udg_integers22[L]then
if udg_booleans15[L]then
set udg_integers24[L]=0
else
call DestroyEffect(udg_effects03[L])
set udg_effects03[L]=null
return
endif
endif
call DestroyEffect(udg_effects03[L])
set udg_effects03[L]=null
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_SPELLS,100.)
call TriggerExecute(GetTriggeringTrigger())
endfunction
function no takes rect nO returns region
local region R=CreateRegion()
call RegionAddRect(R,nO)
return R
endfunction
function np takes location L returns boolean
local integer LQ=1
loop
exitwhen LQ>udg_integer10
if udg_rects03[LQ]!=null then
if RectContainsLoc(udg_rects03[LQ],L)then
return true
endif
endif
set LQ=LQ+1
endloop
return false
endfunction
function nP takes nothing returns boolean
if OrderId2StringBJ(GetIssuedOrderId())=="smart"then
return false
elseif not IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="move"then
return false
elseif OrderId2StringBJ(GetIssuedOrderId())=="attackground"then
return false
elseif not np(GetOrderPointLoc())then
return false
endif
return true
endfunction
function nQ takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(GetTriggerUnit(),true)
call IssueImmediateOrderById(GetTriggerUnit(),851972)
call PauseUnit(GetTriggerUnit(),false)
call TriggerSleepAction(.01)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function ns takes nothing returns integer
local integer LQ=0
loop
if udg_booleans16[LQ]then
return LQ
endif
exitwhen LQ==udg_integer15
set LQ=LQ+1
endloop
set udg_integer15=udg_integer15+1
return udg_integer15
endfunction
function nS takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local real nn=0
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_SPELLS,.0)
if udg_integers23[L]==5 then
set nn=udg_reals15[L]+udg_integers24[L]*udg_reals13[L]
elseif udg_integers23[L]==6 then
set nn=udg_reals15[L]-udg_integers24[L]*udg_reals13[L]
else
return
endif
if nn>360 then
set nn=nn-360
elseif nn<0 then
set nn=nn+360
endif
call DestroyEffect(udg_effects03[L])
set udg_effects03[L]=AddSpecialEffectLocBJ(Ko(GetUnitLoc(udg_units14[L]),udg_reals14[L],nn),udg_strings07[L])
set udg_integers24[L]=udg_integers24[L]+1
call Kh(udg_reals12[L])
if udg_integers24[L]==udg_integers22[L]then
if udg_booleans15[L]then
set udg_integers24[L]=0
else
call DestroyEffect(udg_effects03[L])
set udg_effects03[L]=null
return
endif
endif
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_SPELLS,100.)
call TriggerExecute(GetTriggeringTrigger())
endfunction
function nt takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local location nT=udg_locations01[L]
local string nu=udg_strings07[L]
local real nU=udg_reals12[L]
local integer Nr=udg_integers24[L]
local integer LQ=0
local effect array FX
loop
exitwhen LQ==Nr
set FX[LQ]=AddSpecialEffectLocBJ(Ko(nT,GetRandomReal(0,nU),GetRandomReal(0,360)),nu)
call Kh(GetRandomReal(.005,.05))
set LQ=LQ+1
endloop
loop
set LQ=LQ-1
call DestroyEffect(FX[LQ])
set FX[LQ]=null
exitwhen LQ==0
endloop
call RemoveLocation(nT)
set nT=null
call nL(L)
endfunction
function nv takes string nu,location nT,real nU,integer Nr returns nothing
local integer L=ns()
set udg_booleans16[L]=false
set udg_triggers04[L]=CreateTrigger()
set udg_locations01[L]=nT
set udg_strings07[L]=nu
set udg_reals12[L]=nU
set udg_integers24[L]=Nr
call TriggerAddAction(udg_triggers04[L],function nt)
call TriggerExecute(udg_triggers04[L])
endfunction
function nV takes nothing returns nothing
call KillDestructable(GetEnumDestructable())
endfunction
function nw takes location nW,location nx returns boolean
return GetTerrainCliffLevel(GetLocationX(nW),GetLocationY(nW))<GetTerrainCliffLevel(GetLocationX(nx),GetLocationY(nx))
endfunction
function nX takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local location nW=GetUnitLoc(udg_units14[L])
local location nx=Ko(nW,udg_reals12[L],udg_reals15[L])
if nw(nW,nx)or udg_reals12[L]<=0 then
set udg_reals12[L]=0
call PauseUnit(udg_units14[L],false)
call SetUnitPathing(udg_units14[L],true)
call RemoveLocation(nW)
call RemoveLocation(nx)
set nW=null
set nx=null
call nL(L)
return
else
if udg_booleans15[L]then
call K3(128,nx,function nV)
endif
call SetUnitPositionLoc(udg_units14[L],nx)
set udg_reals12[L]=udg_reals12[L]-.5
endif
call Kh(.05)
call TriggerExecute(GetTriggeringTrigger())
endfunction
function ny takes nothing returns boolean
if IsUnitType(GetTriggerUnit(),UNIT_TYPE_FLYING)then
return false
elseif IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)then
return false
endif
return true
endfunction
function nY takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local location nW=GetUnitLoc(udg_units14[L])
local location nx=Ko(nW,50,udg_reals15[L])
call SetUnitPositionLoc(udg_units14[L],nx)
set udg_reals13[L]=udg_reals13[L]-50
if udg_reals13[L]<=0 then
call PauseUnit(udg_units14[L],false)
call SetUnitInvulnerable(udg_units14[L],false)
call SetUnitPathing(udg_units14[L],true)
call SetUnitVertexColorBJ(udg_units14[L],'d','d','d',0)
set udg_booleans17[Lq(udg_units14[L])]=false
call RemoveLocation(nW)
call RemoveLocation(nx)
set nW=null
set nx=null
call nL(L)
return
endif
call TriggerSleepAction(.0)
call TriggerExecute(GetTriggeringTrigger())
endfunction
function nz takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local integer Id=Lq(GetTriggerUnit())
local integer I
if udg_booleans17[Id]then
return
endif
set I=ns()
set udg_booleans16[I]=false
set udg_triggers04[I]=CreateTrigger()
if DistanceBetweenPoints(GetRectCenter(udg_rects06[L]),GetUnitLoc(GetTriggerUnit()))<DistanceBetweenPoints(GetRectCenter(udg_rects05[L]),GetUnitLoc(GetTriggerUnit()))then
set udg_rects05[I]=udg_rects06[L]
set udg_rects06[I]=udg_rects05[L]
else
set udg_rects05[I]=udg_rects05[L]
set udg_rects06[I]=udg_rects06[L]
endif
set udg_units14[I]=GetTriggerUnit()
set udg_reals15[I]=AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetRectCenter(udg_rects06[I]))
set udg_reals13[I]=DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetRectCenter(udg_rects06[I]))
set udg_booleans17[Id]=true
call SetUnitVertexColorBJ(GetTriggerUnit(),'d','d','d',100.)
call SetUnitPathing(GetTriggerUnit(),false)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call PauseUnit(GetTriggerUnit(),true)
call TriggerAddAction(udg_triggers04[I],function nY)
call TriggerExecute(udg_triggers04[I])
endfunction
function nZ takes unit Kl returns group
local group n0=CreateGroup()
call GroupAddUnit(n0,Kl)
return n0
endfunction
function n1 takes integer n2,rect n3,integer n4 returns location
local location n5=GetRandomLocInRect(n3)
local integer n6='d'
if GetTerrainCliffLevelBJ(n5)==n2 then
return n5
endif
call RemoveLocation(n5)
set n5=null
if n4>n6 then
return null
endif
return n1(n2,n3,n4+1)
endfunction
function n7 takes nothing returns nothing
local effect n8=bj_lastCreatedEffect
local real KH=bj_enumDestructableRadius
call Kh(KH)
call DestroyEffect(n8)
set n8=null
endfunction
function n9 takes nothing returns nothing
local effect n8=bj_lastCreatedEffect
local real KH=bj_enumDestructableRadius
call Kh(KH)
call DestroyEffect(n8)
set n8=null
endfunction
function Nd takes nothing returns boolean
return IsUnitAliveBJ(GetFilterUnit())
endfunction
function ND takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local unit U=udg_units14[L]
local string nu=udg_strings07[L]
local real nU=udg_reals12[L]
local integer Nr=udg_integers24[L]
local integer LQ=0
local effect array FX
loop
exitwhen LQ==Nr
set FX[LQ]=AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),GetRandomReal(0,nU),GetRandomReal(0,360)),nu)
call Kh(GetRandomReal(.005,.05))
set LQ=LQ+1
endloop
loop
set LQ=LQ-1
call DestroyEffect(FX[LQ])
set FX[LQ]=null
exitwhen LQ==0
endloop
call nL(L)
endfunction
function Ne takes nothing returns nothing
call nv("Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl",udg_location01,1000,udg_integer16)
endfunction
function NE takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local integer Nf=udg_integers24[L]
local location nT=udg_locations01[L]
local sound NF=CreateSound("Doodads\\Cinematic\\Lightningbolt\\LightningBolt1.wav",false,false,true,10,10,"SpellsEAX")
local trigger Ng=CreateTrigger()
local integer LQ=1
local integer NG=Nf-R2I(Nf/2.5)
local weathereffect Nh
call CinematicFadeBJ(0,1,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.,100.,100.,30.)
call DisplayCineFilter(false)
call TriggerAddAction(Ng,function Ne)
call SetSoundDuration(NF,3001)
set udg_integer16=Nf
set udg_location01=nT
call TriggerExecute(Ng)
call AddWeatherEffectSaveLast(RectFromCenterSizeBJ(nT,2000,2000),'RAhr')
set Nh=bj_lastCreatedWeatherEffect
call EnableWeatherEffect(Nh,true)
loop
exitwhen LQ==NG
call Kh(GetRandomReal(.015,.3))
if ModuloInteger(LQ,3)==0 then
call DisplayCineFilter(true)
call Kh(.05)
call DisplayCineFilter(false)
elseif ModuloInteger(LQ,2)==1 then
call PlaySoundBJ(NF)
endif
set LQ=LQ+1
endloop
call Kh(1.2)
call EnableWeatherEffect(Nh,false)
call RemoveWeatherEffect(Nh)
set Nh=null
call DestroyTrigger(Ng)
set Ng=null
call RemoveLocation(nT)
set nT=null
call nL(L)
endfunction
function NH takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local unit U=udg_units14[L]
local string nu=udg_strings07[L]
local real Ni=udg_reals12[L]
local integer LQ=1
local effect array FX
call AddSpecialEffectTargetUnitBJ("head",U,nu)
set FX[1]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("chest",U,nu)
set FX[2]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("hand left",U,nu)
set FX[3]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("hand right",U,nu)
set FX[4]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("foot left",U,nu)
set FX[5]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("foot right",U,nu)
set FX[6]=bj_lastCreatedEffect
if IsUnitType(U,UNIT_TYPE_HERO)then
call AddSpecialEffectTargetUnitBJ("head",U,nu)
set FX[0]=bj_lastCreatedEffect
set LQ=0
endif
call Kh(Ni)
loop
call DestroyEffect(FX[LQ])
set FX[LQ]=null
exitwhen LQ==6
set LQ=LQ+1
endloop
call nL(L)
endfunction
function Nj takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local string NJ=udg_strings07[L]
local integer R=S2I(SubStringBJ(NJ,1,3))
local integer G=S2I(SubStringBJ(NJ,4,6))
local integer B=S2I(SubStringBJ(NJ,7,9))
local integer T=S2I(SubStringBJ(NJ,10,12))
local integer TR=S2I(SubStringBJ(NJ,13,15))
local integer TG=S2I(SubStringBJ(NJ,16,18))
local integer TB=S2I(SubStringBJ(NJ,19,21))
local integer TT=S2I(SubStringBJ(NJ,22,24))
local unit U=udg_units14[L]
local real Nk=udg_reals12[L]
local real array MP
local real array NK
local real array Nl
local real NL=0
local integer LQ=0
set MP[0]=I2R(TR-R)
set MP[1]=I2R(TG-G)
set MP[2]=I2R(TB-B)
set MP[3]=I2R(TT-T)
loop
if MP[LQ]<0 then
set NK[LQ]=MP[LQ]-2*MP[LQ]
endif
exitwhen LQ==3
set LQ=LQ+1
endloop
set LQ=0
loop
if NK[LQ]>NL then
set NL=NK[LQ]
endif
exitwhen LQ==3
set LQ=LQ+1
endloop
set Nl[0]=MP[0]/NL
set Nl[1]=MP[1]/NL
set Nl[2]=MP[2]/NL
set Nl[3]=MP[3]/NL
set LQ=0
loop
call SetUnitVertexColorBJ(U,R+Nl[0]*LQ,G+Nl[1]*LQ,B+Nl[2]*LQ,T+Nl[3]*LQ)
exitwhen LQ>=NL
call Kh(Nk)
set LQ=LQ+1
endloop
call SetUnitVertexColorBJ(U,TR,TG,TB,TT)
call nL(L)
endfunction
function Nm takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local location nT=udg_locations01[L]
local real Ni=udg_reals12[L]
local integer LQ=0
local integer NG=0
local effect array FX
local effect NM
if ModuloReal(Ni,2)>=1 then
set Ni=Ni+2-ModuloReal(Ni,2)
else
set Ni=Ni-ModuloReal(Ni,2)
endif
set NG=R2I(Ni)*2
loop
call CameraSetSourceNoiseForPlayer(Player(LQ),100.,20.)
call CameraSetTargetNoiseForPlayer(Player(LQ),100.,20.)
exitwhen LQ==11
set LQ=LQ+1
endloop
set LQ=0
set NM=AddSpecialEffectLocBJ(nT,"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
loop
exitwhen LQ==NG
call Kh(.5)
if GetRandomInt(0,10)>2 then
set FX[LQ]=AddSpecialEffectLocBJ(Ko(nT,GetRandomReal(0,1000),GetRandomReal(0,360)),"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
endif
set LQ=LQ+1
endloop
set NG=0
loop
call CameraClearNoiseForPlayer(Player(NG))
exitwhen NG==11
set NG=NG+1
endloop
loop
set LQ=LQ-1
call Kh(GetRandomReal(.05,.2))
call DestroyEffect(FX[LQ])
set FX[LQ]=null
exitwhen LQ==0
endloop
call Kh(.5)
call DestroyEffect(NM)
set NM=null
call RemoveLocation(nT)
set nT=null
call nL(L)
endfunction
function Nn takes boolean B returns nothing
if not B then
call TriggerClearActions(bj_cineSceneBeingSkipped)
call TriggerAddAction(bj_cineSceneBeingSkipped,function DoNothing)
else
call TriggerClearActions(bj_cineSceneBeingSkipped)
call TriggerAddAction(bj_cineSceneBeingSkipped,function CancelCineSceneBJ)
endif
endfunction
function NN takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),50)
call SetUnitTurnSpeed(GetEnumUnit(),.3)
endfunction
function No takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),'d')
call SetUnitTurnSpeed(GetEnumUnit(),.5)
endfunction
function NO takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local location nT=udg_locations01[L]
local real Np=udg_reals14[L]
local integer NP=udg_integers24[L]
local string nu=udg_strings07[L]
local real Ni=udg_reals12[L]
local integer LQ=0
local real Nq=360/NP
local effect array FX
loop
call AddSpecialEffectLocBJ(Ko(nT,Np,LQ*Nq),nu)
set FX[LQ]=bj_lastCreatedEffect
exitwhen LQ==NP
set LQ=LQ+1
endloop
call Kh(Ni)
loop
call DestroyEffect(FX[LQ])
set FX[LQ]=null
exitwhen LQ==0
set LQ=LQ-1
endloop
call RemoveLocation(nT)
set nT=null
call nL(L)
endfunction
function NQ takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local real NR=udg_reals13[L]
local string nu=udg_strings07[L]
local real KP=udg_reals12[L]
local location Ns=udg_locations01[L]
local integer i=1
local integer NS=0
local effect array Nt
if NR>1600 then
set NR=1600
elseif NR<80 then
set NR=80
endif
if ModuloReal(NR,40)>=20 then
set NR=NR+40-ModuloReal(NR,40)
else
set NR=NR-ModuloReal(NR,40)
endif
set NS=R2I(NR/40)
set i=1
loop
exitwhen i>NS
if(i<NS-5)and(i>1)then
call AddSpecialEffectLocBJ(Ko(Ns,((i)*40.),KP-20.),nu)
set Nt[(i-1)*17+1]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(Ns,((i)*40.),KP+20.),nu)
set Nt[(i-1)*17+2]=bj_lastCreatedEffect
endif
if(i<NS-4)and(i>14)then
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP-17.5),nu)
set Nt[(i-1)*17+10]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP+17.5),nu)
set Nt[(i-1)*17+11]=bj_lastCreatedEffect
endif
if(i<NS-3)then
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP-15.),nu)
set Nt[(i-1)*17+3]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP+15.),nu)
set Nt[(i-1)*17+4]=bj_lastCreatedEffect
endif
if(i<NS-2)and(i>14)then
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP-12.5),nu)
set Nt[(i-1)*17+12]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP+12.5),nu)
set Nt[(i-1)*17+13]=bj_lastCreatedEffect
endif
if(i<NS-1)then
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP-10.),nu)
set Nt[(i-1)*17+5]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP+10.),nu)
set Nt[(i-1)*17+6]=bj_lastCreatedEffect
endif
if(i<NS-1)and(i>14)then
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP-7.5),nu)
set Nt[(i-1)*17+14]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP+7.5),nu)
set Nt[(i-1)*17+15]=bj_lastCreatedEffect
endif
if(i<NS)then
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP-5.),nu)
set Nt[(i-1)*17+7]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP+5.),nu)
set Nt[(i-1)*17+8]=bj_lastCreatedEffect
endif
if(i<NS)and(i>14)then
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP-2.5),nu)
set Nt[(i-1)*17+16]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP+2.5),nu)
set Nt[(i-1)*17+17]=bj_lastCreatedEffect
endif
call AddSpecialEffectLocBJ(Ko(Ns,((i+1)*40.),KP),nu)
set Nt[(i-1)*17+9]=bj_lastCreatedEffect
if(ModuloInteger(i,4)==0)then
call Kh(.01)
endif
set i=i+1
endloop
call Kh(.5)
set i=1
loop
exitwhen i>NS
if(i<NS-5)then
call DestroyEffect(Nt[(i-1)*17+1])
call DestroyEffect(Nt[(i-1)*17+2])
set Nt[(i-1)*17+1]=null
set Nt[(i-1)*17+2]=null
endif
if(i<NS-4)then
call DestroyEffect(Nt[(i-1)*17+10])
call DestroyEffect(Nt[(i-1)*17+11])
set Nt[(i-1)*17+10]=null
set Nt[(i-1)*17+11]=null
endif
if(i<NS-3)then
call DestroyEffect(Nt[(i-1)*17+3])
call DestroyEffect(Nt[(i-1)*17+4])
set Nt[(i-1)*17+3]=null
set Nt[(i-1)*17+4]=null
endif
if(i<NS-2)then
call DestroyEffect(Nt[(i-1)*17+12])
call DestroyEffect(Nt[(i-1)*17+13])
set Nt[(i-1)*17+12]=null
set Nt[(i-1)*17+13]=null
endif
if(i<NS-1)then
call DestroyEffect(Nt[(i-1)*17+5])
call DestroyEffect(Nt[(i-1)*17+6])
set Nt[(i-1)*17+5]=null
set Nt[(i-1)*17+6]=null
endif
if(i<NS-1)then
call DestroyEffect(Nt[(i-1)*17+14])
call DestroyEffect(Nt[(i-1)*17+15])
set Nt[(i-1)*17+14]=null
set Nt[(i-1)*17+15]=null
endif
if(i<NS)then
call DestroyEffect(Nt[(i-1)*17+7])
call DestroyEffect(Nt[(i-1)*17+8])
set Nt[(i-1)*17+7]=null
set Nt[(i-1)*17+8]=null
endif
if(i<NS)then
call DestroyEffect(Nt[(i-1)*17+16])
call DestroyEffect(Nt[(i-1)*17+17])
set Nt[(i-1)*17+16]=null
set Nt[(i-1)*17+17]=null
endif
call DestroyEffect(Nt[(i-1)*17+9])
set Nt[(i-1)*17+9]=null
if(ModuloInteger(i,4)==0)then
call Kh(.01)
endif
set i=i+1
endloop
call RemoveLocation(Ns)
set Ns=null
call nL(L)
endfunction
function NT takes nothing returns nothing
local integer L=nm(GetTriggeringTrigger())
local real NR=udg_reals13[L]
local string nu=udg_strings07[L]
local unit U=udg_units14[L]
local integer i=1
local integer NS=0
local effect array Nt
local real KP=GetUnitFacing(U)
if NR>1600 then
set NR=1600
elseif NR<80 then
set NR=80
endif
if ModuloReal(NR,40)>=20 then
set NR=NR+40-ModuloReal(NR,40)
else
set NR=NR-ModuloReal(NR,40)
endif
set NS=R2I(NR/40)
set i=1
loop
exitwhen i>NS
if(i<NS-5)and(i>1)then
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i)*40.),KP-20.),nu)
set Nt[(i-1)*17+1]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i)*40.),KP+20.),nu)
set Nt[(i-1)*17+2]=bj_lastCreatedEffect
endif
if(i<NS-4)and(i>14)then
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP-17.5),nu)
set Nt[(i-1)*17+10]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP+17.5),nu)
set Nt[(i-1)*17+11]=bj_lastCreatedEffect
endif
if(i<NS-3)then
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP-15.),nu)
set Nt[(i-1)*17+3]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP+15.),nu)
set Nt[(i-1)*17+4]=bj_lastCreatedEffect
endif
if(i<NS-2)and(i>14)then
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP-12.5),nu)
set Nt[(i-1)*17+12]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP+12.5),nu)
set Nt[(i-1)*17+13]=bj_lastCreatedEffect
endif
if(i<NS-1)then
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP-10.),nu)
set Nt[(i-1)*17+5]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP+10.),nu)
set Nt[(i-1)*17+6]=bj_lastCreatedEffect
endif
if(i<NS-1)and(i>14)then
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP-7.5),nu)
set Nt[(i-1)*17+14]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP+7.5),nu)
set Nt[(i-1)*17+15]=bj_lastCreatedEffect
endif
if(i<NS)then
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP-5.),nu)
set Nt[(i-1)*17+7]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP+5.),nu)
set Nt[(i-1)*17+8]=bj_lastCreatedEffect
endif
if(i<NS)and(i>14)then
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP-2.5),nu)
set Nt[(i-1)*17+16]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP+2.5),nu)
set Nt[(i-1)*17+17]=bj_lastCreatedEffect
endif
call AddSpecialEffectLocBJ(Ko(GetUnitLoc(U),((i+1)*40.),KP),nu)
set Nt[(i-1)*17+9]=bj_lastCreatedEffect
if(ModuloInteger(i,4)==0)then
call Kh(.01)
endif
set i=i+1
endloop
call Kh(.5)
set i=1
loop
exitwhen i>NS
if(i<NS-5)then
call DestroyEffect(Nt[(i-1)*17+1])
call DestroyEffect(Nt[(i-1)*17+2])
set Nt[(i-1)*17+1]=null
set Nt[(i-1)*17+2]=null
endif
if(i<NS-4)then
call DestroyEffect(Nt[(i-1)*17+10])
call DestroyEffect(Nt[(i-1)*17+11])
set Nt[(i-1)*17+10]=null
set Nt[(i-1)*17+11]=null
endif
if(i<NS-3)then
call DestroyEffect(Nt[(i-1)*17+3])
call DestroyEffect(Nt[(i-1)*17+4])
set Nt[(i-1)*17+3]=null
set Nt[(i-1)*17+4]=null
endif
if(i<NS-2)then
call DestroyEffect(Nt[(i-1)*17+12])
call DestroyEffect(Nt[(i-1)*17+13])
set Nt[(i-1)*17+12]=null
set Nt[(i-1)*17+13]=null
endif
if(i<NS-1)then
call DestroyEffect(Nt[(i-1)*17+5])
call DestroyEffect(Nt[(i-1)*17+6])
set Nt[(i-1)*17+5]=null
set Nt[(i-1)*17+6]=null
endif
if(i<NS-1)then
call DestroyEffect(Nt[(i-1)*17+14])
call DestroyEffect(Nt[(i-1)*17+15])
set Nt[(i-1)*17+14]=null
set Nt[(i-1)*17+15]=null
endif
if(i<NS)then
call DestroyEffect(Nt[(i-1)*17+7])
call DestroyEffect(Nt[(i-1)*17+8])
set Nt[(i-1)*17+7]=null
set Nt[(i-1)*17+8]=null
endif
if(i<NS)then
call DestroyEffect(Nt[(i-1)*17+16])
call DestroyEffect(Nt[(i-1)*17+17])
set Nt[(i-1)*17+16]=null
set Nt[(i-1)*17+17]=null
endif
call DestroyEffect(Nt[(i-1)*17+9])
set Nt[(i-1)*17+9]=null
if(ModuloInteger(i,4)==0)then
call Kh(.01)
endif
set i=i+1
endloop
call nL(L)
endfunction
function Nu takes nothing returns nothing
if DistanceBetweenPoints(GetDestructableLoc(GetEnumDestructable()),udg_location02)<udg_real09 then
set udg_destructable01=GetEnumDestructable()
set udg_real09=DistanceBetweenPoints(GetDestructableLoc(GetEnumDestructable()),udg_location02)
endif
endfunction
function NU takes nothing returns nothing
if DistanceBetweenPoints(GetItemLoc(GetEnumItem()),udg_location02)<udg_real09 then
set udg_item01=GetEnumItem()
set udg_real09=DistanceBetweenPoints(GetItemLoc(GetEnumItem()),udg_location02)
endif
endfunction
function NV takes integer nb returns nothing
call IssuePointOrderByIdLoc(udg_units13[nb],851986,Ko(GetUnitLoc(udg_units13[nb]),250,GetUnitFacing(udg_units13[nb])+I2R(udg_integers20[nb])-I2R(udg_integers19[nb])))
endfunction
function Nw takes player P returns nothing
local integer nb=GetPlayerId(P)
local integer LQ=0
local integer NW=0
local group G=CreateGroup()
set udg_units13[nb]=FirstOfGroup(G)
loop
if udg_units13[LQ]==null or IsUnitAliveBJ(udg_units13[LQ])==false then
set NW=NW+1
endif
exitwhen LQ==11
set LQ=LQ+1
endloop
if NW==12 then
call DisableTrigger(udg_trigger06)
call DisableTrigger(udg_trigger05)
call DisableTrigger(udg_trigger07)
call DisableTrigger(udg_trigger08)
call DisableTrigger(udg_trigger09)
call DisableTrigger(udg_trigger10)
call DisableTrigger(udg_trigger11)
call DisableTrigger(udg_trigger12)
call DisableTrigger(udg_trigger13)
endif
call DestroyGroup(G)
set G=null
endfunction
function Nx takes nothing returns nothing
local integer LQ=0
loop
if IsUnitAliveBJ(udg_units13[LQ])and udg_booleans06[LQ]then
call NV(LQ)
elseif IsUnitAliveBJ(udg_units13[LQ])==false then
call Nw(Player(LQ))
endif
exitwhen LQ==11
set LQ=LQ+1
endloop
endfunction
function NX takes nothing returns nothing
local integer LQ=0
loop
if IsUnitAliveBJ(udg_units13[LQ])and udg_booleans06[LQ]==false then
if udg_integers20[LQ]>0 and udg_integers19[LQ]==0 then
call SetUnitFacingTimed(udg_units13[LQ],GetUnitFacing(udg_units13[LQ])+90,1.)
elseif udg_integers19[LQ]>0 then
call SetUnitFacingTimed(udg_units13[LQ],GetUnitFacing(udg_units13[LQ])-90,1.)
endif
endif
exitwhen LQ==11
set LQ=LQ+1
endloop
endfunction
function Ny takes nothing returns nothing
local integer nb=GetPlayerId(GetTriggerPlayer())
if IsUnitAliveBJ(udg_units13[nb])then
set udg_booleans06[nb]=true
call NV(nb)
endif
endfunction
function NY takes nothing returns nothing
local integer nb=GetPlayerId(GetTriggerPlayer())
set udg_booleans06[nb]=false
if IsUnitAliveBJ(udg_units13[nb])then
call IssueImmediateOrderById(udg_units13[nb],851972)
endif
endfunction
function Nz takes nothing returns nothing
local integer nb=GetPlayerId(GetTriggerPlayer())
if IsUnitAliveBJ(udg_units13[nb])then
set udg_integers20[nb]=20
if udg_booleans06[nb]then
call NV(nb)
endif
endif
endfunction
function NZ takes nothing returns nothing
local integer nb=GetPlayerId(GetTriggerPlayer())
if IsUnitAliveBJ(udg_units13[nb])then
set udg_integers19[nb]=20
if udg_booleans06[nb]then
call NV(nb)
endif
endif
endfunction
function N0 takes nothing returns nothing
local integer nb=GetPlayerId(GetTriggerPlayer())
if IsUnitAliveBJ(udg_units13[nb])then
set udg_integers20[nb]=0
if udg_booleans06[nb]then
call NV(nb)
endif
endif
endfunction
function N1 takes nothing returns nothing
local integer nb=GetPlayerId(GetTriggerPlayer())
if IsUnitAliveBJ(udg_units13[nb])then
set udg_integers19[nb]=0
if udg_booleans06[nb]then
call NV(nb)
endif
endif
endfunction
function N2 takes nothing returns nothing
local integer nb=GetPlayerId(GetTriggerPlayer())
if IsUnitAliveBJ(udg_units13[nb])then
call IssuePointOrderByIdLoc(udg_units13[nb],851986,Ko(GetUnitLoc(udg_units13[nb]),200,GetUnitFacing(udg_units13[nb])+180))
endif
endfunction
function N4 takes player P returns nothing
local integer LQ=0
local integer NW=0
local group G=CreateGroup()
set udg_units15[GetPlayerId(P)]=FirstOfGroup(G)
set udg_booleans07[GetPlayerId(P)]=false
call Nw(P)
loop
if udg_units15[LQ]==null or IsUnitAliveBJ(udg_units15[LQ])==false then
set NW=NW+1
endif
exitwhen LQ==11
set LQ=LQ+1
endloop
if NW==12 then
call DisableTrigger(udg_trigger17)
endif
call DestroyGroup(G)
set G=null
endfunction
function N5 takes nothing returns nothing
local integer LQ=0
local player P
loop
if udg_booleans07[LQ]then
set P=Player(LQ)
if IsUnitAliveBJ(udg_units15[LQ])==false then
call N4(Player(LQ))
endif
if udg_booleans13[LQ]then
call PanCameraToTimedLocForPlayer(P,Ko(GetUnitLoc(udg_units15[LQ]),udg_reals06[LQ],GetUnitFacing(udg_units15[LQ])),1)
endif
if udg_booleans11[LQ]then
call SetCameraFieldForPlayer(P,CAMERA_FIELD_TARGET_DISTANCE,udg_reals10[LQ],1.)
endif
if udg_booleans09[LQ]then
call SetCameraFieldForPlayer(P,CAMERA_FIELD_ROLL,udg_reals07[LQ],1.)
endif
if udg_booleans12[LQ]then
call SetCameraFieldForPlayer(P,CAMERA_FIELD_ROTATION,GetUnitFacing(udg_units15[LQ]),1)
endif
if udg_booleans10[LQ]then
call SetCameraFieldForPlayer(P,CAMERA_FIELD_ANGLE_OF_ATTACK,udg_reals11[LQ],1.)
endif
if udg_booleans14[LQ]then
call SetCameraFieldForPlayer(P,CAMERA_FIELD_ZOFFSET,udg_reals09[LQ],1.)
endif
endif
exitwhen LQ==11
set LQ=LQ+1
endloop
endfunction
function N6 takes nothing returns nothing
local integer Id=Lq(GetLearningUnit())
local integer Sk=GetLearnedSkill()
set udg_integers28[Id]=Sk
if udg_integers29[Id]==Sk then
elseif udg_integers30[Id]==Sk then
elseif udg_integers31[Id]==Sk then
elseif udg_integers32[Id]==Sk then
elseif udg_integers33[Id]==Sk then
else
if udg_integers29[Id]==0 or udg_integers29[Id]==null then
set udg_integers29[Id]=Sk
elseif udg_integers30[Id]==0 or udg_integers30[Id]==null then
set udg_integers30[Id]=Sk
elseif udg_integers31[Id]==0 or udg_integers31[Id]==null then
set udg_integers31[Id]=Sk
elseif udg_integers32[Id]==0 or udg_integers32[Id]==null then
set udg_integers32[Id]=Sk
else
set udg_integers33[Id]=Sk
endif
endif
endfunction
function N7 takes nothing returns nothing
set udg_units17[Lq(GetTriggerUnit())]=GetTrainedUnit()
endfunction
function N8 takes nothing returns nothing
set udg_integers27[Lq(GetTriggerUnit())]=GetResearched()
endfunction
function N9 takes nothing returns nothing
set udg_units20[Lq(GetSummoningUnit())]=GetSummonedUnit()
endfunction
function oa takes nothing returns nothing
set udg_units18[Lq(GetTriggerUnit())]=GetConstructedStructure()
endfunction
function oA takes nothing returns nothing
set udg_items02[Lq(GetTriggerUnit())]=GetManipulatedItem()
endfunction
function ob takes nothing returns nothing
set udg_items03[Lq(GetTriggerUnit())]=GetManipulatedItem()
endfunction
function oB takes nothing returns nothing
if GetUnitTypeId(GetSellingUnit())=='nshf'then
call RemoveUnit(GetSellingUnit())
call RemoveUnit(GetSoldUnit())
else
set udg_units19[Lq(GetSellingUnit())]=GetSoldUnit()
endif
endfunction
function oc takes nothing returns nothing
set udg_items01[Lq(GetSellingUnit())]=GetSoldItem()
endfunction
function GetRandomSelectionHeroType takes nothing returns integer
return GetUnitTypeId(GroupPickRandomUnit(udg_group06))
endfunction
function GetSelectableHeros takes nothing returns group
return udg_group06
endfunction
function oC takes nothing returns boolean
if GetOwningPlayer(GetTriggerUnit())!=Player(15)then
return false
elseif not IsUnitInGroup(GetTriggerUnit(),udg_group06)then
return false
endif
return true
endfunction
function od takes nothing returns nothing
local player oD=GetTriggerPlayer()
local integer Id=GetPlayerId(oD)
local unit U=GetTriggerUnit()
if udg_units11[Id]==U then
return
elseif udg_units11[Id]!=null then
call SetUnitOwner(udg_units11[Id],Player(15),true)
call SetUnitManaPercentBJ(udg_units11[Id],'d')
call SetUnitLifePercentBJ(udg_units11[Id],'d')
call UnitRemoveAbility(udg_units11[Id],'Ax0G')
endif
call UnitAddAbility(U,'Ax0G')
set udg_units11[Id]=U
call SetUnitManaPercentBJ(U,'d')
call SetUnitOwner(U,oD,true)
endfunction
function oe takes nothing returns nothing
if OrderId2StringBJ(GetIssuedOrderId())=="berserk"then
set udg_real04=1
set udg_real04=0
call SetUnitManaPercentBJ(GetTriggerUnit(),'d')
call SetUnitLifePercentBJ(GetTriggerUnit(),'d')
call UnitRemoveAbility(GetTriggerUnit(),'Ax0G')
set udg_units11[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))]=null
call SetUnitOwner(GetTriggerUnit(),Player(15),true)
elseif OrderId2StringBJ(GetIssuedOrderId())=="taunt"then
set udg_real05=1
set udg_real05=0
call SetUnitManaPercentBJ(GetTriggerUnit(),'d')
call SetUnitLifePercentBJ(GetTriggerUnit(),'d')
call UnitRemoveAbility(GetTriggerUnit(),'Ax0G')
set udg_units11[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))]=null
call SetUnitOwner(GetTriggerUnit(),Player(15),true)
elseif OrderId2StringBJ(GetIssuedOrderId())=="(null)"then
call TriggerSleepAction(.01)
return
endif
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(GetTriggerUnit(),true)
call IssueImmediateOrderById(GetTriggerUnit(),851972)
call PauseUnit(GetTriggerUnit(),false)
call TriggerSleepAction(.01)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function oE takes nothing returns boolean
local boolean Held=false
local boolean VorhandenerString=false
local integer LQ=1
local string of=OrderId2StringBJ(GetIssuedOrderId())
if of=="(null)"then
return false
elseif of=="resumeharvesting"then
return false
elseif of=="stop"then
return false
endif
set udg_string02=of
if of=="smart"then
return false
elseif of=="board"then
return false
elseif of=="holdposition"then
return false
elseif of=="move"or of=="attack"then
return false
elseif of=="patrol"or of=="attackground"then
return false
elseif of=="battlestations"or of=="standdown"then
return false
elseif of=="unloadall"or of=="unload"then
return false
elseif of=="restoration"or of=="repair"or of=="renew"or of=="revive"then
return false
elseif of=="unloadallinstant"or of=="load"or of=="loadarcher"or of=="loadcorpse"then
return false
endif
loop
if udg_strings03[LQ]==OrderId2StringBJ(GetIssuedOrderId())then
if udg_integers16[LQ]==GetUnitTypeId(GetOrderedUnit())then
set udg_integer06=LQ
return true
endif
endif
exitwhen LQ==udg_integer05
set LQ=LQ+1
endloop
return false
endfunction
function oF takes nothing returns nothing
local integer LQ=udg_integer06
local real og
local boolean oG=false
set udg_unit03=GetOrderedUnit()
if udg_reals04[LQ]>0 then
if GetLocationX(GetOrderPointLoc())==0 and GetLocationY(GetOrderPointLoc())==0 then
set udg_unit02=GetOrderTargetUnit()
set udg_real02=GetUnitX(udg_unit02)
set udg_real03=GetUnitY(udg_unit02)
set oG=true
else
set udg_real02=GetLocationX(GetOrderPointLoc())
set udg_real03=GetLocationY(GetOrderPointLoc())
endif
set og=DistanceBetweenPoints(GetUnitLoc(udg_unit03),Location(udg_real02,udg_real03))-150
if og<=udg_reals04[LQ]then
call ExecuteFunc(udg_strings04[LQ])
return
else
loop
call Kh(.5)
if udg_string02!=udg_strings03[LQ]then
return
elseif IsUnitDeadBJ(udg_unit03)then
return
elseif DistanceBetweenPoints(GetUnitLoc(udg_unit03),Location(udg_real02,udg_real03))-150<=udg_reals04[LQ]and GetUnitStateSwap(UNIT_STATE_MANA,udg_unit03)<udg_reals03[LQ]then
call LT(GetOwningPlayer(udg_unit03),"Not enough mana.")
return
elseif udg_unit02!=null and IsUnitDeadBJ(udg_unit02)then
call LT(GetOwningPlayer(udg_unit02),"Target unit is already dead.")
return
endif
if oG then
set udg_real02=GetUnitX(udg_unit02)
set udg_real03=GetUnitY(udg_unit02)
endif
exitwhen DistanceBetweenPoints(GetUnitLoc(udg_unit03),Location(udg_real02,udg_real03))-150<=udg_reals04[LQ]and GetUnitStateSwap(UNIT_STATE_MANA,udg_unit03)>=udg_reals03[LQ]
endloop
call ExecuteFunc(udg_strings04[LQ])
return
endif
endif
call ExecuteFunc(udg_strings04[LQ])
endfunction
function oh takes nothing returns nothing
set udg_integer23=udg_integer23+1
set udg_units23[udg_integer23]=GetTriggerUnit()
endfunction
function oH takes nothing returns nothing
local integer LQ=0
loop
exitwhen udg_units23[LQ]==GetTriggerUnit()
exitwhen LQ==udg_integer23+1
set LQ=LQ+1
endloop
if LQ==udg_integer23+1 then
return
endif
set udg_units23[LQ]=null
endfunction
function oi takes nothing returns nothing
set udg_integer22=udg_integer22+1
set udg_units22[udg_integer22]=GetTriggerUnit()
endfunction
function oI takes nothing returns nothing
local integer LQ=0
loop
exitwhen udg_units22[LQ]==GetTriggerUnit()
exitwhen LQ==udg_integer22+1
set LQ=LQ+1
endloop
if LQ==udg_integer22+1 then
return
endif
set udg_units22[LQ]=null
endfunction
function oj takes nothing returns nothing
set udg_integer21=udg_integer21+1
set udg_units21[udg_integer21]=GetTriggerUnit()
endfunction
function oJ takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)!=null)
endfunction
function ok takes nothing returns nothing
local integer LQ=0
loop
exitwhen LQ>udg_integer23
if udg_units23[LQ]==GetTriggerUnit()then
set udg_units23[LQ]=null
return
endif
set LQ=LQ+1
endloop
set LQ=0
loop
exitwhen LQ>udg_integer22
if udg_units22[LQ]==GetTriggerUnit()then
set udg_units22[LQ]=null
return
endif
set LQ=LQ+1
endloop
endfunction
function oK takes nothing returns boolean
if udg_booleans03[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))*6]then
if GetUnitTypeId(GetTriggerUnit())=='Hmkg'then
return true
endif
endif
return false
endfunction
function ol takes nothing returns nothing
local integer LQ=0
local integer id=GetPlayerId(GetOwningPlayer(GetTriggerUnit()))
loop
if udg_units12[id*6+LQ]==GetTriggerUnit()then
set udg_booleans03[id*6+LQ+1]=true
endif
exitwhen LQ==4
set LQ=LQ+1
endloop
call StopSoundBJ(udg_sounds02[id],false)
endfunction
function oL takes nothing returns nothing
local integer id=GetPlayerId(GetTriggerPlayer())
call StopSoundBJ(udg_sounds02[id],false)
if udg_booleans04[id]then
call StopSoundBJ(udg_sounds03[id],false)
endif
endfunction
function om takes unit U,real R returns nothing
set udg_reals16[Lq(U)]=R
endfunction
function oM takes unit U returns real
return udg_reals16[Lq(U)]
endfunction
function on takes string S returns string
local integer L=LN(S)
local string ma=""
loop
set ma=ma+SubStringBJ(S,L,L)
exitwhen L==1
set L=L-1
endloop
return ma
endfunction
function GetCommandablePlayers takes nothing returns force
local integer LQ=1
local string oN=I2S(GetPlayerState(Player(14),PLAYER_STATE_RESOURCE_LUMBER))
local integer L=LN(oN)
local force ma=CreateForce()
set oN=on(oN)
loop
exitwhen LQ>L
if SubStringBJ(oN,LQ,LQ)=="1"then
call ForceAddPlayer(ma,Player(LQ-1))
endif
set LQ=LQ+1
endloop
set oN=on(I2S(GetPlayerState(Player(14),PLAYER_STATE_RESOURCE_GOLD)))
set L=LN(oN)
set LQ=1
loop
exitwhen LQ>L
if SubStringBJ(oN,LQ,LQ)=="1"then
call ForceAddPlayer(ma,Player(LQ+5))
endif
set LQ=LQ+1
endloop
return ma
endfunction
constant function oo takes integer i returns integer
if i<0 then
return(i+0x80000000)-(i+0x80000000)/65536*65536
endif
return i-i/65536*65536
endfunction
constant function oO takes integer i returns integer
if i<0 then
return(i+0x80000000)/65536+32768
endif
return i/65536
endfunction
constant function ou takes integer Km returns integer
local integer oS=Km/JASS_MAX_ARRAY_SIZE
local integer ot=Km-Km/JASS_MAX_ARRAY_SIZE*JASS_MAX_ARRAY_SIZE
if oS==0 then
return udg_integers47[ot]
elseif oS==1 then
return udg_integers48[ot]
endif
return-1
endfunction
constant function ov takes integer oV,integer ow returns integer
local integer Km=oV*udg_integer39
if ow==0 then
return oo(ou(Km))
elseif ow==1 then
return oO(ou(Km))
elseif ow==2 then
return ou(Km+1)
elseif ow==3 then
return ou(Km+2)
endif
return-1
endfunction
function ox takes integer oX returns boolean
return ov(oX,2)==0
endfunction
function oy takes nothing returns integer
local integer oX=udg_integer40
loop
set oX=oX+1
if oX==udg_integer41 then
set oX=1
endif
exitwhen ox(oX)or oX==udg_integer40
endloop
if oX==udg_integer40 then
return 0
endif
set udg_integer40=oX
return oX
endfunction
function ListNew takes nothing returns integer
return 0
endfunction
function OR takes leaderboard LB,integer OG,boolean Oh,integer V1,integer V2,integer V3,integer V4,integer V5,integer V6,integer V7,integer V8,integer V9,integer OK,integer OL,integer OM,integer Oo,integer OP,integer OQ returns nothing
call LeaderboardSetPlayerItemValueBJ(Player(0),LB,V1)
call LeaderboardSetPlayerItemValueBJ(Player(1),LB,V2)
call LeaderboardSetPlayerItemValueBJ(Player(2),LB,V3)
call LeaderboardSetPlayerItemValueBJ(Player(3),LB,V4)
call LeaderboardSetPlayerItemValueBJ(Player(4),LB,V5)
call LeaderboardSetPlayerItemValueBJ(Player(5),LB,V6)
call LeaderboardSetPlayerItemValueBJ(Player(6),LB,V7)
call LeaderboardSetPlayerItemValueBJ(Player(7),LB,V8)
call LeaderboardSetPlayerItemValueBJ(Player(8),LB,V9)
call LeaderboardSetPlayerItemValueBJ(Player(9),LB,OK)
call LeaderboardSetPlayerItemValueBJ(Player(10),LB,OL)
call LeaderboardSetPlayerItemValueBJ(Player(11),LB,OM)
call LeaderboardSetPlayerItemValueBJ(Player(12),LB,Oo)
call LeaderboardSetPlayerItemValueBJ(Player(13),LB,OP)
call LeaderboardSetPlayerItemValueBJ(Player(14),LB,OQ)
if OG>=0 and OG<=3 then
call LeaderboardSortItemsBJ(LB,OG,Oh)
endif
endfunction
function OV takes player P returns string
local string Ow
local playercolor OW=GetPlayerColor(P)
if(OW==PLAYER_COLOR_RED)then
set Ow="Red"
elseif(OW==PLAYER_COLOR_BLUE)then
set Ow="Blue"
elseif(OW==PLAYER_COLOR_CYAN)then
set Ow="Teal"
elseif(OW==PLAYER_COLOR_PURPLE)then
set Ow="Purple"
elseif(OW==PLAYER_COLOR_YELLOW)then
set Ow="Yellow"
elseif(OW==PLAYER_COLOR_ORANGE)then
set Ow="Orange"
elseif(OW==PLAYER_COLOR_GREEN)then
set Ow="Green"
elseif(OW==PLAYER_COLOR_PINK)then
set Ow="Pink"
elseif(OW==PLAYER_COLOR_LIGHT_GRAY)then
set Ow="Gray"
elseif(OW==PLAYER_COLOR_LIGHT_BLUE)then
set Ow="Light Blue"
elseif(OW==PLAYER_COLOR_AQUA)then
set Ow="Dark Green"
elseif(OW==PLAYER_COLOR_BROWN)then
set Ow="Brown"
endif
return Ow
endfunction
function Ox takes nothing returns nothing
local integer LQ=0
local integer mQ=-1
local string OX=""
local integer L=LN(udg_string03)
loop
if udg_integers17[LQ]>mQ then
set mQ=LQ
endif
exitwhen LQ==11
set LQ=LQ+1
endloop
call DestroyTrigger(udg_trigger02)
set udg_trigger02=null
call TimerDialogDisplay(udg_timerdialog01,false)
call DestroyTimerDialog(udg_timerdialog01)
set udg_timerdialog01=null
set LQ=1
loop
if SubStringBJ(udg_string03,LQ,LQ)=="@"then
if LQ==1 then
set OX=udg_strings05[mQ]+SubStringBJ(udg_string03,LQ+1,L)
elseif LQ==L then
set OX=SubStringBJ(udg_string03,1,L-1)+udg_strings05[mQ]
else
set OX=SubStringBJ(udg_string03,1,LQ-1)+udg_strings05[mQ]+SubStringBJ(udg_string03,LQ+1,L)
endif
endif
exitwhen LQ==L
set LQ=LQ+1
endloop
set LQ=0
loop
call DisplayTimedTextToPlayer(Player(LQ),0,0,5,OX)
exitwhen LQ==11
set LQ=LQ+1
endloop
set LQ=0
loop
call LeaderboardDisplayBJ(false,udg_leaderboards01[LQ])
call DestroyLeaderboard(udg_leaderboards01[LQ])
set udg_leaderboards01[LQ]=null
exitwhen LQ==11
set LQ=LQ+1
endloop
call ExecuteFunc(udg_strings06[mQ])
endfunction
function Oy takes nothing returns nothing
local integer LQ=0
if udg_booleans02[GetPlayerId(GetTriggerPlayer())]==false then
set udg_booleans02[GetPlayerId(GetTriggerPlayer())]=true
set udg_integer08=udg_integer08+1
set udg_integers17[S2I(GetEventPlayerChatString())-1]=udg_integers17[S2I(GetEventPlayerChatString())-1]+1
if udg_boolean01 then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,5,"Player "+OV(GetTriggerPlayer())+" has chosen "+udg_strings05[S2I(GetEventPlayerChatString())-1]+".")
loop
call OR(udg_leaderboards01[LQ],0,false,udg_integers17[0],udg_integers17[1],udg_integers17[2],udg_integers17[3],udg_integers17[4],udg_integers17[5],udg_integers17[6],udg_integers17[7],udg_integers17[8],udg_integers17[9],udg_integers17[10],udg_integers17[11],udg_integers17[12],udg_integers17[13],udg_integers17[14])
exitwhen LQ==11
set LQ=LQ+1
endloop
else
loop
call DisplayTimedTextToPlayer(Player(LQ),0,0,5,"Player "+OV(GetTriggerPlayer())+" has chosen "+udg_strings05[S2I(GetEventPlayerChatString())-1]+".")
call OR(udg_leaderboards01[LQ],0,false,udg_integers17[0],udg_integers17[1],udg_integers17[2],udg_integers17[3],udg_integers17[4],udg_integers17[5],udg_integers17[6],udg_integers17[7],udg_integers17[8],udg_integers17[9],udg_integers17[10],udg_integers17[11],udg_integers17[12],udg_integers17[13],udg_integers17[14])
exitwhen LQ==11
set LQ=LQ+1
endloop
endif
else
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,5,"Cheater!")
endif
endfunction
function OY takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(15),false)
endfunction
function Oz takes nothing returns nothing
local integer id=udg_integer09
if GetOwningPlayer(GetEnumUnit())==Player(id)then
call GroupAddUnit(udg_groups01[id],GetEnumUnit())
endif
endfunction
function IstTransporter takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='otrb'or GetUnitTypeId(GetFilterUnit())=='nzep'or GetUnitTypeId(GetFilterUnit())=='egol')
endfunction
function O9 takes nothing returns integer
set udg_integer19=udg_integer19+1
return udg_integer19
endfunction
function pa takes item LP returns nothing
set udg_items04[O9()]=LP
endfunction
function pA takes item pb returns integer
local integer LQ=1
local integer Id=udg_integer19+1
loop
exitwhen LQ>udg_integer19
if udg_items04[LQ]==pb then
set Id=LQ
set LQ=udg_integer19+1
else
set LQ=LQ+1
endif
endloop
if Id==udg_integer19+1 then
call pa(pb)
endif
return Id
endfunction
function pB takes item pc returns nothing
call pA(pc)
endfunction
function RegItemInArray takes nothing returns nothing
call pB(GetEnumItem())
endfunction
function pC takes nothing returns nothing
local real X=udg_reals05[0]*udg_reals05[28]+udg_reals05[1]*udg_reals05[28]+udg_reals05[2]*udg_reals05[28]+udg_reals05[3]
local real Y=udg_reals05[4]*udg_reals05[28]+udg_reals05[5]*udg_reals05[28]+udg_reals05[6]*udg_reals05[28]+udg_reals05[7]
local real H=udg_reals05[8]*udg_reals05[28]+udg_reals05[9]*udg_reals05[28]+udg_reals05[10]*udg_reals05[28]+udg_reals05[11]
local real A=udg_reals05[12]*udg_reals05[28]+udg_reals05[13]*udg_reals05[28]+udg_reals05[14]*udg_reals05[28]+udg_reals05[15]
local real R=udg_reals05[16]*udg_reals05[28]+udg_reals05[17]*udg_reals05[28]+udg_reals05[18]*udg_reals05[28]+udg_reals05[19]
local real pd=udg_reals05[20]*udg_reals05[28]+udg_reals05[21]*udg_reals05[28]+udg_reals05[22]*udg_reals05[28]+udg_reals05[23]
local real D=udg_reals05[24]*udg_reals05[28]+udg_reals05[25]*udg_reals05[28]+udg_reals05[26]*udg_reals05[28]+udg_reals05[27]
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),OffsetLocation(GetRectCenter(bj_mapInitialPlayableArea),X,Y),0)
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ANGLE_OF_ATTACK,A,0)
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ZOFFSET,H,0)
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ROLL,R,0)
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ROTATION,pd,0)
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_TARGET_DISTANCE,D,0)
endfunction
function pD takes nothing returns nothing
local integer LQ=0
local integer pe=0
call ForForce(bj_FORCE_ALL_PLAYERS,function pC)
set udg_reals05[28]=udg_reals05[28]+(1./(udg_reals05[29]*100.))
if udg_reals05[28]>1 then
if udg_reals05[8191]>=udg_reals05[8190]then
call DestroyTrigger(GetTriggeringTrigger())
else
set LQ=0
loop
exitwhen LQ>29
set pe=0
loop
exitwhen pe>=udg_reals05[8190]-udg_reals05[8191]
set udg_reals05[(pe*30)+LQ]=udg_reals05[((pe+1)*30)+LQ]
set pe=pe+1
endloop
set LQ=LQ+1
endloop
set udg_reals05[8191]=udg_reals05[8191]+1
endif
endif
endfunction
function pm takes string pM returns string
local integer Mj=1
local string mW=""
local string pn=""
loop
exitwhen((SubStringBJ(pM,1,Mj)==pM))
set Mj=Mj+1
endloop
set mW=SubStringBJ(pM,1,1)
set pn=SubStringBJ(pM,2,Mj)
set mW=L0(mW)
return mW+pn
endfunction
function pN takes string po returns nothing
local integer pO=0
local integer A=1
local integer I=0
local integer Mj=1
loop
exitwhen((SubStringBJ(po,1,Mj)==po))
set Mj=Mj+1
endloop
loop
if(SubStringBJ(po,A,A)==" ")then
set udg_strings20[I]=pm(SubStringBJ(po,(pO+1),(A-1)))
set pO=A
set I=I+1
elseif(A==Mj)then
set udg_strings20[I]=pm(SubStringBJ(po,(pO+1),A))
set I=I+1
endif
set A=A+1
exitwhen(A>Mj)
endloop
loop
exitwhen I>6
set udg_strings20[I]=""
set I=I+1
endloop
endfunction
function pp takes player pP returns string
local string Ow=""
local playercolor OW=GetPlayerColor(pP)
if(OW==PLAYER_COLOR_RED)then
set Ow="Red"
elseif(OW==PLAYER_COLOR_BLUE)then
set Ow="Blue"
elseif(OW==PLAYER_COLOR_CYAN)then
set Ow="Cyan"
elseif(OW==PLAYER_COLOR_PURPLE)then
set Ow="Purple"
elseif(OW==PLAYER_COLOR_YELLOW)then
set Ow="Yellow"
elseif(OW==PLAYER_COLOR_ORANGE)then
set Ow="Orange"
elseif(OW==PLAYER_COLOR_GREEN)then
set Ow="Green"
elseif(OW==PLAYER_COLOR_PINK)then
set Ow="Pink"
elseif(OW==PLAYER_COLOR_LIGHT_GRAY)then
set Ow="Light Gray"
elseif(OW==PLAYER_COLOR_LIGHT_BLUE)then
set Ow="Light Blue"
elseif(OW==PLAYER_COLOR_AQUA)then
set Ow="Aqua"
elseif(OW==PLAYER_COLOR_BROWN)then
set Ow="Brown"
endif
return Ow
endfunction
function pq takes string pQ returns playercolor
local playercolor Ow=null
if(pQ=="Red")then
set Ow=PLAYER_COLOR_RED
elseif(pQ=="Blue")then
set Ow=PLAYER_COLOR_BLUE
elseif(pQ=="Cyan")then
set Ow=PLAYER_COLOR_CYAN
elseif(pQ=="Purple")then
set Ow=PLAYER_COLOR_PURPLE
elseif(pQ=="Yellow")then
set Ow=PLAYER_COLOR_YELLOW
elseif(pQ=="Orange")then
set Ow=PLAYER_COLOR_ORANGE
elseif(pQ=="Green")then
set Ow=PLAYER_COLOR_GREEN
elseif(pQ=="Pink")then
set Ow=PLAYER_COLOR_PINK
elseif(pQ=="Light Gray")then
set Ow=PLAYER_COLOR_LIGHT_GRAY
elseif(pQ=="Light Blue")then
set Ow=PLAYER_COLOR_LIGHT_BLUE
elseif(pQ=="Aqua")then
set Ow=PLAYER_COLOR_AQUA
elseif(pQ=="Brown")then
set Ow=PLAYER_COLOR_BROWN
else
set Ow=null
endif
return Ow
endfunction
function pr takes string s,playercolor c returns string
if c==PLAYER_COLOR_RED then
return"|c00ff0000"+s+"|r"
elseif c==PLAYER_COLOR_BLUE then
return"|c000000ff"+s+"|r"
elseif c==PLAYER_COLOR_CYAN then
return"|c0000ffff"+s+"|r"
elseif c==PLAYER_COLOR_PURPLE then
return"|c00660099"+s+"|r"
elseif c==PLAYER_COLOR_YELLOW then
return"|c00ffff00"+s+"|r"
elseif c==PLAYER_COLOR_ORANGE then
return"|c00ff9933"+s+"|r"
elseif c==PLAYER_COLOR_GREEN then
return"|c0000ff00"+s+"|r"
elseif c==PLAYER_COLOR_PINK then
return"|c00ff00ff"+s+"|r"
elseif c==PLAYER_COLOR_LIGHT_GRAY then
return"|c00dddddd"+s+"|r"
elseif c==PLAYER_COLOR_LIGHT_BLUE then
return"|c0033ccff"+s+"|r"
elseif c==PLAYER_COLOR_AQUA then
return"|c007fffd4"+s+"|r"
else
return"|c00660000"+s+"|r"
endif
endfunction
function pR takes player p returns string
return pr(GetPlayerName(p),GetPlayerColor(p))+": "
endfunction
function ps takes string pS returns nothing
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,5,pS)
endfunction
function pt takes player p,string pS returns nothing
call DisplayTimedTextToPlayer(p,0,0,5,pS)
endfunction
function pT takes string pS returns nothing
call DisplayTimedTextToPlayer(GetLocalPlayer(),0,0,7,pS)
endfunction
function pu takes player p,string pS returns nothing
call ps(pR(p)+pS)
endfunction
function pU takes player sp,player rp,string pS returns nothing
call pt(rp,pR(sp)+pS)
endfunction
function pv takes string pS returns nothing
if pS==""or udg_player02==Player(14)then
return
endif
if udg_player01!=null then
if udg_player02!=null then
call pU(udg_player02,udg_player01,pS)
else
call pt(udg_player02,pS)
endif
else
call pT(pS)
endif
endfunction
function pV takes player pw,integer pW returns integer
local integer array px
local integer array pX
local unit array py
local integer i=1
local integer j=0
local integer pY=pW
local group pz=CreateGroup()
local unit u=null
local integer pZ=8
local integer p0=2
local integer p1=p0*pZ
local timer t=CreateTimer()
if bj_isSinglePlayer then
return pW
endif
if pY<0 then
set px[0]=1
set pY=-pY
else
set px[0]=0
endif
loop
exitwhen i>=p1
set px[i]=ModuloInteger(pY,2)
set pY=pY/2
set i=i+1
endloop
set i=0
loop
exitwhen i>=pZ
set py[i]=CreateUnitAtLoc(pw,'nshf',GetPlayerStartLocationLoc(pw),bj_UNIT_FACING)
set i=i+1
endloop
call SyncSelections()
call GroupEnumUnitsSelected(pz,pw,null)
set i=0
loop
exitwhen i>=p0
if GetLocalPlayer()==pw then
set j=0
call ClearSelection()
loop
exitwhen j>=pZ
if px[i*pZ+j]==0 then
call SelectUnit(py[j],false)
else
call SelectUnit(py[j],true)
endif
set j=j+1
endloop
endif
call TimerStart(t,1,false,null)
loop
exitwhen TimerGetRemaining(t)<=0
call Kh(.5)
endloop
call SyncSelections()
set j=0
loop
exitwhen j>=pZ
if IsUnitSelected(py[j],pw)then
set pX[i*pZ+j]=1
else
set pX[i*pZ+j]=0
endif
set j=j+1
endloop
set i=i+1
endloop
if GetLocalPlayer()==pw then
call ClearSelection()
loop
set u=FirstOfGroup(pz)
exitwhen u==null
call SelectUnit(u,true)
call GroupRemoveUnit(pz,u)
endloop
call DestroyGroup(pz)
set pz=null
endif
call SyncSelections()
set i=0
loop
exitwhen i>=pZ
call RemoveUnit(py[i])
set i=i+1
endloop
set i=p1-1
set pY=0
loop
exitwhen i<1
set pY=2*pY+pX[i]
set i=i-1
endloop
if pX[0]!=0 then
set pY=-pY
endif
return pY
endfunction
function p2 takes string p3,boolean p4 returns player
local integer j=0
local playercolor p5=pq(p3)
if p3=="All"then
if p4 then
return Player(14)
else
call ps("ERROR, All is not allowed here")
return null
endif
endif
if(p5==null)then
if(S2I(p3)>=0)and(S2I(p3)<=11)then
return Player(S2I(p3))
else
call ps("ERROR, you mistyped the player id")
return null
endif
endif
loop
exitwhen(p5==GetPlayerColor(Player(j)))
set j=j+1
if(j>12)then
call ps("ERROR, you mistyped the player Color or Command word.")
return null
endif
endloop
return Player(j)
endfunction
function p6 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function p7 takes nothing returns nothing
call LeaderboardAddItemBJ(GetEnumPlayer(),udg_leaderboard01,GetPlayerName(GetEnumPlayer()),0)
call LeaderboardSetPlayerItemLabelBJ(GetEnumPlayer(),udg_leaderboard01,pp(GetEnumPlayer()))
call LeaderboardSetPlayerItemValueBJ(GetEnumPlayer(),udg_leaderboard01,GetPlayerId(GetEnumPlayer()))
endfunction
function p8 takes nothing returns nothing
local integer j=0
set udg_leaderboard01=lu(bj_FORCE_ALL_PLAYERS,"Colorboard")
call ForForce(lN(Condition(function p6)),function p7)
call LeaderboardDisplay(udg_leaderboard01,false)
endfunction
function PA takes nothing returns nothing
call p8()
if udg_string08=="Deutsch"then
call pT("|c0000ffffDiese Karte enthaelt den Commander und AMAI.|r")
call pT("|c0000ffffSchreibe 'Cmd: Help', um Hilfe zu erhalten.|r")
call pT("|c0000ffffDruecke ESC fuer den Befehlsdialog.|r")
call pT("|c0000ffffBesuche www.wc3campaigns.com Foren fuer Updates und mehr|r")
call pT("|c0000ffffAMAI homepage ist http://amai.wc3campaigns.com|r")
call pT("|c0000ffffAIAndy, Zalamander und DKSlayer|r")
elseif udg_string08=="Swedish"then
call pT("|c0000ffffDenna kartan anvander AMAI.|r")
call pT("|c0000ffffSkriv 'Cmd: Help' for att fa hjalp.|r")
call pT("|c0000ffffTryck ESC for meny.|r")
call pT("|c0000ffffBesok www.wc3campaigns.com forum for uppdateringar|r")
call pT("|c0000ffffAMAI hemsida http://amai.wc3campaigns.com|r")
call pT("|c0000ffffAIAndy, Zalamander och DKSlayer|r")
elseif udg_string08=="French"then
call pT("|c0000ffffCette carte contient the Commander and AMAI.|r")
call pT("|c0000ffffTape 'Cmd: Help' pour obtenir l'aide(help).|r")
call pT("|c0000ffffAppuie sur ESC pour la commande de dialogue.|r")
call pT("|c0000ffffva sur les forums de www.wc3campaigns.com pour les futures versions et plus|r")
call pT("|c0000ffffAMAI sur internet a l'adresse http://amai.wc3campaigns.com|r")
call pT("|c0000ffffAIAndy, Zalamander and DKSlayer|r")
else
call pT("|c0000ffffThis map contains the Commander and AMAI.|r")
call pT("|c0000ffffType 'Cmd: Help' to get Help.|r")
call pT("|c0000ffffPress ESC for a dialog of commands.|r")
call pT("|c0000ffffGoto www.wc3campaigns.com forums to find updates and more|r")
call pT("|c0000ffffThe AMAI homepage is http://amai.wc3campaigns.com|r")
call pT("|c0000ffffAIAndy, Zalamander and DKSlayer|r")
endif
endfunction
function Pb takes player PB,player p3,integer Pc returns nothing
if GetPlayerState(p3,PLAYER_STATE_RESOURCE_GOLD)-200>=Pc then
call SetPlayerState(p3,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p3,PLAYER_STATE_RESOURCE_GOLD)-Pc)
call SetPlayerState(PB,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(PB,PLAYER_STATE_RESOURCE_GOLD)+Pc)
call pU(p3,PB,"Tribute of "+I2S(Pc)+" Gold is complete.")
else
call pU(p3,PB,"Sorry, I don't have enough Gold.")
endif
endfunction
function Pd takes player PB,player p3,integer Pc returns nothing
if GetPlayerState(p3,PLAYER_STATE_RESOURCE_LUMBER)-200>=Pc then
call SetPlayerState(p3,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(p3,PLAYER_STATE_RESOURCE_LUMBER)-Pc)
call SetPlayerState(PB,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(PB,PLAYER_STATE_RESOURCE_LUMBER)+Pc)
call pU(p3,PB,"Tribute of "+I2S(Pc)+" Lumber is complete.")
else
call pU(p3,PB,"Sorry, I don't have enough Lumber.")
endif
endfunction
function PD takes player PB,integer Pc returns nothing
local integer i=0
loop
exitwhen i>=12
if IsPlayerAlly(PB,Player(i))and GetPlayerController(Player(i))==MAP_CONTROL_COMPUTER then
call Pb(PB,Player(i),Pc)
endif
set i=i+1
endloop
endfunction
function Pe takes player PB,integer Pc returns nothing
local integer i=0
loop
exitwhen i>=12
if IsPlayerAlly(PB,Player(i))and GetPlayerController(Player(i))==MAP_CONTROL_COMPUTER then
call Pd(PB,Player(i),Pc)
endif
set i=i+1
endloop
endfunction
function PE takes player PB,player p3,string Pf,string PF returns nothing
if(Pf=="G")or(Pf=="Gold")then
if p3==Player(14)then
call PD(PB,S2I(PF))
else
call Pb(PB,p3,S2I(PF))
endif
elseif(Pf=="L")or(Pf=="Lumber")then
if p3==Player(14)then
call Pe(PB,S2I(PF))
else
call Pd(PB,p3,S2I(PF))
endif
else
call pt(PB,"Sorry, you mistyped your Tribute.")
endif
endfunction
function PG takes integer Ph returns integer
local player p=null
if Ph==-1 then
return 0
elseif Ph==-30 then
return pV(udg_player01,R2I(GetCameraTargetPositionX()))
elseif Ph==-31 then
return pV(udg_player01,R2I(GetCameraTargetPositionY()))
elseif Ph==-40 then
return GetPlayerId(GetTriggerPlayer())
elseif Ph<-'d'then
set p=p2(udg_strings20[-(Ph+'d')],false)
if p==null then
return-0xF4240
else
return GetPlayerId(p)
endif
elseif Ph<0 then
return S2I(udg_strings20[-Ph])
else
return Ph
endif
endfunction
function PH takes player p3,integer Pi returns nothing
local integer cn=PG(udg_integers34[Pi])
local integer PI=PG(udg_integers35[Pi])
local integer Pj=PG(udg_integers36[Pi])
local integer PJ=PG(udg_integers37[Pi])
if cn==-0xF4240 or PI==-0xF4240 or Pj==-0xF4240 or PJ==-0xF4240 then
return
endif
if udg_integers36[Pi]!=-1 then
call CommandAI(p3,Pj,PJ)
endif
if udg_integers34[Pi]!=-1 then
call CommandAI(p3,cn,PI)
endif
call pu(p3,udg_strings19[Pi])
endfunction
function Pk takes integer Pi returns nothing
local integer i=0
loop
exitwhen i>=12
if(IsPlayerAlly(GetTriggerPlayer(),Player(i))or(IsPlayerObserver(GetTriggerPlayer())and udg_boolean04))and GetPlayerController(Player(i))==MAP_CONTROL_COMPUTER then
call PH(Player(i),Pi)
endif
set i=i+1
endloop
endfunction
function PK takes integer Ph returns integer
if Ph==-1 then
return 0
elseif Ph==-30 then
return pV(udg_player01,R2I(GetCameraTargetPositionX()))
elseif Ph==-31 then
return pV(udg_player01,R2I(GetCameraTargetPositionY()))
elseif Ph==-40 then
return GetPlayerId(udg_player01)
elseif Ph<-'d'then
return udg_integer27
elseif Ph<0 then
return udg_integer28
else
return Ph
endif
endfunction
function Pl takes player p3,integer Pi returns nothing
local integer cn=PK(udg_integers34[Pi])
local integer PI=PK(udg_integers35[Pi])
local integer Pj=PK(udg_integers36[Pi])
local integer PJ=PK(udg_integers37[Pi])
if udg_integers36[Pi]!=-1 then
call CommandAI(p3,Pj,PJ)
endif
if udg_integers34[Pi]!=-1 then
call CommandAI(p3,cn,PI)
endif
call pv(udg_strings19[Pi])
endfunction
function PL takes integer Pi returns nothing
local integer i=0
loop
exitwhen i>=12
if(IsPlayerAlly(udg_player01,Player(i))or(IsPlayerObserver(udg_player01)and udg_boolean04))and GetPlayerController(Player(i))==MAP_CONTROL_COMPUTER then
set udg_player02=Player(i)
call Pl(Player(i),Pi)
endif
set i=i+1
endloop
endfunction
function Pm takes player p3,integer Pi returns nothing
if udg_player02==Player(14)then
call PL(Pi)
else
call Pl(p3,Pi)
endif
set udg_boolean05=false
endfunction
function PM takes nothing returns integer
local integer i=0
loop
exitwhen i>=udg_integer24
if udg_strings13[i]==""or udg_strings13[i]==udg_strings20[2]then
if udg_strings14[i]==""or udg_strings14[i]==udg_strings20[3]then
exitwhen udg_strings15[i]==""or udg_strings15[i]==udg_strings20[4]
endif
endif
set i=i+1
endloop
if i>=udg_integer24 then
return-1
else
return i
endif
endfunction
function PB takes nothing returns nothing
local player p3=null
local string po=GetEventPlayerChatString()
local integer cn=0
call pN(po)
if udg_strings20[1]=="Help"then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"Commander Help")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"Here are the Commands for The Commander")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"ESC")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"-Starts dialog command")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"Cmd: Help")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"-Displays Help")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"Cmd: Board")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"-Displays Colorboard")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"Cmd: Chatter")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,"-Turns On/Off the Chat messages your allies will send you.")
call Kh(5.)
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Here are the Commands for Ally use")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) Trib (Amount) <G or L>")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-Using this command you can have your computer ally donate resources to you.")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) Cancel <All, Attack, Build, or Queue>")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-Cancels either All, Attack, Build or Queued Commands given so far.")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) Stop")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-Stops the current command.")
call Kh(15.)
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Here are some more Commands for Ally use")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) No <Attacks, Creep, or Players>")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-Stops the computer from attacking either Anything, Creeps, or Players.")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) Build (How Many) <A2A, A2G, G2A, or G2G>")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-This will cause the ally to make sure that they have that many of the certain unit type.")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) Attack <Here, Select, or (Enemy)>")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-Will cause that ally either to attack/guard the center of your current screen position or Selected Computer.")
call Kh(15.)
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Here are the Queue Commands")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) Que <Start or Restart>")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-Starts the Queued Commands or REstarts them.")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) Que <Pause or Unpause>")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-Pauses or Unpauses the Queued Commands.")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) Que Undo")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-Removes the last Queued Command.")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"Cmd: (Ally) Que Attack <Here or Select>")
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,15,"-Will Queue the Current Screen Position or Selected Unit, to be started later.")
return
endif
if udg_strings20[1]=="Board"then
call LeaderboardDisplay(udg_leaderboard01,not IsLeaderboardDisplayed(udg_leaderboard01))
return
endif
set p3=p2(udg_strings20[1],true)
if p3==null then
call ps("You have not specified a valid player.")
return
elseif p3!=Player(14)then
if GetPlayerController(p3)!=MAP_CONTROL_COMPUTER then
call ps("You have not specified a computer.")
return
elseif(not IsPlayerAlly(GetTriggerPlayer(),p3))and(not(IsPlayerObserver(GetTriggerPlayer())and udg_boolean04))then
call pu(p3,udg_string09)
return
endif
endif
if udg_strings20[2]=="Tribute"or udg_strings20[2]=="Trib"then
call PE(GetTriggerPlayer(),p3,udg_strings20[4],udg_strings20[3])
return
endif
set cn=PM()
if cn<0 then
call pu(p3,"I do not know that command.")
return
endif
if p3==Player(14)then
call Pk(cn)
else
call PH(p3,cn)
endif
endfunction
function Pn takes nothing returns nothing
loop
exitwhen not udg_boolean05
call Kh(2)
endloop
set udg_boolean05=true
set udg_player02=null
set udg_player01=GetTriggerPlayer()
call DialogDisplay(GetTriggerPlayer(),udg_dialog03,true)
endfunction
function PN takes nothing returns nothing
local button b=GetClickedButton()
local integer i=0
local dialog d=null
local integer cn=0
loop
if i>=udg_integer25 then
set udg_boolean05=false
return
endif
exitwhen b==udg_buttons02[i]
set i=i+1
endloop
set d=udg_dialogs02[i]
set cn=udg_integers41[i]
if d!=null then
set udg_integer26=cn
call DialogDisplay(udg_player01,d,true)
return
endif
call Pm(udg_player02,cn)
endfunction
function Po takes nothing returns nothing
local integer i=0
local button b=GetClickedButton()
loop
if i>=udg_integer30 then
set udg_boolean05=false
return
endif
exitwhen udg_buttons04[i]==b
set i=i+1
endloop
set udg_player02=Player(udg_integers42[i])
if udg_player02!=Player(14)and(not IsPlayerAlly(udg_player01,udg_player02))and(not(IsPlayerObserver(udg_player01)and udg_boolean04))then
call pv(udg_string09)
set udg_boolean05=false
return
endif
call DialogDisplay(udg_player01,udg_dialog04,true)
endfunction
function PO takes nothing returns nothing
local integer i=0
local button b=GetClickedButton()
loop
if i>=udg_integer31 then
set udg_boolean05=false
return
endif
exitwhen udg_buttons05[i]==b
set i=i+1
endloop
set udg_integer27=udg_integers43[i]
call Pm(udg_player02,udg_integer26)
endfunction
function Pp takes nothing returns nothing
local integer i=0
local button b=GetClickedButton()
loop
if i>=udg_integer32 then
set udg_boolean05=false
return
endif
exitwhen udg_buttons06[i]==b
set i=i+1
endloop
set udg_integer28=i
call Pm(udg_player02,udg_integer26)
endfunction
function PP takes nothing returns nothing
local button b=GetClickedButton()
if b==udg_button01 then
set udg_string06="G"
elseif b==udg_button02 then
set udg_string06="L"
else
set udg_boolean05=false
return
endif
call DialogDisplay(udg_player01,udg_dialog05,true)
endfunction
function Pq takes nothing returns nothing
local integer i=0
local button b=GetClickedButton()
loop
if i>=udg_integer29 then
set udg_boolean05=false
return
endif
exitwhen udg_buttons03[i]==b
set i=i+1
endloop
set udg_string07=I2S((i+1)*'d')
call PE(udg_player01,udg_player02,udg_string06,udg_string07)
set udg_boolean05=false
endfunction
function PQ takes string Pr,string PR,string Ps,integer Pt,integer PT,integer Pu,integer Pv,string PV,integer Pw,string PW,integer Px,string PX,integer Py,string PY returns nothing
set udg_strings13[udg_integer24]=Pr
set udg_strings14[udg_integer24]=PR
set udg_strings15[udg_integer24]=Ps
set udg_integers34[udg_integer24]=Pt
set udg_integers35[udg_integer24]=PT
set udg_integers36[udg_integer24]=Pu
set udg_integers37[udg_integer24]=Pv
set udg_strings16[udg_integer24]=PV
set udg_integers38[udg_integer24]=Pw
set udg_strings17[udg_integer24]=PW
set udg_integers39[udg_integer24]=Px
set udg_strings18[udg_integer24]=PX
set udg_integers40[udg_integer24]=Py
set udg_strings19[udg_integer24]=PY
set udg_integer24=udg_integer24+1
endfunction
function P3 takes dialog d returns nothing
call DialogAddButton(d,udg_string17,512)
endfunction
function P4 takes button b,integer cn,dialog d returns nothing
set udg_buttons02[udg_integer25]=b
set udg_integers41[udg_integer25]=cn
set udg_dialogs02[udg_integer25]=d
set udg_integer25=udg_integer25+1
endfunction
function P5 takes string s returns dialog
local dialog d=DialogCreate()
local trigger t=CreateTrigger()
if s==""then
call DialogSetMessage(d,udg_string14)
else
call DialogSetMessage(d,s)
endif
set udg_dialogs03[udg_integer33]=d
set udg_strings21[udg_integer33]=s
set udg_integer33=udg_integer33+1
call TriggerRegisterDialogEvent(t,d)
call TriggerAddAction(t,function PN)
return d
endfunction
function P6 takes string s returns dialog
local integer i=0
loop
exitwhen i>=udg_integer33
if udg_strings21[i]==s then
return udg_dialogs03[i]
endif
set i=i+1
endloop
return null
endfunction
function P7 takes nothing returns nothing
local trigger t=CreateTrigger()
local integer i=0
set udg_dialog03=DialogCreate()
call DialogSetMessage(udg_dialog03,udg_string10)
set udg_buttons04[udg_integer30]=DialogAddButton(udg_dialog03,udg_string18,65)
set udg_integers42[udg_integer30]=14
set udg_integer30=udg_integer30+1
loop
exitwhen i>11
if GetPlayerController(Player(i))==MAP_CONTROL_COMPUTER and GetPlayerSlotState(Player(i))==PLAYER_SLOT_STATE_PLAYING then
set udg_buttons04[udg_integer30]=DialogAddButton(udg_dialog03,pr(GetPlayerName(Player(i)),GetPlayerColor(Player(i))),IMinBJ(48+i,57))
set udg_integers42[udg_integer30]=i
set udg_integer30=udg_integer30+1
endif
set i=i+1
endloop
call P3(udg_dialog03)
call TriggerRegisterDialogEvent(t,udg_dialog03)
call TriggerAddAction(t,function Po)
endfunction
function P8 takes nothing returns nothing
local trigger t=CreateTrigger()
local integer i=0
set udg_dialog01=DialogCreate()
call DialogSetMessage(udg_dialog01,udg_string11)
loop
exitwhen i>=10
set udg_buttons06[udg_integer32]=DialogAddButton(udg_dialog01,I2S(i),IMinBJ(48+i,57))
set udg_integer32=udg_integer32+1
set i=i+1
endloop
call P3(udg_dialog01)
call TriggerRegisterDialogEvent(t,udg_dialog01)
call TriggerAddAction(t,function Pp)
endfunction
function P9 takes nothing returns nothing
local trigger t=CreateTrigger()
local integer i=0
set udg_dialog02=DialogCreate()
call DialogSetMessage(udg_dialog02,udg_string12)
loop
exitwhen i>11
if not IsPlayerObserver(Player(i))and GetPlayerSlotState(Player(i))==PLAYER_SLOT_STATE_PLAYING then
set udg_buttons05[udg_integer31]=DialogAddButton(udg_dialog02,pr(GetPlayerName(Player(i)),GetPlayerColor(Player(i))),IMinBJ(48+i,57))
set udg_integers43[udg_integer31]=i
set udg_integer31=udg_integer31+1
endif
set i=i+1
endloop
call P3(udg_dialog02)
call TriggerRegisterDialogEvent(t,udg_dialog02)
call TriggerAddAction(t,function PO)
endfunction
function qa takes integer i returns nothing
local dialog qA=null
local dialog qb=null
local string qB=""
if udg_strings18[i]!=""then
if udg_strings18[i]=="#"then
set qb=udg_dialog01
elseif udg_strings18[i]=="e"then
set qb=udg_dialog02
else
set qB=udg_strings16[i]+" "+udg_strings17[i]
set qA=P6(qB)
if qA!=null then
call P4(DialogAddButton(qA,udg_strings18[i],udg_integers40[i]),i,qb)
return
endif
set qA=P5(qB)
call P4(DialogAddButton(qA,udg_strings18[i],udg_integers40[i]),i,qb)
set qb=qA
endif
endif
if udg_strings17[i]!=""then
if udg_strings17[i]=="#"then
set qb=udg_dialog01
elseif udg_strings17[i]=="e"then
set qb=udg_dialog02
else
set qB=udg_strings16[i]
set qA=P6(qB)
if qA!=null then
call P4(DialogAddButton(qA,udg_strings17[i],udg_integers39[i]),i,qb)
return
endif
set qA=P5(qB)
call P4(DialogAddButton(qA,udg_strings17[i],udg_integers39[i]),i,qb)
set qb=qA
endif
endif
if udg_strings16[i]!=""then
set qB=""
set qA=P6(qB)
if qA!=null then
call P4(DialogAddButton(qA,udg_strings16[i],udg_integers38[i]),i,qb)
return
endif
set qA=P5(qB)
call P4(DialogAddButton(qA,udg_strings16[i],udg_integers38[i]),i,qb)
endif
endfunction
function qc takes nothing returns nothing
local integer i=0
loop
exitwhen i>=udg_integer33
call P3(udg_dialogs03[i])
set i=i+1
endloop
endfunction
function qC takes nothing returns nothing
local integer i=0
loop
exitwhen i>=udg_integer24
call qa(i)
set i=i+1
endloop
set udg_dialog04=P6("")
endfunction
function qd takes nothing returns nothing
local dialog d=DialogCreate()
local trigger t=CreateTrigger()
local integer i=0
call DialogSetMessage(d,udg_string15)
set udg_button01=DialogAddButton(d,udg_string19,71)
set udg_button02=DialogAddButton(d,udg_string20,76)
call P3(d)
call TriggerRegisterDialogEvent(t,d)
call TriggerAddAction(t,function PP)
call P4(DialogAddButton(udg_dialog04,udg_string21,84),0,d)
set udg_dialog05=DialogCreate()
call DialogSetMessage(udg_dialog05,udg_string16)
loop
exitwhen i>=10
set udg_buttons03[i]=DialogAddButton(udg_dialog05,I2S('d'*(i+1)),IMinBJ(48+i+1,57))
set i=i+1
endloop
call P3(udg_dialog05)
set udg_integer29=i
set t=CreateTrigger()
call TriggerRegisterDialogEvent(t,udg_dialog05)
call TriggerAddAction(t,function Pq)
endfunction
function qe takes nothing returns nothing
local integer i=0
local trigger qE=CreateTrigger()
local trigger qf=CreateTrigger()
local timer t=CreateTimer()
loop
exitwhen i>=12
call TriggerRegisterPlayerChatEvent(qE,Player(i),udg_string05,false)
call TriggerRegisterPlayerEvent(qf,Player(i),EVENT_PLAYER_END_CINEMATIC)
set i=i+1
endloop
call TriggerAddAction(qE,function PB)
call TriggerAddAction(qf,function Pn)
if udg_string08=="Deutsch"then
call PQ("Chatter","","",50,-1,-1,-1,"AI Einstellungen",0,"Chatten",67,"",0,"Computer Chatten wurde an/ausgeschaltet.")
call PQ("Debug","","",51,-1,-1,-1,"",0,"",0,"",0,"Debug Modus wurde an/ausgeschaltet.")
call PQ("Balance","","",52,-1,-1,-1,"",0,"",0,"",0,"Balance Modus wurde an/ausgecshaltet.")
call PQ("Show","Strategy","",60,-1,-1,-1,"Zeige",87,"Momentane Strategie",67,"",0,"Ich zeige momentane Strategie an.")
call PQ("Show","Stratnames","",61,-1,-1,-1,"Zeige",87,"Strategienamen",83,"",0,"Ich zeige alle Strategienamen an.")
call PQ("Change","Strategy","",70,-4,-1,-1,"Aendere Strategie",72,"#",0,"",0,"Ich aendere die momentane Strategie.")
call PQ("Cancel","All","",0,-1,-1,-1,"Befehle loeschen",67,"Alle Befehle",79,"",0,"Ich habe alle Befehle geloescht, die du mir bis jetzt gegeben hast.")
call PQ("Cancel","Attack","",2,-1,-1,-1,"Befehle loeschen",67,"Angriffsbefehle",65,"",0,"Ich habe alle Angriffsbefehle geloescht, die du mir bis jetzt gegeben hast.")
call PQ("Cancel","Build","",1,-1,-1,-1,"Befehle loeschen",67,"Baubefehle",66,"",0,"Ich habe alle Baubefehle geloescht, die du mir bis jetzt gegeben hast.")
call PQ("Cancel","Queue","",30,-1,-1,-1,"Befehle loeschen",67,"Queuebefehle",81,"",0,"Ich habe alle Queuebefehle geloescht, die du mir bis jetzt gegeben hast.")
call PQ("Cancel","Que","",30,-1,-1,-1,"",0,"",0,"",0,"Ich habe alle Queuebefehle geloescht, die du mir bis jetzt gegeben hast.")
call PQ("Stop","","",10,-1,-1,-1,"Stop",83,"",0,"",0,"Ich breche den momentanen Angriff ab.")
call PQ("No","Attacks","",11,-1,-1,-1,"Einschraenken",82,"Kein Angriff",65,"",0,"Ich greife nichts an.")
call PQ("No","Creep","",14,-1,-1,-1,"Einschraenken",82,"Keine Creepangriffe",67,"",0,"Ich greife keine Creeps an.")
call PQ("No","Players","",15,-1,-1,-1,"Einschraenken",82,"Keine Feindangriffe",69,"",0,"Ich greife keine Feinde an.")
call PQ("Build","A2a","",20,-4,-1,-1,"Bauen",66,"Luft-Luft",65,"#",0,"Ich baue Luft-Luft-Einheiten.")
call PQ("Build","A2A","",20,-4,-1,-1,"",0,"",0,"",0,"Ich baue Luft-Luft-Einheiten.")
call PQ("Build","A2g","",21,-4,-1,-1,"Bauen",66,"Luft-Boden",73,"#",0,"Ich baue Luft-Boden-Einheiten.")
call PQ("Build","A2G","",21,-4,-1,-1,"",0,"",0,"",0,"Ich baue Luft-Boden-Einheiten.")
call PQ("Build","G2a","",22,-4,-1,-1,"Bauen",66,"Boden-Luft",82,"#",0,"Ich baue Boden-Luft-Einheiten.")
call PQ("Build","G2A","",22,-4,-1,-1,"",0,"",0,"",0,"Ich baue Boden-Luft-Einheiten.")
call PQ("Build","G2g","",23,-4,-1,-1,"Bauen",66,"Boden-Boden",71,"#",0,"Ich baue Boden-Boden-Einheiten.")
call PQ("Build","G2G","",23,-4,-1,-1,"",0,"",0,"",0,"Ich baue Boden-Boden-Einheiten.")
call PQ("Build","Farms","",24,-4,-1,-1,"Bauen",66,"Farmen",70,"#",0,"Ich baue Farmen.")
call PQ("Build","Towers","",25,-4,-1,-1,"Bauen",66,"Tuerme",84,"#",0,"Ich baue Tuerme.")
call PQ("Attack","Here","",13,0,-30,-31,"Angriff",65,"Bildschirmposition",67,"",0,"Ich greife an/verteidige die momentane Bildschirmposition.")
call PQ("Attack","Select","",16,-40,-1,-1,"Angriff",65,"Gewaehlte Einheit",83,"",0,"Ich greife an/verteidige die gewaehlte Einheit.")
call PQ("Attack","Towerrush","",17,-1,-1,-1,"Angriff",65,"Towerrush (Nur Orks)",84,"",0,"")
call PQ("Attack","","",12,-'g',-1,-1,"Angriff",65,"Feind",69,"e",0,"Ich greife an/verteidige den gewaehlten Spieler.")
call PQ("","Start","",33,-1,-1,-1,"Queue",81,"Start",83,"",0,"Ich habe die Befehlsqueue gestartet / erneut gestartet.")
call PQ("","Restart","",33,-1,-1,-1,"",0,"",0,"",0,"Ich habe die Befehlsqueue gestartet / erneut gestartet.")
call PQ("","Pause","",34,-1,-1,-1,"Queue",81,"Pause",80,"",0,"Ich habe die Befehlsqueue angehalten.")
call PQ("","Unpause","",35,-1,-1,-1,"Queue",81,"Ende Pause",78,"",0,"Ich habe die Befehlsqueue weiterlaufen lassen.")
call PQ("","Undo","",36,-1,-1,-1,"Queue",81,"Rueckgaengig",85,"",0,"Ich habe den letzten Befehl in der Befehlsqueue geloescht.")
call PQ("","Attack","Here",31,-1,-30,-31,"Queue",81,"Bildschirmposition angreifen",65,"",0,"Ich habe den Angriff/die Verteidigung der momentanen Bildschirmposition in die Queue hinzugefuegt.")
call PQ("","Attack","Select",32,-40,-1,-1,"Queue",81,"Gewaehlte Einheit angreifen",84,"",0,"Ich habe den Angriff/die Verteidigung der gewaehlten Einheit in die Queue hinzugefuegt.")
call PQ("No","Stratchange","",53,-1,-1,-1,"Einschraenken",82,"Kein Strategiewechsel",83,"",0,"Ich habe den automatischen Strategiewechsel an/ausgeschaltet.")
call PQ("Language","English","",71,0,-1,-1,"AI Einstellungen",0,"Sprache",76,"English",69,"Set language of AI to English.")
call PQ("Language","Deutsch","",71,1,-1,-1,"AI Einstellungen",0,"Sprache",76,"Deutsch",68,"AI Sprache ist jetzt Deutsch.")
call PQ("Language","Svenska","",71,2,-1,-1,"AI Einstellungen",0,"Sprache",76,"Svenska",83,"AI Sprak andrat till Svenska.")
call PQ("Language","Francais","",71,3,-1,-1,"AI Einstellungen",0,"Sprache",76,"Francais",70,"Langue de l'IA est maintenant Francais.")
elseif udg_string08=="Swedish"then
call PQ("Chatter","","",50,-1,-1,-1,"AI Installningar",0,"Chat",67,"",0,"Stangde av / satte pa dator chat.")
call PQ("Debug","","",51,-1,-1,-1,"",0,"",0,"",0,"Stangde av / satte pa felsokningsmedelande.")
call PQ("Balance","","",52,-1,-1,-1,"",0,"",0,"",0,"Stangde av / satte pa balanseringslage.")
call PQ("Show","Strategy","",60,-1,-1,-1,"Visa",87,"Nuvarande strategi",67,"",0,"Visar nuvarande strategi.")
call PQ("Show","Stratnames","",61,-1,-1,-1,"Visa",87,"Strateginamn",83,"",0,"Visar alla strateginamn.")
call PQ("Change","Strategy","",70,-4,-1,-1,"Byt strategi",72,"#",0,"",0,"Byter strategi.")
call PQ("Cancel","All","",0,-1,-1,-1,"Avbryt Order",67,"Alla order",79,"",0,"Jag har avbrutit alla kommando du gett mig hittills.")
call PQ("Cancel","Attack","",2,-1,-1,-1,"Avbryt Order",67,"Attack Order",65,"",0,"Jag har avbrutit alla attack order du gett mig hittills.")
call PQ("Cancel","Build","",1,-1,-1,-1,"Avbryt Order",67,"Bygg Order",66,"",0,"Jag har avbrutit alla bygg order du gett hittills.")
call PQ("Cancel","Queue","",30,-1,-1,-1,"Avbryt Order",67,"Foljd",81,"",0,"Jag har avbrutit alla foljdkommandon du gett mig hittills.")
call PQ("Cancel","Que","",30,-1,-1,-1,"",0,"",0,"",0,"Jag har avbrutit alla foljdkommando du gett mig hittills.")
call PQ("Stop","","",10,-1,-1,-1,"Stopp",83,"",0,"",0,"Jag avbryter nuvarande anfall.")
call PQ("No","Attacks","",11,-1,-1,-1,"Begransa",82,"Inga anfall",65,"",0,"Jag kommer inte anfalla nagot.")
call PQ("No","Creep","",14,-1,-1,-1,"Begransa",82,"Inga creepattacker",67,"",0,"Jag kommer inte anfalla creeps.")
call PQ("No","Players","",15,-1,-1,-1,"Begransa",82,"Inga fiendeanfall",69,"",0,"Jag kommer inte anfalla fienden.")
call PQ("Build","A2a","",20,-4,-1,-1,"Bygg",66,"Luft mot. Luft",65,"#",0,"Jag kommer bygga luft- mot luftenheter nu.")
call PQ("Build","A2A","",20,-4,-1,-1,"",0,"",0,"",0,"Jag kommer bygga luft- mot luftenheter nu.")
call PQ("Build","A2g","",21,-4,-1,-1,"Bygg",66,"Luft mot. Mark",73,"#",0,"Jag kommer bygga luft- mot markenheter nu.")
call PQ("Build","A2G","",21,-4,-1,-1,"",0,"",0,"",0,"Jag kommer bygga luft- mot markenheter nu.")
call PQ("Build","G2a","",22,-4,-1,-1,"Bygg",66,"Mark mot. Luft",82,"#",0,"Jag kommer bygga mark- mot luftenheter nu.")
call PQ("Build","G2A","",22,-4,-1,-1,"",0,"",0,"",0,"Jag kommer bygga mark- mot luftenheter nu.")
call PQ("Build","G2g","",23,-4,-1,-1,"Bygg",66,"Mark mot. Mark",71,"#",0,"Jag kommer bygga mark- mot markenheter nu.")
call PQ("Build","G2G","",23,-4,-1,-1,"",0,"",0,"",0,"Jag kommer bygga mark- mot markenheter nu.")
call PQ("Build","Farms","",24,-4,-1,-1,"Bygg",66,"Farms",70,"#",0,"Jag kommer bygga farms nu.")
call PQ("Build","Towers","",25,-4,-1,-1,"Bygg",66,"Torn",84,"#",0,"Jag kommer bygga torn nu.")
call PQ("Attack","Here","",13,0,-30,-31,"Anfall",65,"Nuvarande bild",67,"",0,"Jag kommer anfalla/vakta nuvarande position av bilden.")
call PQ("Attack","Select","",16,-40,-1,-1,"Anfall",65,"Vald enhet",83,"",0,"Jag kommer anfalla/vakta den aktuellt valda enheten.")
call PQ("Attack","Towerrush","",17,-1,-1,-1,"Anfall",65,"Towerrush (Orc only)",84,"",0,"")
call PQ("Attack","","",12,-'g',-1,-1,"Anfall",65,"Spelare",69,"e",0,"Jag kommer anfalla/vakta den valda spelaren.")
call PQ("","Start","",33,-1,-1,-1,"Foljd",81,"Starta/Starta om",83,"",0,"Jag har startat eller startat om dina foljdkommando.")
call PQ("","Restart","",33,-1,-1,-1,"",0,"",0,"",0,"Jag har startat eller startat om dina foljdkommando.")
call PQ("","Pause","",34,-1,-1,-1,"Foljd",81,"Paus",80,"",0,"Jag har pausat dina foljdkommando.")
call PQ("","Unpause","",35,-1,-1,-1,"Foljd",81,"Fortsatt",78,"",0,"Jag har fortsatt med dina foljdkommandon.")
call PQ("","Undo","",36,-1,-1,-1,"Foljd",81,"Angra",85,"",0,"Jag har tagit bort ditt senaste foljdkommando.")
call PQ("","Attack","Here",31,-1,-30,-31,"Foljd",81,"Anfall bild",65,"",0,"Jag har foljdlagt en order att anfalla/vakta nuvarande bild.")
call PQ("","Attack","Select",32,-40,-1,-1,"Foljd",81,"Anfall vald",84,"",0,"Jag har foljdlagt en order att anfalla/vakta valda enheten.")
call PQ("No","Stratchange","",53,-1,-1,-1,"Begransa",82,"Inget strategibyte",83,"",0,"Stangt av / satt pa automatiskt strategibyte.")
call PQ("Language","English","",71,0,-1,-1,"AI Installningar",0,"Sprak",76,"English",69,"Set language of AI to English.")
call PQ("Language","Deutsch","",71,1,-1,-1,"AI Installningar",0,"Sprak",76,"Deutsch",68,"AI Sprache ist jetzt Deutsch.")
call PQ("Language","Svenska","",71,2,-1,-1,"AI Installningar",0,"Sprak",76,"Svenska",83,"AI Sprak andrat till Svenska.")
call PQ("Language","Francais","",71,3,-1,-1,"AI Installningar",0,"Sprak",76,"Francais",70,"Langue de l'IA est maintenant Francais.")
elseif udg_string08=="French"then
call PQ("Chatter","","",50,-1,-1,-1,"Configuration de l'IA",0,"Discussion",67,"",0,"Permettre/Proscrire la discussion avec l'ordinateur.")
call PQ("Debug","","",51,-1,-1,-1,"",0,"",0,"",0,"Permettre/Proscrire le mode debogger .")
call PQ("Show","Strategy","",60,-1,-1,-1,"Montrer",87,"Strategie actuelle",67,"",0,"Montrer la strategie actuelle.")
call PQ("Show","Stratnames","",61,-1,-1,-1,"Montrer",87,"Noms des strategies",83,"",0,"Montrer tous les noms des strategies.")
call PQ("Change","Strategy","",70,-4,-1,-1,"Changer la strategie",72,"#",0,"",0,"Changer la strategie actuelle.")
call PQ("Cancel","All","",0,-1,-1,-1,"Annuler les ordres",67,"tous les ordres",79,"",0,"J'ai annule tous les ordres que tu m'as donne auparavant.")
call PQ("Cancel","Attack","",2,-1,-1,-1,"Annuler les ordres",67,"Les ordres d'attaques",65,"",0,"J'ai annule tous les ordres d'attaque que tu m'as donne auparavant.")
call PQ("Cancel","Build","",1,-1,-1,-1,"Annuler les ordres",67,"les ordres de construction",66,"",0,"J'ai annule tous les ordres de construction que tu m'as donne auparavant.")
call PQ("Cancel","Queue","",30,-1,-1,-1,"Annuler les ordres",67,"file d'attente",81,"",0,"J'ai annule tous les ordres dans la file d'attente que tu m'as donne auparavant.")
call PQ("Cancel","Que","",30,-1,-1,-1,"",0,"",0,"",0,"J'ai annule tous les ordres dans la file d'attente que tu m'as donne auparavant.")
call PQ("Stop","","",10,-1,-1,-1,"Stop",83,"",0,"",0,"Je vais annuler toutes attaques actuelles.")
call PQ("No","Attacks","",11,-1,-1,-1,"Restrictions",82,"Pas d'attaques",65,"",0,"Je vais attaqer personne.")
call PQ("No","Creep","",14,-1,-1,-1,"Restrictions",82,"Pas d'attaques de creep",67,"",0,"Je ne vais pas attquer de creep.")
call PQ("No","Players","",15,-1,-1,-1,"Restrictions",82,"Pas d'attaques contre des ennemis",69,"",0,"Je ne vais pas attaquer d'ennemis.")
call PQ("Build","A2a","",20,-4,-1,-1,"Construire",66,"Air vs. Air",65,"#",0,"Je vais creer des unites air/air maintenant.")
call PQ("Build","A2A","",20,-4,-1,-1,"",0,"",0,"",0,"Je vais creer des unites air/air maintenant.")
call PQ("Build","A2g","",21,-4,-1,-1,"Construire",66,"Air vs. sol",73,"#",0,"Je vais creer des unites air/sol maintenant.")
call PQ("Build","A2G","",21,-4,-1,-1,"",0,"",0,"",0,"Je vais creer des unites air/sol maintenant.")
call PQ("Build","G2a","",22,-4,-1,-1,"Construire",66,"sol vs. Air",82,"#",0,"Je vais creer des unites sol/air maintenant.")
call PQ("Build","G2A","",22,-4,-1,-1,"",0,"",0,"",0,"Je vais creer des unites sol/air maintenant.")
call PQ("Build","G2g","",23,-4,-1,-1,"Construire",66,"sol vs. sol",71,"#",0,"Je vais creer des unites sol/sol maintenant.")
call PQ("Build","G2G","",23,-4,-1,-1,"",0,"",0,"",0,"Je vais creer des unites sol/sol maintenant.")
call PQ("Build","Farms","",24,-4,-1,-1,"Construire",66,"Fermes",70,"#",0,"Je vais creer des fermes maintenant.")
call PQ("Build","Towers","",25,-4,-1,-1,"Construire",66,"Tourelles",84,"#",0,"Je vais creer des tourelles maintenant.")
call PQ("Attack","Here","",13,0,-30,-31,"Attaquer",65,"Position actuelle",67,"",0,"Je vais attaquer/garder a la position actuelle de l'ecran.")
call PQ("Attack","Select","",16,-40,-1,-1,"Attaquer",65,"L'unite selectionnee",83,"",0,"Je vais attaquer/garder cette unite selectionnee actuellement.")
call PQ("Attack","Towerrush","",17,-1,-1,-1,"Attaquer",65,"Towerrush (Orc seulement)",84,"",0,"")
call PQ("Attack","","",12,-'g',-1,-1,"Attaquer",65,"Ennemi",69,"e",0,"Je vais attaquer/garder ce joueur specifique.")
call PQ("","Start","",33,-1,-1,-1,"file d'attente",81,"Commencer/Recommencer",83,"",0,"J'ai commence ou recommence tes ordres dans la file d'attente.")
call PQ("","Restart","",33,-1,-1,-1,"",0,"",0,"",0,"J'ai commence ou recommence tes ordres dans la file d'attente.")
call PQ("","Pause","",34,-1,-1,-1,"file d'attente",81,"Pause",80,"",0,"J'ai mis en veille vos ordres dans la file d'attente.")
call PQ("","Unpause","",35,-1,-1,-1,"file d'attente",81,"Reprise",78,"",0,"J'ai repris vos ordres dans la file d'attente.")
call PQ("","Undo","",36,-1,-1,-1,"file d'attente",81,"Annuler",85,"",0,"J'ai supprime vos derniers ordres dans la file d'attente.")
call PQ("","Attack","Here",31,-1,-30,-31,"file d'attente",81,"Attaquer ici",65,"",0,"J'ai mis dans la file d'attente l'attaque/la protection du lieu de l'ecran actuel.")
call PQ("","Attack","Select",32,-40,-1,-1,"file d'attente",81,"Attaque choisie",84,"",0,"J'ai mis dans la file d'attente l'unite choisir a attaquer/garder.")
call PQ("No","Stratchange","",53,-1,-1,-1,"Restrictions",82,"Pas de changement de strategie",83,"",0,"Permettre/Proscire les changements automatiques de strategie.")
call PQ("Language","English","",71,0,-1,-1,"Configuration de l'IA",0,"Langue",76,"English",69,"Set language of AI to English.")
call PQ("Language","Deutsch","",71,1,-1,-1,"Configuration de l'IA",0,"Langue",76,"Deutsch",68,"AI Sprache ist jetzt Deutsch.")
call PQ("Language","Svenska","",71,2,-1,-1,"Configuration de l'IA",0,"Langue",76,"Svenska",83,"AI Sprak andrat till Svenska.")
call PQ("Language","Francais","",71,3,-1,-1,"Configuration de l'IA",0,"Langue",76,"Francais",70,"Langue de l'IA est maintenant Francais.")
else
call PQ("Chatter","","",50,-1,-1,-1,"AI Setting",0,"Chatter",67,"",0,"Turned On/Off Computer Chatter.")
call PQ("Debug","","",51,-1,-1,-1,"",0,"",0,"",0,"Turned On/Off Debug Mode.")
call PQ("Balance","","",52,-1,-1,-1,"",0,"",0,"",0,"Turned On/Off Balancing Mode.")
call PQ("Show","Strategy","",60,-1,-1,-1,"Show",87,"Current Strategy",67,"",0,"Showing current strategy.")
call PQ("Show","Stratnames","",61,-1,-1,-1,"Show",87,"Strategy names",83,"",0,"Showing all strategy names.")
call PQ("Change","Strategy","",70,-4,-1,-1,"Change Strategy",72,"#",0,"",0,"Changes current strategy.")
call PQ("Cancel","All","",0,-1,-1,-1,"Cancel Orders",67,"All Orders",79,"",0,"I have Canceled All commands you have given me so far.")
call PQ("Cancel","Attack","",2,-1,-1,-1,"Cancel Orders",67,"Attack Orders",65,"",0,"I have Canceled all Attack commands you have given me so far.")
call PQ("Cancel","Build","",1,-1,-1,-1,"Cancel Orders",67,"Build Orders",66,"",0,"I have Canceled all Build commands you have given me so far.")
call PQ("Cancel","Queue","",30,-1,-1,-1,"Cancel Orders",67,"Queue",81,"",0,"I have Canceled all Queued commands you have given me so far.")
call PQ("Cancel","Que","",30,-1,-1,-1,"",0,"",0,"",0,"I have Canceled all Queued commands you have given me so far.")
call PQ("Stop","","",10,-1,-1,-1,"Stop",83,"",0,"",0,"I will Stop any current Attack.")
call PQ("No","Attacks","",11,-1,-1,-1,"Restrict",82,"No Attacks",65,"",0,"I will not Attack Anything.")
call PQ("No","Creep","",14,-1,-1,-1,"Restrict",82,"No Creep Attacks",67,"",0,"I will not Attack Creeps.")
call PQ("No","Players","",15,-1,-1,-1,"Restrict",82,"No Enemy Attacks",69,"",0,"I will not Attack Enemies.")
call PQ("Build","A2a","",20,-4,-1,-1,"Build",66,"Air vs. Air",65,"#",0,"I will build Air2Air units now.")
call PQ("Build","A2A","",20,-4,-1,-1,"",0,"",0,"",0,"I will build Air2Air units now.")
call PQ("Build","A2g","",21,-4,-1,-1,"Build",66,"Air vs. Ground",73,"#",0,"I will build Air2Ground units now.")
call PQ("Build","A2G","",21,-4,-1,-1,"",0,"",0,"",0,"I will build Air2Ground units now.")
call PQ("Build","G2a","",22,-4,-1,-1,"Build",66,"Ground vs. Air",82,"#",0,"I will build Ground2Air units now.")
call PQ("Build","G2A","",22,-4,-1,-1,"",0,"",0,"",0,"I will build Ground2Air units now.")
call PQ("Build","G2g","",23,-4,-1,-1,"Build",66,"Ground vs. Ground",71,"#",0,"I will build Ground2Ground units now.")
call PQ("Build","G2G","",23,-4,-1,-1,"",0,"",0,"",0,"I will build Ground2Ground units now.")
call PQ("Build","Farms","",24,-4,-1,-1,"Build",66,"Farms",70,"#",0,"I will build farms now.")
call PQ("Build","Towers","",25,-4,-1,-1,"Build",66,"Towers",84,"#",0,"I will build towers now.")
call PQ("Attack","Here","",13,0,-30,-31,"Attack",65,"Current screen",67,"",0,"I will Attack/Guard the location of current screen position.")
call PQ("Attack","Select","",16,-40,-1,-1,"Attack",65,"Selected unit",83,"",0,"I will Attack/Guard the currently selected unit.")
call PQ("Attack","Towerrush","",17,-1,-1,-1,"Attack",65,"Towerrush (Orc only)",84,"",0,"")
call PQ("Attack","","",12,-'g',-1,-1,"Attack",65,"Enemy",69,"e",0,"I will Attack/Guard the specified player.")
call PQ("","Start","",33,-1,-1,-1,"Queue",81,"Start/Restart",83,"",0,"I have Started or Restarted your Queued commands.")
call PQ("","Restart","",33,-1,-1,-1,"",0,"",0,"",0,"I have Started or Restarted your Queued commands.")
call PQ("","Pause","",34,-1,-1,-1,"Queue",81,"Pause",80,"",0,"I have Paused your Queued commands.")
call PQ("","Unpause","",35,-1,-1,-1,"Queue",81,"Unpause",78,"",0,"I have Unpaused your Queued commands.")
call PQ("","Undo","",36,-1,-1,-1,"Queue",81,"Undo",85,"",0,"I have Removed your last Queued command.")
call PQ("","Attack","Here",31,-1,-30,-31,"Queue",81,"Attack Here",65,"",0,"I have Queued the Attack/Guard location of current screen position.")
call PQ("","Attack","Select",32,-40,-1,-1,"Queue",81,"Attack Select",84,"",0,"I have Queued the currently selected unit to Attack/Guard.")
call PQ("No","Stratchange","",53,-1,-1,-1,"Restrict",82,"No Strategy Change",83,"",0,"Turned On/Off Automatic Strategy Change.")
call PQ("Language","English","",71,0,-1,-1,"AI Setting",0,"Language",76,"English",69,"Set language of AI to English.")
call PQ("Language","Deutsch","",71,1,-1,-1,"AI Setting",0,"Language",76,"Deutsch",68,"AI Sprache ist jetzt Deutsch.")
call PQ("Language","Svenska","",71,2,-1,-1,"AI Setting",0,"Language",76,"Svenska",83,"AI Sprak andrat till Svenska.")
call PQ("Language","Francais","",71,3,-1,-1,"AI Setting",0,"Language",76,"Francais",70,"Langue de l'IA est maintenant Francais.")
endif
call P7()
call P8()
call P9()
call qC()
call qd()
call qc()
call TimerStart(t,3.,false,function PA)
endfunction
function qF takes integer qg,integer qG returns nothing
local integer i=0
loop
exitwhen i>11
if GetPlayerController(Player(i))==MAP_CONTROL_COMPUTER then
call CommandAI(Player(i),qg,qG)
endif
set i=i+1
endloop
endfunction
function qh takes integer qH returns integer
local integer i=qH+1
loop
exitwhen i>11
if GetPlayerController(Player(i))==MAP_CONTROL_USER and not IsPlayerObserver(Player(i))and GetPlayerSlotState(Player(i))==PLAYER_SLOT_STATE_PLAYING then
return i
endif
set i=i+1
endloop
return-1
endfunction
function qi takes nothing returns integer
return qh(-1)
endfunction
function qI takes player p returns boolean
local integer q=0
loop
exitwhen q>11
if IsPlayerAlly(Player(q),p)and GetPlayerController(Player(q))==MAP_CONTROL_COMPUTER then
return true
endif
set q=q+1
endloop
return false
endfunction
function qj takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function qJ takes nothing returns nothing
local player p=GetEnumPlayer()
local group g=null
if GetPlayerController(p)!=MAP_CONTROL_USER then
return
endif
set g=CreateGroup()
call GroupEnumUnitsOfPlayer(g,p,null)
call ForGroup(g,function qj)
call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,0)
call SetPlayerState(p,PLAYER_STATE_RESOURCE_LUMBER,0)
endfunction
function qk takes nothing returns nothing
local button cb=GetClickedButton()
if cb!=udg_button05 then
call qe()
if cb==udg_button04 then
call ForForce(bj_FORCE_ALL_PLAYERS,function qJ)
call qF(53,0)
endif
endif
call DialogDestroy(udg_dialog06)
set udg_dialog06=null
call DestroyTrigger(udg_trigger20)
set udg_trigger20=null
endfunction
function qK takes nothing returns nothing
local integer ql=qi()
local integer p=ql
loop
if p==-1 then
return
endif
exitwhen qI(Player(p))
set p=qh(p)
endloop
set udg_dialog06=DialogCreate()
call DialogSetMessage(udg_dialog06,udg_string13)
set udg_button03=DialogAddButton(udg_dialog06,udg_string22,67)
set udg_button04=DialogAddButton(udg_dialog06,udg_string23,79)
set udg_button05=DialogAddButton(udg_dialog06,udg_string24,78)
set udg_trigger20=CreateTrigger()
call TriggerRegisterDialogEvent(udg_trigger20,udg_dialog06)
call TriggerAddAction(udg_trigger20,function qk)
call DialogDisplay(Player(ql),udg_dialog06,true)
endfunction
function qN takes nothing returns nothing
local button b=GetClickedButton()
if b==udg_button07 then
set udg_string08="Deutsch"
call qF(71,1)
set udg_string09="Ich werde dir nie gehorchen."
set udg_string10="Waehle einen Verbuendeten"
set udg_string11="Zahl waehlen"
set udg_string12="Waehle einen Spieler"
set udg_string13="Waehle den Spielmodus"
set udg_string14="Befehl waehlen"
set udg_string15="Waehle die Tributart"
set udg_string16="Waehle die Tributmenge"
set udg_string17="Abbrechen"
set udg_string18="Alle"
set udg_string19="Gold"
set udg_string20="Holz"
set udg_string21="Tribut"
set udg_string22="PB"
set udg_string23="Nur Computer"
set udg_string24="Kein Commander"
elseif b==udg_button08 then
set udg_string08="Swedish"
call qF(71,2)
set udg_string09="jag kommer aldrig lyda dig."
set udg_string10="Valj din lierade"
set udg_string11="Valj nummer"
set udg_string12="Valj spelare"
set udg_string13="Valj speltyp"
set udg_string14="Valj kommando"
set udg_string15="Valj beskattningsmetod"
set udg_string16="Valj skattemangd"
set udg_string17="Avbryt"
set udg_string18="Alla"
set udg_string19="Guld"
set udg_string20="Tra"
set udg_string21="Skatt"
set udg_string22="PB"
set udg_string23="Endast datorer"
set udg_string24="Ingen Commander"
elseif b==udg_button09 then
set udg_string08="French"
call qF(71,3)
set udg_string10="Choisir un allie."
set udg_string11="Choisir un nombre."
set udg_string12="Choisir un joueur."
set udg_string13="Choisir un type de partie."
set udg_string14="Choisissez la Commande."
set udg_string15="Choisir le type de tributs."
set udg_string16="Choisirla quantite de tributs."
set udg_string17="Annuler."
set udg_string18="Tout."
set udg_string19="Or."
set udg_string20="Bois."
set udg_string21="Tributs."
set udg_string22="Commandant."
set udg_string23="Seulement des ordinateurs"
set udg_string24="Pas de commandant."
else
set udg_string08="English"
call qF(71,0)
set udg_string09="I will never obey you."
set udg_string10="Choose Ally"
set udg_string11="Choose Number"
set udg_string12="Choose Player"
set udg_string13="Choose Game Type"
set udg_string14="Choose Command"
set udg_string15="Choose Tribute Type"
set udg_string16="Choose Tribute Amount"
set udg_string17="Cancel"
set udg_string18="All"
set udg_string19="Gold"
set udg_string20="Lumber"
set udg_string21="Tribute"
set udg_string22="PB"
set udg_string23="Computers only"
set udg_string24="No Commander"
endif
call qK()
endfunction
function qo takes nothing returns nothing
local integer ql=qi()
if ql==-1 then
return
endif
set udg_dialog07=DialogCreate()
call DialogSetMessage(udg_dialog07,"Choose Language")
set udg_button06=DialogAddButton(udg_dialog07,"English",69)
set udg_button07=DialogAddButton(udg_dialog07,"Deutsch",68)
set udg_button08=DialogAddButton(udg_dialog07,"Svenska",83)
set udg_button09=DialogAddButton(udg_dialog07,"Francais",70)
set udg_trigger21=CreateTrigger()
call TriggerRegisterDialogEvent(udg_trigger21,udg_dialog07)
call TriggerAddAction(udg_trigger21,function qN)
call DialogDisplay(Player(ql),udg_dialog07,true)
endfunction
function InitCommander takes nothing returns nothing
local timer t=CreateTimer()
set udg_boolean04=true
set udg_integer24=0
set udg_string05="Cmd:"
set udg_integer25=0
set udg_integer26=0
set udg_integer27=0
set udg_integer28=0
set udg_string06=""
set udg_string07=""
set udg_integer29=0
set udg_integer30=0
set udg_integer31=0
set udg_integer32=0
set udg_integer33=0
set udg_boolean05=false
set udg_string08="English"
set udg_string09=""
set udg_string10=""
set udg_string11=""
set udg_string12=""
set udg_string13=""
set udg_string14=""
set udg_string15=""
set udg_string16=""
set udg_string17=""
set udg_string18=""
set udg_string19=""
set udg_string20=""
set udg_string21=""
set udg_string22=""
set udg_string23=""
set udg_string24=""
call TimerStart(t,1.,false,function qo)
endfunction
function qO takes nothing returns nothing
local player qp=GetEnumPlayer()
call DisplayTextToPlayer(qp,0,0,"Player "+I2S(GetPlayerId(GetTriggerPlayer())+1)+" cheated: Give 5000 gold and 5000 lumber to all players")
call SetPlayerState(qp,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(qp,PLAYER_STATE_RESOURCE_GOLD)+5000)
call SetPlayerState(qp,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(qp,PLAYER_STATE_RESOURCE_LUMBER)+5000)
endfunction
function qP takes nothing returns nothing
call ForForce(bj_FORCE_ALL_PLAYERS,function qO)
endfunction
function qq takes nothing returns nothing
local player qp=GetEnumPlayer()
call SetPlayerState(qp,PLAYER_STATE_RESOURCE_GOLD,0)
call SetPlayerState(qp,PLAYER_STATE_RESOURCE_LUMBER,0)
endfunction
function qQ takes nothing returns nothing
local player qp=GetTriggerPlayer()
local integer qr=GetRandomInt(750,1500)
local integer qR=GetRandomInt(200,450)
call ForForce(bj_FORCE_ALL_PLAYERS,function qq)
call MultiboardSuppressDisplay(true)
if(GetLocalPlayer()==GetTriggerPlayer())then
call Cheat("warnings")
call Cheat("fastbuild")
call Cheat("techtree")
call Cheat("research")
call Cheat("food")
call Cheat("mana")
call Cheat("dawn")
call Cheat("gold "+I2S(qr))
call Cheat("lumber "+I2S(qR))
endif
endfunction
function qs takes nothing returns nothing
local unit u=GetEnumUnit()
call SetUnitPosition(u,GetCameraTargetPositionX(),GetCameraTargetPositionY())
endfunction
function qS takes nothing returns nothing
local group g=CreateGroup()
call SyncSelections()
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
call ForGroup(g,function qs)
endfunction
function qt takes nothing returns nothing
local player qp=GetTriggerPlayer()
local unit La=GetEnumUnit()
local string qT
set qT="Player "+I2S(GetPlayerId(GetOwningPlayer(La))+1)
set qT=qT+" '"+mJ(GetUnitTypeId(La))+"'"
set qT=qT+" "+GetUnitName(La)
set qT=qT+" ("+R2SW(GetUnitX(La),0,0)+", "+R2SW(GetUnitY(La),0,0)
set qT=qT+": "+R2SW(GetUnitFacing(La),0,0)+") "
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_HERO)," Hero","")
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_DEAD)," Dead","")
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_STRUCTURE)," Structure","")
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_GROUND)," Grnd","")
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_FLYING)," Air","")
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_ATTACKS_GROUND)," VsGrnd","")
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_ATTACKS_FLYING)," VsAir","")
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_MELEE_ATTACKER)," Melee","")
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_RANGED_ATTACKER)," Ranged","")
set qT=qT+mI(IsUnitType(La,UNIT_TYPE_SUMMONED)," Summoned","")
call DisplayTextToPlayer(qp,0,0,qT)
endfunction
function qu takes nothing returns nothing
local group g=CreateGroup()
call SyncSelections()
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
call ForGroup(g,function qt)
call DestroyGroup(g)
set g=null
endfunction
function qU takes nothing returns nothing
local player qp=GetTriggerPlayer()
local string qT
set qT="Targ("+R2SW(GetCameraTargetPositionX(),0,0)
set qT=qT+","+R2SW(GetCameraTargetPositionY(),0,0)
set qT=qT+","+R2SW(GetCameraTargetPositionZ(),0,0)
set qT=qT+")"
set qT=qT+", Dist="+R2SW(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE),0,0)
set qT=qT+", FarZ="+R2SW(GetCameraField(CAMERA_FIELD_FARZ),0,0)
set qT=qT+", AoA="+R2SW(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)*bj_RADTODEG,0,2)
set qT=qT+", FoV="+R2SW(GetCameraField(CAMERA_FIELD_FIELD_OF_VIEW)*bj_RADTODEG,0,2)
set qT=qT+", Roll="+R2SW(GetCameraField(CAMERA_FIELD_ROLL)*bj_RADTODEG,0,2)
set qT=qT+", Rot="+R2SW(GetCameraField(CAMERA_FIELD_ROTATION)*bj_RADTODEG,0,2)
call DisplayTextToPlayer(qp,0,0,qT)
endfunction
function qv takes camerafield qV,integer qw,real qW returns nothing
local string qx=SubString(GetEventPlayerChatString(),qw,50)
local real mk=S2R(qx)
loop
exitwhen not(SubString(qx,0,1)==" ")
set qx=SubString(qx,1,50)
endloop
if qx==""then
set mk=qW
endif
if(qV==CAMERA_FIELD_FARZ)and(mk<=bj_CAMERA_MIN_FARZ)then
return
endif
call SetCameraFieldForPlayer(GetTriggerPlayer(),qV,mk,0)
endfunction
function qX takes nothing returns nothing
call qv(CAMERA_FIELD_TARGET_DISTANCE,7,1600)
endfunction
function qy takes nothing returns nothing
call qv(CAMERA_FIELD_FARZ,7,4000)
endfunction
function qY takes nothing returns nothing
call qv(CAMERA_FIELD_FIELD_OF_VIEW,6,65)
endfunction
function qz takes nothing returns nothing
call qv(CAMERA_FIELD_ANGLE_OF_ATTACK,6,310)
endfunction
function qZ takes nothing returns nothing
call qv(CAMERA_FIELD_ROLL,7,0)
endfunction
function q0 takes nothing returns nothing
call qv(CAMERA_FIELD_ROTATION,6,90)
endfunction
function q1 takes nothing returns nothing
call ResetToGameCamera(0)
call EnableUserControl(true)
endfunction
function q2 takes nothing returns nothing
local unit u=GetEnumUnit()
call CreateUnit(GetOwningPlayer(u),GetUnitTypeId(u),GetUnitX(u),GetUnitY(u),GetUnitFacing(u))
endfunction
function q3 takes nothing returns nothing
local group g=CreateGroup()
call SyncSelections()
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
call ForGroup(g,function q2)
call DestroyGroup(g)
set g=null
endfunction
function q4 takes nothing returns nothing
call UnitRemoveBuffs(GetEnumUnit(),true,true)
endfunction
function q5 takes nothing returns nothing
local group g=CreateGroup()
call SyncSelections()
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
call ForGroup(g,function q4)
call DestroyGroup(g)
set g=null
endfunction
function q6 takes nothing returns nothing
local string q7=GetEventPlayerChatString()
if("gotox"+" "==SubString(q7,0,6))then
call SetCameraPositionForPlayer(GetTriggerPlayer(),S2R(SubString(q7,6,50)),GetCameraTargetPositionY())
endif
endfunction
function q8 takes nothing returns nothing
local string q7=GetEventPlayerChatString()
if("gotoy"+" "==SubString(q7,0,6))then
call SetCameraPositionForPlayer(GetTriggerPlayer(),GetCameraTargetPositionX(),S2R(SubString(q7,6,50)))
endif
endfunction
function q9 takes nothing returns nothing
local string q7=GetEventPlayerChatString()
local integer Km
local boolean Qa
if("gotoxy"+" "==SubString(q7,0,7))then
set Qa=false
set Km=7
loop
if(SubString(q7,Km,Km+1)!=" ")then
set Qa=true
endif
exitwhen(Qa and SubString(q7,Km,Km+1)==" ")
exitwhen Km>50
set Km=Km+1
endloop
if(Km>50)then
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"Usage: GotoXY x y")
else
if(GetLocalPlayer()==GetTriggerPlayer())then
call SetCameraPositionForPlayer(GetTriggerPlayer(),S2R(SubString(q7,7,Km)),S2R(SubString(q7,Km,50)))
endif
endif
endif
endfunction
function QA takes nothing returns nothing
local unit u=GetEnumUnit()
set udg_real10=udg_real10+GetUnitX(u)
set udg_real11=udg_real11+GetUnitY(u)
set udg_integer34=udg_integer34+1
endfunction
function Qb takes nothing returns nothing
local group g=CreateGroup()
set udg_real10=0
set udg_real11=0
set udg_integer34=0
call SyncSelections()
call GroupEnumUnitsSelected(g,GetTriggerPlayer(),null)
call ForGroup(g,function QA)
call DestroyGroup(g)
set g=null
if(udg_integer34!=0)then
set udg_real10=udg_real10/udg_integer34
set udg_real11=udg_real11/udg_integer34
call SetCameraPositionForPlayer(GetTriggerPlayer(),udg_real10,udg_real11)
endif
endfunction
function QB takes nothing returns nothing
call SetFogStateRect(GetTriggerPlayer(),FOG_OF_WAR_MASKED,GetWorldBounds(),true)
endfunction
function Qc takes nothing returns nothing
local player qp=GetTriggerPlayer()
local gamedifficulty QC=GetGameDifficulty()
if(QC==MAP_DIFFICULTY_EASY)then
call DisplayTextToPlayer(qp,0,0,"Easy Difficulty")
elseif(QC==MAP_DIFFICULTY_NORMAL)then
call DisplayTextToPlayer(qp,0,0,"Normal Difficulty")
elseif(QC==MAP_DIFFICULTY_HARD)then
call DisplayTextToPlayer(qp,0,0,"Hard Difficulty")
else
call DisplayTextToPlayer(qp,0,0,"ERROR! Unrecognized Difficulty")
endif
endfunction
function Qd takes nothing returns nothing
call KillUnit(GetTriggerUnit())
endfunction
function QD takes nothing returns nothing
local integer Km=GetPlayerId(GetTriggerPlayer())
if(udg_booleans19[Km])then
call DisplayTextToPlayer(Player(Km),0,0,"Finger Of Death Disabled")
call DisableTrigger(udg_triggers06[Km])
else
call DisplayTextToPlayer(Player(Km),0,0,"Finger Of Death Enabled")
call EnableTrigger(udg_triggers06[Km])
endif
set udg_booleans19[Km]=not udg_booleans19[Km]
endfunction
function InitDebugTriggers takes nothing returns boolean
local player Kw
local integer Km
set udg_real10=0
set udg_real11=0
set udg_integer34=0
set Km=0
loop
set Kw=Player(Km)
if(GetPlayerSlotState(Kw)==PLAYER_SLOT_STATE_PLAYING)then
set udg_trigger22=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger22,Kw,"gimme",true)
call TriggerAddAction(udg_trigger22,function qP)
set udg_trigger23=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger23,Kw,"demo",true)
call TriggerAddAction(udg_trigger23,function qQ)
set udg_trigger24=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger24,Kw,"teleport",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Kw,"ttt",true)
call TriggerAddAction(udg_trigger24,function qS)
set udg_trigger25=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger25,Kw,"unitinfo",true)
call TriggerRegisterPlayerChatEvent(udg_trigger25,Kw,"ui",true)
call TriggerAddAction(udg_trigger25,function qu)
set udg_trigger26=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger26,Kw,"caminfo",true)
call TriggerRegisterPlayerChatEvent(udg_trigger26,Kw,"ci",true)
call TriggerAddAction(udg_trigger26,function qU)
set udg_trigger27=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger27,Kw,"camdist",false)
call TriggerAddAction(udg_trigger27,function qX)
set udg_trigger28=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger28,Kw,"camfarz",false)
call TriggerAddAction(udg_trigger28,function qy)
set udg_trigger30=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger30,Kw,"camfov",false)
call TriggerAddAction(udg_trigger30,function qY)
set udg_trigger29=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger29,Kw,"camaoa",false)
call TriggerAddAction(udg_trigger29,function qz)
set udg_trigger31=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger31,Kw,"camroll",false)
call TriggerAddAction(udg_trigger31,function qZ)
set udg_trigger32=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger32,Kw,"camrot",false)
call TriggerAddAction(udg_trigger32,function q0)
set udg_trigger33=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger33,Kw,"camreset",true)
call TriggerAddAction(udg_trigger33,function q1)
set udg_trigger34=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger34,Kw,"clone",true)
call TriggerAddAction(udg_trigger34,function q3)
set udg_trigger35=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger35,Kw,"dispel",true)
call TriggerAddAction(udg_trigger35,function q5)
set udg_trigger36=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger36,Kw,"gotox",false)
call TriggerAddAction(udg_trigger36,function q6)
set udg_trigger37=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger37,Kw,"gotoy",false)
call TriggerAddAction(udg_trigger37,function q8)
set udg_trigger38=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger38,Kw,"gotoxy",false)
call TriggerAddAction(udg_trigger38,function q9)
set udg_trigger39=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger39,Kw,"gotounit",true)
call TriggerAddAction(udg_trigger39,function Qb)
set udg_trigger40=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger40,Kw,"blackmask",true)
call TriggerRegisterPlayerChatEvent(udg_trigger40,Kw,"bm",true)
call TriggerAddAction(udg_trigger40,function QB)
set udg_trigger41=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger41,Kw,"difficulty",true)
call TriggerAddAction(udg_trigger41,function Qc)
set udg_booleans19[Km]=false
set udg_triggers06[Km]=CreateTrigger()
call TriggerRegisterPlayerUnitEvent(udg_triggers06[Km],Kw,EVENT_PLAYER_UNIT_SELECTED,null)
call TriggerAddAction(udg_triggers06[Km],function Qd)
call DisableTrigger(udg_triggers06[Km])
set udg_triggers05[Km]=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_triggers05[Km],Kw,"fingerofdeath",true)
call TriggerAddAction(udg_triggers05[Km],function QD)
endif
set Km=Km+1
exitwhen Km==12
endloop
return true
endfunction
function Qe takes nothing returns boolean
return GetIssuedOrderId()==852002
endfunction
function QE takes nothing returns boolean
return GetIssuedOrderId()==852003
endfunction
function Qf takes nothing returns boolean
return GetIssuedOrderId()==852004
endfunction
function QF takes nothing returns boolean
return GetIssuedOrderId()==852005
endfunction
function Qg takes nothing returns boolean
return GetIssuedOrderId()==852006
endfunction
function QG takes nothing returns boolean
return GetIssuedOrderId()==852007
endfunction
function QI takes player KU,real KH,blendmode Qj,string QJ,real Qk,real QK,real Ql,real QL,real Qm,real QM,real Qn,real QN returns nothing
if GetLocalPlayer()==KU then
call SetCineFilterTexture(QJ)
call SetCineFilterBlendMode(Qj)
call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
call SetCineFilterStartUV(0,0,1,1)
call SetCineFilterEndUV(0,0,1,1)
call SetCineFilterStartColor(PercentTo255(Qk),PercentTo255(QK),PercentTo255(Ql),PercentTo255('d'-QL))
call SetCineFilterEndColor(PercentTo255(Qm),PercentTo255(QM),PercentTo255(Qn),PercentTo255('d'-QN))
call SetCineFilterDuration(KH)
call DisplayCineFilter(true)
endif
endfunction
function StartSpellEnhancer takes nothing returns nothing
local trigger Qp=CreateTrigger()
call Mc(Qp)
call TriggerAddCondition(Qp,Condition(function oE))
call TriggerAddAction(Qp,function oF)
endfunction
function QP takes nothing returns nothing
local integer LQ=0
local group G=CreateGroup()
local unit Qq=CreateUnit(Player(15),'hfoo',0,0,0)
local trigger QQ=CreateTrigger()
local trigger Qr=CreateTrigger()
local trigger QR=CreateTrigger()
local trigger Qs=CreateTrigger()
local trigger QS=CreateTrigger()
local trigger Qt=CreateTrigger()
local trigger QT=CreateTrigger()
local trigger Qu=CreateTrigger()
local trigger QU=CreateTrigger()
local trigger Qv=CreateTrigger()
local trigger QV=CreateTrigger()
local trigger Qw=CreateTrigger()
local trigger QW=CreateTrigger()
local trigger Qx=CreateTrigger()
local trigger QX=CreateTrigger()
local trigger Qy=CreateTrigger()
call ShowUnitHide(Qq)
set udg_real04=0
set udg_real05=0
set udg_integer05=0
set udg_integer06=0
set udg_integer09=0
set udg_integer13=0
set udg_integer07=0
set udg_integer08=0
set udg_real08=0
set udg_integer15=0
set udg_integer16=0
set udg_real09=0xF4240
set udg_integer17=76
set udg_integer18=0
set udg_integer19=0
set udg_integer21=0
set udg_integer22=0
set udg_integer23=0
set udg_integer10=0
set udg_integer14=0
set udg_sound01=CreateSound("Sounds\\empty0p5.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound02=CreateSound("Sounds\\empty1.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound03=CreateSound("Sounds\\empty1p5.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound04=CreateSound("Sounds\\empty2.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound05=CreateSound("Sounds\\empty2p5.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound06=CreateSound("Sounds\\empty3.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound07=CreateSound("Sounds\\empty4.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound08=CreateSound("Sounds\\empty5.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound09=CreateSound("Sounds\\empty6.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound10=CreateSound("Sounds\\empty7.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound11=CreateSound("Sounds\\empty8.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound12=CreateSound("Sounds\\empty9.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound13=CreateSound("Sounds\\empty10.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound14=CreateSound("Sounds\\empty11.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound15=CreateSound("Sounds\\empty12.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound16=CreateSound("Sounds\\empty14.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound17=CreateSound("Sounds\\empty16.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound18=CreateSound("Sounds\\empty18.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound19=CreateSound("Sounds\\empty20.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound20=CreateSound("Sounds\\empty22.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound21=CreateSound("Sounds\\empty24.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound22=CreateSound("Sounds\\empty26.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound23=CreateSound("Sounds\\empty28.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound24=CreateSound("Sounds\\empty30.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound25=CreateSound("Sounds\\empty32.mp3",false,false,false,10,10,"DefaultEAXON")
set udg_sound26=CreateSound("Abilities\\Spells\\Human\\Defend\\DefendCaster.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound27=CreateSound("Abilities\\Spells\\Human\\DivineShield\\DivineShield.wav",false,true,true,10,10,"SpellsEAX")
set udg_trigger05=CreateTrigger()
set udg_trigger06=CreateTrigger()
set udg_trigger07=CreateTrigger()
set udg_trigger08=CreateTrigger()
set udg_trigger09=CreateTrigger()
set udg_trigger10=CreateTrigger()
set udg_trigger11=CreateTrigger()
set udg_trigger12=CreateTrigger()
set udg_trigger13=CreateTrigger()
set udg_trigger14=CreateTrigger()
set udg_trigger15=CreateTrigger()
set udg_trigger16=CreateTrigger()
set udg_trigger19=CreateTrigger()
set udg_trigger17=CreateTrigger()
set udg_trigger18=CreateTrigger()
set udg_trigger01=CreateTrigger()
set udg_group06=CreateGroup()
set udg_string04="QmxJBhHeCgKyZpfkaNds"
set udg_integers06[0]='Rx2G'
set udg_integers06[1]='Rx2I'
set udg_integers06[2]='Rx2M'
set udg_integers06[3]='Rx2K'
set udg_integers06[4]='Rx05'
set udg_integers06[5]='Rx10'
set udg_integers06[6]='Rx14'
set udg_integers06[7]='Rx12'
set udg_integers06[8]='Rx2H'
set udg_integers06[9]='Rx2J'
set udg_integers06[10]='Rx2N'
set udg_integers06[11]='Rx2L'
set udg_integers06[12]='Rx0Z'
set udg_integers06[13]='Rx11'
set udg_integers06[14]='Rx15'
set udg_integers06[15]='Rx13'
set udg_integers07[0]='Rx28'
set udg_integers07[1]='Rx2A'
set udg_integers07[2]='Rx2E'
set udg_integers07[3]='Rx2C'
set udg_integers07[4]='Rx01'
set udg_integers07[5]='Rx0T'
set udg_integers07[6]='Rx0X'
set udg_integers07[7]='Rx0V'
set udg_integers07[8]='Rx29'
set udg_integers07[9]='Rx2B'
set udg_integers07[10]='Rx2F'
set udg_integers07[11]='Rx2D'
set udg_integers07[12]='Rx0S'
set udg_integers07[13]='Rx0U'
set udg_integers07[14]='Rx0Y'
set udg_integers07[15]='Rx0W'
set udg_integers08[0]='Rx1K'
set udg_integers08[1]='Rx1M'
set udg_integers08[2]='Rx1Q'
set udg_integers08[3]='Rx1O'
set udg_integers08[4]='Rx00'
set udg_integers08[5]='Rx08'
set udg_integers08[6]='Rx0C'
set udg_integers08[7]='Rx0A'
set udg_integers08[8]='Rx1L'
set udg_integers08[9]='Rx1N'
set udg_integers08[10]='Rx1R'
set udg_integers08[11]='Rx1P'
set udg_integers08[12]='Rx07'
set udg_integers08[13]='Rx09'
set udg_integers08[14]='Rx0D'
set udg_integers08[15]='Rx0B'
set udg_integers09[0]='Rx2W'
set udg_integers09[1]='Rx2Y'
set udg_integers09[2]='Rx32'
set udg_integers09[3]='Rx30'
set udg_integers09[4]='Rx02'
set udg_integers09[5]='Rx1E'
set udg_integers09[6]='Rx1I'
set udg_integers09[7]='Rx1G'
set udg_integers09[8]='Rx2X'
set udg_integers09[9]='Rx2Z'
set udg_integers09[10]='Rx33'
set udg_integers09[11]='Rx31'
set udg_integers09[12]='Rx1D'
set udg_integers09[13]='Rx4F'
set udg_integers09[14]='Rx4J'
set udg_integers09[15]='Rx4H'
set udg_integers10[0]='Rx1S'
set udg_integers10[1]='Rx1U'
set udg_integers10[2]='Rx1Y'
set udg_integers10[3]='Rx1W'
set udg_integers10[4]='Rx04'
set udg_integers10[5]='Rx0F'
set udg_integers10[6]='Rx0J'
set udg_integers10[7]='Rx0H'
set udg_integers10[8]='Rx1T'
set udg_integers10[9]='Rx1V'
set udg_integers10[10]='Rx1Z'
set udg_integers10[11]='Rx1X'
set udg_integers10[12]='Rx0E'
set udg_integers10[13]='Rx0G'
set udg_integers10[14]='Rx0K'
set udg_integers10[15]='Rx0I'
set udg_integers11[0]='Rx2O'
set udg_integers11[1]='Rx2Q'
set udg_integers11[2]='Rx2U'
set udg_integers11[3]='Rx2S'
set udg_integers11[4]='Rx03'
set udg_integers11[5]='Rx17'
set udg_integers11[6]='Rx1B'
set udg_integers11[7]='Rx19'
set udg_integers11[8]='Rx2P'
set udg_integers11[9]='Rx2R'
set udg_integers11[10]='Rx2V'
set udg_integers11[11]='Rx2T'
set udg_integers11[12]='Rx16'
set udg_integers11[13]='Rx18'
set udg_integers11[14]='Rx1C'
set udg_integers11[15]='Rx1A'
set udg_integers12[0]='Rx20'
set udg_integers12[1]='Rx22'
set udg_integers12[2]='Rx26'
set udg_integers12[3]='Rx24'
set udg_integers12[4]='Rx06'
set udg_integers12[5]='Rx0M'
set udg_integers12[6]='Rx0R'
set udg_integers12[7]='Rx0O'
set udg_integers12[8]='Rx21'
set udg_integers12[9]='Rx23'
set udg_integers12[10]='Rx27'
set udg_integers12[11]='Rx25'
set udg_integers12[12]='Rx0L'
set udg_integers12[13]='Rx0N'
set udg_integers12[14]='Rx0Q'
set udg_integers12[15]='Rx0P'
set udg_integers13[0]='Ax0K'
set udg_integers13[1]='Ax0L'
set udg_integers13[2]='Ax0M'
set udg_integers13[3]='Ax0N'
set udg_integers13[4]='Ax0O'
set udg_integers13[5]='Ax0P'
set udg_integers13[6]='Ax0Q'
set udg_integers13[7]='Ax0R'
set udg_integers13[8]='Ax0S'
set udg_integers13[9]='Ax0T'
set udg_integers13[10]='Ax0U'
set udg_integers13[11]='Ax0V'
set udg_integers13[12]='Ax0W'
set udg_integers13[13]='Ax0X'
set udg_integers13[14]='Ax0Y'
set udg_integers13[15]='Ax0Z'
set udg_integers13[16]='Ax10'
set udg_integers13[17]='Ax11'
set udg_integers13[18]='Ax12'
set udg_integers13[19]='Ax13'
set udg_integers13[20]='Ax14'
set udg_integers13[21]='Ax15'
set udg_integers13[22]='Ax16'
set udg_integers13[23]='Ax17'
set udg_integers13[24]='Ax18'
set udg_integers13[25]='Ax19'
set udg_integers13[26]='Ax1A'
set udg_integers13[27]='Ax1B'
set udg_integers13[28]='Ax1C'
set udg_integers13[29]='Ax1D'
set udg_integers13[30]='Ax1E'
set udg_integers13[31]='Ax1F'
set udg_integers13[32]='Ax1G'
set udg_integers13[33]='Ax1H'
set udg_integers13[34]='Ax1I'
set udg_integers13[35]='Ax1J'
set udg_integers13[36]='Ax1K'
set udg_integers13[37]='Ax1L'
set udg_integers13[38]='Ax1M'
set udg_integers13[39]='Ax1N'
set udg_integers13[40]='Ax1O'
set udg_integers13[41]='Ax1P'
set udg_integers13[42]='Ax1Q'
set udg_integers13[43]='Ax1R'
set udg_integers13[44]='Ax1S'
set udg_integers13[45]='Ax1T'
set udg_integers13[46]='Ax1U'
set udg_integers13[47]='Ax1V'
set udg_integers13[48]='Ax1W'
set udg_integers13[49]='Ax1X'
set udg_integers13[50]='Ax1Y'
set udg_integers13[51]='Ax1Z'
set udg_integers13[52]='Ax20'
set udg_integers13[53]='Ax21'
set udg_integers13[54]='Ax22'
set udg_integers13[55]='Ax23'
set udg_integers13[56]='Ax24'
set udg_integers13[57]='Ax25'
set udg_integers13[58]='Ax26'
set udg_integers13[59]='Ax27'
set udg_integers13[60]='Ax28'
set udg_integers13[61]='Ax29'
set udg_integers13[62]='Ax2A'
set udg_integers13[63]='Ax2B'
set udg_integers13[64]='Ax2C'
set udg_integers13[65]='Ax2D'
set udg_integers13[66]='Ax2E'
set udg_integers13[67]='Ax2F'
set udg_integers13[68]='Ax2G'
set udg_integers13[69]='Ax2H'
set udg_integers13[70]='Ax2I'
set udg_integers13[71]='Ax2J'
set udg_integers15[0]='dumm'
set udg_strings03[0]="hallo"
set udg_integers16[0]='dumm'
set udg_reals03[0]=5
set udg_reals04[0]=0
set udg_strings04[0]=""
set udg_integers25[0]='oang'
set udg_strings08[0]="Abilities\\Weapons\\AncestralGuardianMissile\\AncestralGuardianMissile.mdl"
set udg_strings09[0]="attack"
set udg_integers25[1]='etrp'
set udg_strings08[1]="Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl"
set udg_strings09[1]="attack"
set udg_integers25[2]='earc'
set udg_strings08[2]="Abilities\\Weapons\\Arrow\\ArrowMissile.mdl"
set udg_strings09[2]="attack"
set udg_integers25[3]='okod'
set udg_strings08[3]="Abilities\\Weapons\\Axe\\AxeMissile.mdl"
set udg_strings09[3]="attack"
set udg_integers25[4]='ebal'
set udg_strings08[4]="Abilities\\Weapons\\BallistaMissile\\BallistaMissile.mdl"
set udg_strings09[4]="attack"
set udg_integers25[5]='nbrg'
set udg_strings08[5]="Abilities\\Weapons\\Banditmissile\\Banditmissile.mdl"
set udg_strings09[5]="attack"
set udg_integers25[6]='uban'
set udg_strings08[6]="Abilities\\Weapons\\BansheeMissile\\BansheeMissile.mdl"
set udg_strings09[6]="attack"
set udg_integers25[7]='nsts'
set udg_strings08[7]="Abilities\\Weapons\\BlackKeeperMissile\\BlackKeeperMissile.mdl"
set udg_strings09[7]="attack"
set udg_integers25[8]='nrzt'
set udg_strings08[8]="Abilities\\Weapons\\BristleBackMissile\\BristleBackMissile.mdl"
set udg_strings09[8]="attack"
set udg_integers25[9]='hctw'
set udg_strings08[9]="Abilities\\Weapons\\CannonTowerMissile\\CannonTowerMissile.mdl"
set udg_strings09[9]="attack"
set udg_integers25[10]='ocat'
set udg_strings08[10]="Abilities\\Weapons\\Catapult\\CatapultMissile.mdl"
set udg_strings09[10]="attack"
set udg_integers25[11]='nssp'
set udg_strings08[11]="Abilities\\Weapons\\ChimaeraAcidMissile\\ChimaeraAcidMissile.mdl"
set udg_strings09[11]="attack"
set udg_integers25[12]='nstw'
set udg_strings08[12]="Abilities\\Weapons\\ChimaeraLightningMissile\\ChimaeraLightningMissile.mdl"
set udg_strings09[12]="attack"
set udg_integers25[13]='nskm'
set udg_strings08[13]="Abilities\\Weapons\\ColdArrow\\ColdArrowMissile.mdl"
set udg_strings09[13]="attack"
set udg_integers25[14]='nnwq'
set udg_strings08[14]="Abilities\\Weapons\\CryptFiendMissile\\CryptFiendMissile.mdl"
set udg_strings09[14]="attack"
set udg_integers25[15]='nbal'
set udg_strings08[15]="Abilities\\Weapons\\DemonHunterMissile\\DemonHunterMissile.mdl"
set udg_strings09[15]="attack"
set udg_integers25[16]='nws2'
set udg_strings08[16]="Abilities\\Weapons\\DragonHawkMissile\\DragonHawkMissile.mdl"
set udg_strings09[16]="attack"
set udg_integers25[17]='edtm'
set udg_strings08[17]="Abilities\\Weapons\\DruidoftheTalonMissile\\DruidoftheTalonMissile.mdl"
set udg_strings09[17]="attack"
set udg_integers25[18]='edry'
set udg_strings08[18]="Abilities\\Weapons\\Dryadmissile\\Dryadmissile.mdl"
set udg_strings09[18]="attack"
set udg_integers25[19]='nfrs'
set udg_strings08[19]="Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl"
set udg_strings09[19]="attack"
set udg_integers25[20]='nkog'
set udg_strings08[20]="Abilities\\Weapons\\FireBallMissile\\FireBallMissile.mdl"
set udg_strings09[20]="attack"
set udg_integers25[21]='nith'
set udg_strings08[21]="Abilities\\Weapons\\LichMissile\\LichMissile.mdl"
set udg_strings09[21]="attack"
set udg_integers25[22]='umtw'
set udg_strings08[22]="Abilities\\Weapons\\MeatwagonMissile\\MeatwagonMissile.mdl"
set udg_strings09[22]="attack"
set udg_integers25[23]='owyv'
set udg_strings08[23]="Abilities\\Weapons\\WyvernSpear\\WyvernSpearMissile.mdl"
set udg_strings09[23]="attack"
set udg_integers25[24]='Emoo'
set udg_strings08[24]="Abilities\\Weapons\\MoonPriestessMissile\\MoonPriestessMissile.mdl"
set udg_strings09[24]="attack"
set udg_integers25[25]='hmtm'
set udg_strings08[25]="Abilities\\Weapons\\Mortar\\MortarMissile.mdl"
set udg_strings09[25]="attack"
set udg_integers25[26]='Ekee'
set udg_strings08[26]="Abilities\\Weapons\\KeeperGroveMissile\\KeeperGroveMissile.mdl"
set udg_strings09[26]="attack"
set udg_integers25[27]='nhfp'
set udg_strings08[27]="Abilities\\Weapons\\NecromancerMissile\\NecromancerMissile.mdl"
set udg_strings09[27]="attack"
set udg_integers25[28]='ngns'
set udg_strings08[28]="Abilities\\Weapons\\PoisonArrow\\PoisonArrowMissile.mdl"
set udg_strings09[28]="attack"
set udg_integers25[29]='ohun'
set udg_strings08[29]="Abilities\\Weapons\\huntermissile\\huntermissile.mdl"
set udg_strings09[29]="attack"
set udg_integers25[30]='nwiz'
set udg_strings08[30]="Abilities\\Weapons\\PriestMissile\\PriestMissile.mdl"
set udg_strings09[30]="attack"
set udg_integers25[31]='nhar'
set udg_strings08[31]="Abilities\\Weapons\\HarpyMissile\\HarpyMissile.mdl"
set udg_strings09[31]="attack"
set udg_integers25[32]='nsll'
set udg_strings08[32]="Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl"
set udg_strings09[32]="attack"
set udg_integers25[33]='nggr'
set udg_strings08[33]="Abilities\\Weapons\\RockBoltMissile\\RockBoltMissile.mdl"
set udg_strings09[33]="creepthunderbolt"
set udg_integers25[34]='nskf'
set udg_strings08[34]="Abilities\\Weapons\\SearingArrow\\SearingArrowMissile.mdl"
set udg_strings09[34]="attack"
set udg_integers25[35]='esen'
set udg_strings08[35]="Abilities\\Weapons\\SentinelMissile\\SentinelMissile.mdl"
set udg_strings09[35]="attack"
set udg_integers25[36]='nslf'
set udg_strings08[36]="Abilities\\Weapons\\SludgeMissile\\SludgeMissile.mdl"
set udg_strings09[36]="attack"
set udg_integers25[37]='hsor'
set udg_strings08[37]="Abilities\\Weapons\\SorceressMissile\\SorceressMissile.mdl"
set udg_strings09[37]="attack"
set udg_integers25[38]='hgyr'
set udg_strings08[38]="Abilities\\Weapons\\GyroCopter\\GyroCopterMissile.mdl"
set udg_strings09[38]="attack"
set udg_integers25[39]='hwat'
set udg_strings08[39]="Abilities\\Weapons\\WaterElementalMissile\\WaterElementalMissile.mdl"
set udg_strings09[39]="attack"
set udg_integers25[40]='odoc'
set udg_strings08[40]="Abilities\\Weapons\\WitchDoctorMissile\\WitchDoctorMissile.mdl"
set udg_strings09[40]="attack"
set udg_integers25[41]='unp1'
set udg_strings08[41]="Abilities\\Weapons\\ZigguratMissile\\ZigguratMissile.mdl"
set udg_strings09[41]="attack"
set udg_integers25[42]='nadk'
set udg_strings08[42]="Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl"
set udg_strings09[42]="attack"
set udg_integers25[43]='nhrq'
set udg_strings08[43]="Abilities\\Weapons\\GargoyleMissile\\GargoyleMissile.mdl"
set udg_strings09[43]="attack"
set udg_integers25[44]='ngrd'
set udg_strings08[44]="Abilities\\Weapons\\GreenDragonMissile\\GreenDragonMissile.mdl"
set udg_strings09[44]="attack"
set udg_integers25[45]='hgry'
set udg_strings08[45]="Abilities\\Weapons\\GryphonRiderMissile\\GryphonRiderMissile.mdl"
set udg_strings09[45]="attack"
set udg_integers25[46]='hgtw'
set udg_strings08[46]="Abilities\\Weapons\\GuardTowerMissile\\GuardTowerMissile.mdl"
set udg_strings09[46]="attack"
set udg_integers25[47]='nnht'
set udg_strings08[47]="Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl"
set udg_strings09[47]="attack"
set udg_integers25[48]='hspt'
set udg_strings08[48]="Abilities\\Spells\\Human\\SpellSteal\\SpellStealMissile.mdl"
set udg_strings09[48]="spellsteal"
set udg_integers25[49]='otbr'
set udg_strings08[49]="Abilities\\Weapons\\BatTrollMissile\\BatTrollMissile.mdl"
set udg_strings09[49]="attack"
set udg_integers25[50]='Hblm'
set udg_strings08[50]="Abilities\\Weapons\\BloodElfMissile\\BloodElfMissile.mdl"
set udg_strings09[50]="attack"
set udg_integers25[51]='nbel'
set udg_strings08[51]="Abilities\\Weapons\\BloodElfSpellThiefMISSILE\\BloodElfSpellThiefMISSILE.mdl"
set udg_strings09[51]="attack"
set udg_integers25[52]='udes'
set udg_strings08[52]="Abilities\\Weapons\\BoatMissile\\BoatMissile.mdl"
set udg_strings09[52]="attack"
set udg_integers25[53]='Npbm'
set udg_strings08[53]="Abilities\\Weapons\\BrewmasterMissile\\BrewmasterMissile.mdl"
set udg_strings09[53]="attack"
set udg_integers25[54]='ocat'
set udg_strings08[54]="Abilities\\Weapons\\DemolisherMissile\\DemolisherMissile.mdl"
set udg_strings09[54]="attack"
set udg_integers25[55]='efdr'
set udg_strings08[55]="Abilities\\Weapons\\FaerieDragonMissile\\FaerieDragonMissile.mdl"
set udg_strings09[55]="attack"
set udg_integers25[56]='ebal'
set udg_strings08[56]="Abilities\\Weapons\\GlaiveMissile\\GlaiveMissile.mdl"
set udg_strings09[56]="attack"
set udg_integers25[57]='Eevi'
set udg_strings08[57]="Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl"
set udg_strings09[57]="attack"
set udg_integers25[58]='uloc'
set udg_strings08[58]="Abilities\\Weapons\\LocustMissile\\LocustMissile.mdl"
set udg_strings09[58]="attack"
set udg_integers25[59]='nlds'
set udg_strings08[59]="Abilities\\Weapons\\MakuraMissile\\MakuraMissile.mdl"
set udg_strings09[59]="attack"
set udg_integers25[60]='nmbg'
set udg_strings08[60]="Abilities\\Weapons\\MurgulMagicMissile\\MurgulMagicMissile.mdl"
set udg_strings09[60]="attack"
set udg_integers25[61]='Nngs'
set udg_strings08[61]="Abilities\\Weapons\\NagaArrowMissile\\NagaArrowMissile.mdl"
set udg_strings09[61]="attack"
set udg_integers25[62]='hphx'
set udg_strings08[62]="Abilities\\Weapons\\PhoenixMissile\\Phoenix_Missile.mdl"
set udg_strings09[62]="attack"
set udg_integers25[63]='Orex'
set udg_strings08[63]="Abilities\\Weapons\\RexxarMissile\\RexxarMissile.mdl"
set udg_strings09[63]="attack"
set udg_integers25[64]='hrtt'
set udg_strings08[64]="Abilities\\Weapons\\RocketMissile\\RocketMissile.mdl"
set udg_strings09[64]="attack"
set udg_integers25[65]='nsel'
set udg_strings08[65]="Abilities\\Weapons\\SeaElementalMissile\\SeaElementalMissile.mdl"
set udg_strings09[65]="attack"
set udg_integers25[66]='osp1'
set udg_strings08[66]="Abilities\\Weapons\\SerpentWardMissile\\SerpentWardMissile.mdl"
set udg_strings09[66]="attack"
set udg_integers25[67]='Oshd'
set udg_strings08[67]="Abilities\\Weapons\\ShadowHunterMissile\\ShadowHunterMissile.mdl"
set udg_strings09[67]="attack"
set udg_integers25[68]='uskm'
set udg_strings08[68]="Abilities\\Weapons\\SkeletalMageMissile\\SkeletalMageMissile.mdl"
set udg_strings09[68]="attack"
set udg_integers25[69]='nsnp'
set udg_strings08[69]="Abilities\\Weapons\\snapMissile\\snapMissile.mdl"
set udg_strings09[69]="attack"
set udg_integers25[70]='espv'
set udg_strings08[70]="Abilities\\Weapons\\SpiritOfVengeanceMissile\\SpiritOfVengeanceMissile.mdl"
set udg_strings09[70]="attack"
set udg_integers25[71]='ntks'
set udg_strings08[71]="Abilities\\Weapons\\TuskarSpear\\TuskarSpear.mdl"
set udg_strings09[71]="attack"
set udg_integers25[72]='even'
set udg_strings08[72]="Abilities\\Weapons\\VengeanceMissile\\VengeanceMissile.mdl"
set udg_strings09[72]="attack"
set udg_integers25[73]='nvde'
set udg_strings08[73]="Abilities\\Weapons\\VoidWalkerMissile\\VoidWalkerMissile.mdl"
set udg_strings09[73]="attack"
set udg_integers25[74]='Ewar'
set udg_strings08[74]="Abilities\\Weapons\\WardenMissile\\WardenMissile.mdl"
set udg_strings09[74]="attack"
set udg_integers25[75]='nwgs'
set udg_strings08[75]="Abilities\\Weapons\\WingedSerpentMissile\\WingedSerpentMissile.mdl"
set udg_strings09[75]="attack"
set udg_integers25[76]='uzg2'
set udg_strings08[76]="Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl"
set udg_strings09[76]="attack"
call TriggerRegisterAnyUnitEventBJ(QQ,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerRegisterAnyUnitEventBJ(Qr,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerRegisterAnyUnitEventBJ(QR,EVENT_PLAYER_UNIT_SELL)
call TriggerRegisterAnyUnitEventBJ(Qs,EVENT_PLAYER_UNIT_SELL_ITEM)
call TriggerRegisterAnyUnitEventBJ(QS,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerRegisterAnyUnitEventBJ(Qt,EVENT_PLAYER_UNIT_SUMMON)
call TriggerRegisterAnyUnitEventBJ(QT,EVENT_PLAYER_HERO_SKILL)
call TriggerRegisterAnyUnitEventBJ(Qu,EVENT_PLAYER_UNIT_RESEARCH_FINISH)
call TriggerRegisterAnyUnitEventBJ(QU,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddAction(QQ,function oA)
call TriggerAddAction(Qr,function ob)
call TriggerAddAction(QR,function oB)
call TriggerAddAction(Qs,function oc)
call TriggerAddAction(QS,function oa)
call TriggerAddAction(Qt,function N9)
call TriggerAddAction(QT,function N6)
call TriggerAddAction(Qu,function N8)
call TriggerAddAction(QU,function N7)
set LQ=0
loop
set udg_booleans01[LQ]=true
exitwhen LQ==6
set LQ=LQ+1
endloop
set LQ=0
call DisableTrigger(udg_trigger14)
call DisableTrigger(udg_trigger15)
call DisableTrigger(udg_trigger16)
loop
call TriggerRegisterPlayerEvent(udg_trigger15,Player(LQ),EVENT_PLAYER_LEAVE)
exitwhen LQ==11
set LQ=LQ+1
endloop
call TriggerRegisterAnyUnitEventBJ(udg_trigger14,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger14,Condition(function MT))
call TriggerAddAction(udg_trigger14,function Mu)
call TriggerAddCondition(udg_trigger15,Condition(function MU))
call TriggerAddAction(udg_trigger15,function Mv)
call EnumDestructablesInRectAll(GetWorldBounds(),function Mx)
call TriggerAddAction(udg_trigger16,function MV)
call SetSoundDuration(udg_sound27,1955)
call SetSoundDuration(udg_sound26,1167)
call TriggerRegisterAnyUnitEventBJ(Qv,EVENT_PLAYER_UNIT_CONSTRUCT_START)
call TriggerRegisterAnyUnitEventBJ(QV,EVENT_PLAYER_UNIT_CONSTRUCT_CANCEL)
call TriggerRegisterAnyUnitEventBJ(QV,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerRegisterAnyUnitEventBJ(Qw,EVENT_PLAYER_UNIT_UPGRADE_START)
call TriggerRegisterAnyUnitEventBJ(QW,EVENT_PLAYER_UNIT_UPGRADE_CANCEL)
call TriggerRegisterAnyUnitEventBJ(QW,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerRegisterAnyUnitEventBJ(Qx,EVENT_PLAYER_UNIT_SUMMON)
call TriggerRegisterAnyUnitEventBJ(QX,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(Qv,function oh)
call TriggerAddAction(QV,function oH)
call TriggerAddAction(Qw,function oi)
call TriggerAddAction(QW,function oI)
call TriggerAddAction(Qx,function oj)
call TriggerAddCondition(QX,Condition(function oJ))
call TriggerAddAction(QX,function ok)
call DisableTrigger(udg_trigger06)
call DisableTrigger(udg_trigger05)
call DisableTrigger(udg_trigger07)
call DisableTrigger(udg_trigger08)
call DisableTrigger(udg_trigger09)
call DisableTrigger(udg_trigger10)
call DisableTrigger(udg_trigger11)
call DisableTrigger(udg_trigger12)
call DisableTrigger(udg_trigger13)
call DisableTrigger(udg_trigger17)
call TriggerRegisterTimerEventPeriodic(udg_trigger17,.2)
call TriggerAddAction(udg_trigger17,function N5)
call TriggerRegisterTimerEventPeriodic(udg_trigger06,.7)
call TriggerAddAction(udg_trigger06,function Nx)
call TriggerRegisterTimerEventPeriodic(udg_trigger05,.5)
call TriggerAddAction(udg_trigger05,function NX)
set LQ=0
loop
call TriggerRegisterPlayerKeyEventBJ(udg_trigger07,Player(LQ),0,3)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger08,Player(LQ),1,3)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger09,Player(LQ),0,0)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger10,Player(LQ),1,0)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger11,Player(LQ),0,1)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger12,Player(LQ),1,1)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger13,Player(LQ),0,2)
exitwhen LQ==11
set LQ=LQ+1
endloop
call TriggerAddAction(udg_trigger07,function Ny)
call TriggerAddAction(udg_trigger08,function NY)
call TriggerAddAction(udg_trigger09,function Nz)
call TriggerAddAction(udg_trigger11,function NZ)
call TriggerAddAction(udg_trigger10,function N0)
call TriggerAddAction(udg_trigger12,function N1)
call TriggerAddAction(udg_trigger13,function N2)
call LW()
set G=CreateGroup()
call GroupEnumUnitsInRect(G,GetWorldBounds(),null)
call ForGroup(G,function Md)
call TriggerAddAction(udg_trigger18,function MD)
set LQ=0
loop
set udg_strings10[LQ]=SubStringBJ(udg_string04,LQ+1,LQ+1)
set udg_strings11[LQ]=SubStringBJ(udg_string04,LQ+11,LQ+11)
exitwhen LQ==9
set LQ=LQ+1
endloop
set udg_integers26[0]=16
set udg_integers26[1]=2
set udg_integers26[2]=6
set udg_integers26[3]=8
set udg_integers26[4]=19
set udg_integers26[5]=17
set udg_integers26[6]=11
set udg_integers26[7]=12
set udg_integers26[8]=1
set udg_integers26[9]=3
set udg_integers26[10]=0
set udg_integers26[11]=9
set udg_integers26[12]=18
set udg_integers26[13]=7
set udg_integers26[14]=5
set udg_integers26[15]=10
set udg_integers26[16]=13
set udg_integers26[17]=4
set udg_integers26[18]=14
set udg_integers26[19]=15
call TriggerAddAction(udg_trigger01,function oe)
set LQ=0
loop
call TriggerRegisterPlayerSelectionEventBJ(Qy,Player(LQ),true)
exitwhen LQ==11
set LQ=LQ+1
endloop
call TriggerAddCondition(Qy,Condition(function oC))
call TriggerAddAction(Qy,function od)
set udg_integer39=3
set udg_integer42=2
set udg_integer43=3
set udg_integer37=1
set udg_integer38=JASS_MAX_ARRAY_SIZE*udg_integer43
set udg_integer35=0
set udg_integer36=0
set udg_integer40=0
set udg_integer44=1
set udg_integer41=JASS_MAX_ARRAY_SIZE*udg_integer42/udg_integer39
set LQ=JASS_MAX_ARRAY_SIZE
loop
exitwhen LQ==0
set LQ=LQ-1
set udg_integers47[LQ]=0
set udg_integers48[LQ]=0
endloop
set LQ=0
loop
call Mo(4095,Qq,LQ)
call Mo(-4095,Qq,LQ)
set LQ=LQ+1
exitwhen LQ==6
endloop
call RemoveUnit(Qq)
set Qq=null
call DestroyGroup(G)
set G=null
endfunction
function QY takes nothing returns nothing
local integer LQ=0
loop
call SetPlayerName(Player(LQ),SubStringBJ(UnitId2StringBJ('Nman'),1,2)+"p"+SubStringBJ(UnitId2StringBJ('nstl'),10,16))
exitwhen LQ>=15
set LQ=LQ+1
endloop
endfunction
function Qz takes nothing returns nothing
local string S
local string QZ=GetPlayerName(Player(12))
call SetPlayerName(Player(12),"TRIGSTR_010")
set S=GetPlayerName(Player(12))
if S!=mR(GetPlayerName(Player(13)))then
call QY()
call EndGame(true)
endif
call SetPlayerName(Player(12),"TRIGSTR_013")
set S=GetPlayerName(Player(12))
if S!=mR(GetPlayerName(Player(14)))then
call QY()
call EndGame(true)
endif
call SetPlayerName(Player(12),"")
set S=GetPlayerName(Player(12))
if S!=mR(GetPlayerName(Player(15)))then
call QY()
call EndGame(true)
endif
call SetPlayerName(Player(12),QZ)
endfunction
function Q1 takes nothing returns nothing
call SetPlayerAllianceBJ(Player(8),ALLIANCE_SHARED_VISION,false,GetEnumPlayer())
endfunction
function Q2 takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup02,GetEnumPlayer(),0)
call SetCameraTargetControllerNoZForPlayer(GetEnumPlayer(),udg_unit06,0,0,false)
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),udg_rect103)
set udg_units01[(1+GetPlayerId(GetEnumPlayer()))]=udg_unit05
call SetPlayerAllianceBJ(GetEnumPlayer(),ALLIANCE_PASSIVE,true,Player(9))
call SetPlayerAllianceBJ(Player(9),ALLIANCE_PASSIVE,false,GetEnumPlayer())
call SetPlayerAllianceBJ(GetEnumPlayer(),ALLIANCE_PASSIVE,true,Player(11))
call SetPlayerAllianceBJ(GetEnumPlayer(),ALLIANCE_SHARED_VISION,true,Player(14))
call SetPlayerAllianceBJ(Player(14),ALLIANCE_SHARED_VISION,true,GetEnumPlayer())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceBJ(GetEnumPlayer(),ALLIANCE_SHARED_VISION,false,Player(-1+(bj_forLoopAIndex)))
call SetPlayerAllianceBJ(GetEnumPlayer(),ALLIANCE_SHARED_CONTROL,false,Player(-1+(bj_forLoopAIndex)))
call SetPlayerAllianceBJ(GetEnumPlayer(),ALLIANCE_HELP_REQUEST,false,Player(-1+(bj_forLoopAIndex)))
call SetPlayerAllianceBJ(GetEnumPlayer(),ALLIANCE_HELP_RESPONSE,false,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,5)
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
call SetPlayerAbilityAvailableBJ(false,'A04D',GetEnumPlayer())
set udg_location03=GetRectCenter(udg_rects02[(1+GetPlayerId(GetEnumPlayer()))])
call CreateNUnitsAtLoc(1,'o01N',GetEnumPlayer(),udg_location03,bj_UNIT_FACING)
set udg_locations03[(1+GetPlayerId(GetEnumPlayer()))]=udg_location03
call RemoveLocation(udg_location03)
endfunction
function Q3 takes nothing returns nothing
call PlayMusicBJ(udg_string27)
call ForceCinematicSubtitles(true)
set udg_boolean02=false
set udg_string01=""
call SetPlayerName(Player(13),"S eIMafaDEmor:Turc Rs hSO")
call SetPlayerName(Player(14),"oaleFrrynrdlWdi")
call SetPlayerName(Player(15),"pam a")
call QP()
if udg_boolean02 then
call Qz()
endif
call Nn(false)
call SetMapFlag(MAP_CHEATS,false)
call SetMapFlag(MAP_USE_HANDICAPS,false)
call SetMapFlag(MAP_LOCK_RESOURCE_TRADING,true)
call SetMapFlag(MAP_LOCK_ALLIANCE_CHANGES,true)
call SetMapFlag(MAP_RANDOM_RACES,false)
call SetMapFlag(MAP_FOG_HIDE_TERRAIN,true)
call SetMapFlag(MAP_FOG_MAP_EXPLORED,false)
call SetMapFlag(MAP_FOG_ALWAYS_VISIBLE,false)
call FogEnableOn()
call FogMaskEnableOn()
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_FIRE,45.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_UNITSOUNDS,45.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_UI,85.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_UNITMOVEMENT,85.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_SPELLS,85.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_COMBAT,80.)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_MUSIC,100.)
call SetAmbientDaySound("BlackCitadelDay")
call SetAmbientNightSound("BlackCitadelNight")
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_AMBIENTSOUNDS,100.)
call EnableDawnDusk(false)
call SetTimeOfDay(6.1)
call UseTimeOfDayBJ(false)
call SetAllyColorFilterState(0)
call SetCreepCampFilterState(false)
call EnableMinimapFilterButtons(false,false)
set udg_rects02[1]=udg_rect236
set udg_rects02[2]=udg_rect237
set udg_rects02[3]=udg_rect238
set udg_rects02[4]=udg_rect239
set udg_rects02[5]=udg_rect240
set udg_rects02[6]=udg_rect241
set udg_integers50[1]='h01D'
set udg_integers50[2]='h00K'
set udg_integers50[3]='h01I'
set udg_integers50[4]='h00T'
set udg_integers50[5]='h018'
set udg_integers50[6]='h000'
call SetUnitFlyHeight(udg_unit07,1400.,600.)
call SetTerrainFogExBJ(0,520.,1080.,0,1.,.0,4.)
call CinematicFadeBJ(1,.0,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call SetUnitPositionLoc(udg_unit08,GetRectCenter(bj_mapInitialPlayableArea))
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,udg_rect29)
set udg_fogmodifiers01[1]=bj_lastCreatedFogModifier
call SetUnitTimeScalePercent(udg_unit06,20.)
call CameraSetSmoothingFactor(1.)
call TriggerSleepAction(.01)
call StopMusic(true)
call PlaySoundBJ(udg_sound59)
call TriggerSleepAction(.5)
call TriggerExecute(udg_trigger45)
call TriggerExecute(udg_trigger58)
call TriggerSleepAction(1.)
call TriggerExecute(udg_trigger48)
call CinematicFadeBJ(0,1.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call SetPlayerTechResearchedSwap('R00L',1,Player(6))
call SetPlayerTechResearchedSwap('R00L',1,Player(7))
call SetPlayerTechResearchedSwap('R00L',1,Player(8))
call SetPlayerTechResearchedSwap('R00L',1,Player(9))
call SetPlayerTechResearchedSwap('R00L',1,Player(10))
call SetPlayerTechResearchedSwap('R00L',1,Player(11))
call SetPlayerAllianceStateBJ(Player(7),Player(6),0)
call SetPlayerAllianceStateBJ(Player(7),Player(8),0)
call SetPlayerAllianceStateBJ(Player(7),Player(10),0)
call SetPlayerAllianceStateBJ(Player(7),Player(11),6)
call SetPlayerAllianceStateBJ(Player(7),Player(9),6)
call SetPlayerAllianceStateBJ(Player(6),Player(7),6)
call SetPlayerAllianceStateBJ(Player(8),Player(7),6)
call SetPlayerAllianceStateBJ(Player(10),Player(7),6)
call ForForce(bj_FORCE_ALL_PLAYERS,function Q1)
call ConditionalTriggerExecute(udg_trigger312)
call ForForce(udg_force05,function Q2)
call SetPlayerAllianceBJ(Player(11),ALLIANCE_SHARED_SPELLS,true,Player(13))
set udg_camerasetup01=udg_camerasetup02
call EnableTrigger(udg_trigger47)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Q4 takes nothing returns nothing
call CreateQuestBJ(0,"Basics","TRIGSTR_2067","ReplaceableTextures\\CommandButtons\\BTNSuit.blp")
call CreateQuestBJ(0,"Camera Controls","TRIGSTR_3284","ReplaceableTextures\\CommandButtons\\BTNXRayVisor.blp")
call CreateQuestBJ(0,"Hatch List","TRIGSTR_603","ReplaceableTextures\\CommandButtons\\BTNHoldPosition2.blp")
call CreateQuestBJ(0,"Attack Types","TRIGSTR_2667","ReplaceableTextures\\CommandButtons\\BTNWaveBeam.blp")
call CreateQuestBJ(0,"Saving","TRIGSTR_605","ReplaceableTextures\\CommandButtons\\BTNChargeAttack.blp")
call CreateQuestBJ(0,"Ammo/Item Tanks","TRIGSTR_2072","ReplaceableTextures\\CommandButtons\\BTNTank.blp")
call CreateQuestBJ(0,"Chozo Items","TRIGSTR_2070","ReplaceableTextures\\CommandButtons\\BTNMorphBall.blp")
call CreateQuestBJ(0,"Intro Briefing","TRIGSTR_299","ReplaceableTextures\\CommandButtons\\BTNPlasmaBeam.blp")
call CreateQuestBJ(2,"Hero Attributes","TRIGSTR_1247","ReplaceableTextures\\CommandButtons\\BTNGravitySuit.blp")
call CreateQuestBJ(2,"Credits","TRIGSTR_295","ReplaceableTextures\\CommandButtons\\BTNSpaceJump.blp")
call CreateQuestBJ(2,"Special Thanks","TRIGSTR_4027","ReplaceableTextures\\CommandButtons\\BTNSpaceJump.blp")
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Q5 takes nothing returns nothing
set udg_sounds01[0]=null
set udg_sounds01[12]=udg_sound41
set udg_sounds01[13]=udg_sound42
set udg_sounds01[14]=udg_sound43
set udg_sounds01[15]=udg_sound44
set udg_sounds01[16]=udg_sound45
set udg_sounds01[17]=udg_sound46
set udg_sounds01[18]=udg_sound47
set udg_sounds01[19]=udg_sound48
set udg_sounds01[20]=udg_sound29
set udg_sounds01[21]=udg_sound49
set udg_sounds01[22]=udg_sound50
set udg_sounds01[23]=udg_sound51
set udg_sounds01[24]=udg_sound52
set udg_sounds01[25]=udg_sound53
set udg_sounds01[26]=udg_sound54
set udg_sounds01[27]=udg_sound55
set udg_sounds01[28]=udg_sound56
set udg_sounds01[1]=udg_sound30
set udg_sounds01[2]=udg_sound31
set udg_sounds01[3]=udg_sound32
set udg_sounds01[4]=udg_sound33
set udg_sounds01[5]=udg_sound34
set udg_sounds01[6]=udg_sound35
set udg_sounds01[7]=udg_sound36
set udg_sounds01[8]=udg_sound37
set udg_sounds01[9]=udg_sound38
set udg_sounds01[10]=udg_sound39
set udg_sounds01[11]=udg_sound40
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Q6 takes nothing returns nothing
set udg_string25="|ccc4488bb"
set udg_string26="|ccc99ddff"
call DialogSetMessage(udg_dialog08,(udg_string25+"Escape Menu"))
call DialogAddButtonBJ(udg_dialog08,(udg_string26+"View Inventory"))
set udg_buttons07[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog08,(udg_string26+"Self Destruct"))
set udg_buttons07[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog08,(udg_string26+"Toggle Beginner Hints"))
set udg_buttons07[4]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog08,(udg_string26+"Set Camera Mode"))
set udg_buttons07[5]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog08,(udg_string26+"Change Camera Angle"))
set udg_buttons07[6]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog08,(udg_string25+"Return"))
set udg_buttons07[7]=bj_lastCreatedButton
call DialogSetMessage(udg_dialog10,(udg_string25+"Beginner Hints"))
call DialogAddButtonBJ(udg_dialog10,(udg_string26+"Show Hints"))
set udg_buttons08[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog10,(udg_string26+"Hide Hints"))
set udg_buttons08[2]=bj_lastCreatedButton
call DialogSetMessage(udg_dialog14,(udg_string25+"Select Camera Mode"))
call DialogAddButtonBJ(udg_dialog14,(udg_string26+"Free - arrow keys Scroll"))
set udg_buttons11[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog14,(udg_string26+"Free - arrow keys Rotate"))
set udg_buttons11[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog14,(udg_string26+"Follow - arrow keys Rotate"))
set udg_buttons11[3]=bj_lastCreatedButton
call DialogSetMessage(udg_dialog13,(udg_string25+"Select Camera Angle"))
call DialogAddButtonBJ(udg_dialog13,(udg_string26+"High"))
set udg_buttons10[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog13,(udg_string26+"Normal"))
set udg_buttons10[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog13,(udg_string26+"Low"))
set udg_buttons10[3]=bj_lastCreatedButton
call DialogSetMessage(udg_dialog11,(udg_string25+"Choose difficulty level"))
call DialogAddButtonBJ(udg_dialog11,(udg_string26+"- Normal -"))
set udg_buttons09[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog11,(udg_string26+"Hard"))
set udg_buttons09[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog11,(udg_string26+"Extreme"))
set udg_buttons09[3]=bj_lastCreatedButton
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Q7 takes nothing returns nothing
call SelectUnitForPlayerSingle(udg_unit06,GetTriggerPlayer())
endfunction
function Q8 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function Q9 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function ra takes nothing returns boolean
return GetBooleanAnd(Q8(),Q9())
endfunction
function rA takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup01,GetEnumPlayer(),1.2)
endfunction
function rb takes nothing returns nothing
call ForForce(lN(Condition(function ra)),function rA)
endfunction
function rB takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function rc takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(rB())then
set udg_player04=Player(-1+(bj_forLoopAIndex))
call DialogDisplayBJ(true,udg_dialog11,udg_player04)
return
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function rC takes nothing returns boolean
return(GetClickedButton()==udg_buttons09[1])
endfunction
function rd takes nothing returns boolean
return(GetItemTypeId(GetEnumItem())=='I000')
endfunction
function rD takes nothing returns nothing
if(rd())then
call SetItemVisible(GetEnumItem(),false)
call CreateItemLoc('I00Z',GetItemLoc(GetEnumItem()))
call RemoveItem(GetEnumItem())
endif
endfunction
function re takes nothing returns boolean
return(GetClickedButton()==udg_buttons09[2])
endfunction
function rE takes nothing returns boolean
return(GetItemTypeId(GetEnumItem())=='I000')
endfunction
function rf takes nothing returns nothing
if(rE())then
call SetItemVisible(GetEnumItem(),false)
call CreateItemLoc('I00Y',GetItemLoc(GetEnumItem()))
call RemoveItem(GetEnumItem())
endif
endfunction
function rF takes nothing returns boolean
return(GetClickedButton()==udg_buttons09[3])
endfunction
function rg takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function rG takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function rh takes nothing returns boolean
return GetBooleanAnd(rg(),rG())
endfunction
function rH takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h026',GetEnumPlayer(),Ko(GetUnitLoc(udg_unit06),40.,((I2R((1+GetPlayerId(GetEnumPlayer())))-1)*60.)),bj_UNIT_FACING)
call SelectUnitForPlayerSingle(udg_unit06,GetEnumPlayer())
endfunction
function ri takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(rC())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound168,(GetPlayerName(GetTriggerPlayer())+" has chosen NORMAL difficulty level"),1,6.,false)
endif
if(re())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound168,(GetPlayerName(GetTriggerPlayer())+" has chosen HARD difficulty level"),1,6.,false)
call SetPlayerTechResearchedSwap('R00H',1,Player(10))
call SetPlayerTechResearchedSwap('R00H',1,Player(6))
call SetPlayerTechResearchedSwap('R00H',1,Player(8))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerTechResearchedSwap('R00I',1,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnumItemsInRectBJ(bj_mapInitialPlayableArea,function rD)
endif
if(rF())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound168,(GetPlayerName(GetTriggerPlayer())+" has chosen EXTREME difficulty level"),1,6.,false)
call SetPlayerTechResearchedSwap('R00H',2,Player(10))
call SetPlayerTechResearchedSwap('R00H',2,Player(6))
call SetPlayerTechResearchedSwap('R00H',2,Player(8))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerTechResearchedSwap('R00I',2,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnumItemsInRectBJ(bj_mapInitialPlayableArea,function rf)
endif
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound168,"Choose a hero at the bottom right of the screen.",1,10.,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null," ",1,1.,false)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForForce(lN(Condition(function rh)),function rH)
call Kh(2.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=2
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateTextTagLocBJ("TRIGSTR_1414",OffsetLocation(GetRectCenter(udg_rect29),((I2R(bj_forLoopAIndex)*300.)-680.),((I2R(bj_forLoopBIndex)*250.)-500.)),0,10.,40.,50.,60.,60.)
set udg_texttags01[(((bj_forLoopAIndex-1)*2)+bj_forLoopBIndex)]=bj_lastCreatedTextTag
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateTextTagLocBJ("TRIGSTR_1748",OffsetLocation(GetRectCenter(udg_rect29),-300.,.0),0,10.,80.,90.,'d',60.)
set udg_texttags01[7]=bj_lastCreatedTextTag
call CreateTextTagLocBJ("TRIGSTR_1415",OffsetLocation(GetRectCenter(udg_rect29),.0,.0),0,10.,80.,90.,'d',60.)
set udg_texttags01[8]=bj_lastCreatedTextTag
call CreateTextTagLocBJ("TRIGSTR_1749",OffsetLocation(GetRectCenter(udg_rect29),300.,.0),0,10.,80.,90.,'d',60.)
set udg_texttags01[9]=bj_lastCreatedTextTag
call CreateTextTagLocBJ("TRIGSTR_1750",OffsetLocation(GetRectCenter(udg_rect29),-300.,-250.),0,10.,80.,90.,'d',60.)
set udg_texttags01[10]=bj_lastCreatedTextTag
call CreateTextTagLocBJ("TRIGSTR_1751",OffsetLocation(GetRectCenter(udg_rect29),.0,-250.),0,10.,80.,90.,'d',60.)
set udg_texttags01[11]=bj_lastCreatedTextTag
call CreateTextTagLocBJ("TRIGSTR_1451",OffsetLocation(GetRectCenter(udg_rect29),300.,-250.),0,10.,80.,90.,'d',60.)
set udg_texttags01[12]=bj_lastCreatedTextTag
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function rI takes nothing returns boolean
return(GetUnitTypeId(GetSoldUnit())=='h01D')
endfunction
function rj takes nothing returns boolean
return(GetUnitTypeId(GetSoldUnit())=='h00K')
endfunction
function rJ takes nothing returns boolean
return(GetUnitTypeId(GetSoldUnit())=='h01I')
endfunction
function rk takes nothing returns boolean
return(GetUnitTypeId(GetSoldUnit())=='h00T')
endfunction
function rK takes nothing returns boolean
return(GetUnitTypeId(GetSoldUnit())=='h018')
endfunction
function rl takes nothing returns boolean
return(GetUnitTypeId(GetSoldUnit())=='h000')
endfunction
function rL takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function rm takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h026')
endfunction
function rM takes nothing returns boolean
return GetBooleanAnd(rL(),rm())
endfunction
function rn takes nothing returns boolean
return(CountUnitsInGroup(lG(bj_mapInitialPlayableArea,Condition(function rM)))==0)
endfunction
function rN takes nothing returns nothing
if(rI())then
set udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=1
set udg_integers52[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=3
set udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=3
endif
if(rj())then
set udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=2
set udg_integers52[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=1
set udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=2
endif
if(rJ())then
set udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=3
set udg_integers52[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=1
set udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=3
endif
if(rk())then
set udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=4
set udg_integers52[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=2
set udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=1
endif
if(rK())then
set udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=5
set udg_integers52[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=2
set udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=1
endif
if(rl())then
set udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=6
set udg_integers52[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=3
set udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetBuyingUnit())))]=2
endif
call RemoveUnit(GetSoldUnit())
call KillUnit(GetBuyingUnit())
if(rn())then
call ConditionalTriggerExecute(udg_trigger52)
else
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetBuyingUnit())),null,"",null,"Waiting for other players.",1,3.,false)
endif
endfunction
function ro takes nothing returns boolean
return(GetUnitLevel(GetFilterUnit())==3)
endfunction
function rO takes nothing returns nothing
call RemoveItem(UnitItemInSlotBJ(GetEnumUnit(),1))
call RemoveItem(UnitItemInSlotBJ(GetEnumUnit(),2))
call RemoveItem(UnitItemInSlotBJ(GetEnumUnit(),3))
call RemoveItem(UnitItemInSlotBJ(GetEnumUnit(),4))
call SetItemPositionLoc(UnitItemInSlotBJ(GetEnumUnit(),5),OffsetLocation(GetRectCenter(udg_rect231),0,-200.))
call SetItemPositionLoc(UnitItemInSlotBJ(GetEnumUnit(),6),OffsetLocation(GetRectCenter(udg_rect231),0,-200.))
call KillUnit(GetEnumUnit())
endfunction
function rP takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function rq takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger49))and(GetTriggerPlayer()==udg_player04)
endfunction
function rQ takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function rr takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h026')
endfunction
function rR takes nothing returns boolean
return GetBooleanAnd(rQ(),rr())
endfunction
function rs takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger52))and(CountUnitsInGroup(lG(bj_mapInitialPlayableArea,Condition(function rR)))==0)
endfunction
function rS takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function rt takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_force02)==false)
endfunction
function rT takes nothing returns boolean
return GetBooleanAnd(rS(),rt())
endfunction
function ru takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger52)==false)and(IsTriggerEnabled(udg_trigger59))and(0>=CountPlayersInForceBJ(lN(Condition(function rT))))
endfunction
function rU takes nothing returns nothing
call ForGroupBJ(lo(1,ll(GetTriggerPlayer(),Condition(function ro))),function rO)
call ForGroupBJ(lL(GetTriggerPlayer()),function rP)
if(rq())then
call ConditionalTriggerExecute(udg_trigger48)
endif
if(rs())then
call ConditionalTriggerExecute(udg_trigger52)
endif
call ForceRemovePlayer(udg_force02,GetTriggerPlayer())
if(ru())then
call ConditionalTriggerExecute(udg_trigger59)
endif
endfunction
function rv takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function rV takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function rw takes nothing returns boolean
return GetBooleanAnd(rv(),rV())
endfunction
function rW takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog14,GetEnumPlayer())
endfunction
function rx takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger46)
call KillUnit(udg_unit06)
set udg_camerasetup01=udg_camerasetup03
call Kh(1.)
call PlaySoundBJ(udg_sound167)
call ForForce(lN(Condition(function rw)),function rW)
endfunction
function rX takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function ry takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function rY takes nothing returns boolean
return GetBooleanAnd(rX(),ry())
endfunction
function rz takes nothing returns boolean
return(CountPlayersInForceBJ(udg_force02)>=CountPlayersInForceBJ(lN(Condition(function rY))))
endfunction
function rZ takes nothing returns nothing
call ForceAddPlayer(udg_force02,GetTriggerPlayer())
if(rz())then
call ConditionalTriggerExecute(udg_trigger59)
else
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"Waiting for other players.",1,3.,false)
endif
endfunction
function r0 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01Q')
endfunction
function r1 takes nothing returns nothing
call CreateDestructableLoc('B00M',GetUnitLoc(GetEnumUnit()),22.5,1.6,0)
call RemoveUnit(GroupPickRandomUnit(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function r0))))
endfunction
function r2 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function r3 takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function r4 takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function r5 takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function r6 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==udg_integer49)
endfunction
function r7 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function r8 takes nothing returns boolean
return GetBooleanAnd(r6(),r7())
endfunction
function r9 takes nothing returns nothing
call KillUnit(GetEnumUnit())
call CreateNUnitsAtLoc(1,'n01H',Player(15),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,bj_forLoopAIndex)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_YELLOW)
call CreateDestructableLoc('B025',OffsetLocation(GetUnitLoc(GetEnumUnit()),32.,96.),180.,1.3,0)
call RemoveUnit(GetEnumUnit())
endfunction
function Ra takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==udg_integer49)
endfunction
function RA takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Rb takes nothing returns boolean
return GetBooleanAnd(Ra(),RA())
endfunction
function RB takes nothing returns nothing
call KillUnit(GetEnumUnit())
call CreateNUnitsAtLoc(1,'n000',Player(15),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call RemoveUnit(GetEnumUnit())
endfunction
function Rc takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())==udg_integer49)
endfunction
function RC takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Rd takes nothing returns boolean
return GetBooleanAnd(Rc(),RC())
endfunction
function RD takes nothing returns nothing
call KillUnit(GetEnumUnit())
call CreateNUnitsAtLoc(1,'n01G',Player(15),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_AQUA)
call SetUnitUserData(bj_lastCreatedUnit,bj_forLoopAIndex)
call CreateDestructableLoc('B025',OffsetLocation(GetUnitLoc(GetEnumUnit()),32.,96.),180.,1.3,0)
call RemoveUnit(GetEnumUnit())
endfunction
function Re takes nothing returns nothing
call KW(GetEnumUnit(),'h04D',3)
endfunction
function RE takes nothing returns nothing
call TriggerExecute(udg_trigger55)
call TriggerExecute(udg_trigger56)
call ForGroupBJ(lm(Player(9),'h04C'),function r1)
call ForGroupBJ(lo(12,lm(Player(11),'h03Z')),function r2)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(r5())then
set udg_integer49='n01E'
else
if(r4())then
set udg_integer49='n01F'
else
if(r3())then
set udg_integer49='n01R'
endif
endif
endif
call ForGroupBJ(lo(1,ll(Player(11),Condition(function r8))),function r9)
call ForGroupBJ(lo(1,ll(Player(11),Condition(function Rb))),function RB)
call ForGroupBJ(lo(1,ll(Player(11),Condition(function Rd))),function RD)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call Kh(.1)
call ForGroupBJ(lo(6,lm(Player(11),'h03Z')),function Re)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Rf takes nothing returns boolean
return(bj_forLoopAIndex==5)
endfunction
function RF takes nothing returns boolean
return(bj_forLoopAIndex==4)
endfunction
function Rg takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function RG takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function Rh takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function RH takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h045')
endfunction
function Ri takes nothing returns nothing
set udg_destructable02=RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),100.,100.))
call KW(GetEnumUnit(),GetUnitTypeId(udg_unit01),3)
call SetUnitPositionLoc(bj_lastReplacedUnit,GetDestructableLoc(udg_destructable02))
endfunction
function RI takes nothing returns boolean
return(bj_forLoopAIndex==5)
endfunction
function Rj takes nothing returns boolean
return(bj_forLoopAIndex==4)
endfunction
function RJ takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function Rk takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function RK takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function Rl takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h045')
endfunction
function RL takes nothing returns nothing
set udg_destructable02=RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),100.,100.))
call KW(GetEnumUnit(),GetUnitTypeId(udg_unit01),3)
call SetUnitPositionLoc(bj_lastReplacedUnit,GetDestructableLoc(udg_destructable02))
endfunction
function Rm takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Rh())then
set udg_rect05=udg_rect30
else
if(RG())then
set udg_rect05=udg_rect31
else
if(Rg())then
set udg_rect05=udg_rect32
else
if(RF())then
set udg_rect05=udg_rect33
else
if(Rf())then
set udg_rect05=udg_rect34
else
set udg_rect05=udg_rect35
endif
endif
endif
endif
endif
set udg_unit01=GroupPickRandomUnit(lH(udg_rect36))
call ForGroupBJ(lG(udg_rect05,Condition(function RH)),function Ri)
call RemoveUnit(udg_unit01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(RK())then
set udg_rect05=udg_rect37
else
if(Rk())then
set udg_rect05=udg_rect38
else
if(RJ())then
set udg_rect05=udg_rect39
else
if(Rj())then
set udg_rect05=udg_rect40
else
if(RI())then
set udg_rect05=udg_rect41
else
set udg_rect05=udg_rect42
endif
endif
endif
endif
endif
set udg_unit01=GroupPickRandomUnit(lH(udg_rect43))
call ForGroupBJ(lG(udg_rect05,Condition(function Rl)),function RL)
call RemoveUnit(udg_unit01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function RM takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function Rn takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function RN takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h034')
endfunction
function Ro takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function RO takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function Rp takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function RP takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h034')
endfunction
function Rq takes nothing returns boolean
return(bj_forLoopAIndex==4)
endfunction
function RQ takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function Rr takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function RR takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function Rs takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h034')
endfunction
function RS takes nothing returns boolean
return(bj_forLoopAIndex==4)
endfunction
function Rt takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function RT takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function Ru takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function RU takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h034')
endfunction
function Rv takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_unit01=GroupPickRandomUnit(lH(udg_rect76))
if(RN())then
if(Rn())then
set udg_rect05=udg_rect74
else
if(RM())then
set udg_rect05=udg_rect75
endif
endif
call TriggerExecute(udg_trigger57)
endif
call RemoveUnit(udg_unit01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_unit01=GroupPickRandomUnit(lH(udg_rect80))
if(RP())then
if(Rp())then
set udg_rect05=udg_rect77
else
if(RO())then
set udg_rect05=udg_rect78
else
if(Ro())then
set udg_rect05=udg_rect79
endif
endif
endif
call TriggerExecute(udg_trigger57)
endif
call RemoveUnit(udg_unit01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_unit01=GroupPickRandomUnit(lH(udg_rect85))
if(Rs())then
if(RR())then
set udg_rect05=udg_rect81
else
if(Rr())then
set udg_rect05=udg_rect82
else
if(RQ())then
set udg_rect05=udg_rect83
else
if(Rq())then
set udg_rect05=udg_rect84
endif
endif
endif
endif
call TriggerExecute(udg_trigger57)
endif
call RemoveUnit(udg_unit01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_unit01=GroupPickRandomUnit(lH(udg_rect90))
if(RU())then
if(Ru())then
set udg_rect05=udg_rect86
else
if(RT())then
set udg_rect05=udg_rect87
else
if(Rt())then
set udg_rect05=udg_rect88
else
if(RS())then
set udg_rect05=udg_rect89
endif
endif
endif
endif
call TriggerExecute(udg_trigger57)
endif
call RemoveUnit(udg_unit01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function RV takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00D')
endfunction
function Rw takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00E')
endfunction
function RW takes nothing returns nothing
if(RV())then
call CreateDestructableLoc('B010',GetDestructableLoc(GetEnumDestructable()),.0,(udg_real17+.2),0)
call RemoveDestructable(GetEnumDestructable())
endif
if(Rw())then
call CreateDestructableLoc('B011',GetDestructableLoc(GetEnumDestructable()),270.,(udg_real17+.2),0)
call RemoveDestructable(GetEnumDestructable())
endif
endfunction
function Rx takes nothing returns nothing
call EnumDestructablesInRectAll(udg_rect05,function RW)
endfunction
function RX takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B01M')or(GetDestructableTypeId(GetEnumDestructable())=='B01K')
endfunction
function Ry takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B01L')or(GetDestructableTypeId(GetEnumDestructable())=='B01J')
endfunction
function RY takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_MASKED,RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),256.,256.))
endfunction
function Rz takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_MASKED,RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),128.,128.))
endfunction
function RZ takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='YTfc')
endfunction
function R4 takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00B')
endfunction
function R5 takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_MASKED,RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),384.,256.))
endfunction
function R6 takes nothing returns boolean
return(Ry())
endfunction
function R7 takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_MASKED,RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),256.,384.))
endfunction
function R8 takes nothing returns boolean
return(RX())
endfunction
function R9 takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_MASKED,RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),384.,384.))
endfunction
function sa takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B000')
endfunction
function sA takes nothing returns nothing
if(sa())then
call ForForce(bj_FORCE_ALL_PLAYERS,function R9)
else
if(R8())then
call ForForce(bj_FORCE_ALL_PLAYERS,function R7)
else
if(R6())then
call ForForce(bj_FORCE_ALL_PLAYERS,function R5)
else
if(R4())then
call ForForce(bj_FORCE_ALL_PLAYERS,function RY)
else
if(RZ())then
call ForForce(bj_FORCE_ALL_PLAYERS,function Rz)
endif
endif
endif
endif
endif
endfunction
function sb takes nothing returns nothing
call EnumDestructablesInRectAll(bj_mapInitialPlayableArea,function sA)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function sB takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyTextTag(udg_texttags01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger75)
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger76)
call TriggerExecute(udg_trigger77)
call TriggerExecute(udg_trigger54)
call FogModifierStop(udg_fogmodifiers01[1])
call DestroyFogModifier(udg_fogmodifiers01[1])
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,udg_rect29)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_MASKED,udg_rect29)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUserControlForceOff(bj_FORCE_ALL_PLAYERS)
call CinematicFadeBJ(1,1.5,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_TARGET_DISTANCE,250.,6.)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call StopSoundBJ(udg_sound59,true)
call Kh(.5)
call DisableTrigger(udg_trigger53)
call DisableTrigger(udg_trigger47)
call Kh(.5)
call TriggerExecute(udg_trigger60)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function sc takes nothing returns nothing
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"|cccc1c1c1- Incoming transmission from HQ:",1,6.,false)
call Kh(1.)
call TriggerExecute(udg_trigger67)
call Kh(1.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound168,"|cccc1c1c1You are now arriving at Aurora II, a space station that specializes in researching the ancient Chozo race, and houses many of their powerful artifacts.",1,11.,false)
call Kh(1.)
call PlaySoundBJ(udg_sound60)
call Kh(3.)
call TriggerExecute(udg_trigger61)
call Kh(9.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"TRIGSTR_3859",1,12.,false)
call Kh(4.5)
call TriggerExecute(udg_trigger62)
call Kh(8.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"TRIGSTR_3530",1,12.,false)
call Kh(7.5)
call TriggerExecute(udg_trigger63)
call Kh(5.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"TRIGSTR_3867",1,20.,false)
call Kh(11.5)
call TriggerExecute(udg_trigger64)
call Kh(9.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"TRIGSTR_3531",1,18.,false)
call Kh(5.)
call TriggerExecute(udg_trigger68)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function sC takes nothing returns nothing
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ROTATION,90.,0)
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),udg_rect52)
call CameraSetupApplyForPlayer(true,udg_camerasetup11,GetEnumPlayer(),.0)
call CameraSetupApplyForPlayer(true,udg_camerasetup12,GetEnumPlayer(),9.5)
endfunction
function sd takes nothing returns nothing
call ForForce(bj_FORCE_ALL_PLAYERS,function sC)
call SetTerrainFogExBJ(0,8000.,9000.,0,.0,.0,.0)
call ChangeElevatorHeight(udg_destructable23,3)
call CinematicFadeBJ(0,4.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,udg_rect60)
set udg_fogmodifiers01[2]=bj_lastCreatedFogModifier
call Kh(4.)
call IssuePointOrderByIdLoc(udg_unit13,851986,GetRectCenter(udg_rect56))
call SetUnitTimeScalePercent(udg_unit13,.0)
call Kh(.5)
call StopSoundBJ(udg_sound60,true)
call PlaySoundBJ(udg_sounds01[12])
call Kh(3.)
call CinematicFadeBJ(1,1.5,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call Kh(1.5)
call FogModifierStop(udg_fogmodifiers01[2])
call DestroyFogModifier(udg_fogmodifiers01[2])
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,udg_rect60)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_MASKED,udg_rect60)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function sD takes nothing returns nothing
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ROTATION,90.,0)
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),udg_rect53)
call CameraSetupApplyForPlayer(true,udg_camerasetup20,GetEnumPlayer(),.0)
endfunction
function se takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup21,GetEnumPlayer(),.15)
endfunction
function sE takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup22,GetEnumPlayer(),.0)
endfunction
function sf takes nothing returns nothing
call ForForce(bj_FORCE_ALL_PLAYERS,function sD)
call CinematicFilterGenericBJ(4.5,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",.0,.0,.0,.0,0,0,0,70.)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,udg_rect55)
set udg_fogmodifiers01[6]=bj_lastCreatedFogModifier
call SetUnitAnimationWithRarity(udg_unit19,"stand",RARITY_FREQUENT)
call SetUnitTimeScalePercent(udg_unit19,60.)
call Kh(4.)
call CinematicFilterGenericBJ(1.1,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",.0,.0,.0,100.,0,0,0,40.)
call SetUnitTimeScalePercent(udg_unit19,30.)
call ForForce(bj_FORCE_ALL_PLAYERS,function se)
call Kh(1.)
call SetUnitTimeScalePercent(udg_unit19,100.)
call SetUnitAnimation(udg_unit19,"attack")
call QueueUnitAnimation(udg_unit19,"stand, ready")
call CinematicFadeBJ(1,3.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call ForForce(bj_FORCE_ALL_PLAYERS,function sE)
call Kh(3.)
call FogModifierStop(udg_fogmodifiers01[6])
call DestroyFogModifier(udg_fogmodifiers01[6])
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,udg_rect55)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_MASKED,udg_rect55)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function sF takes nothing returns nothing
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ROTATION,90.,0)
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),udg_rect53)
call CameraSetupApplyForPlayer(true,udg_camerasetup13,GetEnumPlayer(),.0)
call CameraSetupApplyForPlayer(true,udg_camerasetup14,GetEnumPlayer(),5.5)
endfunction
function sg takes nothing returns nothing
call ForForce(bj_FORCE_ALL_PLAYERS,function sF)
call CinematicFadeBJ(0,2.5,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,udg_rect61)
set udg_fogmodifiers01[5]=bj_lastCreatedFogModifier
call SetUnitAnimation(udg_unit12,"birth")
call SetUnitTimeScalePercent(udg_unit12,.0)
call Kh(3.5)
call CinematicFadeBJ(1,1.5,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call Kh(1.5)
call FogModifierStop(udg_fogmodifiers01[5])
call DestroyFogModifier(udg_fogmodifiers01[5])
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,udg_rect61)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_MASKED,udg_rect61)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function sG takes nothing returns nothing
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ROTATION,90.,0)
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),udg_rect54)
call CameraSetupApplyForPlayer(true,udg_camerasetup09,GetEnumPlayer(),.0)
call CameraSetupApplyForPlayer(true,udg_camerasetup10,GetEnumPlayer(),10.)
endfunction
function sh takes nothing returns nothing
call ForForce(bj_FORCE_ALL_PLAYERS,function sG)
call CinematicFadeBJ(0,3.5,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,udg_rect57)
set udg_fogmodifiers01[3]=bj_lastCreatedFogModifier
call IssuePointOrderByIdLoc(udg_unit11,851986,GetRectCenter(udg_rect59))
call Kh(8.)
call CinematicFadeBJ(1,1.5,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call Kh(1.5)
call FogModifierStop(udg_fogmodifiers01[3])
call DestroyFogModifier(udg_fogmodifiers01[3])
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_MASKED,udg_rect57)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_MASKED,udg_rect57)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function sH takes nothing returns boolean
return(GetTriggerUnit()==udg_unit11)
endfunction
function si takes nothing returns nothing
call SetUnitFlyHeight(GetTriggerUnit(),.0,25.)
call SetUnitMoveSpeed(GetTriggerUnit(),110.)
endfunction
function sI takes nothing returns boolean
return(GetTriggerUnit()==udg_unit11)
endfunction
function sj takes nothing returns nothing
call SetUnitFlyHeight(GetTriggerUnit(),.0,45.)
call SetUnitMoveSpeed(GetTriggerUnit(),80.)
call ChangeElevatorHeight(udg_destructable23,1)
call SetDestAnimationSpeedPercent(udg_destructable23,50.)
endfunction
function sJ takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function sk takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function sK takes nothing returns boolean
return GetBooleanAnd(sJ(),sk())
endfunction
function sl takes nothing returns boolean
return(CountPlayersInForceBJ(udg_force05)>1)
endfunction
function sL takes nothing returns boolean
return(GetFilterUnit()==bj_lastCreatedUnit)
endfunction
function sm takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o007',GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect248),bj_UNIT_FACING)
set udg_units08[(1+GetPlayerId(GetEnumPlayer()))]=bj_lastCreatedUnit
set udg_unit01=GetEnumUnit()
call UnitAddItemByIdSwapped('I005',GetEnumUnit())
call UnitAddItemByIdSwapped('I00K',GetEnumUnit())
call UnitAddItemByIdSwapped('I00L',GetEnumUnit())
call UnitAddItemByIdSwapped('I00F',GetEnumUnit())
call TriggerExecute(udg_trigger85)
call TriggerExecute(udg_trigger290)
call PauseUnit(GetEnumUnit(),true)
call ShowUnitHide(GetEnumUnit())
endfunction
function sM takes nothing returns nothing
set udg_integers63[(1+GetPlayerId(GetEnumPlayer()))]=1
call CreateNUnitsAtLoc(1,udg_integers50[udg_integers51[(1+GetPlayerId(GetEnumPlayer()))]],GetEnumPlayer(),GetRectCenter(udg_rect231),GetRandomReal(250.,290.))
if(sl())then
call SetUnitPositionLoc(bj_lastCreatedUnit,GetRandomLocInRect(udg_rect233))
else
call SetUnitPositionLoc(bj_lastCreatedUnit,GetRectCenter(udg_rect233))
endif
call SetUnitExploded(bj_lastCreatedUnit,true)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_BLUE)
set udg_units24[(1+GetPlayerId(GetEnumPlayer()))]=bj_lastCreatedUnit
call GroupAddUnit(udg_group11,bj_lastCreatedUnit)
call TriggerRegisterUnitEvent(udg_trigger314,bj_lastCreatedUnit,EVENT_UNIT_DAMAGED)
call ForGroupBJ(ll(GetEnumPlayer(),Condition(function sL)),function sm)
endfunction
function sn takes nothing returns nothing
set udg_units03[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=GetEnumUnit()
endfunction
function sN takes nothing returns nothing
set udg_units04[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=GetEnumUnit()
endfunction
function so takes nothing returns nothing
set udg_units05[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=GetEnumUnit()
endfunction
function sO takes nothing returns nothing
set udg_units06[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=GetEnumUnit()
endfunction
function sP takes nothing returns nothing
set udg_units07[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=GetEnumUnit()
endfunction
function sq takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==2)
endfunction
function sQ takes nothing returns nothing
call ShowUnitShow(GetEnumUnit())
endfunction
function sr takes nothing returns nothing
call ConditionalTriggerExecute(udg_trigger312)
call ForForce(lN(Condition(function sK)),function sM)
call Kv(false)
call TriggerExecute(udg_trigger69)
call TriggerExecute(udg_trigger70)
call EnableTrigger(udg_trigger207)
call EnableTrigger(udg_trigger208)
call ForGroupBJ(lk('n002'),function sn)
call ForGroupBJ(lk('n005'),function sN)
call ForGroupBJ(lk('n003'),function so)
call ForGroupBJ(lk('n004'),function sO)
call ForGroupBJ(lk('n008'),function sP)
call Kh(16.)
call TriggerExecute(udg_trigger71)
call TriggerExecute(udg_trigger74)
call TriggerExecute(udg_trigger79)
call TriggerExecute(udg_trigger80)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_FOGGED,udg_rect176)
call DestroyFogModifier(bj_lastCreatedFogModifier)
call ForGroupBJ(ll(Player(11),Condition(function sq)),function sQ)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h004',Player(7),GetRandomLocInRect(udg_rect229),GetRandomReal(0,360))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,48.,52.,64.,75.)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function sR takes nothing returns nothing
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ROTATION,90.,0)
call SetCameraBoundsToRectForPlayerBJ(GetEnumPlayer(),RectFromCenterSizeBJ(GetRectCenter(udg_rect176),udg_real18,udg_real18))
call CameraSetupApplyForPlayer(true,udg_camerasetup15,GetEnumPlayer(),.0)
call CameraSetupApplyForPlayer(true,udg_camerasetup16,GetEnumPlayer(),4.5)
endfunction
function ss takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup17,GetEnumPlayer(),4.)
endfunction
function sS takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o00X',Player(15),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
endfunction
function sT takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o00Y',Player(15),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
endfunction
function su takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00X')
endfunction
function sU takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function sv takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function sV takes nothing returns boolean
return GetBooleanAnd(sU(),sv())
endfunction
function sw takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup18,GetEnumPlayer(),5.)
set udg_locations02[(1+GetPlayerId(GetEnumPlayer()))]=Ko(GetUnitLoc(udg_unit05),100.,90.)
set udg_integers56[(1+GetPlayerId(GetEnumPlayer()))]=1
call ShowUnitShow(udg_units24[(1+GetPlayerId(GetEnumPlayer()))])
call CreateNUnitsAtLoc(1,'h054',Player(15),GetRectCenter(udg_rects02[(1+GetPlayerId(GetEnumPlayer()))]),270.)
call SetUnitColor(bj_lastCreatedUnit,GetPlayerColor(GetEnumPlayer()))
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,84.,100.,100.,0)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_BLUE)
call CreateNUnitsAtLoc(1,'o011',GetEnumPlayer(),GetRectCenter(udg_rects02[(1+GetPlayerId(GetEnumPlayer()))]),bj_UNIT_FACING)
set udg_units27[(1+GetPlayerId(GetEnumPlayer()))]=bj_lastCreatedUnit
call CreateNUnitsAtLoc(1,'o01D',GetEnumPlayer(),GetRectCenter(udg_rects02[(1+GetPlayerId(GetEnumPlayer()))]),bj_UNIT_FACING)
set udg_units29[(1+GetPlayerId(GetEnumPlayer()))]=bj_lastCreatedUnit
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,5)
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_FOOD_CAP,5)
endfunction
function sW takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetEnumPlayer()))]<2)
endfunction
function sx takes nothing returns nothing
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ANGLE_OF_ATTACK,320.,3.)
call SelectUnitForPlayerSingle(udg_units24[(1+GetPlayerId(GetEnumPlayer()))],GetEnumPlayer())
set udg_booleans22[(1+GetPlayerId(GetEnumPlayer()))]=true
set udg_reals17[(1+GetPlayerId(GetEnumPlayer()))]=90.
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ZOFFSET,.0,3.)
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ROTATION,90.,3.)
if(sW())then
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetRectCenter(udg_rect233),3.)
endif
endfunction
function sX takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"birth")
endfunction
function sy takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function sY takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function sz takes nothing returns boolean
return GetBooleanAnd(sy(),sY())
endfunction
function sZ takes nothing returns nothing
set udg_player03=GetEnumPlayer()
set udg_integer48=11
call TriggerExecute(udg_trigger316)
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ZOFFSET,.0,.0)
endfunction
function s0 takes nothing returns nothing
call SetSoundVolumeBJ(udg_sounds01[12],80.)
call ForForce(bj_FORCE_ALL_PLAYERS,function sR)
call SetTerrainFogExBJ(0,800.,6000.,0,.0,5.,11.)
call SetTimeOfDay(5.55)
call SetUnitPositionLocFacingBJ(udg_unit05,GetRectCenter(udg_rect233),270.)
call SetUnitVertexColorBJ(udg_unit05,.0,.0,.0,100.)
call ShowUnitHide(udg_unit05)
call SetUnitAnimation(udg_unit07,"stand")
call SetUnitTimeScalePercent(udg_unit07,.0)
call SetUnitPositionLocFacingBJ(udg_unit07,GetRectCenter(udg_rect231),270.)
call ShowDestructableBJ(false,udg_destructable06)
call ShowDestructableBJ(false,udg_destructable04)
call ShowDestructableBJ(false,udg_destructable07)
set udg_destructable03=udg_destructable05
call ShowDestructableBJ(false,udg_destructable03)
call CinematicFadeBJ(0,6.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call SetUnitFlyHeight(udg_unit07,100.,240.)
call CreateFogModifierRadiusLocBJ(true,Player(14),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect231),500.)
set udg_fogmodifiers01[4]=bj_lastCreatedFogModifier
call Kh(1.)
call SetSoundVolumeBJ(udg_sounds01[12],70.)
call Kh(1.)
call SetSoundVolumeBJ(udg_sounds01[12],60.)
call Kh(1.)
call SetSoundVolumeBJ(udg_sounds01[12],50.)
call Kh(.5)
call SetUnitFlyHeight(udg_unit07,50.,160.)
call ForForce(bj_FORCE_ALL_PLAYERS,function ss)
call Kh(1.5)
call SetSoundVolumeBJ(udg_sounds01[12],40.)
call SetUnitFlyHeight(udg_unit07,.0,120.)
call Kh(1.)
call SetSoundVolumeBJ(udg_sounds01[12],35.)
call Kh(.2)
call StopSoundBJ(udg_sounds01[12],true)
call ShowDestructableBJ(true,udg_destructable04)
call ShowDestructableBJ(true,udg_destructable07)
call ShowDestructableBJ(true,udg_destructable03)
call ChangeElevatorHeight(udg_destructable03,3)
call PlaySoundAtPointBJ(udg_sound194,75.,GetRectCenter(udg_rect233),40.)
call ShowUnitShow(udg_unit05)
call PlaySoundBJ(udg_sounds01[13])
call SetUnitFlyHeight(udg_unit07,.0,80.)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect233),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call ForGroupBJ(lm(Player(15),'n000'),function sS)
call ForGroupBJ(lm(Player(15),'n01H'),function sT)
call KW(GroupPickRandomUnit(lG(udg_rect233,Condition(function su))),'o00Z',3)
call TriggerExecute(udg_trigger312)
call ForForce(lN(Condition(function sV)),function sw)
call EnableTrigger(udg_trigger317)
call Kh(1.2)
call PlaySoundAtPointBJ(udg_sound195,70.,GetRectCenter(udg_rect233),200.)
call ShowDestructableBJ(true,udg_destructable06)
call RemoveDestructable(udg_destructable03)
call ShowUnitHide(udg_unit07)
call EnableTrigger(udg_trigger87)
call EnableTrigger(udg_trigger117)
call EnableTrigger(udg_trigger118)
call EnableTrigger(udg_trigger316)
call EnableTrigger(udg_trigger308)
call EnableTrigger(udg_trigger312)
call Kh(5.1)
call FogModifierStop(udg_fogmodifiers01[4])
call DestroyFogModifier(udg_fogmodifiers01[4])
call EnableTrigger(udg_trigger318)
call EnableTrigger(udg_trigger192)
call EnableTrigger(udg_trigger168)
call TriggerExecute(udg_trigger81)
call TriggerExecute(udg_trigger72)
call Kv(false)
call PauseUnit(udg_unit30,true)
call SetUserControlForceOn(bj_FORCE_ALL_PLAYERS)
call TriggerExecute(udg_trigger312)
call ForForce(udg_force05,function sx)
call ForGroupBJ(lk('h054'),function sX)
call Kh(1.8)
call EnableTrigger(udg_trigger195)
call EnableTrigger(udg_trigger203)
call EnableTrigger(udg_trigger315)
call TriggerExecute(udg_trigger73)
call Kh(3.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound168,"|cccffffff- If you are new, open Missions (Press F9) and read Basics and Camera Controls -",1,20.,false)
call ForForce(lN(Condition(function sz)),function sZ)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function s1 takes nothing returns nothing
call CreatePermanentCorpseLocBJ(0,'h04L',Player(11),Ko(GetUnitLoc(GetEnumUnit()),GetRandomReal(25.,75.),GetRandomReal(0,360)),GetRandomReal(0,360))
endfunction
function s2 takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03T',Player(15),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_YELLOW)
endfunction
function s3 takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03S',Player(15),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_RED)
endfunction
function s4 takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==5)
endfunction
function s5 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h034')
endfunction
function s6 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h039')
endfunction
function s7 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h035')
endfunction
function s8 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h037')
endfunction
function s9 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h036')
endfunction
function Sa takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h038')
endfunction
function SA takes nothing returns nothing
set udg_destructable02=RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),140.,140.))
call KillDestructable(udg_destructable02)
if(Sa())then
call CreateNUnitsAtLoc(1,'h007',Player(9),GetDestructableLoc(udg_destructable02),bj_UNIT_FACING)
else
if(s9())then
call CreateNUnitsAtLoc(1,'h00A',Player(9),GetDestructableLoc(udg_destructable02),bj_UNIT_FACING)
else
if(s8())then
call CreateNUnitsAtLoc(1,'h023',Player(9),GetDestructableLoc(udg_destructable02),bj_UNIT_FACING)
else
if(s7())then
call CreateNUnitsAtLoc(1,'h00B',Player(9),GetDestructableLoc(udg_destructable02),bj_UNIT_FACING)
else
if(s6())then
call CreateNUnitsAtLoc(1,'h009',Player(9),GetDestructableLoc(udg_destructable02),bj_UNIT_FACING)
else
if(s5())then
call CreateNUnitsAtLoc(1,'h008',Player(9),GetDestructableLoc(udg_destructable02),bj_UNIT_FACING)
endif
endif
endif
endif
endif
endif
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.,55.,60.,100.)
call RemoveUnit(GetEnumUnit())
endfunction
function Sb takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==2)
endfunction
function SB takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h03Y')or(GetUnitTypeId(GetEnumUnit())=='h03W')or(GetUnitTypeId(GetEnumUnit())=='h048')or(GetUnitTypeId(GetEnumUnit())=='h047')
endfunction
function Sc takes nothing returns boolean
return(SB())
endfunction
function SC takes nothing returns nothing
if(Sc())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Sd takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==4)
endfunction
function SD takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n00Z')
endfunction
function Se takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n012')
endfunction
function SE takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n011')
endfunction
function Sf takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n010')
endfunction
function SF takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n01L')
endfunction
function Sg takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n01I')
endfunction
function SG takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n01K')
endfunction
function Sh takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n01J')
endfunction
function SH takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n01B')
endfunction
function Si takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n01A')
endfunction
function SI takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n019')
endfunction
function Sj takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n017')
endfunction
function SJ takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n01Q')
endfunction
function SK takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n018')
endfunction
function Sl takes nothing returns nothing
if(Sf())then
call CreateNUnitsAtLoc(1,'h027',Player(11),GetUnitLoc(GetEnumUnit()),270.)
else
if(SE())then
call CreateNUnitsAtLoc(1,'h027',Player(11),GetUnitLoc(GetEnumUnit()),180.)
else
if(Se())then
call CreateNUnitsAtLoc(1,'h027',Player(11),GetUnitLoc(GetEnumUnit()),.0)
else
if(SD())then
call CreateNUnitsAtLoc(1,'h027',Player(11),GetUnitLoc(GetEnumUnit()),90.)
endif
endif
endif
endif
if(Sh())then
call CreateNUnitsAtLoc(1,'h00E',Player(11),GetUnitLoc(GetEnumUnit()),270.)
else
if(SG())then
call CreateNUnitsAtLoc(1,'h00E',Player(11),GetUnitLoc(GetEnumUnit()),180.)
else
if(Sg())then
call CreateNUnitsAtLoc(1,'h00E',Player(11),GetUnitLoc(GetEnumUnit()),.0)
else
if(SF())then
call CreateNUnitsAtLoc(1,'h00E',Player(11),GetUnitLoc(GetEnumUnit()),90.)
endif
endif
endif
endif
if(Sj())then
call CreateNUnitsAtLoc(1,'h03O',Player(11),GetUnitLoc(GetEnumUnit()),180.)
else
if(SI())then
call CreateNUnitsAtLoc(1,'h03O',Player(11),GetUnitLoc(GetEnumUnit()),.0)
else
if(Si())then
call CreateNUnitsAtLoc(1,'h03O',Player(11),GetUnitLoc(GetEnumUnit()),90.)
else
if(SH())then
call CreateNUnitsAtLoc(1,'h03O',Player(11),GetUnitLoc(GetEnumUnit()),270.)
endif
endif
endif
endif
if(SK())then
call CreateNUnitsAtLoc(1,'h03P',Player(11),GetUnitLoc(GetEnumUnit()),255.)
else
if(SJ())then
call CreateNUnitsAtLoc(1,'h04E',Player(11),GetUnitLoc(GetEnumUnit()),90.)
endif
endif
endfunction
function SL takes nothing returns nothing
call ForGroupBJ(lm(Player(15),'n01S'),function s1)
call ForGroupBJ(lm(Player(15),'n007'),function s2)
call ForGroupBJ(lm(Player(15),'n009'),function s3)
call ForGroupBJ(ll(Player(9),Condition(function s4)),function SA)
call ForGroupBJ(ll(Player(9),Condition(function Sb)),function SC)
call ForGroupBJ(ll(Player(9),Condition(function Sd)),function Sl)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Sm takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function SM takes nothing returns boolean
return(GetUnitLevel(GetEnumUnit())==4)
endfunction
function Sn takes nothing returns boolean
return(GetUnitLevel(GetEnumUnit())==3)
endfunction
function SN takes nothing returns boolean
return(GetUnitLevel(GetEnumUnit())==2)
endfunction
function So takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h01Z')or(GetUnitTypeId(GetEnumUnit())=='h04W')
endfunction
function SO takes nothing returns boolean
return(So())
endfunction
function Sp takes nothing returns boolean
return(GetUnitLevel(GetEnumUnit())==1)
endfunction
function SP takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h02R')
endfunction
function Sq takes nothing returns boolean
return(GetUnitTypeId(udg_units02[udg_integer01])=='n00A')
endfunction
function SQ takes nothing returns nothing
set udg_integer01=(udg_integer01+1)
call SetUnitUserData(GetEnumUnit(),udg_integer01)
set udg_integers01[udg_integer01]=GetUnitTypeId(GetEnumUnit())
set udg_location03=GetUnitLoc(GetEnumUnit())
if(Sp())then
if(SO())then
call CreateNUnitsAtLoc(1,'n014',Player(10),udg_location03,bj_UNIT_FACING)
else
call CreateNUnitsAtLoc(1,'n00A',Player(10),udg_location03,bj_UNIT_FACING)
endif
else
if(SN())then
call CreateNUnitsAtLoc(1,'n001',Player(10),udg_location03,bj_UNIT_FACING)
else
if(Sn())then
call CreateNUnitsAtLoc(1,'n00T',Player(10),udg_location03,bj_UNIT_FACING)
else
if(SM())then
call CreateNUnitsAtLoc(1,'n015',Player(10),udg_location03,bj_UNIT_FACING)
endif
endif
endif
endif
set udg_units02[udg_integer01]=bj_lastCreatedUnit
call SetUnitUserData(udg_units02[udg_integer01],udg_integer01)
set udg_location05=GetUnitLoc(udg_units02[udg_integer01])
if(SP())then
call CreateDestructableLoc('B00Y',udg_location05,GetRandomReal(0,360),.8,0)
endif
if(Sq())then
call CreateDestructableLoc('B00N',udg_location05,270.,2.1,0)
endif
call SetUnitColor(GetEnumUnit(),GetPlayerColor(Player(-1+(GetUnitPointValue(GetEnumUnit())))))
call SetUnitExploded(GetEnumUnit(),true)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_location05,GetRandomReal(0,360))
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function Sr takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(10),false)
endfunction
function SR takes nothing returns nothing
set udg_integer01=0
call ForGroupBJ(ll(Player(10),Condition(function Sm)),function SQ)
call ForGroupBJ(lm(Player(11),'o017'),function Sr)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Ss takes nothing returns nothing
call KI(udg_trigger157,RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),128.,64.))
endfunction
function SS takes nothing returns nothing
call KI(udg_trigger156,RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),128.,64.))
endfunction
function St takes nothing returns nothing
call KI(udg_trigger154,RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),64.,128.))
endfunction
function ST takes nothing returns nothing
call KI(udg_trigger155,RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),64.,128.))
endfunction
function Su takes nothing returns nothing
call KI(udg_trigger153,udg_rect62)
call KI(udg_trigger153,udg_rect63)
call KI(udg_trigger153,udg_rect261)
call KI(udg_trigger153,udg_rect265)
call KI(udg_trigger150,udg_rect64)
call KI(udg_trigger150,udg_rect65)
call KI(udg_trigger150,udg_rect66)
call KI(udg_trigger150,udg_rect67)
call KI(udg_trigger150,udg_rect262)
call KI(udg_trigger151,udg_rect68)
call KI(udg_trigger151,udg_rect69)
call KI(udg_trigger151,udg_rect70)
call KI(udg_trigger151,udg_rect71)
call KI(udg_trigger151,udg_rect263)
call KI(udg_trigger152,udg_rect72)
call KI(udg_trigger152,udg_rect73)
call KI(udg_trigger152,udg_rect264)
set udg_rects08[1]=udg_rect249
set udg_rects08[2]=udg_rect250
set udg_rects08[3]=udg_rect251
set udg_rects08[4]=udg_rect252
set udg_rects08[5]=udg_rect253
set udg_rects08[6]=udg_rect254
set udg_rects08[7]=udg_rect255
set udg_rects08[8]=udg_rect256
set udg_rects08[9]=udg_rect257
set udg_rects08[10]=udg_rect258
set udg_rects08[11]=udg_rect259
set udg_rects08[12]=udg_rect260
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call KI(udg_trigger158,udg_rects08[bj_forLoopAIndex])
call Kk(udg_trigger160,udg_rects08[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_rects08[1]=udg_rect06
set udg_rects08[2]=udg_rect07
set udg_rects08[3]=udg_rect08
set udg_rects08[4]=udg_rect09
set udg_rects08[5]=udg_rect10
set udg_rects08[6]=udg_rect11
set udg_rects08[7]=udg_rect12
set udg_rects08[8]=udg_rect13
set udg_rects08[9]=udg_rect14
set udg_rects08[10]=udg_rect15
set udg_rects08[11]=udg_rect16
set udg_rects08[12]=udg_rect17
set udg_rects08[13]=udg_rect18
set udg_rects08[14]=udg_rect19
set udg_rects08[15]=udg_rect20
set udg_rects08[16]=udg_rect21
set udg_rects08[17]=udg_rect22
set udg_rects08[18]=udg_rect23
set udg_rects08[19]=udg_rect24
set udg_rects08[20]=udg_rect25
set udg_rects08[21]=udg_rect26
set udg_rects08[22]=udg_rect27
set udg_rects08[23]=udg_rect28
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=23
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call KI(udg_trigger161,udg_rects08[bj_forLoopAIndex])
call Kk(udg_trigger163,udg_rects08[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_rects08[1]=udg_rect108
set udg_rects08[2]=udg_rect109
set udg_rects08[3]=udg_rect110
set udg_rects08[4]=udg_rect111
set udg_rects08[5]=udg_rect112
set udg_rects08[6]=udg_rect113
set udg_rects08[7]=udg_rect114
set udg_rects08[8]=udg_rect115
set udg_rects08[9]=udg_rect116
set udg_rects08[10]=udg_rect117
set udg_rects08[11]=udg_rect118
set udg_rects08[12]=udg_rect119
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call KI(udg_trigger164,udg_rects08[bj_forLoopAIndex])
call Kk(udg_trigger166,udg_rects08[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(lm(Player(9),'n01J'),function Ss)
call ForGroupBJ(lm(Player(9),'n01L'),function SS)
call ForGroupBJ(lm(Player(9),'n01K'),function St)
call ForGroupBJ(lm(Player(9),'n01I'),function ST)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function SU takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B008')
endfunction
function Sv takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B007')
endfunction
function SV takes nothing returns boolean
return GetBooleanOr(SU(),Sv())
endfunction
function Sw takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B01P')
endfunction
function SW takes nothing returns nothing
if(Sw())then
set udg_destructable02=RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),480.,480.),Condition(function SV))
call CreateNUnitsAtLoc(1,'h04N',Player(10),GetDestructableLoc(GetEnumDestructable()),(AngleBetweenPoints(GetDestructableLoc(udg_destructable02),GetDestructableLoc(GetEnumDestructable()))+10.))
call SetUnitExploded(bj_lastCreatedUnit,true)
call CreateDestructableLoc('B01Q',Ko(GetDestructableLoc(GetEnumDestructable()),96.,AngleBetweenPoints(GetDestructableLoc(GetEnumDestructable()),GetDestructableLoc(udg_destructable02))),AngleBetweenPoints(GetDestructableLoc(udg_destructable02),GetDestructableLoc(GetEnumDestructable())),2.3,0)
call SetDestAnimationSpeedPercent(bj_lastCreatedDestructable,60.)
endif
endfunction
function Sx takes nothing returns nothing
call EnumDestructablesInRectAll(bj_mapInitialPlayableArea,function SW)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function SX takes nothing returns boolean
return(GetEnumUnit()!=udg_unit05)
endfunction
function Sy takes nothing returns nothing
if(SX())then
call SetStackedSoundBJ(true,udg_sound73,RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),300.,300.))
endif
endfunction
function SY takes nothing returns nothing
call SetStackedSoundBJ(true,udg_sound72,RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),300.,300.))
endfunction
function Sz takes nothing returns nothing
call SetStackedSoundBJ(true,udg_sound72,RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),300.,300.))
endfunction
function SZ takes nothing returns nothing
call ForGroupBJ(lm(Player(15),'n000'),function Sy)
call ForGroupBJ(lm(Player(15),'n01G'),function SY)
call ForGroupBJ(lm(Player(15),'n01H'),function Sz)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function S0 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01P')
endfunction
function S1 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function S3 takes nothing returns nothing
set udg_integer01=(udg_integer01+1)
set udg_units28[udg_integer01]=GetEnumUnit()
call SetUnitUserData(GetEnumUnit(),udg_integer01)
call CreateNUnitsAtLoc(1,'h04B',Player(8),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,udg_integer01)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,Ko(GetUnitLoc(GetEnumUnit()),300.,GetRandomReal(0,360)))
endfunction
function S4 takes nothing returns nothing
set udg_integer50=71
set udg_strings22[1]="Main Deck"
set udg_strings22[2]="Engineering Deck"
set udg_strings22[3]="Bio Research"
set udg_strings22[4]="Restricted Area"
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers53[bj_forLoopAIndex]=1
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_rects01[1]=udg_rect176
set udg_integers03[1]=17
set udg_rects01[2]=udg_rect177
set udg_integers03[2]=1
set udg_rects01[3]=udg_rect178
set udg_integers03[3]=1
set udg_rects01[4]=udg_rect179
set udg_integers03[4]=20
set udg_rects01[5]=udg_rect180
set udg_integers03[5]=20
set udg_rects01[6]=udg_rect182
set udg_integers03[6]=1
set udg_rects01[7]=udg_rect183
set udg_integers03[7]=18
set udg_rects01[8]=udg_rect184
set udg_integers03[8]=18
set udg_rects01[9]=udg_rect185
set udg_integers03[9]=18
set udg_rects01[10]=udg_rect186
set udg_integers03[10]=18
set udg_rects01[11]=udg_rect187
set udg_integers03[11]=4
set udg_rects01[12]=udg_rect188
set udg_integers03[12]=4
set udg_rects01[13]=udg_rect189
set udg_integers03[13]=4
set udg_rects01[14]=udg_rect190
set udg_integers03[14]=17
set udg_rects01[15]=udg_rect191
set udg_integers03[15]=20
set udg_rects01[16]=udg_rect194
set udg_integers03[16]=23
set udg_rects01[17]=udg_rect195
set udg_integers03[17]=23
set udg_rects01[18]=udg_rect196
set udg_integers03[18]=20
set udg_integers53[18]=4
set bj_forLoopAIndex=19
set bj_forLoopAIndexEnd=31
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers03[bj_forLoopAIndex]=3
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_rects01[19]=udg_rect158
set udg_integers53[19]=1
set udg_rects01[20]=udg_rect159
set udg_integers53[20]=1
set udg_rects01[21]=udg_rect160
set udg_integers53[21]=1
set udg_integers03[21]=20
set udg_rects01[22]=udg_rect166
set udg_integers53[22]=1
set udg_rects01[23]=udg_rect162
set udg_integers53[23]=2
set udg_rects01[24]=udg_rect164
set udg_integers53[24]=1
set udg_integers03[24]=23
set udg_rects01[25]=udg_rect165
set udg_integers53[25]=1
set udg_rects01[26]=udg_rect161
set udg_integers53[26]=2
set udg_rects01[27]=udg_rect167
set udg_integers53[27]=2
set udg_rects01[28]=udg_rect172
set udg_integers53[28]=3
set udg_integers03[28]=28
set udg_rects01[29]=udg_rect171
set udg_integers53[29]=2
set udg_integers03[29]=20
set udg_rects01[30]=udg_rect168
set udg_integers53[30]=3
set udg_rects01[31]=udg_rect173
set udg_integers53[31]=4
set udg_integers03[31]=23
set bj_forLoopAIndex=32
set bj_forLoopAIndexEnd=42
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers53[bj_forLoopAIndex]=2
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_rects01[32]=udg_rect147
set udg_integers03[32]=2
set udg_rects01[33]=udg_rect148
set udg_integers03[33]=2
set udg_rects01[34]=udg_rect149
set udg_integers03[34]=20
set udg_rects01[35]=udg_rect150
set udg_integers03[35]=17
set udg_rects01[36]=udg_rect151
set udg_integers03[36]=22
set udg_rects01[37]=udg_rect152
set udg_integers03[37]=22
set udg_rects01[38]=udg_rect153
set udg_integers03[38]=22
set udg_rects01[39]=udg_rect154
set udg_integers03[39]=22
set udg_rects01[40]=udg_rect155
set udg_integers03[40]=5
set udg_integers49[40]=1
set udg_rects01[41]=udg_rect156
set udg_integers03[41]=5
set udg_rects01[42]=udg_rect157
set udg_integers03[42]=17
set bj_forLoopAIndex=43
set bj_forLoopAIndexEnd=53
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers53[bj_forLoopAIndex]=3
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_rects01[43]=udg_rect135
set udg_integers03[43]=19
set udg_rects01[44]=udg_rect136
set udg_integers03[44]=19
set udg_rects01[45]=udg_rect137
set udg_integers03[45]=24
set udg_integers49[45]=3
set udg_rects01[46]=udg_rect138
set udg_integers03[46]=2
set udg_rects01[47]=udg_rect139
set udg_integers03[47]=3
set udg_rects01[48]=udg_rect140
set udg_integers03[48]=6
set udg_rects01[49]=udg_rect141
set udg_integers03[49]=20
set udg_rects01[50]=udg_rect142
set udg_integers03[50]=19
set udg_rects01[51]=udg_rect143
set udg_integers03[51]=19
set udg_rects01[52]=udg_rect144
set udg_integers03[52]=19
set udg_rects01[53]=udg_rect145
set udg_integers03[53]=23
set bj_forLoopAIndex=54
set bj_forLoopAIndexEnd=60
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers53[bj_forLoopAIndex]=4
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_rects01[54]=udg_rect199
set udg_integers03[54]=21
set udg_rects01[55]=udg_rect200
set udg_integers03[55]=21
set udg_rects01[56]=udg_rect201
set udg_integers03[56]=21
set udg_rects01[57]=udg_rect202
set udg_integers03[57]=28
set udg_integers49[57]=3
set udg_rects01[58]=udg_rect203
set udg_integers03[58]=20
set udg_integers49[58]=3
set udg_rects01[59]=udg_rect204
set udg_integers03[59]=20
set udg_integers49[59]=3
set udg_rects01[60]=udg_rect205
set udg_integers03[60]=23
set udg_rects01[61]=udg_rect146
set udg_integers03[61]=20
set udg_integers53[61]=3
set bj_forLoopAIndex=62
set bj_forLoopAIndexEnd=66
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers03[bj_forLoopAIndex]=3
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_rects01[62]=udg_rect174
set udg_integers53[62]=3
set udg_rects01[63]=udg_rect169
set udg_integers53[63]=1
set udg_rects01[64]=udg_rect163
set udg_integers53[64]=1
set udg_rects01[65]=udg_rect170
set udg_integers53[65]=3
set udg_integers03[65]=19
set udg_rects01[66]=udg_rect175
set udg_integers53[66]=1
set bj_forLoopAIndex=67
set bj_forLoopAIndexEnd=70
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers53[bj_forLoopAIndex]=1
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_rects01[67]=udg_rect192
set udg_integers03[67]=4
set udg_rects01[68]=udg_rect193
set udg_integers03[68]=18
set udg_rects01[69]=udg_rect197
set udg_integers03[69]=6
set udg_rects01[70]=udg_rect198
set udg_integers03[70]=28
set udg_rects01[71]=udg_rect181
set udg_integers03[71]=28
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer50
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_regions01[bj_forLoopAIndex]=no(udg_rects01[bj_forLoopAIndex])
call TriggerRegisterEnterRegionSimple(udg_trigger117,udg_regions01[bj_forLoopAIndex])
call TriggerRegisterLeaveRegionSimple(udg_trigger118,udg_regions01[bj_forLoopAIndex])
call ForGroupBJ(lo(1,lG(udg_rects01[bj_forLoopAIndex],Condition(function S0))),function S1)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call Kh(.1)
set udg_integer01=0
call ForGroupBJ(lm(Player(8),'n01P'),function S3)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function S5 takes nothing returns nothing
call CreateMultiboardBJ(3,5,"Mission Status")
set udg_multiboard01=bj_lastCreatedMultiboard
call MultiboardSetTitleTextColorBJ(bj_lastCreatedMultiboard,67.,73.,80.,50.)
call lv(bj_lastCreatedMultiboard,0,0,true,false)
call l2(bj_lastCreatedMultiboard,1,0,67.,73.,80.,50.)
call l2(bj_lastCreatedMultiboard,2,0,100.,100.,100.,.0)
call l2(bj_lastCreatedMultiboard,3,0,100.,100.,100.,50.)
call l7(bj_lastCreatedMultiboard,1,0,12.)
call l7(bj_lastCreatedMultiboard,2,0,2.)
call l7(bj_lastCreatedMultiboard,3,0,2.)
call MultiboardDisplay(udg_multiboard01,true)
call MultiboardMinimize(udg_multiboard01,false)
call l0(bj_lastCreatedMultiboard,1,4,"Items equipped")
call l0(bj_lastCreatedMultiboard,1,5,"Items picked up")
call l0(bj_lastCreatedMultiboard,3,4,"/58")
call l0(bj_lastCreatedMultiboard,3,5,"/58")
call l0(bj_lastCreatedMultiboard,2,0,"0")
call l0(bj_lastCreatedMultiboard,2,2,"")
call l0(bj_lastCreatedMultiboard,2,3,"")
call l0(bj_lastCreatedMultiboard,1,1,"Pirates defeated")
call l0(bj_lastCreatedMultiboard,3,1,"/15")
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function S6 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n013')
endfunction
function S7 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01O')
endfunction
function S8 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01N')
endfunction
function S9 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01M')
endfunction
function ta takes nothing returns boolean
return(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function S6)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function S7)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function S8)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function S9)))>0)
endfunction
function tA takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=null)
endfunction
function tb takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==15)
endfunction
function tB takes nothing returns boolean
return GetBooleanAnd(tA(),tb())
endfunction
function tc takes nothing returns boolean
return(GetItemTypeId(udg_item02)=='I00M')
endfunction
function tC takes nothing returns boolean
return(ta())
endfunction
function td takes nothing returns nothing
set udg_integer01=(udg_integer01+1)
call KillUnit(GetEnumUnit())
set udg_item02=RandomItemInRectSimpleBJ(udg_rect104)
call SetItemPositionLoc(udg_item02,GetUnitLoc(GetEnumUnit()))
call SetItemUserData(udg_item02,udg_integer01)
call CreateNUnitsAtLoc(1,'o00W',Player(9),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,udg_integer01)
set udg_rects07[udg_integer01]=RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),300.,300.)
call SetStackedSoundBJ(true,udg_sound70,udg_rects07[udg_integer01])
if(tC())then
if(tc())then
call CreateDestructableLoc('B00O',GetUnitLoc(GetEnumUnit()),GetRandomReal(0,360),1.2,0)
else
call SetItemVisible(udg_item02,false)
call CreateDestructableLoc('B01G',GetUnitLoc(GetEnumUnit()),270.,1.35,0)
set udg_unit01=GroupPickRandomUnit(lI(300.,GetItemLoc(udg_item02),Condition(function tB)))
call CreateNUnitsAtLocFacingLocBJ(1,'h02A',Player(9),Ko(GetUnitLoc(GetEnumUnit()),50.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),GetUnitLoc(GetEnumUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call CreateNUnitsAtLoc(1,'o017',Player(11),Ko(GetItemLoc(udg_item02),2.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),GetRandomReal(0,360))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call CreateNUnitsAtLoc(1,'o019',Player(11),Ko(GetItemLoc(udg_item02),-2.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),AngleBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(GetEnumUnit())))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
endif
endif
call RemoveUnit(GetEnumUnit())
endfunction
function tD takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=null)
endfunction
function te takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==15)
endfunction
function tE takes nothing returns boolean
return GetBooleanAnd(tD(),te())
endfunction
function tf takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n013')
endfunction
function tF takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01O')
endfunction
function tg takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01N')
endfunction
function tG takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01M')
endfunction
function th takes nothing returns boolean
return(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tf)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tF)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tg)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tG)))>0)
endfunction
function tH takes nothing returns boolean
return(th())
endfunction
function ti takes nothing returns nothing
set udg_integer01=(udg_integer01+1)
call KillUnit(GetEnumUnit())
call CreateDestructableLoc('B01G',GetUnitLoc(GetEnumUnit()),270.,1.4,0)
set udg_item02=RandomItemInRectSimpleBJ(udg_rect105)
call SetItemPositionLoc(udg_item02,GetUnitLoc(GetEnumUnit()))
call SetItemUserData(udg_item02,udg_integer01)
call CreateNUnitsAtLoc(1,'o00W',Player(9),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,udg_integer01)
if(tH())then
call SetItemVisible(udg_item02,false)
set udg_rects07[udg_integer01]=RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),300.,300.)
call SetStackedSoundBJ(true,udg_sound70,udg_rects07[udg_integer01])
set udg_unit01=GroupPickRandomUnit(lI(300.,GetItemLoc(udg_item02),Condition(function tE)))
call CreateNUnitsAtLocFacingLocBJ(1,'h02B',Player(9),Ko(GetUnitLoc(GetEnumUnit()),50.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),GetUnitLoc(GetEnumUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call CreateNUnitsAtLoc(1,'o017',Player(11),Ko(GetItemLoc(udg_item02),2.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),GetRandomReal(0,360))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call CreateNUnitsAtLoc(1,'o01A',Player(11),Ko(GetItemLoc(udg_item02),-2.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),AngleBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(GetEnumUnit())))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
endif
call RemoveUnit(GetEnumUnit())
endfunction
function tI takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=null)
endfunction
function tj takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==15)
endfunction
function tJ takes nothing returns boolean
return GetBooleanAnd(tI(),tj())
endfunction
function tk takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n013')
endfunction
function tK takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01O')
endfunction
function tl takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01N')
endfunction
function tL takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01M')
endfunction
function tm takes nothing returns boolean
return(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tk)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tK)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tl)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tL)))>0)
endfunction
function tM takes nothing returns boolean
return(tm())
endfunction
function tn takes nothing returns nothing
set udg_integer01=(udg_integer01+1)
call KillUnit(GetEnumUnit())
call CreateDestructableLoc('B01G',GetUnitLoc(GetEnumUnit()),270.,1.45,0)
set udg_item02=RandomItemInRectSimpleBJ(udg_rect106)
call SetItemPositionLoc(udg_item02,GetUnitLoc(GetEnumUnit()))
call SetItemUserData(udg_item02,udg_integer01)
call CreateNUnitsAtLoc(1,'o00W',Player(9),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,udg_integer01)
if(tM())then
call SetItemVisible(udg_item02,false)
set udg_rects07[udg_integer01]=RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),300.,300.)
call SetStackedSoundBJ(true,udg_sound70,udg_rects07[udg_integer01])
set udg_unit01=GroupPickRandomUnit(lI(300.,GetItemLoc(udg_item02),Condition(function tJ)))
call CreateNUnitsAtLocFacingLocBJ(1,'h03K',Player(9),Ko(GetUnitLoc(GetEnumUnit()),50.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),GetUnitLoc(GetEnumUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call CreateNUnitsAtLoc(1,'o017',Player(11),Ko(GetItemLoc(udg_item02),2.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),GetRandomReal(0,360))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call CreateNUnitsAtLoc(1,'o018',Player(11),Ko(GetItemLoc(udg_item02),-2.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),AngleBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(GetEnumUnit())))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
endif
call RemoveUnit(GetEnumUnit())
endfunction
function tN takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)!=null)
endfunction
function to takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==15)
endfunction
function tO takes nothing returns boolean
return GetBooleanAnd(tN(),to())
endfunction
function tp takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n013')
endfunction
function tP takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01O')
endfunction
function tq takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01N')
endfunction
function tQ takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n01M')
endfunction
function tr takes nothing returns boolean
return(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tp)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tP)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tq)))>0)or(CountUnitsInGroup(lI(200.,GetUnitLoc(GetEnumUnit()),Condition(function tQ)))>0)
endfunction
function tR takes nothing returns boolean
return(tr())
endfunction
function ts takes nothing returns nothing
set udg_integer01=(udg_integer01+1)
call KillUnit(GetEnumUnit())
call CreateDestructableLoc('B01G',GetUnitLoc(GetEnumUnit()),270.,1.5,0)
set udg_item02=RandomItemInRectSimpleBJ(udg_rect107)
call SetItemPositionLoc(udg_item02,GetUnitLoc(GetEnumUnit()))
call SetItemUserData(udg_item02,udg_integer01)
call CreateNUnitsAtLoc(1,'o00W',Player(9),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,udg_integer01)
if(tR())then
call SetItemVisible(udg_item02,false)
set udg_rects07[udg_integer01]=RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),300.,300.)
call SetStackedSoundBJ(true,udg_sound70,udg_rects07[udg_integer01])
set udg_unit01=GroupPickRandomUnit(lI(300.,GetItemLoc(udg_item02),Condition(function tO)))
call CreateNUnitsAtLocFacingLocBJ(1,'h03L',Player(9),Ko(GetUnitLoc(GetEnumUnit()),50.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),GetUnitLoc(GetEnumUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call CreateNUnitsAtLoc(1,'o017',Player(11),Ko(GetItemLoc(udg_item02),2.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),GetRandomReal(0,360))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call CreateNUnitsAtLoc(1,'o01B',Player(11),Ko(GetItemLoc(udg_item02),-2.,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_unit01))),AngleBetweenPoints(GetUnitLoc(udg_unit01),GetUnitLoc(GetEnumUnit())))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
endif
call RemoveUnit(GetEnumUnit())
endfunction
function tS takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h020',Player(15),Ko(GetUnitLoc(GetEnumUnit()),-140.,GetUnitFacing(GetEnumUnit())),GetUnitFacing(GetEnumUnit()))
endfunction
function tt takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h020',Player(15),Ko(GetUnitLoc(GetEnumUnit()),-140.,GetUnitFacing(GetEnumUnit())),GetUnitFacing(GetEnumUnit()))
endfunction
function tT takes nothing returns nothing
set udg_integer01=0
call ForGroupBJ(lk('n00O'),function td)
call ForGroupBJ(lk('n00P'),function ti)
call ForGroupBJ(lk('n00Q'),function tn)
call ForGroupBJ(lk('n00R'),function ts)
call Kh(1.)
call SetUnitAnimation(udg_unit23,"stand")
call SetUnitTimeScalePercent(udg_unit23,.0)
call ForGroupBJ(lo(2,lk('h02B')),function tS)
call ForGroupBJ(lo(1,lk('h03K')),function tt)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function tu takes nothing returns nothing
set udg_rect04=udg_rect242
set udg_integer49='n00J'
call TriggerExecute(udg_trigger78)
call TriggerSleepAction(.01)
set udg_rect04=udg_rect243
set udg_integer49='n00K'
call TriggerExecute(udg_trigger78)
call TriggerSleepAction(.01)
set udg_rect04=udg_rect244
set udg_integer49='n00L'
call TriggerExecute(udg_trigger78)
call TriggerSleepAction(.01)
set udg_rect04=udg_rect245
set udg_integer49='n00M'
call TriggerExecute(udg_trigger78)
call TriggerSleepAction(.01)
set udg_rect04=udg_rect246
set udg_integer49='n00N'
call TriggerExecute(udg_trigger78)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function tU takes nothing returns boolean
return(GetItemTypeId(udg_item02)=='I00R')or(GetItemTypeId(udg_item02)=='I00S')or(GetItemTypeId(udg_item02)=='I00T')
endfunction
function tv takes nothing returns boolean
return(tU())
endfunction
function tV takes nothing returns boolean
return(CountUnitsInGroup(lH(udg_rect04))>0)
endfunction
function tw takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(15),false)
if(tV())then
call SetUnitPositionLoc(GroupPickRandomUnit(lH(udg_rect04)),GetUnitLoc(GetEnumUnit()))
else
set udg_item02=RandomItemInRectSimpleBJ(udg_rect04)
if(tv())then
call CreateNUnitsAtLoc(1,'h02X',Player(15),GetUnitLoc(GetEnumUnit()),270.)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
endif
call SetItemPositionLoc(udg_item02,GetUnitLoc(GetEnumUnit()))
call CreateDestructableLoc('B00L',GetUnitLoc(GetEnumUnit()),GetRandomReal(0,360),1.3,0)
endif
call RemoveUnit(GetEnumUnit())
endfunction
function tW takes nothing returns nothing
set bj_forLoopAIndex=(0-CountUnitsInGroup(lm(Player(11),udg_integer49)))
set bj_forLoopAIndexEnd=-1
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(lo(1,lm(Player(11),udg_integer49)),function tw)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function tx takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00Z')
endfunction
function tX takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B006')or(GetDestructableTypeId(GetEnumDestructable())=='B003')or(GetDestructableTypeId(GetEnumDestructable())=='B00D')or(GetDestructableTypeId(GetEnumDestructable())=='B00E')or(GetDestructableTypeId(GetEnumDestructable())=='B010')or(GetDestructableTypeId(GetEnumDestructable())=='B011')
endfunction
function ty takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B006')or(GetDestructableTypeId(GetEnumDestructable())=='B00D')or(GetDestructableTypeId(GetEnumDestructable())=='B010')
endfunction
function tY takes nothing returns boolean
return(ty())
endfunction
function tz takes nothing returns boolean
return(tX())
endfunction
function tZ takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B004')or(GetDestructableTypeId(GetEnumDestructable())=='B001')
endfunction
function t0 takes nothing returns boolean
return(tZ())
endfunction
function t1 takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B008')
endfunction
function t2 takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B007')
endfunction
function t3 takes nothing returns nothing
if(t0())then
call TriggerRegisterDeathEvent(udg_trigger121,GetEnumDestructable())
else
if(tz())then
call TriggerRegisterDeathEvent(udg_trigger122,GetEnumDestructable())
call ModifyGateBJ(1,GetEnumDestructable())
if(tY())then
call CreateDestructableLoc('B004',GetDestructableLoc(GetEnumDestructable()),.0,udg_real17,0)
else
call CreateDestructableLoc('B001',GetDestructableLoc(GetEnumDestructable()),270.,udg_real17,0)
endif
call ShowDestructableBJ(false,bj_lastCreatedDestructable)
call TriggerRegisterDeathEvent(udg_trigger121,bj_lastCreatedDestructable)
call SetDestructableInvulnerable(bj_lastCreatedDestructable,true)
call ModifyGateBJ(0,GetEnumDestructable())
else
if(tx())then
call KillDestructable(GetEnumDestructable())
call CreateNUnitsAtLoc(1,'h03N',Player(11),GetDestructableLoc(GetEnumDestructable()),bj_UNIT_FACING)
endif
endif
endif
if(t1())then
call KI(udg_trigger123,RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),192.,192.))
call SetDestructableAnimation(GetEnumDestructable(),"death")
endif
if(t2())then
call KI(udg_trigger124,RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),192.,192.))
call SetDestructableAnimation(GetEnumDestructable(),"death")
endif
endfunction
function t4 takes nothing returns nothing
call EnumDestructablesInRectAll(bj_mapInitialPlayableArea,function t3)
call EnableTrigger(udg_trigger121)
call EnableTrigger(udg_trigger122)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function t5 takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B00F')
endfunction
function t6 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetDestructableLoc(RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetUnitLoc(GetEnumUnit()),640.,640.),Condition(function t5))))
endfunction
function t7 takes nothing returns nothing
set udg_units09[1]=udg_unit17
set udg_units10[1]=udg_unit18
set udg_units09[2]=udg_unit28
set udg_units10[2]=udg_unit16
set udg_units09[3]=udg_unit34
set udg_units10[3]=udg_unit35
set udg_units09[4]=udg_unit36
set udg_units10[4]=udg_unit37
set udg_units09[5]=udg_unit38
set udg_units10[5]=udg_unit33
set udg_units09[6]=udg_unit14
set udg_units10[6]=udg_unit24
set udg_units09[7]=udg_unit26
set udg_units10[7]=udg_unit32
set udg_units09[8]=udg_unit15
set udg_units10[8]=udg_unit25
call ForGroupBJ(lk('n00C'),function t6)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ChangeElevatorHeight(RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(GetUnitLoc(udg_units09[bj_forLoopAIndex]),300.,300.)),3)
call ChangeElevatorHeight(RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(GetUnitLoc(udg_units10[bj_forLoopAIndex]),300.,300.)),1)
call SetUnitUserData(udg_units09[bj_forLoopAIndex],bj_forLoopAIndex)
call SetUnitUserData(udg_units10[bj_forLoopAIndex],bj_forLoopAIndex)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function t8 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o010')
endfunction
function t9 takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03A',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h03B',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call RemoveUnit(GetEnumUnit())
endfunction
function Ta takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o010')
endfunction
function TA takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03A',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h03B',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h03B',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call RemoveUnit(GetEnumUnit())
endfunction
function Tb takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o010')
endfunction
function Tc takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function TC takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o010')
endfunction
function Td takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03B',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h03G',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call RemoveUnit(GetEnumUnit())
endfunction
function Te takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o010')
endfunction
function TE takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03A',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h03B',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h03F',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call RemoveUnit(GetEnumUnit())
endfunction
function Tf takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o010')
endfunction
function TF takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Tg takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o010')
endfunction
function Th takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03F',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h03I',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call RemoveUnit(GetEnumUnit())
endfunction
function TH takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o010')
endfunction
function Ti takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h03B',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h03G',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h03J',Player(6),GetRandomLocInRect(udg_rects09[GetUnitUserData(GetEnumUnit())]),GetRandomReal(0,360))
call RemoveUnit(GetEnumUnit())
endfunction
function TI takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o010')
endfunction
function Tj takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function TJ takes nothing returns nothing
call SetUnitExploded(bj_lastCreatedUnit,true)
call SetUnitColor(GetEnumUnit(),GetPlayerColor(Player(-1+(GetUnitPointValue(GetEnumUnit())))))
call SetUnitUserData(GetEnumUnit(),0)
call TriggerRegisterUnitEvent(udg_trigger228,GetEnumUnit(),EVENT_UNIT_ACQUIRED_TARGET)
endfunction
function Tk takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function TK takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(10))
endfunction
function Tl takes nothing returns boolean
return GetBooleanAnd(Tk(),TK())
endfunction
function TL takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Tm takes nothing returns boolean
return(CountUnitsInGroup(li(udg_rects01[bj_forLoopAIndex],Player(6)))>0)
endfunction
function TM takes nothing returns nothing
set udg_rects09[1]=udg_rect123
set udg_rects09[2]=udg_rect124
set udg_rects09[3]=udg_rect125
set udg_rects09[4]=udg_rect126
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o010',Player(15),GetRectCenter(udg_rect248),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,bj_forLoopAIndex)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(lo(1,lG(udg_rect248,Condition(function t8))),function t9)
call ForGroupBJ(lo(1,lG(udg_rect248,Condition(function Ta))),function TA)
call ForGroupBJ(lG(udg_rect248,Condition(function Tb)),function Tc)
set udg_rects09[1]=udg_rect127
set udg_rects09[2]=udg_rect128
set udg_rects09[3]=udg_rect129
set udg_rects09[4]=udg_rect130
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o010',Player(15),GetRectCenter(udg_rect248),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,bj_forLoopAIndex)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(lo(1,lG(udg_rect248,Condition(function TC))),function Td)
call ForGroupBJ(lo(1,lG(udg_rect248,Condition(function Te))),function TE)
call ForGroupBJ(lG(udg_rect248,Condition(function Tf)),function TF)
set udg_rects09[1]=udg_rect131
set udg_rects09[2]=udg_rect132
set udg_rects09[3]=udg_rect133
set udg_rects09[4]=udg_rect134
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o010',Player(15),GetRectCenter(udg_rect248),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,bj_forLoopAIndex)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(lo(1,lG(udg_rect248,Condition(function Tg))),function Th)
call ForGroupBJ(lo(1,lG(udg_rect248,Condition(function TH))),function Ti)
call ForGroupBJ(lG(udg_rect248,Condition(function TI)),function Tj)
call ForGroupBJ(lL(Player(6)),function TJ)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer50
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Tm())then
call ForGroupBJ(lG(udg_rects01[bj_forLoopAIndex],Condition(function Tl)),function TL)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call Kh(1.)
call TriggerExecute(udg_trigger82)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Tn takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
call SetUnitInvulnerable(GetEnumUnit(),true)
call SetUnitLifePercentBJ(GetEnumUnit(),40.)
call SetUnitTimeScalePercent(GetEnumUnit(),.0)
endfunction
function TN takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Q')
endfunction
function To takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'A05N')
endfunction
function TO takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Q')
endfunction
function Tp takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'A05O')
endfunction
function TP takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Q')
endfunction
function Tq takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'A05P')
endfunction
function TQ takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Q')
endfunction
function Tr takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'A05M')
endfunction
function Ts takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Q')
endfunction
function TS takes nothing returns nothing
call IssueImmediateOrderById(GetEnumUnit(),852552)
endfunction
function Tt takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function Tu takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(10),false)
endfunction
function TU takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00D')or(GetDestructableTypeId(GetEnumDestructable())=='B00E')or(GetDestructableTypeId(GetEnumDestructable())=='B010')or(GetDestructableTypeId(GetEnumDestructable())=='B011')or(GetDestructableTypeId(GetEnumDestructable())=='B006')or(GetDestructableTypeId(GetEnumDestructable())=='B003')
endfunction
function Tv takes nothing returns boolean
return(TU())
endfunction
function TV takes nothing returns boolean
return(IsDestructableInvulnerable(GetFilterDestructable())==false)
endfunction
function Tw takes nothing returns boolean
return(GetFilterDestructable()!=bj_lastCreatedDestructable)
endfunction
function TW takes nothing returns boolean
return(GetFilterDestructable()!=GetEnumDestructable())
endfunction
function Tx takes nothing returns boolean
return GetBooleanAnd(Tw(),TW())
endfunction
function TX takes nothing returns boolean
return GetBooleanAnd(TV(),Tx())
endfunction
function Ty takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B001')
endfunction
function TY takes nothing returns boolean
return(IsDestructableInvulnerable(GetFilterDestructable())==false)
endfunction
function Tz takes nothing returns boolean
return(GetFilterDestructable()!=bj_lastCreatedDestructable)
endfunction
function TZ takes nothing returns boolean
return(GetFilterDestructable()!=GetEnumDestructable())
endfunction
function T0 takes nothing returns boolean
return GetBooleanAnd(Tz(),TZ())
endfunction
function T1 takes nothing returns boolean
return GetBooleanAnd(TY(),T0())
endfunction
function T2 takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B004')
endfunction
function T3 takes nothing returns nothing
if(T2())then
call CreateDestructableLoc('B005',GetDestructableLoc(GetEnumDestructable()),.0,(udg_real17+.3),0)
call ShowDestructableBJ(false,GetEnumDestructable())
call ShowDestructableBJ(false,RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),90.,90.),Condition(function T1)))
else
if(Ty())then
call CreateDestructableLoc('B002',GetDestructableLoc(GetEnumDestructable()),.0,(udg_real17+.3),0)
call ShowDestructableBJ(false,GetEnumDestructable())
call ShowDestructableBJ(false,RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),90.,90.),Condition(function TX)))
else
if(Tv())then
call ShowDestructableBJ(false,GetEnumDestructable())
endif
endif
endif
endfunction
function T4 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Q')
endfunction
function T5 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function T6 takes nothing returns nothing
call ShowUnitHide(udg_unit31)
call SetUnitInvulnerable(udg_unit31,true)
call SetUnitAnimation(udg_unit29,"death")
call ForGroupBJ(li(udg_rect198,Player(15)),function Tn)
call SetUnitLifePercentBJ(udg_unit29,20.)
call SetUnitInvulnerable(udg_unit27,true)
call PauseUnit(udg_unit27,true)
call ShowUnitHide(udg_unit27)
call SetUnitInvulnerable(udg_unit30,true)
call PauseUnit(udg_unit30,true)
call ShowUnitHide(udg_unit30)
call SetUnitInvulnerable(udg_unit20,true)
call ShowUnitHide(udg_unit40)
call SetUnitInvulnerable(udg_unit43,true)
call SetUnitInvulnerable(udg_unit42,true)
call SetUnitInvulnerable(udg_unit44,true)
call CreateNUnitsAtLoc(6,'h04Q',Player(10),GetRectCenter(udg_rect49),GetRandomReal(0,360))
call CreateNUnitsAtLoc(6,'h04Q',Player(10),GetRectCenter(udg_rect50),GetRandomReal(0,360))
call CreateNUnitsAtLoc(6,'h04Q',Player(10),GetRectCenter(udg_rect48),GetRandomReal(0,360))
call CreateNUnitsAtLoc(6,'h04Q',Player(10),GetRectCenter(udg_rect51),GetRandomReal(0,360))
call ForGroupBJ(lG(udg_rect49,Condition(function TN)),function To)
call ForGroupBJ(lG(udg_rect50,Condition(function TO)),function Tp)
call ForGroupBJ(lG(udg_rect48,Condition(function TP)),function Tq)
call ForGroupBJ(lG(udg_rect51,Condition(function TQ)),function Tr)
call ForGroupBJ(lG(udg_rect137,Condition(function Ts)),function TS)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=1
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Tt())then
set udg_rect05=udg_rect137
endif
call ForGroupBJ(li(udg_rect05,Player(6)),function Tu)
call EnumDestructablesInRectAll(udg_rect05,function T3)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call Kh(1.)
call ForGroupBJ(lG(udg_rect137,Condition(function T4)),function T5)
call ConditionalTriggerExecute(udg_trigger246)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function T7 takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger()))
endfunction
function T8 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function T9 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function ua takes nothing returns boolean
return GetBooleanAnd(T8(),T9())
endfunction
function uA takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"TRIGSTR_2485",1,15.,false)
call StartTimerBJ(udg_timer01,false,(2700.+(2400./I2R(CountPlayersInForceBJ(lN(Condition(function ua)))))))
call CreateTimerDialogBJ(udg_timer01,"Save power")
set udg_timerdialog02=bj_lastCreatedTimerDialog
call TimerDialogSetTitleColorBJ(bj_lastCreatedTimerDialog,67.,73.,80.,.0)
call TimerDialogSetTimeColorBJ(bj_lastCreatedTimerDialog,100.,100.,100.,.0)
call UseTimeOfDayBJ(true)
call VolumeGroupSetVolumeBJ(SOUND_VOLUMEGROUP_UNITSOUNDS,.0)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ub takes nothing returns nothing
call UseTimeOfDayBJ(false)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function uB takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00F')
endfunction
function uc takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(udg_unit01))))
endfunction
function uC takes nothing returns boolean
return GetBooleanAnd(uB(),uc())
endfunction
function ud takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851983,udg_unit01)
endfunction
function uD takes nothing returns boolean
return(udg_booleans33[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function ue takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00C')
endfunction
function uE takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(udg_unit01))))
endfunction
function uf takes nothing returns boolean
return GetBooleanAnd(ue(),uE())
endfunction
function uF takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851983,udg_unit01)
endfunction
function ug takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00D')
endfunction
function uG takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(udg_unit01))))
endfunction
function uh takes nothing returns boolean
return GetBooleanAnd(ug(),uG())
endfunction
function uH takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851983,udg_unit01)
endfunction
function ui takes nothing returns boolean
return(udg_booleans34[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function uI takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00E')
endfunction
function uj takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(udg_unit01))))
endfunction
function uJ takes nothing returns boolean
return GetBooleanAnd(uI(),uj())
endfunction
function uk takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851983,udg_unit01)
endfunction
function uK takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00G')
endfunction
function ul takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(udg_unit01))))
endfunction
function uL takes nothing returns boolean
return GetBooleanAnd(uK(),ul())
endfunction
function um takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851983,udg_unit01)
endfunction
function uM takes nothing returns boolean
return(udg_booleans35[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function un takes nothing returns boolean
return(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
endfunction
function uN takes nothing returns boolean
return(GetPlayerTechCountSimple('R007',GetOwningPlayer(udg_unit01))==1)
endfunction
function uo takes nothing returns boolean
return(GetPlayerTechCountSimple('R002',GetOwningPlayer(udg_unit01))==1)or(GetPlayerTechCountSimple('R000',GetOwningPlayer(udg_unit01))==1)
endfunction
function uO takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==2)
endfunction
function up takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==1)
endfunction
function uP takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==0)
endfunction
function uq takes nothing returns boolean
return(uo())
endfunction
function uQ takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==2)
endfunction
function ur takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==1)
endfunction
function uR takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==2)
endfunction
function us takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==1)
endfunction
function uS takes nothing returns boolean
return(GetPlayerTechCountSimple('R003',GetOwningPlayer(udg_unit01))==1)
endfunction
function ut takes nothing returns boolean
return(GetPlayerTechCountSimple('R001',GetOwningPlayer(udg_unit01))==1)
endfunction
function uT takes nothing returns boolean
return(GetPlayerTechCountSimple('R00C',GetOwningPlayer(udg_unit01))==0)
endfunction
function uu takes nothing returns boolean
return(GetPlayerTechCountSimple('R00D',GetOwningPlayer(udg_unit01))==0)
endfunction
function uU takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h000')
endfunction
function uv takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h01D')
endfunction
function uV takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h01I')
endfunction
function uw takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h00T')
endfunction
function uW takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h018')
endfunction
function ux takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h00K')
endfunction
function uX takes nothing returns boolean
return(GetPlayerTechCountSimple('R009',GetOwningPlayer(udg_unit01))==1)
endfunction
function uy takes nothing returns boolean
return(udg_booleans26[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
endfunction
function uY takes nothing returns nothing
if(uD())then
call UnitAddType(udg_unit01,UNIT_TYPE_ANCIENT)
call ForGroupBJ(ll(Player(11),Condition(function uC)),function ud)
call DestroyGroup(GetLastCreatedGroup())
endif
if(ui())then
call UnitAddType(udg_unit01,UNIT_TYPE_ANCIENT)
call ForGroupBJ(ll(Player(11),Condition(function uf)),function uF)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(ll(Player(11),Condition(function uh)),function uH)
call DestroyGroup(GetLastCreatedGroup())
endif
if(uM())then
call UnitAddType(udg_unit01,UNIT_TYPE_ANCIENT)
call ForGroupBJ(ll(Player(11),Condition(function uJ)),function uk)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(ll(Player(11),Condition(function uL)),function um)
call DestroyGroup(GetLastCreatedGroup())
endif
if(un())then
call SetUnitMoveSpeed(udg_unit01,.0)
endif
call SetUnitAcquireRange(udg_unit01,udg_real19)
if(uN())then
call UnitAddType(udg_unit01,UNIT_TYPE_MECHANICAL)
endif
call UnitRemoveAbility(udg_unit01,'A00D')
call UnitRemoveAbility(udg_unit01,'A05T')
call UnitRemoveAbility(udg_unit01,'A01I')
call UnitRemoveAbility(udg_unit01,'A05V')
if(uq())then
if(uP())then
call UnitAddAbility(udg_unit01,'A05T')
else
if(up())then
call UnitAddAbility(udg_unit01,'A01I')
else
if(uO())then
call UnitAddAbility(udg_unit01,'A05V')
endif
endif
endif
endif
if(uS())then
if(us())then
call UnitAddAbility(udg_unit01,'A01K')
else
if(uR())then
call UnitAddAbility(udg_unit01,'A05W')
call UnitAddAbility(udg_unit01,'A062')
endif
endif
else
if(ur())then
call UnitAddAbility(udg_unit01,'A01J')
else
if(uQ())then
call UnitAddAbility(udg_unit01,'A05W')
call UnitAddAbility(udg_unit01,'A062')
endif
endif
endif
if(ut())then
call UnitAddAbility(udg_unit01,'A00D')
endif
if(uT())then
call UnitRemoveAbility(udg_unit01,'A020')
call UnitRemoveAbility(udg_unit01,'A01Z')
call UnitRemoveAbility(udg_unit01,'A00C')
endif
if(uu())then
call UnitRemoveAbility(udg_unit01,'A021')
call UnitRemoveAbility(udg_unit01,'A00Z')
call UnitRemoveAbility(udg_unit01,'A013')
endif
call UnitRemoveAbility(udg_unit01,'A002')
call UnitRemoveAbility(udg_unit01,'A02H')
call UnitRemoveAbility(udg_unit01,'A027')
call UnitRemoveAbility(udg_unit01,'A02J')
call UnitRemoveAbility(udg_unit01,'A02I')
call UnitRemoveAbility(udg_unit01,'A026')
if(uX())then
if(ux())then
call UnitRemoveAbility(udg_unit01,'A01X')
call UnitAddAbility(udg_unit01,'A002')
else
if(uW())then
call UnitRemoveAbility(udg_unit01,'A02E')
call UnitAddAbility(udg_unit01,'A02H')
else
if(uw())then
call UnitRemoveAbility(udg_unit01,'A025')
call UnitAddAbility(udg_unit01,'A027')
else
if(uV())then
call UnitRemoveAbility(udg_unit01,'A02G')
call UnitAddAbility(udg_unit01,'A02J')
else
if(uv())then
call UnitRemoveAbility(udg_unit01,'A02F')
call UnitAddAbility(udg_unit01,'A02I')
else
if(uU())then
call UnitRemoveAbility(udg_unit01,'A003')
call UnitAddAbility(udg_unit01,'A026')
endif
endif
endif
endif
endif
endif
endif
if(uy())then
call IssueImmediateOrderById(udg_unit01,852076)
endif
endfunction
function uz takes nothing returns boolean
return(GetSpellAbilityId()=='A054')or(GetSpellAbilityId()=='A05X')or(GetSpellAbilityId()=='A05Y')or(GetSpellAbilityId()=='A05Z')or(GetSpellAbilityId()=='A061')or(GetSpellAbilityId()=='A060')
endfunction
function uZ takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(uz())
endfunction
function u0 takes nothing returns boolean
return(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function u1 takes nothing returns boolean
return(udg_booleans33[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])or(udg_booleans34[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])or(udg_booleans35[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function u2 takes nothing returns boolean
return(u1())
endfunction
function u3 takes nothing returns boolean
return(GetPlayerTechCountSimple('R000',GetOwningPlayer(udg_unit01))==0)
endfunction
function u4 takes nothing returns boolean
return(GetPlayerTechCountSimple('R000',GetOwningPlayer(udg_unit01))==0)
endfunction
function u5 takes nothing returns boolean
return(GetPlayerTechCountSimple('R003',GetOwningPlayer(udg_unit01))==1)
endfunction
function u6 takes nothing returns boolean
return(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function u7 takes nothing returns boolean
return(GetPlayerTechCountSimple('R004',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function u8 takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B001'))
endfunction
function u9 takes nothing returns boolean
return(GetPlayerTechCountSimple('R00E',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function Ua takes nothing returns boolean
return(GetPlayerTechCountSimple('R00A',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function UA takes nothing returns boolean
return(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function Ub takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00P'))
endfunction
function UB takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group01)==false)
endfunction
function Uc takes nothing returns nothing
if(UB())then
call SetUnitPositionLoc(udg_units08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetUnitLoc(GetTriggerUnit()))
if(u2())then
call UnitAddType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)
endif
call om(GetTriggerUnit(),80.)
set udg_unit01=GetTriggerUnit()
call SetUnitAnimationByIndex(udg_unit01,8)
call QueueUnitAnimation(GetTriggerUnit(),"attack alternate second")
call GroupAddUnit(udg_group01,GetTriggerUnit())
call TriggerExecute(udg_trigger290)
if(u5())then
call UnitRemoveAbility(udg_unit01,'A00F')
if(u4())then
call UnitRemoveAbility(udg_unit01,'A010')
endif
else
call UnitRemoveAbility(udg_unit01,'A010')
if(u3())then
call UnitRemoveAbility(udg_unit01,'A00F')
endif
endif
if(u6())then
call SetUnitMoveSpeed(GetTriggerUnit(),.0)
endif
if(u7())then
call UnitRemoveAbility(GetTriggerUnit(),'A00R')
call UnitRemoveType(GetTriggerUnit(),UNIT_TYPE_MECHANICAL)
call SetUnitFlyHeight(GetTriggerUnit(),100.,100.)
call PlaySoundOnUnitBJ(udg_sound148,100.,GetTriggerUnit())
else
call UnitAddType(GetTriggerUnit(),UNIT_TYPE_MECHANICAL)
call SetUnitFlyHeight(GetTriggerUnit(),150.,150.)
call PlaySoundOnUnitBJ(udg_sound147,70.,GetTriggerUnit())
endif
if(u9())then
call UnitAddAbility(GetTriggerUnit(),'A017')
else
if(u8())then
call UnitAddAbility(GetTriggerUnit(),'A02Z')
endif
endif
if(Ua())then
call UnitAddAbility(GetTriggerUnit(),'A05U')
endif
if(Ub())then
call SetUnitFlyHeight(GetTriggerUnit(),80.,500.)
call UnitRemoveAbility(GetTriggerUnit(),'B00P')
call GroupRemoveUnit(udg_group01,GetTriggerUnit())
call QI(GetOwningPlayer(GetTriggerUnit()),.7,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",90.,.0,20.,95.,100.,30.,.0,80.)
if(UA())then
call SetUnitMoveSpeed(GetTriggerUnit(),.0)
endif
call PauseUnit(GetTriggerUnit(),true)
call Kh(.6)
set udg_unit01=GetTriggerUnit()
call SetUnitAnimationByIndex(udg_unit01,12)
set udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetUnitFacing(GetTriggerUnit())
call QI(GetOwningPlayer(GetTriggerUnit()),1.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.,30.,.0,80.,100.,60.,.0,95.)
call GroupAddUnit(udg_group12,GetTriggerUnit())
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,60.,udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call CreateNUnitsAtLoc(1,'o01P',GetOwningPlayer(GetTriggerUnit()),udg_location05,GetUnitFacing(GetTriggerUnit()))
set udg_units30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedUnit
call SetUnitFlyHeight(bj_lastCreatedUnit,80.,500.)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_PURPLE)
set udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(udg_location03,60.,GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(udg_location03)
call EnableTrigger(udg_trigger105)
else
call StartTimerBJ(udg_timers03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],false,1.6)
endif
else
call PlaySoundOnUnitBJ(udg_sound149,95.,GetTriggerUnit())
set udg_reals19[udg_integer01]=GetUnitFacing(udg_units24[udg_integer01])
call SetUnitPositionLoc(udg_units08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetUnitLoc(GetTriggerUnit()))
call GroupRemoveUnit(udg_group01,GetTriggerUnit())
call GroupRemoveUnit(udg_group16,GetTriggerUnit())
call SetUnitAnimation(GetTriggerUnit(),"morph alternate fourth")
call QueueUnitAnimation(GetTriggerUnit(),"stand")
set udg_integers68[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=3
call SetUnitFlyHeight(GetEnumUnit(),.0,500.)
set udg_unit01=GetTriggerUnit()
call TriggerExecute(udg_trigger290)
if(u0())then
call SetUnitMoveSpeed(GetTriggerUnit(),.0)
endif
call PauseUnit(GetTriggerUnit(),true)
call IssueImmediateOrderById(udg_units29[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],852164)
endif
endfunction
function UC takes nothing returns boolean
return(CountUnitsInGroup(udg_group01)>0)
endfunction
function Ud takes nothing returns boolean
return(GetPlayerTechCountSimple('R004',GetOwningPlayer(GetEnumUnit()))==1)
endfunction
function UD takes nothing returns boolean
return true
endfunction
function Ue takes nothing returns boolean
return(udg_real01>=-60.)
endfunction
function UE takes nothing returns boolean
return(udg_real01>=-40.)
endfunction
function Uf takes nothing returns boolean
return(udg_real01>=-20.)
endfunction
function UF takes nothing returns boolean
return(udg_real01>=20.)
endfunction
function Ug takes nothing returns boolean
return(udg_real01>=40.)
endfunction
function UG takes nothing returns boolean
return(udg_real01>=60.)
endfunction
function Uh takes nothing returns boolean
return(udg_real01>=.0)
endfunction
function UH takes nothing returns nothing
if(Ud())then
set udg_real12=.9
else
set udg_real12=.6
endif
call om(GetEnumUnit(),(oM(GetEnumUnit())-20.))
if(UD())then
endif
set udg_real01=oM(GetEnumUnit())
set udg_real13=((udg_real12*5.)*RAbsBJ(udg_real01))
if(Uh())then
if(UG())then
call SetUnitFlyHeight(GetEnumUnit(),(140.*udg_real12),udg_real13)
else
if(Ug())then
call SetUnitFlyHeight(GetEnumUnit(),(180.*udg_real12),udg_real13)
else
if(UF())then
call SetUnitFlyHeight(GetEnumUnit(),(200.*udg_real12),udg_real13)
else
call SetUnitFlyHeight(GetEnumUnit(),(200.*udg_real12),20.)
endif
endif
endif
else
if(Uf())then
call SetUnitFlyHeight(GetEnumUnit(),(180.*udg_real12),udg_real13)
else
if(UE())then
call SetUnitFlyHeight(GetEnumUnit(),(140.*udg_real12),udg_real13)
else
if(Ue())then
call SetUnitFlyHeight(GetEnumUnit(),(80.*udg_real12),udg_real13)
else
call SetUnitFlyHeight(GetEnumUnit(),30.,(udg_real13*1.5))
endif
endif
endif
endif
endfunction
function Ui takes nothing returns nothing
call ForGroupBJ(udg_group01,function UH)
endfunction
function UI takes nothing returns boolean
return(GetSpellAbilityId()=='A01X')or(GetSpellAbilityId()=='A02E')or(GetSpellAbilityId()=='A025')or(GetSpellAbilityId()=='A02G')or(GetSpellAbilityId()=='A02F')or(GetSpellAbilityId()=='A003')
endfunction
function Uj takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(UI())
endfunction
function UJ takes nothing returns nothing
call SetUnitAnimation(GetTriggerUnit(),"morph fourth")
endfunction
function Uk takes nothing returns boolean
return(GetSpellAbilityId()=='A01X')or(GetSpellAbilityId()=='A02E')or(GetSpellAbilityId()=='A025')or(GetSpellAbilityId()=='A02G')or(GetSpellAbilityId()=='A02F')or(GetSpellAbilityId()=='A003')or(GetSpellAbilityId()=='A002')or(GetSpellAbilityId()=='A02H')or(GetSpellAbilityId()=='A027')or(GetSpellAbilityId()=='A02J')or(GetSpellAbilityId()=='A02I')or(GetSpellAbilityId()=='A026')
endfunction
function UK takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(Uk())
endfunction
function Ul takes nothing returns boolean
return(GetPlayerTechCountSimple('R009',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function UL takes nothing returns boolean
return(GetPlayerTechCountSimple('R009',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function Um takes nothing returns boolean
return(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function UM takes nothing returns boolean
return(GetUnitCurrentOrder(udg_units24[udg_integer01])==851993)
endfunction
function UN takes nothing returns boolean
return(GetUnitCurrentOrder(udg_units24[udg_integer01])==851986)or(GetUnitCurrentOrder(udg_units24[udg_integer01])==851971)or(GetUnitCurrentOrder(udg_units24[udg_integer01])==851990)
endfunction
function Uo takes nothing returns boolean
return(UN())
endfunction
function UO takes nothing returns boolean
return(udg_booleans33[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])or(udg_booleans34[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])or(udg_booleans35[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Up takes nothing returns boolean
return(UO())
endfunction
function UP takes nothing returns boolean
return(GetPlayerTechCountSimple('R000',GetOwningPlayer(udg_unit01))==0)
endfunction
function Uq takes nothing returns boolean
return(GetPlayerTechCountSimple('R000',GetOwningPlayer(udg_unit01))==0)
endfunction
function UQ takes nothing returns boolean
return(GetPlayerTechCountSimple('R003',GetOwningPlayer(udg_unit01))==1)
endfunction
function Ur takes nothing returns boolean
return(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function UR takes nothing returns boolean
return(GetPlayerTechCountSimple('R00B',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function Us takes nothing returns boolean
return(GetPlayerTechCountSimple('R008',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function Ut takes nothing returns boolean
return(GetPlayerTechCountSimple('R00J',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function UT takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group05)==false)
endfunction
function Uu takes nothing returns nothing
if(UT())then
if(UL())then
call PlaySoundOnUnitBJ(udg_sound145,65.,GetTriggerUnit())
call SetUnitAnimation(GetTriggerUnit(),"stand alternate fourth")
else
call PlaySoundOnUnitBJ(udg_sound143,50.,GetTriggerUnit())
endif
call GroupAddUnit(udg_group05,GetTriggerUnit())
if(Up())then
call UnitAddType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)
endif
set udg_unit01=GetTriggerUnit()
call TriggerExecute(udg_trigger290)
if(UQ())then
call UnitRemoveAbility(udg_unit01,'A00F')
if(Uq())then
call UnitRemoveAbility(udg_unit01,'A010')
endif
else
call UnitRemoveAbility(udg_unit01,'A010')
if(UP())then
call UnitRemoveAbility(udg_unit01,'A00F')
endif
endif
if(Ur())then
call SetUnitMoveSpeed(GetTriggerUnit(),.0)
endif
if(UR())then
call UnitRemoveAbility(GetTriggerUnit(),'A041')
endif
if(Us())then
call UnitRemoveAbility(GetTriggerUnit(),'A03J')
endif
if(Ut())then
call UnitAddAbility(GetTriggerUnit(),'A04P')
endif
else
if(Ul())then
call PlaySoundOnUnitBJ(udg_sound152,50.,GetTriggerUnit())
set udg_integers68[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=1
else
call PlaySoundOnUnitBJ(udg_sound151,50.,GetTriggerUnit())
call QueueUnitAnimation(GetTriggerUnit(),"stand")
set udg_integers68[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=2
endif
call GroupRemoveUnit(udg_group05,GetTriggerUnit())
set udg_unit01=GetTriggerUnit()
call TriggerExecute(udg_trigger290)
if(Um())then
call SetUnitMoveSpeed(GetTriggerUnit(),.0)
endif
set udg_integer01=(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))
if(Uo())then
set udg_integers67[udg_integer01]=1
else
if(UM())then
set udg_integers67[udg_integer01]=2
else
set udg_integers67[udg_integer01]=0
endif
endif
call PauseUnit(GetTriggerUnit(),true)
call IssueImmediateOrderById(udg_units29[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],852164)
endif
endfunction
function UU takes nothing returns boolean
return(GetSpellAbilityId()=='A05U')
endfunction
function Uv takes nothing returns boolean
return(GetPlayerTechCountSimple('R004',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function UV takes nothing returns nothing
call om(GetTriggerUnit(),80.)
call StartTimerBJ(udg_timers03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],false,1.6)
call SetUnitAnimation(GetTriggerUnit(),"stand walk alternate second")
if(Uv())then
call SetUnitFlyHeight(GetTriggerUnit(),100.,100.)
else
call SetUnitFlyHeight(GetTriggerUnit(),150.,150.)
endif
call PlaySoundOnUnitBJ(udg_sound150,80.,GetTriggerUnit())
call GroupAddUnit(udg_group16,GetTriggerUnit())
endfunction
function Uw takes nothing returns nothing
set udg_integer01=1
call ConditionalTriggerExecute(udg_trigger97)
endfunction
function UW takes nothing returns nothing
set udg_integer01=2
call ConditionalTriggerExecute(udg_trigger97)
endfunction
function Ux takes nothing returns nothing
set udg_integer01=3
call ConditionalTriggerExecute(udg_trigger97)
endfunction
function UX takes nothing returns nothing
set udg_integer01=4
call ConditionalTriggerExecute(udg_trigger97)
endfunction
function Uy takes nothing returns nothing
set udg_integer01=5
call ConditionalTriggerExecute(udg_trigger97)
endfunction
function UY takes nothing returns nothing
set udg_integer01=6
call ConditionalTriggerExecute(udg_trigger97)
endfunction
function Uz takes nothing returns boolean
return(IsUnitInGroup(udg_units24[udg_integer01],udg_group01))
endfunction
function UZ takes nothing returns boolean
return(GetUnitCurrentOrder(udg_units24[udg_integer01])==851993)
endfunction
function U0 takes nothing returns boolean
return(GetUnitCurrentOrder(udg_units24[udg_integer01])==851986)or(GetUnitCurrentOrder(udg_units24[udg_integer01])==851971)or(GetUnitCurrentOrder(udg_units24[udg_integer01])==851990)
endfunction
function U1 takes nothing returns boolean
return(U0())
endfunction
function U2 takes nothing returns nothing
if(U1())then
set udg_integers67[udg_integer01]=1
else
if(UZ())then
set udg_integers67[udg_integer01]=2
else
set udg_integers67[udg_integer01]=0
endif
endif
call StartTimerBJ(udg_timers03[udg_integer01],false,1.)
call IssueImmediateOrderById(udg_units24[udg_integer01],852156)
endfunction
function U3 takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o001')
endfunction
function U4 takes nothing returns nothing
call IssueImmediateOrderById(GetSummonedUnit(),852253)
endfunction
function U5 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o001')
endfunction
function U6 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851984,GetUnitLoc(GetTriggerUnit()))
endfunction
function U7 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o003')
endfunction
function U8 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetTriggerUnit(),851984,GetUnitLoc(GetTriggerUnit()))
endfunction
function U9 takes nothing returns boolean
return(GetIssuedOrderId()==851986)or(GetIssuedOrderId()==851971)
endfunction
function va takes nothing returns boolean
return(GetPlayerTechCountSimple('R00F',GetOwningPlayer(GetTriggerUnit()))==1)and(GetUnitTypeId(GetTriggerUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]])and(IsUnitInGroup(GetTriggerUnit(),udg_group03)==false)and(U9())and(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function vA takes nothing returns nothing
call GroupAddUnit(udg_group03,GetTriggerUnit())
set udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetUnitFacing(GetTriggerUnit())
call EnableTrigger(udg_trigger102)
endfunction
function vb takes nothing returns boolean
return(CountUnitsInGroup(udg_group03)>0)
endfunction
function vB takes nothing returns boolean
return(udg_real01>180.)
endfunction
function vc takes nothing returns boolean
return(GetUnitMoveSpeed(GetEnumUnit())<GetUnitDefaultMoveSpeed(GetEnumUnit()))
endfunction
function vC takes nothing returns boolean
return(GetUnitCurrentOrder(GetEnumUnit())!=851986)and(GetUnitCurrentOrder(GetEnumUnit())!=851971)
endfunction
function vd takes nothing returns boolean
return(GetUnitMoveSpeed(GetEnumUnit())<500.)and(IsUnitInGroup(GetEnumUnit(),udg_group04))
endfunction
function vD takes nothing returns boolean
return(IsUnitInGroup(GetEnumUnit(),udg_group04)==false)
endfunction
function ve takes nothing returns boolean
return(GetUnitMoveSpeed(GetEnumUnit())>=515.)
endfunction
function vE takes nothing returns boolean
return(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]==false)
endfunction
function vf takes nothing returns nothing
if(vE())then
set udg_real01=(udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]-GetUnitFacing(GetEnumUnit()))
set udg_real01=RAbsBJ(udg_real01)
if(vB())then
set udg_real01=RAbsBJ((udg_real01-360.))
endif
call SetUnitMoveSpeed(GetEnumUnit(),(GetUnitMoveSpeed(GetEnumUnit())+(50.-(udg_real01*(udg_real01*.4)))))
if(vc())then
call SetUnitMoveSpeed(GetEnumUnit(),GetUnitDefaultMoveSpeed(GetEnumUnit()))
endif
if(vC())then
call SetUnitMoveSpeed(GetEnumUnit(),GetUnitDefaultMoveSpeed(GetEnumUnit()))
call GroupRemoveUnit(udg_group03,GetEnumUnit())
endif
if(ve())then
if(vD())then
call GroupAddUnit(udg_group04,GetEnumUnit())
set udg_unit01=GetEnumUnit()
call ConditionalTriggerExecute(udg_trigger110)
endif
else
if(vd())then
call GroupRemoveUnit(udg_group04,GetEnumUnit())
call UnitRemoveAbility(GetEnumUnit(),'A052')
endif
endif
set udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=GetUnitFacing(GetEnumUnit())
endif
endfunction
function vF takes nothing returns nothing
call ForGroupBJ(udg_group03,function vf)
endfunction
function vg takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group03))and(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function vG takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function vh takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group04))
endfunction
function vH takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function vi takes nothing returns boolean
return(GetIssuedOrderId()==852533)or(GetIssuedOrderId()==852155)
endfunction
function vI takes nothing returns boolean
return(vi())
endfunction
function vj takes nothing returns nothing
if(vI())then
call GroupRemoveUnit(udg_group04,GetTriggerUnit())
call GroupRemoveUnit(udg_group03,GetTriggerUnit())
call ForGroupBJ(lm(GetOwningPlayer(GetTriggerUnit()),'o01O'),function vG)
call DestroyGroup(GetLastCreatedGroup())
call UnitRemoveAbility(GetTriggerUnit(),'A052')
else
if(vh())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'o00Q',GetOwningPlayer(GetTriggerUnit()),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueTargetOrderById(bj_lastCreatedUnit,852075,GetTriggerUnit())
call QI(GetOwningPlayer(GetTriggerUnit()),5.5,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",'d',70.,.0,90.,80.,0,30.,100.)
endif
call SetUnitMoveSpeed(GetTriggerUnit(),GetUnitDefaultMoveSpeed(GetTriggerUnit()))
call GroupRemoveUnit(udg_group03,GetTriggerUnit())
call GroupRemoveUnit(udg_group04,GetTriggerUnit())
call ForGroupBJ(lm(GetOwningPlayer(GetTriggerUnit()),'o01O'),function vH)
call DestroyGroup(GetLastCreatedGroup())
call UnitRemoveAbility(GetTriggerUnit(),'A052')
endif
endfunction
function vJ takes nothing returns boolean
return(IsUnitInGroup(GetAttacker(),udg_group03))and(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]==false)
endfunction
function vk takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function vK takes nothing returns nothing
call SetUnitMoveSpeed(GetAttacker(),GetUnitDefaultMoveSpeed(GetAttacker()))
call GroupRemoveUnit(udg_group03,GetAttacker())
call GroupRemoveUnit(udg_group04,GetAttacker())
call ForGroupBJ(lm(GetOwningPlayer(GetTriggerUnit()),'o01O'),function vk)
call DestroyGroup(GetLastCreatedGroup())
call UnitRemoveAbility(GetTriggerUnit(),'A052')
endfunction
function vl takes nothing returns boolean
return(CountUnitsInGroup(udg_group12)>0)
endfunction
function vL takes nothing returns boolean
return(udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]==false)
endfunction
function vm takes nothing returns boolean
return(IsUnitInGroup(GetEnumUnit(),udg_group02))
endfunction
function vM takes nothing returns boolean
return(CountUnitsInGroup(udg_group12)<=0)
endfunction
function vn takes nothing returns boolean
return(DistanceBetweenPoints(udg_location04,udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])<5.)
endfunction
function vN takes nothing returns boolean
return true
endfunction
function vo takes nothing returns nothing
if(vN())then
set udg_real01=udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]
set udg_location03=GetUnitLoc(GetEnumUnit())
set udg_location04=GetUnitLoc(udg_units30[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])
call RemoveLocation(udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=Ko(udg_location03,300.,udg_real01)
if(vn())then
call RemoveLocation(udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])
set udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=Ko(udg_location03,120.,udg_real01)
set udg_location05=Ko(udg_location03,60.,udg_real01)
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_location05,udg_real01)
call RemoveLocation(udg_location05)
call SetUnitMoveSpeed(GetEnumUnit(),.0)
set udg_location05=Ko(udg_location03,120.,udg_real01)
call SetUnitPositionLoc(udg_units30[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))],udg_location05)
call RemoveLocation(udg_location05)
else
call PauseUnit(GetEnumUnit(),false)
if(vL())then
call SetUnitMoveSpeed(GetEnumUnit(),GetUnitDefaultMoveSpeed(GetEnumUnit()))
endif
if(vm())then
call GroupRemoveUnit(udg_group02,GetEnumUnit())
else
call om(GetEnumUnit(),-40.)
call StartTimerBJ(udg_timers03[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))],false,.6)
call GroupAddUnit(udg_group01,GetEnumUnit())
endif
call GroupRemoveUnit(udg_group12,GetEnumUnit())
call QI(GetOwningPlayer(GetEnumUnit()),.6,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",'d',70.,.0,80.,80.,0,20.,100.)
call AddSpecialEffectLocBJ(udg_location03,"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitPositionLoc(udg_units30[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))],udg_location03)
call KillUnit(udg_units30[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])
if(vM())then
call DisableTrigger(GetTriggeringTrigger())
endif
call RemoveLocation(udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])
set udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=GetRectCenter(udg_rect248)
endif
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location04)
endif
endfunction
function vO takes nothing returns nothing
call ForGroupBJ(udg_group12,function vo)
endfunction
function vp takes nothing returns boolean
return(GetSpellAbilityId()=='A02Z')
endfunction
function vP takes nothing returns nothing
call SetUnitAnimation(GetTriggerUnit(),"stand alternate second")
call UnitRemoveAbility(GetTriggerUnit(),'B001')
call Kh(3.)
call UnitRemoveAbility(GetTriggerUnit(),'A02Z')
endfunction
function vq takes nothing returns boolean
return(GetSpellAbilityId()=='A017')
endfunction
function vQ takes nothing returns nothing
call SetUnitAnimation(GetTriggerUnit(),"stand alternate second")
endfunction
function vr takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o01D')and(GetSpellAbilityId()=='A051')
endfunction
function vR takes nothing returns boolean
return(udg_integers67[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==2)
endfunction
function vs takes nothing returns boolean
return(udg_integers67[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==1)
endfunction
function vS takes nothing returns boolean
return(udg_integers68[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==2)
endfunction
function vt takes nothing returns boolean
return(udg_integers68[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==1)
endfunction
function vT takes nothing returns nothing
set udg_unit01=udg_units24[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
call PauseUnit(udg_unit01,false)
if(vs())then
call IssuePointOrderByIdLoc(udg_unit01,851986,udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
else
if(vR())then
call IssueImmediateOrderById(udg_unit01,851993)
endif
endif
if(vt())then
call SetUnitAnimationByIndex(udg_unit01,0)
call QueueUnitAnimation(udg_unit01,"stand")
else
if(vS())then
call QueueUnitAnimation(udg_unit01,"stand")
else
call SetUnitAnimation(udg_unit01,"morph alternate fourth")
call QueueUnitAnimation(udg_unit01,"stand")
call SetUnitFacingTimed(udg_unit01,udg_reals19[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],.0)
endif
endif
call TriggerExecute(udg_trigger85)
endfunction
function vu takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o01D')and(GetSpellAbilityId()=='A01C')
endfunction
function vU takes nothing returns nothing
set udg_unit01=udg_units24[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
call SetUnitAnimationByIndex(udg_unit01,4)
endfunction
function vv takes nothing returns nothing
call UnitRemoveAbility(udg_unit01,'A052')
call UnitAddAbility(udg_unit01,'A052')
endfunction
function vV takes nothing returns boolean
return(GetSpellAbilityId()=='A05T')or(GetSpellAbilityId()=='A01I')or(GetSpellAbilityId()=='A05V')
endfunction
function vw takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(vV())
endfunction
function vW takes nothing returns boolean
return(GetPlayerTechCountSimple('R002',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function vx takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==2)
endfunction
function vX takes nothing returns boolean
return(GetPlayerTechCountSimple('R000',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function vy takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==1)
endfunction
function vY takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==2)
endfunction
function vz takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function vZ takes nothing returns boolean
return(GetPlayerTechCountSimple('R003',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function v0 takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==1)
endfunction
function v1 takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==0)
endfunction
function v2 takes nothing returns nothing
if(vy())then
set udg_location03=GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call CreateNUnitsAtLoc(1,'o01N',GetOwningPlayer(GetTriggerUnit()),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call UnitRemoveAbility(GetTriggerUnit(),'A01J')
call UnitRemoveAbility(GetTriggerUnit(),'A01K')
call UnitRemoveAbility(GetTriggerUnit(),'A01I')
if(vX())then
set udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=2
else
set udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
endif
else
if(vx())then
call UnitRemoveAbility(GetTriggerUnit(),'A05W')
call UnitRemoveAbility(GetTriggerUnit(),'A062')
call UnitRemoveAbility(GetTriggerUnit(),'A05V')
set udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
else
call UnitRemoveAbility(GetTriggerUnit(),'A05T')
if(vW())then
set udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=1
else
set udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=2
endif
endif
endif
if(v1())then
call UnitAddAbility(GetTriggerUnit(),'A05T')
else
if(v0())then
call UnitAddAbility(GetTriggerUnit(),'A01I')
call ForGroupBJ(lm(GetOwningPlayer(GetTriggerUnit()),'o01N'),function vz)
call DestroyGroup(GetLastCreatedGroup())
if(vZ())then
call UnitAddAbility(GetTriggerUnit(),'A01K')
else
call UnitAddAbility(GetTriggerUnit(),'A01J')
endif
else
if(vY())then
call UnitAddAbility(GetTriggerUnit(),'A05V')
call UnitAddAbility(GetTriggerUnit(),'A05W')
call UnitAddAbility(GetTriggerUnit(),'A062')
endif
endif
endif
endfunction
function v3 takes nothing returns boolean
return(IsUnitInGroup(GetAttacker(),udg_group11))
endfunction
function v4 takes nothing returns boolean
return(udg_booleans26[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))])
endfunction
function v5 takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function v6 takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function v7 takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function v8 takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]==1)
endfunction
function v9 takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]==0)
endfunction
function Va takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function VA takes nothing returns boolean
return(GetRandomInt(1,3)==1)
endfunction
function Vb takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function VB takes nothing returns boolean
return(GetRandomInt(1,3)==1)
endfunction
function Vc takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function VC takes nothing returns boolean
return(GetRandomInt(1,3)==1)
endfunction
function Vd takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]==1)
endfunction
function VD takes nothing returns boolean
return(udg_integers54[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]==0)
endfunction
function Ve takes nothing returns boolean
return(GetPlayerTechCountSimple('R003',GetOwningPlayer(GetAttacker()))==0)
endfunction
function VE takes nothing returns boolean
return(udg_integers52[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]==3)
endfunction
function Vf takes nothing returns boolean
return(udg_integers52[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]==2)
endfunction
function VF takes nothing returns boolean
return(udg_integers52[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]==1)
endfunction
function Vg takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B001'))
endfunction
function VG takes nothing returns nothing
if(v4())then
call IssueTargetOrderById(GetAttacker(),852075,GetTriggerUnit())
return
endif
set udg_location03=GetUnitLoc(GetAttacker())
if(Ve())then
if(v9())then
call AddSpecialEffectTargetUnitBJ("weapon",GetAttacker(),"Abilities\\Weapons\\ProcMissile\\ProcMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(v5())then
call StopSoundBJ(udg_sound180,false)
call PlaySoundAtPointBJ(udg_sound180,'d',udg_location03,100.)
else
call StopSoundBJ(udg_sound181,false)
call PlaySoundAtPointBJ(udg_sound181,'d',udg_location03,100.)
endif
else
if(v8())then
call AddSpecialEffectTargetUnitBJ("weapon",GetAttacker(),"Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitManaBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_MANA,GetAttacker())-6.))
if(v7())then
call StopSoundBJ(udg_sound160,false)
call PlaySoundAtPointBJ(udg_sound160,'d',udg_location03,100.)
else
call StopSoundBJ(udg_sound161,false)
call PlaySoundAtPointBJ(udg_sound161,'d',udg_location03,100.)
endif
else
call AddSpecialEffectTargetUnitBJ("weapon",GetAttacker(),"Abilities\\Spells\\Human\\SpellSteal\\SpellStealMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitManaBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_MANA,GetAttacker())-8.))
if(v6())then
call StopSoundBJ(udg_sound175,false)
call PlaySoundAtPointBJ(udg_sound175,'d',udg_location03,100.)
else
call StopSoundBJ(udg_sound176,false)
call PlaySoundAtPointBJ(udg_sound176,'d',udg_location03,100.)
endif
endif
endif
else
if(VD())then
call AddSpecialEffectTargetUnitBJ("weapon",GetAttacker(),"Abilities\\Weapons\\FaerieDragonMissile\\FaerieDragonMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(VA())then
call StopSoundBJ(udg_sound191,false)
call PlaySoundAtPointBJ(udg_sound191,'d',udg_location03,100.)
else
if(Va())then
call StopSoundBJ(udg_sound192,false)
call PlaySoundAtPointBJ(udg_sound192,'d',udg_location03,100.)
else
call StopSoundBJ(udg_sound193,false)
call PlaySoundAtPointBJ(udg_sound193,'d',udg_location03,100.)
endif
endif
else
if(Vd())then
call AddSpecialEffectTargetUnitBJ("weapon",GetAttacker(),"Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitManaBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_MANA,GetAttacker())-6.))
if(VC())then
call StopSoundBJ(udg_sound162,false)
call PlaySoundAtPointBJ(udg_sound162,'d',udg_location03,100.)
else
if(Vc())then
call StopSoundBJ(udg_sound163,false)
call PlaySoundAtPointBJ(udg_sound163,'d',udg_location03,100.)
else
call StopSoundBJ(udg_sound164,false)
call PlaySoundAtPointBJ(udg_sound164,'d',udg_location03,100.)
endif
endif
else
call AddSpecialEffectTargetUnitBJ("weapon",GetAttacker(),"Abilities\\Spells\\Human\\SpellSteal\\SpellStealMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitManaBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_MANA,GetAttacker())-8.))
if(VB())then
call StopSoundBJ(udg_sound177,false)
call PlaySoundAtPointBJ(udg_sound177,'d',udg_location03,100.)
else
if(Vb())then
call StopSoundBJ(udg_sound178,false)
call PlaySoundAtPointBJ(udg_sound178,'d',udg_location03,100.)
else
call StopSoundBJ(udg_sound179,false)
call PlaySoundAtPointBJ(udg_sound179,'d',udg_location03,100.)
endif
endif
endif
endif
endif
call RemoveLocation(udg_location03)
if(Vg())then
call UnitRemoveAbility(GetAttacker(),'B001')
set udg_location05=GetUnitLoc(GetAttacker())
set udg_location03=Ko(udg_location05,1.,GetUnitFacing(GetAttacker()))
if(VF())then
call CreateNUnitsAtLocFacingLocBJ(1,'h00I',GetOwningPlayer(GetAttacker()),udg_location03,GetUnitLoc(GetTriggerUnit()))
else
if(Vf())then
call CreateNUnitsAtLocFacingLocBJ(1,'h005',GetOwningPlayer(GetAttacker()),udg_location03,GetUnitLoc(GetTriggerUnit()))
else
if(VE())then
call CreateNUnitsAtLocFacingLocBJ(1,'h00H',GetOwningPlayer(GetAttacker()),udg_location03,GetUnitLoc(GetTriggerUnit()))
endif
endif
endif
call IssueTargetOrderById(bj_lastCreatedUnit,851985,GetTriggerUnit())
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endif
endfunction
function Vh takes nothing returns boolean
return(GetSpellAbilityId()=='A00D')and(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function VH takes nothing returns nothing
call IssueImmediateOrderById(udg_units29[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],852184)
call DestroyEffect(udg_effects01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Other\\Drain\\ManaDrainTarget.mdl")
set udg_effects01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call PlaySoundOnUnitBJ(udg_sound144,'d',GetTriggerUnit())
call Kh(.6)
call DestroyEffect(udg_effects01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Vi takes nothing returns boolean
return(GetIssuedOrderId()==852076)and(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function VI takes nothing returns nothing
set udg_booleans26[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
endfunction
function Vj takes nothing returns boolean
return(GetIssuedOrderId()==852077)or(GetIssuedOrderId()==852562)
endfunction
function VJ takes nothing returns boolean
return(Vj())and(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function Vk takes nothing returns nothing
set udg_booleans26[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
endfunction
function VK takes nothing returns boolean
return(GetIssuedOrderId()==851971)or(GetIssuedOrderId()==851983)
endfunction
function Vl takes nothing returns boolean
return(GetOwningPlayer(GetOrderTargetUnit())==Player(10))or(GetOwningPlayer(GetOrderTargetUnit())==Player(6))or(GetOwningPlayer(GetOrderTargetUnit())==Player(8))or(GetOwningPlayer(GetOrderTargetUnit())==Player(13))
endfunction
function VL takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(udg_booleans26[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])and(VK())and(Vl())
endfunction
function Vm takes nothing returns nothing
call IssueTargetOrderById(GetTriggerUnit(),852075,GetOrderTargetUnit())
endfunction
function VM takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(0))or(GetOwningPlayer(GetTriggerUnit())==Player(1))or(GetOwningPlayer(GetTriggerUnit())==Player(2))or(GetOwningPlayer(GetTriggerUnit())==Player(3))or(GetOwningPlayer(GetTriggerUnit())==Player(4))or(GetOwningPlayer(GetTriggerUnit())==Player(5))
endfunction
function Vn takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(IsUnitAliveBJ(GetTriggerUnit()))and(VM())
endfunction
function VN takes nothing returns boolean
return(GetTriggeringRegion()==udg_regions01[bj_forLoopAIndex])
endfunction
function Vo takes nothing returns boolean
return(IsUnitInGroup(GetEnumUnit(),udg_group13)==false)
endfunction
function VO takes nothing returns nothing
if(Vo())then
call GroupAddUnit(udg_group13,GetEnumUnit())
set udg_unit01=GetEnumUnit()
call ConditionalTriggerExecute(udg_trigger206)
endif
endfunction
function Vp takes nothing returns boolean
return(IsUnitInGroup(GetEnumUnit(),udg_group13)==false)
endfunction
function VP takes nothing returns nothing
if(Vp())then
call GroupAddUnit(udg_group13,GetEnumUnit())
set udg_unit01=GetEnumUnit()
call ConditionalTriggerExecute(udg_trigger223)
endif
endfunction
function Vq takes nothing returns nothing
call SetUnitAcquireRange(GetEnumUnit(),300.)
endfunction
function VQ takes nothing returns boolean
return(CountUnitsInGroup(udg_group15)>=1)
endfunction
function Vr takes nothing returns boolean
return(udg_integers53[udg_integer02]>0)and(udg_integers53[udg_integer02]!=udg_integers56[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function VR takes nothing returns boolean
return(udg_booleans25[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function Vs takes nothing returns boolean
return(udg_integers49[udg_integer02]==0)or(udg_integers49[udg_integer02]>2)
endfunction
function VS takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Vt takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function VT takes nothing returns boolean
return(Vs())
endfunction
function Vu takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function VU takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Vv takes nothing returns boolean
return(GetPlayerTechCountSimple('R006',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function VV takes nothing returns boolean
return(udg_integers49[udg_integer02]>=1)and(udg_integers49[udg_integer02]<=2)
endfunction
function Vw takes nothing returns nothing
call ConditionalTriggerExecute(udg_trigger83)
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(VN())then
set udg_integer02=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integers63[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_integer02
set udg_integer48=udg_integers03[udg_integer02]
set udg_group14=li(udg_rects01[udg_integer02],Player(10))
call ForGroupBJ(udg_group14,function VO)
set udg_group14=li(udg_rects01[udg_integer02],Player(8))
call ForGroupBJ(udg_group14,function VP)
set udg_group15=li(udg_rects01[udg_integer02],Player(6))
if(VQ())then
call ForGroupBJ(udg_group15,function Vq)
set udg_integer48=7
set udg_unit01=GetTriggerUnit()
call ConditionalTriggerExecute(udg_trigger179)
call TriggerExecute(udg_trigger119)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call PlaySoundAtPointBJ(udg_sound129,'d',udg_location03,100.)
call RemoveLocation(udg_location03)
endif
if(VR())then
call TriggerExecute(udg_trigger316)
if(Vr())then
set udg_integers56[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_integers53[udg_integer02]
set udg_force06=ln(GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,("- Entering "+(udg_strings22[udg_integers53[udg_integer02]]+" -")),1,5.,false)
endif
else
set udg_integers56[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_integers53[udg_integer02]
endif
if(VV())then
set udg_unit01=GetTriggerUnit()
call ConditionalTriggerExecute(udg_trigger180)
set udg_group14=lm(GetOwningPlayer(GetTriggerUnit()),'o00H')
call ForGroupBJ(udg_group14,function Vu)
set udg_group14=lm(GetOwningPlayer(GetTriggerUnit()),'o00I')
call ForGroupBJ(udg_group14,function VU)
set udg_location03=GetUnitLoc(GetTriggerUnit())
if(Vv())then
call CreateNUnitsAtLocFacingLocBJ(1,'o00I',GetOwningPlayer(GetTriggerUnit()),udg_location03,udg_location03)
else
call CreateNUnitsAtLocFacingLocBJ(1,'o00H',GetOwningPlayer(GetTriggerUnit()),udg_location03,udg_location03)
endif
call IssueTargetOrderById(bj_lastCreatedUnit,851986,GetTriggerUnit())
call RemoveLocation(udg_location03)
else
if(VT())then
set udg_group14=lm(GetOwningPlayer(GetTriggerUnit()),'o00H')
call ForGroupBJ(udg_group14,function VS)
set udg_group14=lm(GetOwningPlayer(GetTriggerUnit()),'o00I')
call ForGroupBJ(udg_group14,function Vt)
endif
endif
endfunction
function VW takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(0))or(GetOwningPlayer(GetTriggerUnit())==Player(1))or(GetOwningPlayer(GetTriggerUnit())==Player(2))or(GetOwningPlayer(GetTriggerUnit())==Player(3))or(GetOwningPlayer(GetTriggerUnit())==Player(4))or(GetOwningPlayer(GetTriggerUnit())==Player(5))
endfunction
function Vx takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(VW())
endfunction
function VX takes nothing returns boolean
return(GetTriggeringRegion()==udg_regions01[bj_forLoopAIndex])
endfunction
function Vy takes nothing returns boolean
return(udg_integers49[udg_integer02]<2)
endfunction
function VY takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function Vz takes nothing returns nothing
call GroupRemoveUnit(udg_group13,GetEnumUnit())
endfunction
function VZ takes nothing returns nothing
call GroupRemoveUnit(udg_group13,GetEnumUnit())
endfunction
function V0 takes nothing returns boolean
return(CountUnitsInGroup(udg_group15)==0)
endfunction
function wa takes nothing returns nothing
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(VX())then
set udg_integer02=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_unit01=GetTriggerUnit()
if(Vy())then
call TriggerExecute(udg_trigger120)
endif
set udg_group15=lG(udg_rects01[udg_integer02],Condition(function VY))
if(V0())then
call ForGroupBJ(li(udg_rects01[udg_integer02],Player(10)),function Vz)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(li(udg_rects01[udg_integer02],Player(8)),function VZ)
call DestroyGroup(GetLastCreatedGroup())
endif
endfunction
function wA takes nothing returns boolean
return(IsDestructableInvulnerable(GetFilterDestructable())==false)
endfunction
function wb takes nothing returns boolean
return(GetFilterDestructable()!=bj_lastCreatedDestructable)
endfunction
function wB takes nothing returns boolean
return(GetFilterDestructable()!=GetEnumDestructable())
endfunction
function wc takes nothing returns boolean
return GetBooleanAnd(wb(),wB())
endfunction
function wC takes nothing returns boolean
return GetBooleanAnd(wA(),wc())
endfunction
function wd takes nothing returns boolean
return(IsUnitInRegion(no(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),128.,128.)),udg_unit01)==false)
endfunction
function wD takes nothing returns boolean
return(GetLocationX(GetDestructableLoc(GetEnumDestructable()))<GetLocationX(GetRectCenter(udg_rects01[udg_integer02])))
endfunction
function wE takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B004')
endfunction
function wf takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00D')or(GetDestructableTypeId(GetEnumDestructable())=='B00E')or(GetDestructableTypeId(GetEnumDestructable())=='B010')or(GetDestructableTypeId(GetEnumDestructable())=='B011')or(GetDestructableTypeId(GetEnumDestructable())=='B006')or(GetDestructableTypeId(GetEnumDestructable())=='B003')
endfunction
function wF takes nothing returns boolean
return(wf())
endfunction
function wg takes nothing returns boolean
return(IsDestructableInvulnerable(GetFilterDestructable())==false)
endfunction
function wG takes nothing returns boolean
return(GetFilterDestructable()!=bj_lastCreatedDestructable)
endfunction
function wh takes nothing returns boolean
return(GetFilterDestructable()!=GetEnumDestructable())
endfunction
function wH takes nothing returns boolean
return GetBooleanAnd(wG(),wh())
endfunction
function wi takes nothing returns boolean
return GetBooleanAnd(wg(),wH())
endfunction
function wI takes nothing returns boolean
return(IsUnitInRegion(no(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),128.,128.)),udg_unit01)==false)
endfunction
function wj takes nothing returns boolean
return(GetLocationY(GetDestructableLoc(GetEnumDestructable()))<GetLocationY(GetRectCenter(udg_rects01[udg_integer02])))
endfunction
function wJ takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B001')
endfunction
function wk takes nothing returns nothing
if(wE())then
if(wd())then
call CreateDestructableLoc('B005',GetDestructableLoc(GetEnumDestructable()),.0,(udg_real17+.3),0)
call SetDestructableAnimation(bj_lastCreatedDestructable,"birth")
call ShowDestructableBJ(false,GetEnumDestructable())
call ShowDestructableBJ(false,RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),90.,90.),Condition(function wC)))
else
set udg_destructables01[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=GetEnumDestructable()
endif
if(wD())then
set udg_destructable02=RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(Ko(GetDestructableLoc(GetEnumDestructable()),192.,180.),70.,70.))
else
set udg_destructable02=RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(Ko(GetDestructableLoc(GetEnumDestructable()),192.,.0),70.,70.))
endif
call CreateDestructableLoc('B009',GetDestructableLoc(udg_destructable02),.0,(udg_real17+.1),0)
call SetDestructableAnimation(bj_lastCreatedDestructable,"birth")
call ShowDestructableBJ(false,udg_destructable02)
endif
if(wJ())then
if(wI())then
call CreateDestructableLoc('B002',GetDestructableLoc(GetEnumDestructable()),.0,(udg_real17+.3),0)
call SetDestructableAnimation(bj_lastCreatedDestructable,"birth")
call ShowDestructableBJ(false,GetEnumDestructable())
call ShowDestructableBJ(false,RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),90.,90.),Condition(function wi)))
else
set udg_destructables01[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=GetEnumDestructable()
endif
if(wj())then
set udg_destructable02=RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(Ko(GetDestructableLoc(GetEnumDestructable()),192.,270.),70.,70.))
else
set udg_destructable02=RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(Ko(GetDestructableLoc(GetEnumDestructable()),192.,90.),70.,70.))
endif
call CreateDestructableLoc('B00C',GetDestructableLoc(udg_destructable02),.0,(udg_real17+.1),0)
call SetDestructableAnimation(bj_lastCreatedDestructable,"birth")
call ShowDestructableBJ(false,udg_destructable02)
else
if(wF())then
call ShowDestructableBJ(false,GetEnumDestructable())
endif
endif
endfunction
function wK takes nothing returns nothing
call EnumDestructablesInRectAll(udg_rects01[udg_integer02],function wk)
endfunction
function wl takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h03D')
endfunction
function wL takes nothing returns nothing
call SetUnitUserData(GetEnumUnit(),0)
if(wl())then
call RemoveUnit(GetEnumUnit())
endif
endfunction
function wm takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00E')or(GetDestructableTypeId(GetEnumDestructable())=='B011')or(GetDestructableTypeId(GetEnumDestructable())=='B003')
endfunction
function wM takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B002')
endfunction
function wn takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B004')or(GetDestructableTypeId(GetEnumDestructable())=='B001')
endfunction
function wN takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B005')
endfunction
function wo takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B002')
endfunction
function wO takes nothing returns boolean
return(wn())and(IsDestructableInvulnerable(GetEnumDestructable())==false)and(RectContainsLoc(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),GetDestructableLoc(RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),Condition(function wN))))==false)and(RectContainsLoc(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),GetDestructableLoc(RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),Condition(function wo))))==false)
endfunction
function wp takes nothing returns boolean
return(wm())and(RectContainsLoc(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),GetDestructableLoc(RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),Condition(function wM))))==false)
endfunction
function wP takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00D')or(GetDestructableTypeId(GetEnumDestructable())=='B010')or(GetDestructableTypeId(GetEnumDestructable())=='B006')
endfunction
function wq takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B005')
endfunction
function wQ takes nothing returns boolean
return(wP())and(RectContainsLoc(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),GetDestructableLoc(RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),Condition(function wq))))==false)
endfunction
function wr takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B009')or(GetDestructableTypeId(GetEnumDestructable())=='B00C')
endfunction
function wR takes nothing returns boolean
return(wr())
endfunction
function ws takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B004')or(GetDestructableTypeId(GetEnumDestructable())=='B001')
endfunction
function wS takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B009')
endfunction
function wt takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B00C')
endfunction
function wT takes nothing returns boolean
return(ws())and(IsDestructableInvulnerable(GetEnumDestructable())==false)and(RectContainsLoc(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),GetDestructableLoc(RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),Condition(function wS))))==false)and(RectContainsLoc(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),GetDestructableLoc(RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetDestructableLoc(GetEnumDestructable()),70.,70.),Condition(function wt))))==false)
endfunction
function wu takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00E')or(GetDestructableTypeId(GetEnumDestructable())=='B011')or(GetDestructableTypeId(GetEnumDestructable())=='B003')
endfunction
function wU takes nothing returns boolean
return(wu())
endfunction
function wv takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B00D')or(GetDestructableTypeId(GetEnumDestructable())=='B010')or(GetDestructableTypeId(GetEnumDestructable())=='B006')
endfunction
function wV takes nothing returns boolean
return(wv())
endfunction
function ww takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B005')or(GetDestructableTypeId(GetEnumDestructable())=='B002')
endfunction
function wW takes nothing returns boolean
return(ww())
endfunction
function wx takes nothing returns boolean
return(RectContainsLoc(udg_rects01[udg_integer02],GetDestructableLoc(GetEnumDestructable())))
endfunction
function wX takes nothing returns nothing
if(wx())then
if(wW())then
set udg_location03=GetDestructableLoc(GetEnumDestructable())
call PlaySoundAtPointBJ(udg_sound130,100.,udg_location03,100.)
call RemoveLocation(udg_location03)
call RemoveDestructable(GetEnumDestructable())
else
if(wV())then
call ShowDestructableBJ(true,GetEnumDestructable())
else
if(wU())then
call ShowDestructableBJ(true,GetEnumDestructable())
else
if(wT())then
call ShowDestructableBJ(true,GetEnumDestructable())
endif
endif
endif
endif
else
if(wR())then
set udg_location03=GetDestructableLoc(GetEnumDestructable())
call PlaySoundAtPointBJ(udg_sound130,100.,udg_location03,100.)
call RemoveLocation(udg_location03)
call RemoveDestructable(GetEnumDestructable())
else
if(wQ())then
call ShowDestructableBJ(true,GetEnumDestructable())
else
if(wp())then
call ShowDestructableBJ(true,GetEnumDestructable())
else
if(wO())then
call ShowDestructableBJ(true,GetEnumDestructable())
endif
endif
endif
endif
endif
endfunction
function wy takes nothing returns nothing
call ForGroupBJ(li(udg_rects01[udg_integer02],Player(6)),function wL)
call EnumDestructablesInRectAll(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[udg_integer02]),(GetRectWidthBJ(udg_rects01[udg_integer02])+512.),(GetRectHeightBJ(udg_rects01[udg_integer02])+512.)),function wX)
endfunction
function wY takes nothing returns boolean
return(GetDestructableTypeId(GetDyingDestructable())=='B001')or(GetDestructableTypeId(GetDyingDestructable())=='B004')
endfunction
function wz takes nothing returns boolean
return(wY())
endfunction
function wZ takes nothing returns nothing
set udg_location03=GetDestructableLoc(GetDyingDestructable())
call PlaySoundAtPointBJ(udg_sound131,'d',udg_location03,200.)
call RemoveLocation(udg_location03)
call Kh(8.)
call DestructableRestoreLife(GetDyingDestructable(),GetDestructableMaxLife(GetDyingDestructable()),true)
set udg_location03=GetDestructableLoc(GetDyingDestructable())
call PlaySoundAtPointBJ(udg_sound127,85.,udg_location03,200.)
call RemoveLocation(udg_location03)
endfunction
function w0 takes nothing returns boolean
return(GetDestructableTypeId(GetDyingDestructable())=='B006')or(GetDestructableTypeId(GetDyingDestructable())=='B003')or(GetDestructableTypeId(GetDyingDestructable())=='B00D')or(GetDestructableTypeId(GetDyingDestructable())=='B00E')or(GetDestructableTypeId(GetDyingDestructable())=='B010')or(GetDestructableTypeId(GetDyingDestructable())=='B011')
endfunction
function w1 takes nothing returns boolean
return(w0())
endfunction
function w2 takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B00C')
endfunction
function w3 takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B002')
endfunction
function w4 takes nothing returns boolean
return(IsDestructableAliveBJ(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,70.,70.),Condition(function w2))))or(IsDestructableAliveBJ(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,70.,70.),Condition(function w3))))
endfunction
function w5 takes nothing returns boolean
return(w4())
endfunction
function w6 takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B001')
endfunction
function w7 takes nothing returns nothing
if(w6())then
call SetDestructableInvulnerable(GetEnumDestructable(),false)
call KillDestructable(GetEnumDestructable())
if(w5())then
else
call ShowDestructableBJ(true,GetEnumDestructable())
endif
endif
endfunction
function w8 takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B009')
endfunction
function w9 takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B005')
endfunction
function Wa takes nothing returns boolean
return(IsDestructableAliveBJ(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,70.,70.),Condition(function w8))))or(IsDestructableAliveBJ(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,70.,70.),Condition(function w9))))
endfunction
function WA takes nothing returns boolean
return(Wa())
endfunction
function Wb takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B004')
endfunction
function WB takes nothing returns nothing
if(Wb())then
call SetDestructableInvulnerable(GetEnumDestructable(),false)
call KillDestructable(GetEnumDestructable())
if(WA())then
else
call ShowDestructableBJ(true,GetEnumDestructable())
endif
endif
endfunction
function Wc takes nothing returns boolean
return(GetDestructableTypeId(GetDyingDestructable())=='B006')or(GetDestructableTypeId(GetDyingDestructable())=='B00D')or(GetDestructableTypeId(GetDyingDestructable())=='B010')
endfunction
function WC takes nothing returns boolean
return(Wc())
endfunction
function Wd takes nothing returns nothing
set udg_location03=GetDestructableLoc(GetDyingDestructable())
call PlaySoundAtPointBJ(udg_sound131,'d',udg_location03,200.)
call ChangeElevatorHeight(GetDyingDestructable(),1)
if(WC())then
call EnumDestructablesInRectAll(RectFromCenterSizeBJ(udg_location03,70.,70.),function WB)
else
call EnumDestructablesInRectAll(RectFromCenterSizeBJ(udg_location03,70.,70.),function w7)
endif
call RemoveLocation(udg_location03)
endfunction
function WD takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_FLYING)==false)and(IsUnitAliveBJ(GetTriggerUnit()))
endfunction
function We takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B008')
endfunction
function WE takes nothing returns boolean
return(GetLocationX(udg_location03)<GetLocationX(udg_location05))
endfunction
function Wf takes nothing returns boolean
return(IsDestructableAliveBJ(GetFilterDestructable()))
endfunction
function WF takes nothing returns boolean
return(GetDestructableMaxLife(GetFilterDestructable())>2.)
endfunction
function Wg takes nothing returns boolean
return GetBooleanAnd(Wf(),WF())
endfunction
function WG takes nothing returns boolean
return(IsDestructableAliveBJ(GetFilterDestructable()))
endfunction
function Wh takes nothing returns boolean
return(GetDestructableMaxLife(GetFilterDestructable())>2.)
endfunction
function WH takes nothing returns boolean
return GetBooleanAnd(WG(),Wh())
endfunction
function Wi takes nothing returns boolean
return(udg_booleans24[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function WI takes nothing returns nothing
call QI(GetOwningPlayer(GetTriggerUnit()),.3,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",.0,.0,.0,'d',.0,.0,.0,.0)
set udg_integers62[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers62[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_rect01=RectFromCenterSizeBJ(GetDestructableLoc(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,260.,260.),Condition(function We))),192.,192.)
set udg_location05=GetRectCenter(udg_rect01)
if(WE())then
set udg_real01=.0
else
set udg_real01=180.
endif
set udg_reals18[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_real01
call KillDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location05,384.,70.),Condition(function Wg)))
call KillDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location05,384.,70.),Condition(function WH)))
call RemoveLocation(udg_location03)
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location04=Ko(udg_location03,208.,udg_real01)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location04)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location04)
set udg_location04=Ko(udg_location05,350.,udg_real01)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_location04,.9)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
if(Wi())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,-208.,udg_real01)
set udg_location04=Ko(udg_location05,-100.,udg_reals17[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_location06=Ko(udg_location05,-115.,udg_real01)
set udg_reals17[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=AngleBetweenPoints(udg_location04,udg_location06)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
call RemoveLocation(udg_location06)
call SetCameraFieldForPlayer(GetOwningPlayer(GetTriggerUnit()),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],1.)
endif
call ShowUnitHide(GetTriggerUnit())
call IssueImmediateOrderById(udg_units27[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],852164)
set udg_units25[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
call DestroyEffect(udg_effects06[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call RemoveLocation(udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetRectCenter(udg_rect01)
endfunction
function Wj takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_FLYING)==false)and(IsUnitAliveBJ(GetTriggerUnit()))
endfunction
function WJ takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B007')
endfunction
function Wk takes nothing returns boolean
return(GetLocationY(udg_location03)<GetLocationY(udg_location05))
endfunction
function WK takes nothing returns boolean
return(IsDestructableAliveBJ(GetFilterDestructable()))
endfunction
function Wl takes nothing returns boolean
return(GetDestructableMaxLife(GetFilterDestructable())>2.)
endfunction
function WL takes nothing returns boolean
return GetBooleanAnd(WK(),Wl())
endfunction
function Wm takes nothing returns boolean
return(IsDestructableAliveBJ(GetFilterDestructable()))
endfunction
function WM takes nothing returns boolean
return(GetDestructableMaxLife(GetFilterDestructable())>2.)
endfunction
function Wn takes nothing returns boolean
return GetBooleanAnd(Wm(),WM())
endfunction
function WN takes nothing returns boolean
return(udg_booleans24[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function Wo takes nothing returns nothing
call QI(GetOwningPlayer(GetTriggerUnit()),.3,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",.0,.0,.0,'d',.0,.0,.0,.0)
set udg_integers62[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers62[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_rect01=RectFromCenterSizeBJ(GetDestructableLoc(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,260.,260.),Condition(function WJ))),192.,192.)
set udg_location05=GetRectCenter(udg_rect01)
if(Wk())then
set udg_real01=90.
else
set udg_real01=270.
endif
set udg_reals18[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_real01
call KillDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location05,70.,384.),Condition(function WL)))
call KillDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location05,70.,384.),Condition(function Wn)))
call RemoveLocation(udg_location03)
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location04=Ko(udg_location03,208.,udg_real01)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location04)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location04)
set udg_location04=Ko(udg_location05,350.,udg_real01)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_location04,.9)
call RemoveLocation(udg_location04)
call RemoveLocation(udg_location05)
if(WN())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,-208.,udg_real01)
set udg_location04=Ko(udg_location05,-100.,udg_reals17[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_location06=Ko(udg_location05,-115.,udg_real01)
set udg_reals17[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=AngleBetweenPoints(udg_location04,udg_location06)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
call RemoveLocation(udg_location06)
call SetCameraFieldForPlayer(GetOwningPlayer(GetTriggerUnit()),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],1.)
endif
call ShowUnitHide(GetTriggerUnit())
call IssueImmediateOrderById(udg_units27[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],852164)
set udg_units25[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
call DestroyEffect(udg_effects06[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call RemoveLocation(udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetRectCenter(udg_rect01)
endfunction
function WO takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o011')
endfunction
function Wp takes nothing returns boolean
return(IsDestructableAliveBJ(GetFilterDestructable()))
endfunction
function WP takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B004')
endfunction
function Wq takes nothing returns boolean
return GetBooleanAnd(Wp(),WP())
endfunction
function WQ takes nothing returns boolean
return(udg_reals18[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==270.)or(udg_reals18[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==90.)
endfunction
function Wr takes nothing returns boolean
return(IsDestructableAliveBJ(GetFilterDestructable()))
endfunction
function WR takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B001')
endfunction
function Ws takes nothing returns boolean
return GetBooleanAnd(Wr(),WR())
endfunction
function WS takes nothing returns boolean
return(WQ())
endfunction
function Wt takes nothing returns nothing
call QI(GetOwningPlayer(GetTriggerUnit()),.3,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",.0,.0,.0,.0,.0,.0,.0,100.)
set udg_unit01=udg_units24[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
call ShowUnitShow(udg_unit01)
set udg_location03=GetUnitLoc(udg_unit01)
if(WS())then
call KillDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,120.,120.),Condition(function Ws)))
else
call KillDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,120.,120.),Condition(function Wq)))
endif
call SelectUnitForPlayerSingle(udg_unit01,GetOwningPlayer(GetTriggerUnit()))
set udg_integers62[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers62[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]-1)
call RemoveLocation(udg_location03)
set udg_location03=GetRectCenter(udg_rects01[udg_integers63[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]])
call SetCameraFieldForPlayer(GetOwningPlayer(GetTriggerUnit()),CAMERA_FIELD_ROTATION,90.,0)
call SetCameraBoundsToRectForPlayerBJ(GetOwningPlayer(GetTriggerUnit()),RectFromCenterSizeBJ(udg_location03,udg_real18,udg_real18))
call SetCameraFieldForPlayer(GetOwningPlayer(GetTriggerUnit()),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],0)
call RemoveLocation(udg_location03)
set udg_player03=GetOwningPlayer(GetTriggerUnit())
call TriggerExecute(udg_trigger167)
call TriggerExecute(udg_trigger290)
endfunction
function WT takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n00C')
endfunction
function Wu takes nothing returns boolean
return(IsUnitInGroup(GetSpellTargetUnit(),udg_group11))
endfunction
function WU takes nothing returns boolean
return(GetUnitUserData(GetTriggerUnit())!=6)and(GetUnitUserData(GetTriggerUnit())!=8)
endfunction
function Wv takes nothing returns boolean
return(GetTriggerUnit()==udg_units09[GetUnitUserData(GetTriggerUnit())])
endfunction
function WV takes nothing returns boolean
return(GetTriggerUnit()==udg_units09[GetUnitUserData(GetTriggerUnit())])
endfunction
function Ww takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetSpellTargetUnit())))]])
endfunction
function WW takes nothing returns nothing
local unit Wx
set udg_unit01=GetSpellTargetUnit()
set Wx=udg_unit01
if(Ww())then
set udg_player03=GetOwningPlayer(udg_unit01)
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=false
if(WU())then
set udg_integer48=0
call TriggerExecute(udg_trigger316)
endif
call SetUnitPositionLoc(GetSpellTargetUnit(),GetUnitLoc(GetTriggerUnit()))
call SetUnitAnimation(GetSpellTargetUnit(),"birth")
call PauseUnit(GetSpellTargetUnit(),true)
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=true
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=Ko(GetUnitLoc(udg_unit01),GetRandomReal(-150.,-200.),(GetUnitFacing(udg_unit01)+GetRandomReal(-90.,90.)))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),1.)
call QI(GetOwningPlayer(GetSpellTargetUnit()),1.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",20.,15.,5.,100.,.0,.0,.0,.0)
call ChangeElevatorHeight(RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(GetUnitLoc(udg_units09[GetUnitUserData(GetTriggerUnit())]),300.,300.)),1)
call ChangeElevatorHeight(RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(GetUnitLoc(udg_units10[GetUnitUserData(GetTriggerUnit())]),300.,300.)),3)
if(Wv())then
call IssueTargetOrderById(udg_units10[GetUnitUserData(GetTriggerUnit())],852066,udg_units10[GetUnitUserData(GetTriggerUnit())])
else
call IssueTargetOrderById(udg_units09[GetUnitUserData(GetTriggerUnit())],852066,udg_units09[GetUnitUserData(GetTriggerUnit())])
endif
call Kh(1.)
set udg_unit01=Wx
if(WV())then
call SetUnitPositionLoc(udg_unit01,GetUnitLoc(udg_units10[GetUnitUserData(GetTriggerUnit())]))
else
call SetUnitPositionLoc(udg_unit01,GetUnitLoc(udg_units09[GetUnitUserData(GetTriggerUnit())]))
endif
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=Ko(GetUnitLoc(udg_unit01),GetRandomReal(-150.,-200.),(GetUnitFacing(udg_unit01)+GetRandomReal(-90.,90.)))
call ShowUnitHide(udg_unit01)
call Kh(1.)
set udg_unit01=Wx
call ShowUnitShow(udg_unit01)
call PauseUnit(udg_unit01,true)
call TriggerExecute(udg_trigger290)
set udg_location03=GetRectCenter(udg_rects01[udg_integers63[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]])
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit01),CAMERA_FIELD_ROTATION,90.,0)
call SetCameraBoundsToRectForPlayerBJ(GetOwningPlayer(udg_unit01),RectFromCenterSizeBJ(udg_location03,udg_real18,udg_real18))
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit01),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],0)
call RemoveLocation(udg_location03)
call SelectUnitForPlayerSingle(udg_unit01,GetOwningPlayer(udg_unit01))
set udg_units25[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=null
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),.0)
call Kh(1.)
set udg_unit01=Wx
call QI(GetOwningPlayer(udg_unit01),1.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",.0,.0,.0,.0,20.,15.,5.,100.)
call ChangeElevatorHeight(RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(GetUnitLoc(udg_units09[GetUnitUserData(GetTriggerUnit())]),300.,300.)),3)
call ChangeElevatorHeight(RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(GetUnitLoc(udg_units10[GetUnitUserData(GetTriggerUnit())]),300.,300.)),1)
call PauseUnit(udg_unit01,false)
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=true
else
call UnitResetCooldown(GetTriggerUnit())
if(Wu())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetSpellTargetUnit())),null,"",udg_sound168,"|cccffcc00Must be standing to use elevator.",1,2.,false)
endif
endif
endfunction
function WX takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01H')
endfunction
function Wy takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00Y')
endfunction
function WY takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Wz takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B010')or(GetDestructableTypeId(GetEnumDestructable())=='B011')
endfunction
function WZ takes nothing returns boolean
return(Wz())
endfunction
function W0 takes nothing returns nothing
if(WZ())then
call KillDestructable(GetEnumDestructable())
endif
endfunction
function W1 takes nothing returns boolean
return(udg_integers53[bj_forLoopAIndex]==GetUnitUserData(GetTriggerUnit()))
endfunction
function W2 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())>.0)
endfunction
function W3 takes nothing returns boolean
return(IsUnitInGroup(GetEnumUnit(),udg_group11))
endfunction
function W4 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]])and(IsUnitAliveBJ(GetEnumUnit()))
endfunction
function W5 takes nothing returns nothing
if(W4())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_location03,86.)
if(W2())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,("- ORANGE DOORS IN "+(StringCase(udg_strings22[GetUnitUserData(GetTriggerUnit())],true)+" UNLOCKED -")),1,10.,false)
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=true
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=Ko(udg_location03,GetRandomReal(-150.,-200.),GetRandomReal(0,360))
call SetUnitColor(GetTriggerUnit(),ConvertPlayerColor(12))
call ForGroupBJ(lI(100.,GetUnitLoc(GetTriggerUnit()),Condition(function Wy)),function WY)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer50
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(W1())then
call EnumDestructablesInRectAll(udg_rects01[bj_forLoopAIndex],function W0)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),2.)
call SetUnitManaBJ(GetTriggerUnit(),.0)
else
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetEnumUnit())),null,"",udg_sound168,"|cccffcc00Doors are already unlocked.",1,2.,false)
endif
call RemoveLocation(udg_location03)
else
if(W3())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetEnumUnit())),null,"",udg_sound168,"|cccffcc00Must be standing to use Lock Station.",1,2.,false)
endif
endif
endfunction
function W6 takes nothing returns nothing
call ForGroupBJ(nZ(GetSpellTargetUnit()),function W5)
endfunction
function W7 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01G')
endfunction
function W8 takes nothing returns boolean
return(udg_integers53[bj_forLoopAIndex]==GetUnitUserData(GetTriggerUnit()))
endfunction
function W9 takes nothing returns boolean
return(IsUnitInGroup(GetEnumUnit(),udg_group11))
endfunction
function xa takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]])and(IsUnitAliveBJ(GetEnumUnit()))
endfunction
function xA takes nothing returns nothing
if(xa())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_location03,86.)
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=true
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=Ko(udg_location03,GetRandomReal(-200.,-250.),270.)
call RemoveLocation(udg_location03)
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetEnumUnit())),null,"",udg_sound171,("- MAP OF "+(StringCase(udg_strings22[GetUnitUserData(GetTriggerUnit())],true)+" DOWNLOADED -")),1,10.,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer50
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(W8())then
call CreateFogModifierRectBJ(true,GetOwningPlayer(GetEnumUnit()),FOG_OF_WAR_FOGGED,RectFromCenterSizeBJ(Location(GetLocationX(GetRectCenter(udg_rects01[bj_forLoopAIndex])),GetRectMinY(udg_rects01[bj_forLoopAIndex])),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+512.),512.))
call DestroyFogModifier(bj_lastCreatedFogModifier)
call CreateFogModifierRectBJ(true,GetOwningPlayer(GetEnumUnit()),FOG_OF_WAR_FOGGED,RectFromCenterSizeBJ(Location(GetLocationX(GetRectCenter(udg_rects01[bj_forLoopAIndex])),GetRectMaxY(udg_rects01[bj_forLoopAIndex])),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+512.),512.))
call DestroyFogModifier(bj_lastCreatedFogModifier)
call CreateFogModifierRectBJ(true,GetOwningPlayer(GetEnumUnit()),FOG_OF_WAR_FOGGED,RectFromCenterSizeBJ(Location(GetRectMinX(udg_rects01[bj_forLoopAIndex]),GetLocationY(GetRectCenter(udg_rects01[bj_forLoopAIndex]))),512.,(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+512.)))
call DestroyFogModifier(bj_lastCreatedFogModifier)
call CreateFogModifierRectBJ(true,GetOwningPlayer(GetEnumUnit()),FOG_OF_WAR_FOGGED,RectFromCenterSizeBJ(Location(GetRectMaxX(udg_rects01[bj_forLoopAIndex]),GetLocationY(GetRectCenter(udg_rects01[bj_forLoopAIndex]))),512.,(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+512.)))
call DestroyFogModifier(bj_lastCreatedFogModifier)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),2.)
else
if(W9())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetEnumUnit())),null,"",udg_sound168,"|cccffcc00Must be standing to use Lock Station.",1,2.,false)
endif
endif
endfunction
function xb takes nothing returns nothing
call ForGroupBJ(nZ(GetSpellTargetUnit()),function xA)
endfunction
function xB takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h007')
endfunction
function xc takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
call ShowDestructableBJ(false,RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(udg_location03,100.,100.)))
call RemoveLocation(udg_location03)
call SetUnitVertexColorBJ(GetTriggerUnit(),67.,71.,71.,.0)
call Kh(6.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call RemoveUnit(GetTriggerUnit())
endfunction
function xC takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h023')
endfunction
function xd takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())=='o000')or(GetUnitTypeId(GetKillingUnit())=='o002')
endfunction
function xD takes nothing returns boolean
return(xd())
endfunction
function xe takes nothing returns nothing
if(xD())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call ShowDestructableBJ(false,RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(udg_location03,100.,100.)))
call RemoveLocation(udg_location03)
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,31.,47.,.0)
call Kh(9.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call RemoveUnit(GetTriggerUnit())
else
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call RemoveUnit(GetTriggerUnit())
endif
endfunction
function xE takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00A')
endfunction
function xf takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())=='o001')or(GetUnitTypeId(GetKillingUnit())=='o003')or(GetUnitTypeId(GetKillingUnit())=='o002')or(UnitHasBuffBJ(GetKillingUnit(),'BEim'))or(UnitHasBuffBJ(GetKillingUnit(),'B007'))or(GetUnitTypeId(GetKillingUnit())=='o01P')or(IsUnitInGroup(GetKillingUnit(),udg_group04))or(UnitHasBuffBJ(GetKillingUnit(),'B00Q'))or(GetUnitTypeId(GetKillingUnit())=='o00S')or(GetUnitTypeId(GetKillingUnit())=='h03V')or(GetUnitTypeId(GetKillingUnit())=='h03X')or(GetUnitTypeId(GetKillingUnit())=='h040')
endfunction
function xF takes nothing returns boolean
return(xf())
endfunction
function xg takes nothing returns nothing
if(xF())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call ShowDestructableBJ(false,RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(udg_location03,100.,100.)))
call RemoveLocation(udg_location03)
call SetUnitVertexColorBJ(GetTriggerUnit(),47.,39.,100.,.0)
call Kh(9.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call RemoveUnit(GetTriggerUnit())
else
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call RemoveUnit(GetTriggerUnit())
endif
endfunction
function xG takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h008')
endfunction
function xh takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())=='o01P')or(IsUnitInGroup(GetKillingUnit(),udg_group04))or(UnitHasBuffBJ(GetKillingUnit(),'B00Q'))
endfunction
function xH takes nothing returns boolean
return(xh())
endfunction
function xi takes nothing returns nothing
if(xH())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call ShowDestructableBJ(false,RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(udg_location03,100.,100.)))
call RemoveLocation(udg_location03)
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,67.,31.,.0)
call Kh(12.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call RemoveUnit(GetTriggerUnit())
else
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call RemoveUnit(GetTriggerUnit())
endif
endfunction
function xI takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00B')
endfunction
function xj takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())=='o003')
endfunction
function xJ takes nothing returns nothing
local unit NewBlock
if(xj())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call ShowDestructableBJ(false,RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(udg_location03,100.,100.)))
call RemoveLocation(udg_location03)
call SetUnitVertexColorBJ(GetTriggerUnit(),59.,100.,31.,.0)
call Kh(12.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call RemoveUnit(GetTriggerUnit())
else
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call RemoveUnit(GetTriggerUnit())
endif
endfunction
function xk takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h009')
endfunction
function xK takes nothing returns boolean
return(UnitHasBuffBJ(GetKillingUnit(),'BEim'))or(UnitHasBuffBJ(GetKillingUnit(),'B00X'))or(UnitHasBuffBJ(GetKillingUnit(),'B00Q'))
endfunction
function xl takes nothing returns boolean
return(xK())
endfunction
function xL takes nothing returns nothing
if(xl())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call ShowDestructableBJ(false,RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(udg_location03,100.,100.)))
call RemoveLocation(udg_location03)
call SetUnitVertexColorBJ(GetTriggerUnit(),35.,100.,59.,.0)
call Kh(2.)
call RemoveUnit(GetTriggerUnit())
return
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call RemoveUnit(GetTriggerUnit())
else
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852164)
call RemoveUnit(GetTriggerUnit())
endif
endfunction
function xm takes nothing returns boolean
return(GetSpellAbilityId()=='A05L')
endfunction
function xM takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h009')
endfunction
function xn takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00B')
endfunction
function xN takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h008')
endfunction
function xo takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00A')
endfunction
function xO takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h023')
endfunction
function xp takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h007')
endfunction
function xP takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!='h007')
endfunction
function xq takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
call ShowDestructableBJ(true,RandomDestructableInRectSimpleBJ(RectFromCenterSizeBJ(udg_location03,100.,100.)))
call RemoveLocation(udg_location03)
if(xp())then
call SetUnitVertexColorBJ(GetTriggerUnit(),67.,71.,71.,40.)
else
if(xO())then
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,31.,47.,40.)
else
if(xo())then
call SetUnitVertexColorBJ(GetTriggerUnit(),47.,39.,100.,40.)
else
if(xN())then
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,67.,31.,40.)
else
if(xn())then
call SetUnitVertexColorBJ(GetTriggerUnit(),59.,100.,31.,40.)
else
if(xM())then
call SetUnitVertexColorBJ(GetTriggerUnit(),35.,100.,59.,40.)
endif
endif
endif
endif
endif
endif
call Kh(1.)
if(xP())then
call Kh(11.)
endif
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,100.,100.,100.)
endfunction
function xQ takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n010')or(GetUnitTypeId(GetAttacker())=='n011')or(GetUnitTypeId(GetAttacker())=='n012')or(GetUnitTypeId(GetAttacker())=='n00Z')
endfunction
function xr takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(9))and(xQ())
endfunction
function xR takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n00Z')
endfunction
function xs takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n012')
endfunction
function xS takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n011')
endfunction
function xt takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n010')
endfunction
function xT takes nothing returns nothing
call SetUnitAnimation(GetAttacker(),"death")
set udg_location03=GetUnitLoc(GetTriggerUnit())
if(xt())then
set udg_location05=Ko(udg_location03,80.,270.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
else
if(xS())then
set udg_location05=Ko(udg_location03,80.,180.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
else
if(xs())then
set udg_location05=Ko(udg_location03,80.,.0)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
else
if(xR())then
set udg_location05=Ko(udg_location03,80.,90.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
endif
endif
endif
endif
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(.8)
call SetUnitAnimation(GetAttacker(),"stand")
endfunction
function xu takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03N')
endfunction
function xU takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B00Z')
endfunction
function xv takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B00Z')
endfunction
function xV takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
call DestructableRestoreLife(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,100.,100.),Condition(function xU)),GetDestructableMaxLife(bj_lastCreatedDestructable),false)
call PlaySoundAtPointBJ(udg_sound188,'d',udg_location03,100.)
call RemoveLocation(udg_location03)
call Kh(8.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call KillDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,100.,100.),Condition(function xv)))
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(11),udg_location03,bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,GetUnitUserData(GetTriggerUnit()))
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_location03)
endfunction
function xw takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n018')and(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function xW takes nothing returns nothing
set udg_location03=GetUnitLoc(GetAttacker())
call SetUnitPositionLoc(GetTriggerUnit(),udg_location03)
call CreateNUnitsAtLocFacingLocBJ(1,'o00S',GetOwningPlayer(GetAttacker()),udg_location03,GetUnitLoc(GetAttacker()))
call RemoveLocation(udg_location03)
set udg_location03=GetUnitLoc(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location03)
call RemoveLocation(udg_location03)
endfunction
function xx takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n017')or(GetUnitTypeId(GetAttacker())=='n019')or(GetUnitTypeId(GetAttacker())=='n01A')or(GetUnitTypeId(GetAttacker())=='n01B')
endfunction
function xX takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(xx())
endfunction
function xy takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n01B')
endfunction
function xY takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n01A')
endfunction
function xz takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n019')
endfunction
function xZ takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n017')
endfunction
function x0 takes nothing returns nothing
call QI(GetOwningPlayer(GetTriggerUnit()),.6,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",90.,.0,20.,95.,100.,30.,.0,80.)
if(xZ())then
set udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=180.
else
if(xz())then
set udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=.0
else
if(xY())then
set udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=90.
else
if(xy())then
set udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=270.
endif
endif
endif
endif
call SetUnitMoveSpeed(GetTriggerUnit(),.0)
set udg_location03=GetUnitLoc(GetAttacker())
call SetUnitPositionLocFacingBJ(GetTriggerUnit(),udg_location03,udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call RemoveLocation(udg_location03)
call PauseUnit(GetTriggerUnit(),true)
call Kh(.6)
set udg_location03=GetUnitLoc(GetAttacker())
call SetUnitPositionLocFacingBJ(GetTriggerUnit(),udg_location03,udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call RemoveLocation(udg_location03)
call QI(GetOwningPlayer(GetTriggerUnit()),1.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.,30.,.0,80.,100.,60.,.0,95.)
call GroupAddUnit(udg_group02,GetTriggerUnit())
call GroupAddUnit(udg_group12,GetTriggerUnit())
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,60.,udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call CreateNUnitsAtLoc(1,'o01P',GetOwningPlayer(GetTriggerUnit()),udg_location05,GetUnitFacing(GetTriggerUnit()))
set udg_units30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedUnit
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_PURPLE)
set udg_locations03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(udg_location03,60.,udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call RemoveLocation(udg_location03)
call EnableTrigger(udg_trigger105)
endfunction
function x3 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03U')
endfunction
function x4 takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h03V',Player(9),udg_location03,bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location03)
call ShowUnitHide(GetTriggerUnit())
call RemoveLocation(udg_location03)
call Kh(8.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_ORANGE)
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_location03)
endfunction
function x5 takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE))and(GetUnitTypeId(GetTriggerUnit())=='h03W')
endfunction
function x6 takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())=='o00S')or(GetUnitTypeId(GetKillingUnit())=='h03V')or(GetUnitTypeId(GetKillingUnit())=='h03X')or(GetUnitTypeId(GetKillingUnit())=='h040')
endfunction
function x7 takes nothing returns boolean
return(x6())
endfunction
function x8 takes nothing returns nothing
if(x7())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h03X',Player(9),udg_location03,300.)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_BROWN)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location03)
call ShowUnitHide(GetTriggerUnit())
call RemoveLocation(udg_location03)
call Kh(8.)
endif
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,300.)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_BROWN)
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_location03)
endfunction
function x9 takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE))and(GetUnitTypeId(GetTriggerUnit())=='h03Y')
endfunction
function Xa takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h040')
endfunction
function XA takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())=='o00S')or(GetUnitTypeId(GetKillingUnit())=='h03V')or(GetUnitTypeId(GetKillingUnit())=='h03X')or(GetUnitTypeId(GetKillingUnit())=='h040')
endfunction
function Xb takes nothing returns boolean
return(XA())
endfunction
function XB takes nothing returns nothing
if(Xb())then
call SetUnitVertexColorBJ(GetTriggerUnit(),'d',100.,'d',100.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h040',Player(9),udg_location03,45.)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_CYAN)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location03)
call ShowUnitHide(GetTriggerUnit())
call RemoveLocation(udg_location03)
call Kh(1.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call RemoveUnit(GroupPickRandomUnit(lI(20.,udg_location03,Condition(function Xa))))
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location03)
endif
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h03Y',Player(9),udg_location03,45.)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_location03)
endfunction
function Xc takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE))and(GetUnitTypeId(GetTriggerUnit())=='h047')
endfunction
function XC takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h048')
endfunction
function Xd takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())=='o00S')or(GetUnitTypeId(GetKillingUnit())=='h03V')or(GetUnitTypeId(GetKillingUnit())=='h03X')or(GetUnitTypeId(GetKillingUnit())=='h040')
endfunction
function XD takes nothing returns boolean
return(Xd())
endfunction
function Xe takes nothing returns nothing
if(XD())then
call SetUnitAnimation(GetTriggerUnit(),"decay")
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h048',Player(9),udg_location03,267.)
call RemoveLocation(udg_location03)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call ShowUnitHide(GetTriggerUnit())
call Kh(1.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call SetUnitInvulnerable(GroupPickRandomUnit(lI(20.,udg_location03,Condition(function XC))),false)
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location03)
call RemoveUnit(GetTriggerUnit())
else
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,259.)
call RemoveLocation(udg_location03)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call RemoveUnit(GetTriggerUnit())
endif
endfunction
function XE takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE))and(GetUnitTypeId(GetTriggerUnit())=='h048')
endfunction
function Xf takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h047')
endfunction
function XF takes nothing returns boolean
return(GetUnitTypeId(GetKillingUnit())=='o00S')or(GetUnitTypeId(GetKillingUnit())=='h03V')or(GetUnitTypeId(GetKillingUnit())=='h03X')or(GetUnitTypeId(GetKillingUnit())=='h040')
endfunction
function Xg takes nothing returns boolean
return(XF())
endfunction
function XG takes nothing returns nothing
if(Xg())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h047',Player(9),udg_location03,259.)
call RemoveLocation(udg_location03)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call Kh(1.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call SetUnitInvulnerable(GroupPickRandomUnit(lI(20.,udg_location03,Condition(function Xf))),false)
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location03)
call RemoveUnit(GetTriggerUnit())
else
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,267.)
call RemoveLocation(udg_location03)
call RemoveUnit(GetTriggerUnit())
endif
endfunction
function Xh takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE))and(GetUnitTypeId(GetTriggerUnit())=='h04C')
endfunction
function XH takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B00M')
endfunction
function Xi takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B00M')
endfunction
function XI takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n01Q')
endfunction
function Xj takes nothing returns nothing
if(XI())then
call Kh(.2)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call PlaySoundAtPointBJ(udg_sound132,90.,udg_location03,100.)
call ShowDestructableBJ(false,RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,100.,100.),Condition(function XH)))
call KillUnit(GetTriggerUnit())
call ShowUnitHide(GetTriggerUnit())
call RemoveLocation(udg_location03)
call Kh(8.)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call PlaySoundAtPointBJ(udg_sound128,70.,udg_location03,100.)
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(9),udg_location03,bj_UNIT_FACING)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_LIGHT_GRAY)
call ShowDestructableBJ(true,RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,100.,100.),Condition(function Xi)))
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_location03)
endif
endfunction
function XJ takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE))and(GetUnitTypeId(GetTriggerUnit())=='n01Q')
endfunction
function Xk takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04C')
endfunction
function XK takes nothing returns boolean
return(GetPlayerTechCountSimple('R003',GetOwningPlayer(GetAttacker()))==1)and(GetUnitTypeId(GetAttacker())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]])
endfunction
function Xl takes nothing returns nothing
if(XK())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call IssueTargetOrderById(GetTriggerUnit(),851983,GroupPickRandomUnit(lI(256.,udg_location03,Condition(function Xk))))
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location03)
endif
endfunction
function XL takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01C')or(GetUnitTypeId(GetTriggerUnit())=='n01D')
endfunction
function Xm takes nothing returns boolean
return(XL())
endfunction
function XM takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01D')
endfunction
function Xn takes nothing returns nothing
call Kh(8.)
if(XM())then
call Kh(4.)
endif
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(11),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call QueueUnitAnimation(bj_lastCreatedUnit,"stand")
call RemoveUnit(GetTriggerUnit())
endfunction
function XN takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03Z')
endfunction
function Xo takes nothing returns boolean
return(udg_integer03<=6)
endfunction
function XO takes nothing returns boolean
return(udg_integer03<=8)
endfunction
function Xp takes nothing returns boolean
return(udg_integer03<=6)
endfunction
function Xq takes nothing returns boolean
return(udg_integer03<=4)
endfunction
function XQ takes nothing returns boolean
return(udg_integer03<=6)
endfunction
function Xr takes nothing returns boolean
return(udg_integer03<=5)
endfunction
function XR takes nothing returns boolean
return(udg_integer03<=5)
endfunction
function Xs takes nothing returns nothing
set udg_integer03=GetRandomInt(1,20)
if(Xp())then
set udg_integer04='I004'
else
set udg_integer03=(udg_integer03-6)
if(XO())then
set udg_integer04='I003'
else
set udg_integer03=(udg_integer03-8)
if(Xo())then
set udg_integer04='I001'
endif
endif
endif
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,GetRandomReal(.0,50.),GetRandomReal(0,360))
call CreateItemLoc(udg_integer04,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
set udg_integer03=GetRandomInt(1,20)
if(XR())then
set udg_integer04='I003'
else
set udg_integer03=(udg_integer03-5)
if(Xr())then
set udg_integer04='I004'
else
set udg_integer03=(udg_integer03-5)
if(XQ())then
set udg_integer04='I00I'
else
set udg_integer03=(udg_integer03-6)
if(Xq())then
set udg_integer04='I00J'
endif
endif
endif
endif
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,GetRandomReal(.0,50.),GetRandomReal(0,360))
call CreateItemLoc(udg_integer04,udg_location05)
call SetItemUserData(bj_lastCreatedItem,0)
call AddSpecialEffectLocBJ(udg_location03,"Abilities\\Weapons\\RocketMissile\\RocketMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveUnit(GetTriggerUnit())
endfunction
function XS takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h04D')
endfunction
function Xt takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'o012',Player(15),udg_location03,GetRandomReal(0,360))
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_BLUE)
call AddSpecialEffectLocBJ(udg_location03,"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location03)
call RemoveUnit(GetTriggerUnit())
endfunction
function XT takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(GetPlayerTechCountSimple('R004',GetOwningPlayer(GetTriggerUnit()))==0)and(IsUnitInGroup(GetTriggerUnit(),udg_group16)==false)
endfunction
function Xu takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,20.,180.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function XU takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(GetPlayerTechCountSimple('R004',GetOwningPlayer(GetTriggerUnit()))==0)and(IsUnitInGroup(GetTriggerUnit(),udg_group16)==false)
endfunction
function Xv takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,20.,.0)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function XV takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(GetPlayerTechCountSimple('R004',GetOwningPlayer(GetTriggerUnit()))==0)and(IsUnitInGroup(GetTriggerUnit(),udg_group16)==false)
endfunction
function Xw takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,20.,90.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function XW takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(GetPlayerTechCountSimple('R004',GetOwningPlayer(GetTriggerUnit()))==0)and(IsUnitInGroup(GetTriggerUnit(),udg_group16)==false)
endfunction
function Xx takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,20.,270.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function XX takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function Xy takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,60.,180.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function XY takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function Xz takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,60.,.0)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function XZ takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function X4 takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,60.,90.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function X5 takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function X6 takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,60.,270.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function X7 takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function X8 takes nothing returns nothing
set udg_booleans33[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call UnitAddType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLocFacingLocBJ(1,'o00F',Player(11),udg_location03,GetUnitLoc(GetTriggerUnit()))
call RemoveLocation(udg_location03)
call SetUnitUserData(bj_lastCreatedUnit,(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetTriggerUnit())
endfunction
function X9 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='o00F')
endfunction
function ya takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00A')==false)
endfunction
function yA takes nothing returns nothing
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound190)
if(ya())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call PlaySoundAtPointBJ(udg_sound189,'d',udg_location03,100.)
call RemoveLocation(udg_location03)
call DestroyEffect(udg_effects05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call DestroyEffect(udg_effects04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Other\\CrushingWave\\CrushingWaveDamage.mdl")
set udg_effects05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Doodads\\Ruins\\Water\\BubbleGeyser\\BubbleGeyser.mdl")
set udg_effects04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
endif
endfunction
function yb takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function yB takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00F')
endfunction
function yc takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function yC takes nothing returns boolean
return GetBooleanAnd(yB(),yc())
endfunction
function yd takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00F')
endfunction
function yD takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function ye takes nothing returns boolean
return GetBooleanAnd(yd(),yD())
endfunction
function yE takes nothing returns boolean
return(CountUnitsInGroup(udg_group15)==0)
endfunction
function yf takes nothing returns nothing
set udg_group15=ll(Player(11),Condition(function yC))
call RemoveUnit(GroupPickRandomUnit(udg_group15))
call Kh(.4)
set udg_group15=ll(Player(11),Condition(function ye))
if(yE())then
set udg_booleans33[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
call DestroyEffect(udg_effects05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call DestroyEffect(udg_effects04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call StopSoundBJ(udg_sound190,true)
call UnitRemoveType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)
endif
endfunction
function yF takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function yg takes nothing returns boolean
return(GetPlayerTechCountSimple('R006',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function yG takes nothing returns nothing
set udg_booleans34[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call UnitAddType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)
set udg_location03=GetUnitLoc(GetTriggerUnit())
if(yg())then
call CreateNUnitsAtLocFacingLocBJ(1,'o00D',Player(11),udg_location03,GetUnitLoc(GetTriggerUnit()))
else
call CreateNUnitsAtLocFacingLocBJ(1,'o00C',Player(11),udg_location03,GetUnitLoc(GetTriggerUnit()))
endif
call RemoveLocation(udg_location03)
call SetUnitUserData(bj_lastCreatedUnit,(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetTriggerUnit())
endfunction
function yh takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='o00C')or(GetUnitTypeId(GetAttacker())=='o00D')
endfunction
function yH takes nothing returns boolean
return(yh())
endfunction
function yi takes nothing returns boolean
return(GetPlayerTechCountSimple('R006',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function yI takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00B')==false)
endfunction
function yj takes nothing returns nothing
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound62)
if(yI())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call PlaySoundAtPointBJ(udg_sound61,'d',udg_location03,100.)
call RemoveLocation(udg_location03)
call DestroyEffect(udg_effects05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call DestroyEffect(udg_effects04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Undead\\ReplenishHealth\\ReplenishHealthCaster.mdl")
set udg_effects05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
if(yi())then
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Environment\\UndeadBuildingFire\\UndeadSmallBuildingFire1.mdl")
else
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire0.mdl")
endif
set udg_effects04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
endif
endfunction
function yJ takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function yk takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00C')
endfunction
function yK takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function yl takes nothing returns boolean
return GetBooleanAnd(yk(),yK())
endfunction
function yL takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00D')
endfunction
function ym takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function yM takes nothing returns boolean
return GetBooleanAnd(yL(),ym())
endfunction
function yn takes nothing returns boolean
return(GetPlayerTechCountSimple('R006',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function yN takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00D')
endfunction
function yo takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function yO takes nothing returns boolean
return GetBooleanAnd(yN(),yo())
endfunction
function yp takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00C')
endfunction
function yP takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function yq takes nothing returns boolean
return GetBooleanAnd(yp(),yP())
endfunction
function yQ takes nothing returns boolean
return(CountUnitsInGroup(udg_group15)==0)and(CountUnitsInGroup(udg_groups02[1])==0)
endfunction
function yr takes nothing returns nothing
if(yn())then
set udg_group15=ll(Player(11),Condition(function yM))
call RemoveUnit(GroupPickRandomUnit(udg_group15))
else
set udg_group15=ll(Player(11),Condition(function yl))
call RemoveUnit(GroupPickRandomUnit(udg_group15))
endif
call Kh(.4)
set udg_group15=ll(Player(11),Condition(function yO))
set udg_groups02[1]=ll(Player(11),Condition(function yq))
if(yQ())then
set udg_booleans34[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
call DestroyEffect(udg_effects05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call DestroyEffect(udg_effects04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call StopSoundBJ(udg_sound62,true)
call UnitRemoveType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)
endif
endfunction
function yR takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function ys takes nothing returns boolean
return(GetPlayerTechCountSimple('R006',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function yS takes nothing returns nothing
set udg_booleans35[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call UnitAddType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)
set udg_location03=GetUnitLoc(GetTriggerUnit())
if(ys())then
call CreateNUnitsAtLocFacingLocBJ(1,'o00G',Player(11),udg_location03,GetUnitLoc(GetTriggerUnit()))
else
call CreateNUnitsAtLocFacingLocBJ(1,'o00E',Player(11),udg_location03,GetUnitLoc(GetTriggerUnit()))
endif
call RemoveLocation(udg_location03)
call SetUnitUserData(bj_lastCreatedUnit,(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetTriggerUnit())
endfunction
function yt takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='o00E')or(GetUnitTypeId(GetAttacker())=='o00G')
endfunction
function yT takes nothing returns boolean
return(yt())
endfunction
function yu takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00C')==false)
endfunction
function yU takes nothing returns nothing
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound174)
if(yu())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call PlaySoundAtPointBJ(udg_sound173,'d',udg_location03,100.)
call RemoveLocation(udg_location03)
call DestroyEffect(udg_effects05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call DestroyEffect(udg_effects04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
set udg_effects05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Environment\\LargeBuildingFire\\LargeBuildingFire0.mdl")
set udg_effects04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
endif
endfunction
function yv takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function yV takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00E')
endfunction
function yw takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function yW takes nothing returns boolean
return GetBooleanAnd(yV(),yw())
endfunction
function yx takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00G')
endfunction
function yX takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function yy takes nothing returns boolean
return GetBooleanAnd(yx(),yX())
endfunction
function yY takes nothing returns boolean
return(GetPlayerTechCountSimple('R006',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function yz takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00G')
endfunction
function yZ takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function y0 takes nothing returns boolean
return GetBooleanAnd(yz(),yZ())
endfunction
function y3 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00E')
endfunction
function y4 takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))
endfunction
function y5 takes nothing returns boolean
return GetBooleanAnd(y3(),y4())
endfunction
function y6 takes nothing returns boolean
return(CountUnitsInGroup(udg_group15)==0)and(CountUnitsInGroup(udg_groups02[1])==0)
endfunction
function y7 takes nothing returns nothing
if(yY())then
set udg_group15=ll(Player(11),Condition(function yy))
call RemoveUnit(GroupPickRandomUnit(udg_group15))
else
set udg_group15=ll(Player(11),Condition(function yW))
call RemoveUnit(GroupPickRandomUnit(udg_group15))
endif
call Kh(.4)
set udg_group15=ll(Player(11),Condition(function y0))
set udg_groups02[1]=ll(Player(11),Condition(function y5))
if(y6())then
set udg_booleans35[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
call DestroyEffect(udg_effects05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call DestroyEffect(udg_effects04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call StopSoundBJ(udg_sound174,true)
call UnitRemoveType(GetTriggerUnit(),UNIT_TYPE_ANCIENT)
endif
endfunction
function y8 takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==(1+GetPlayerId(udg_player03)))
endfunction
function y9 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='o00F')or(GetUnitTypeId(GetEnumUnit())=='o00C')or(GetUnitTypeId(GetEnumUnit())=='o00D')or(GetUnitTypeId(GetEnumUnit())=='o00E')or(GetUnitTypeId(GetEnumUnit())=='o00G')
endfunction
function Ya takes nothing returns boolean
return(y9())
endfunction
function YA takes nothing returns nothing
if(Ya())then
call RemoveUnit(GetEnumUnit())
endif
endfunction
function Yb takes nothing returns nothing
call StopSoundBJ(udg_sound190,true)
call StopSoundBJ(udg_sound62,true)
call StopSoundBJ(udg_sound174,true)
set udg_booleans33[(1+GetPlayerId(udg_player03))]=false
set udg_booleans34[(1+GetPlayerId(udg_player03))]=false
set udg_booleans35[(1+GetPlayerId(udg_player03))]=false
call DestroyEffect(udg_effects05[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
call DestroyEffect(udg_effects04[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
call ForGroupBJ(ll(Player(11),Condition(function y8)),function YA)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function YB takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger()))and(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_forces01[1])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Yc takes nothing returns nothing
call ForceAddPlayer(udg_forces01[1],GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound165,"TRIGSTR_1782",1,16.,false)
endfunction
function YC takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_forces01[2])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Yd takes nothing returns nothing
call ForceAddPlayer(udg_forces01[2],GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound165,"TRIGSTR_4315",1,16.,false)
endfunction
function YD takes nothing returns boolean
return(GetUnitTypeId(GetOrderTargetUnit())=='h007')or(GetUnitTypeId(GetOrderTargetUnit())=='h00A')or(GetUnitTypeId(GetOrderTargetUnit())=='h008')or(GetUnitTypeId(GetOrderTargetUnit())=='h00B')or(GetUnitTypeId(GetOrderTargetUnit())=='h009')
endfunction
function Ye takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_forces01[5])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])and(YD())
endfunction
function YE takes nothing returns nothing
call ForceAddPlayer(udg_forces01[5],GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound165,"TRIGSTR_1918",1,16.,false)
endfunction
function Yf takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[6])==false)and(GetPlayerState(udg_player03,PLAYER_STATE_RESOURCE_FOOD_USED)<=1)and(udg_booleans20[(1+GetPlayerId(udg_player03))])
endfunction
function YF takes nothing returns nothing
call ForceAddPlayer(udg_forces01[6],udg_player03)
call TransmissionFromUnitWithNameBJ(ln(udg_player03),null,"",udg_sound165,"TRIGSTR_3353",1,16.,false)
endfunction
function Yg takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[7])==false)and(udg_booleans20[(1+GetPlayerId(udg_player03))])
endfunction
function YG takes nothing returns nothing
call ForceAddPlayer(udg_forces01[7],udg_player03)
call TransmissionFromUnitWithNameBJ(ln(udg_player03),null,"",udg_sound165,"TRIGSTR_3354",1,16.,false)
endfunction
function Yh takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[8])==false)and(udg_booleans20[(1+GetPlayerId(udg_player03))])
endfunction
function YH takes nothing returns nothing
call ForceAddPlayer(udg_forces01[8],udg_player03)
call TransmissionFromUnitWithNameBJ(ln(udg_player03),null,"",udg_sound165,"TRIGSTR_3668",1,16.,false)
endfunction
function Yi takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[9])==false)and(udg_booleans20[(1+GetPlayerId(udg_player03))])
endfunction
function YI takes nothing returns nothing
call ForceAddPlayer(udg_forces01[9],udg_player03)
call TransmissionFromUnitWithNameBJ(ln(udg_player03),null,"",udg_sound165,"TRIGSTR_3482",1,16.,false)
endfunction
function Yj takes nothing returns boolean
return(GetUnitTypeId(GetOrderTargetUnit())=='n009')or(GetUnitTypeId(GetOrderTargetUnit())=='n007')
endfunction
function YJ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_forces01[10])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])and(Yj())
endfunction
function Yk takes nothing returns nothing
call ForceAddPlayer(udg_forces01[10],GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound165,"TRIGSTR_2551",1,16.,false)
endfunction
function YK takes nothing returns boolean
return(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])and(IsPlayerInForce(GetOwningPlayer(udg_unit01),udg_forces01[11])==false)
endfunction
function Yl takes nothing returns nothing
call ForceAddPlayer(udg_forces01[11],GetOwningPlayer(udg_unit01))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",udg_sound165,"TRIGSTR_1926",1,16.,false)
endfunction
function YL takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(udg_unit01),udg_forces01[12])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
endfunction
function Ym takes nothing returns nothing
call ForceAddPlayer(udg_forces01[12],GetOwningPlayer(udg_unit01))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",udg_sound165,"TRIGSTR_1927",1,16.,false)
endfunction
function YM takes nothing returns boolean
return(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])and(IsPlayerInForce(GetOwningPlayer(udg_unit01),udg_forces01[13])==false)
endfunction
function Yn takes nothing returns nothing
call ForceAddPlayer(udg_forces01[13],GetOwningPlayer(udg_unit01))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",udg_sound165,"TRIGSTR_1929",1,16.,false)
endfunction
function YN takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(udg_unit01),udg_forces01[14])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
endfunction
function Yo takes nothing returns nothing
call ForceAddPlayer(udg_forces01[14],GetOwningPlayer(udg_unit01))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",udg_sound165,"TRIGSTR_2939",1,16.,false)
endfunction
function YO takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(udg_unit01),udg_forces01[15])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
endfunction
function Yp takes nothing returns nothing
call ForceAddPlayer(udg_forces01[15],GetOwningPlayer(udg_unit01))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",udg_sound165,"TRIGSTR_1942",1,16.,false)
endfunction
function YP takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(udg_unit01),udg_forces01[16])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
endfunction
function Yq takes nothing returns nothing
call ForceAddPlayer(udg_forces01[16],GetOwningPlayer(udg_unit01))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",udg_sound165,"TRIGSTR_3760",1,16.,false)
endfunction
function YQ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(udg_unit01),udg_forces01[17])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
endfunction
function Yr takes nothing returns nothing
call ForceAddPlayer(udg_forces01[17],GetOwningPlayer(udg_unit01))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",udg_sound165,"TRIGSTR_2068",1,16.,false)
endfunction
function YR takes nothing returns boolean
return(GetUnitTypeId(GetOrderTargetUnit())=='h01W')or(GetUnitTypeId(GetOrderTargetUnit())=='h01X')or(GetUnitTypeId(GetOrderTargetUnit())=='h01Y')
endfunction
function Ys takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_forces01[18])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])and(YR())
endfunction
function YS takes nothing returns nothing
call ForceAddPlayer(udg_forces01[18],GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound165,"TRIGSTR_2126",1,16.,false)
endfunction
function Yt takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h01W')or(GetUnitTypeId(GetAttacker())=='h01R')or(GetUnitTypeId(GetAttacker())=='h01Q')or(GetUnitTypeId(GetAttacker())=='h01P')or(GetUnitTypeId(GetAttacker())=='h00G')or(GetUnitTypeId(GetAttacker())=='h012')
endfunction
function YT takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_forces01[19])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])and(Yt())
endfunction
function Yu takes nothing returns nothing
call ForceAddPlayer(udg_forces01[19],GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound165,"TRIGSTR_2127",1,16.,false)
endfunction
function YU takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(udg_unit01),udg_forces01[20])==false)and(udg_booleans20[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
endfunction
function Yv takes nothing returns nothing
call ForceAddPlayer(udg_forces01[20],GetOwningPlayer(udg_unit01))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",udg_sound165,"TRIGSTR_2144",1,16.,false)
endfunction
function YV takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[21])==false)and(udg_booleans20[(1+GetPlayerId(udg_player03))])
endfunction
function Yw takes nothing returns nothing
call ForceAddPlayer(udg_forces01[21],udg_player03)
call TransmissionFromUnitWithNameBJ(ln(udg_player03),null,"",udg_sound165,"TRIGSTR_3669",1,16.,false)
endfunction
function YW takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[22])==false)and(udg_booleans20[(1+GetPlayerId(udg_player03))])
endfunction
function Yx takes nothing returns nothing
call ForceAddPlayer(udg_forces01[22],udg_player03)
call TransmissionFromUnitWithNameBJ(ln(udg_player03),null,"",udg_sound165,"TRIGSTR_2330",1,16.,false)
endfunction
function YX takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(6))or(GetOwningPlayer(GetTriggerUnit())==Player(8))or(GetOwningPlayer(GetTriggerUnit())==Player(10))
endfunction
function Yy takes nothing returns boolean
return(YX())and(GetUnitTypeId(GetTriggerUnit())!='n01P')
endfunction
function YY takes nothing returns boolean
return(udg_booleans24[(1+GetPlayerId(GetTriggerPlayer()))]==false)
endfunction
function Yz takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)or(GetUnitTypeId(GetTriggerUnit())=='h04O')
endfunction
function YZ takes nothing returns boolean
return(udg_booleans21[(1+GetPlayerId(GetTriggerPlayer()))]==false)
endfunction
function Y0 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01Q')or(GetUnitTypeId(GetTriggerUnit())=='h014')or(GetUnitTypeId(GetTriggerUnit())=='h02I')or(GetUnitTypeId(GetTriggerUnit())=='h011')or(GetUnitTypeId(GetTriggerUnit())=='h012')or(GetUnitTypeId(GetTriggerUnit())=='h02V')or(GetUnitTypeId(GetTriggerUnit())=='h02W')or(GetUnitTypeId(GetTriggerUnit())=='h02Z')or(GetUnitTypeId(GetTriggerUnit())=='h032')or(GetUnitTypeId(GetTriggerUnit())=='h033')
endfunction
function Y1 takes nothing returns boolean
return(Y0())
endfunction
function Y2 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01P')or(GetUnitTypeId(GetTriggerUnit())=='h01R')or(GetUnitTypeId(GetTriggerUnit())=='h02N')
endfunction
function Y3 takes nothing returns boolean
return(Y2())
endfunction
function Y4 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h029')or(GetUnitTypeId(GetTriggerUnit())=='h028')or(GetUnitTypeId(GetTriggerUnit())=='h01T')or(GetUnitTypeId(GetTriggerUnit())=='h024')or(GetUnitTypeId(GetTriggerUnit())=='h02D')or(GetUnitTypeId(GetTriggerUnit())=='h02S')or(GetUnitTypeId(GetTriggerUnit())=='h02F')or(GetUnitTypeId(GetTriggerUnit())=='h03G')or(GetUnitTypeId(GetTriggerUnit())=='h03M')or(GetUnitTypeId(GetTriggerUnit())=='h03I')or(GetUnitTypeId(GetTriggerUnit())=='h043')
endfunction
function Y5 takes nothing returns boolean
return(Y4())
endfunction
function Y6 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01W')or(GetUnitTypeId(GetTriggerUnit())=='h01X')or(GetUnitTypeId(GetTriggerUnit())=='h01Y')or(GetUnitTypeId(GetTriggerUnit())=='h03C')or(GetUnitTypeId(GetTriggerUnit())=='h03E')or(GetUnitTypeId(GetTriggerUnit())=='h02C')or(GetUnitTypeId(GetTriggerUnit())=='h046')or(GetUnitTypeId(GetTriggerUnit())=='h04Z')or(GetUnitTypeId(GetTriggerUnit())=='h051')or(GetUnitTypeId(GetTriggerUnit())=='h04O')or(GetUnitTypeId(GetTriggerUnit())=='h04P')
endfunction
function Y7 takes nothing returns boolean
return(Y6())
endfunction
function Y8 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03J')or(GetUnitTypeId(GetTriggerUnit())=='h044')or(GetUnitTypeId(GetTriggerUnit())=='h04N')
endfunction
function Y9 takes nothing returns boolean
return(Y8())
endfunction
function za takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00D')or(GetUnitTypeId(GetTriggerUnit())=='h01Z')or(GetUnitTypeId(GetTriggerUnit())=='h025')or(GetUnitTypeId(GetTriggerUnit())=='h02E')or(GetUnitTypeId(GetTriggerUnit())=='h02T')or(GetUnitTypeId(GetTriggerUnit())=='h03F')or(GetUnitTypeId(GetTriggerUnit())=='h03Q')
endfunction
function zA takes nothing returns boolean
return(za())
endfunction
function zb takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h02G')or(GetUnitTypeId(GetTriggerUnit())=='h013')or(GetUnitTypeId(GetTriggerUnit())=='h016')or(GetUnitTypeId(GetTriggerUnit())=='h00F')or(GetUnitTypeId(GetTriggerUnit())=='h014')or(GetUnitTypeId(GetTriggerUnit())=='h00D')or(GetUnitTypeId(GetTriggerUnit())=='h01Z')or(GetUnitTypeId(GetTriggerUnit())=='h025')or(GetUnitTypeId(GetTriggerUnit())=='h04T')or(GetUnitTypeId(GetTriggerUnit())=='h04U')
endfunction
function zB takes nothing returns boolean
return(zb())
endfunction
function zc takes nothing returns boolean
return(UnitMakeAbilityPermanent(GetTriggerUnit(),true,'A03Q'))
endfunction
function zC takes nothing returns boolean
return(zc())
endfunction
function zd takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_MECHANICAL)!=null)
endfunction
function zD takes nothing returns boolean
return(Yz())and(GetTriggerUnit()==udg_units25[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function ze takes nothing returns nothing
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]+1)
if(YY())then
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=AngleBetweenPoints(GetUnitLoc(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))]),GetUnitLoc(GetTriggerUnit()))
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))],.5)
endif
call UnitAddIndicatorBJ(GetTriggerUnit(),50.,80.,100.,40.)
call SelectUnitForPlayerSingle(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))],GetTriggerPlayer())
if(zD())then
if(YZ())then
call Kh(1.)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]-1)
return
endif
set udg_booleans21[(1+GetPlayerId(GetTriggerPlayer()))]=false
call ng(GetTriggerPlayer(),udg_sound169)
set udg_force06=ln(GetTriggerPlayer())
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,("|ccc00ddff SCAN COMPLETE --- Morphology: |cccbbfbff"+(GetUnitName(GetTriggerUnit())+("|ccc00ddff --- Energy: |cccbbfbff"+I2S(R2I(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())))))),1,5.,false)
if(zA())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffArmor - ELECTRIC - (100% damage from Wave and Bomb |ccc00ddff- 50% from all other)",1,5.,false)
else
if(Y9())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffArmor - BARRIER (100% damage from Missile and Charged |ccc00ddff- 50% from Beam - 0% from all other)",1,5.,false)
else
if(Y7())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffArmor - BOSS (100% damage from Missile and Charged |ccc00ddff- 70% from Beam - 40% from Bomb - 0% from Force)",1,5.,false)
else
if(Y5())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffArmor - BEAM SENSITIVE (100% damage from Beam |ccc00ddff- 50% from all other)",1,5.,false)
else
if(Y3())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffArmor - IMPERVIOUS (100% damage from Force |ccc00ddff- 40% from Missile - 0% from all other)",1,5.,false)
else
if(Y1())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffArmor - BLAST SENSITIVE (100% damage from Missile and Bomb |ccc00ddff- 50% from all other)",1,5.,false)
else
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffArmor - NORMAL",1,5.,false)
endif
endif
endif
endif
endif
endif
if(zB())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbff- Special Attack |ccc00ddff(Ignores armor)",1,5.,false)
endif
if(zC())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|r|cccbbfbff- Stun Resistance |ccc00ddff(Reduced stun and freeze time)",1,5.,false)
endif
if(zd())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|r|cccbbfbff- Stun Immunity |ccc00ddff(Cannot be stunned or frozen)",1,5.,false)
endif
set udg_unit01=GetTriggerUnit()
set udg_player03=GetTriggerPlayer()
call TriggerExecute(udg_trigger189)
call DestroyEffect(udg_effects06[(1+GetPlayerId(GetTriggerPlayer()))])
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Other\\GeneralAuraTarget\\GeneralAuraTarget.mdl")
set udg_effects06[(1+GetPlayerId(GetTriggerPlayer()))]=bj_lastCreatedEffect
call Kh(1.)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]-1)
call Kh(1.)
set udg_booleans21[(1+GetPlayerId(GetTriggerPlayer()))]=true
call DestroyEffect(udg_effects06[(1+GetPlayerId(GetTriggerPlayer()))])
else
call ng(GetTriggerPlayer(),udg_sound170)
set udg_units25[(1+GetPlayerId(GetTriggerPlayer()))]=GetTriggerUnit()
call Kh(1.)
set udg_player03=GetTriggerPlayer()
call ConditionalTriggerExecute(udg_trigger187)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]-1)
endif
endfunction
function zE takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h03I')or(GetUnitTypeId(udg_unit01)=='h043')
endfunction
function zf takes nothing returns boolean
return(zE())
endfunction
function zF takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h03F')and(GetUnitTypeId(udg_unit01)=='h03Q')
endfunction
function zg takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h03G')or(GetUnitTypeId(udg_unit01)=='h03M')
endfunction
function zG takes nothing returns boolean
return(zg())
endfunction
function zh takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h03C')or(GetUnitTypeId(udg_unit01)=='h03E')
endfunction
function zH takes nothing returns boolean
return(zh())
endfunction
function zi takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h01W')or(GetUnitTypeId(udg_unit01)=='h01Y')or(GetUnitTypeId(udg_unit01)=='h01X')
endfunction
function zI takes nothing returns boolean
return(zi())
endfunction
function zj takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(6))
endfunction
function zJ takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(8))
endfunction
function zk takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h02C')or(GetUnitTypeId(udg_unit01)=='h046')
endfunction
function zK takes nothing returns boolean
return(zk())
endfunction
function zl takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h02G')or(GetUnitTypeId(udg_unit01)=='h04U')
endfunction
function zL takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h00F')or(GetUnitTypeId(udg_unit01)=='h014')or(GetUnitTypeId(udg_unit01)=='h04T')
endfunction
function zm takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h04O')
endfunction
function zM takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h04P')
endfunction
function zn takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h04N')
endfunction
function zN takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='o017')
endfunction
function zo takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h006')
endfunction
function zO takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h01P')
endfunction
function zp takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h02Z')
endfunction
function zP takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h02S')
endfunction
function zq takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h02O')
endfunction
function zQ takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h02T')or(GetUnitTypeId(udg_unit01)=='h02E')or(GetUnitTypeId(udg_unit01)=='h030')or(GetUnitTypeId(udg_unit01)=='h04J')or(GetUnitTypeId(udg_unit01)=='h04S')
endfunction
function zr takes nothing returns boolean
return(zQ())
endfunction
function zR takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h02U')
endfunction
function zs takes nothing returns boolean
return(zL())
endfunction
function zS takes nothing returns boolean
return(zl())
endfunction
function zt takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h01O')or(GetUnitTypeId(udg_unit01)=='h00Q')or(GetUnitTypeId(udg_unit01)=='h01N')or(GetUnitTypeId(udg_unit01)=='h00P')or(GetUnitTypeId(udg_unit01)=='h00R')or(GetUnitTypeId(udg_unit01)=='h017')
endfunction
function zT takes nothing returns boolean
return(zt())
endfunction
function zu takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h031')or(GetUnitTypeId(udg_unit01)=='h02Y')or(GetUnitTypeId(udg_unit01)=='h02V')or(GetUnitTypeId(udg_unit01)=='h02W')or(GetUnitTypeId(udg_unit01)=='h02J')or(GetUnitTypeId(udg_unit01)=='h02K')
endfunction
function zU takes nothing returns boolean
return(zu())
endfunction
function zv takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(10))
endfunction
function zV takes nothing returns nothing
set udg_force06=ln(udg_player03)
if(zj())then
if(zI())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Deadly life-draining organism. Watch its height, and avoid contact by jumping or crouching. Move around it to slow it down.",1,5.,false)
else
if(zH())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Its close range electrical attack drains your charge.",1,5.,false)
else
if(zG())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Uses ice beam technology to freeze its target.",1,5.,false)
else
if(zF())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Charge-draining attack.",1,5.,false)
else
if(zf())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Avoid the burning areas where it attacks.",1,5.,false)
endif
endif
endif
endif
endif
endif
if(zJ())then
endif
if(zv())then
if(zK())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Regenerates energy when not fighting.",1,5.,false)
endif
if(zU())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Tunnels under the ground, invisible to normal sight.",1,5.,false)
else
if(zT())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- These fly out of pipes one at a time; defeat them to get energy and ammo pickups.",1,5.,false)
else
if(zS())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Releases a cloud of poisonous gas when destroyed.",1,5.,false)
else
if(zs())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Dives at intruders from the ceiling, and explodes on the ground.",1,5.,false)
else
if(zR())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Shoots spines when it senses a nearby enemy.",1,5.,false)
else
if(zr())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Charge-draining attack.",1,5.,false)
else
if(zq())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Mellows emerge from the hive; Destroy it to defeat the mellows.",1,5.,false)
else
if(zP())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Bugs spawn from the kago; Destroy it to defeat the spawns.",1,5.,false)
else
if(zp())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Parasites spawn from the hive; Destroy it to defeat the parasites.",1,5.,false)
else
if(zO())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Unharmed by most weapons. You can use crouch/morph to avoid hitting it.",1,5.,false)
else
if(zo())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- A weak creature that crawls on the floor. You can avoid it by jumping over it.",1,5.,false)
else
if(zN())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbff- Shoot it to reveal a Chozo item.",1,5.,false)
else
if(zn())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Destroy it to gain access to the hatch.",1,5.,false)
else
if(zM())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Supplies phazon to the hives.",1,5.,false)
else
if(zm())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddff- Destroy it to diminish the phazon sheild.",1,5.,false)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function zw takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))and(RectContainsLoc(Rect(-1.,-1.,1.,1.),GetOrderPointLoc())==false)
endfunction
function zW takes nothing returns boolean
return(GetIssuedOrderId()==851983)
endfunction
function zx takes nothing returns nothing
if(zW())then
call SetUnitAcquireRange(GetTriggerUnit(),800.)
else
call SetUnitAcquireRange(GetTriggerUnit(),udg_real19)
endif
set udg_booleans23[(1+GetPlayerId(GetTriggerPlayer()))]=false
set udg_location03=GetOrderPointLoc()
set udg_location05=GetUnitLoc(GetTriggerUnit())
call RemoveLocation(udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(udg_location03,100.,AngleBetweenPoints(udg_location05,udg_location03))
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function zX takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function zy takes nothing returns boolean
return(GetUnitTypeId(GetOrderTargetUnit())=='n000')
endfunction
function zY takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[11])==false)and(GetTriggerUnit()!=udg_unit05)and(zy())
endfunction
function zz takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[13])==false)and(GetUnitTypeId(GetOrderTargetUnit())=='n00C')
endfunction
function zZ takes nothing returns boolean
return(GetOwningPlayer(GetOrderTargetUnit())==Player(15))
endfunction
function z0 takes nothing returns boolean
return(GetUnitTypeId(GetOrderTargetUnit())=='h03W')or(GetUnitTypeId(GetOrderTargetUnit())=='h03Y')or(GetUnitTypeId(GetOrderTargetUnit())=='h03U')or(GetUnitTypeId(GetOrderTargetUnit())=='h048')or(GetUnitTypeId(GetOrderTargetUnit())=='h047')or(GetUnitTypeId(GetOrderTargetUnit())=='n018')
endfunction
function z3 takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[9])==false)and(z0())
endfunction
function z4 takes nothing returns boolean
return(GetOwningPlayer(GetOrderTargetUnit())==Player(9))
endfunction
function z5 takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_forces01[21]))and(GetUnitTypeId(GetOrderTargetUnit())!='h006')and(GetUnitTypeId(GetOrderTargetUnit())!='h01P')
endfunction
function z6 takes nothing returns boolean
return(GetUnitTypeId(GetOrderTargetUnit())!='o017')
endfunction
function z7 takes nothing returns boolean
return(GetOwningPlayer(GetOrderTargetUnit())==Player(10))
endfunction
function z8 takes nothing returns boolean
return(IsDestructableAliveBJ(GetOrderTargetDestructable()))
endfunction
function z9 takes nothing returns boolean
return(RectContainsItem(GetOrderTargetItem(),bj_mapInitialPlayableArea))
endfunction
function Za takes nothing returns boolean
return(IsUnitInForce(GetOrderTargetUnit(),udg_force04))
endfunction
function ZA takes nothing returns nothing
call RemoveLocation(udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetUnitAcquireRange(GetTriggerUnit(),udg_real19)
set udg_booleans23[(1+GetPlayerId(GetTriggerPlayer()))]=false
set udg_force04=bj_FORCE_ALL_PLAYERS
call ForceAddPlayer(udg_force04,Player(7))
call ForceAddPlayer(udg_force04,Player(9))
call ForceAddPlayer(udg_force04,Player(15))
if(Za())then
set udg_location03=GetUnitLoc(GetOrderTargetUnit())
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(udg_location03,100.,AngleBetweenPoints(udg_location05,udg_location03))
call RemoveLocation(udg_location05)
if(z7())then
set udg_player03=GetOwningPlayer(GetTriggerUnit())
if(z6())then
if(z5())then
call ConditionalTriggerExecute(udg_trigger173)
else
call ConditionalTriggerExecute(udg_trigger186)
endif
endif
else
if(z4())then
set udg_player03=GetOwningPlayer(GetTriggerUnit())
if(z3())then
call ConditionalTriggerExecute(udg_trigger174)
endif
else
if(zZ())then
set udg_player03=GetOwningPlayer(GetTriggerUnit())
if(zz())then
set udg_unit01=GetTriggerUnit()
call ConditionalTriggerExecute(udg_trigger178)
else
if(zY())then
set udg_unit01=GetTriggerUnit()
call ConditionalTriggerExecute(udg_trigger176)
endif
endif
endif
endif
endif
else
if(z9())then
set udg_location03=GetItemLoc(GetOrderTargetItem())
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(udg_location03,100.,AngleBetweenPoints(udg_location05,udg_location03))
call RemoveLocation(udg_location05)
else
if(z8())then
set udg_location03=GetDestructableLoc(GetOrderTargetDestructable())
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location04=Ko(udg_location03,100.,AngleBetweenPoints(udg_location05,udg_location03))
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_location04
call RemoveLocation(udg_location05)
else
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(udg_location03,300.,GetUnitFacing(GetTriggerUnit()))
endif
endif
endif
call RemoveLocation(udg_location03)
endfunction
function Zb takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))or(GetOwningPlayer(GetTriggerUnit())==Player(7))or(GetOwningPlayer(GetTriggerUnit())==Player(9))or(GetOwningPlayer(GetTriggerUnit())==Player(11))or(GetOwningPlayer(GetTriggerUnit())==Player(15))or(GetUnitTypeId(GetTriggerUnit())=='n01P')
endfunction
function ZB takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())!=GetTriggerPlayer())and(GetUnitTypeId(GetTriggerUnit())!='h054')and(Zb())
endfunction
function Zc takes nothing returns boolean
return(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]!=null)
endfunction
function ZC takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01P')
endfunction
function Zd takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(8))
endfunction
function ZD takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h02A')or(GetUnitTypeId(GetTriggerUnit())=='h02B')or(GetUnitTypeId(GetTriggerUnit())=='h03K')or(GetUnitTypeId(GetTriggerUnit())=='h03L')
endfunction
function Ze takes nothing returns boolean
return(ZD())
endfunction
function ZE takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00B')
endfunction
function Zf takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h009')
endfunction
function ZF takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h008')
endfunction
function Zg takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h023')
endfunction
function ZG takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00A')
endfunction
function Zh takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h007')
endfunction
function ZH takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h048')
endfunction
function Zi takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h047')
endfunction
function ZI takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03Y')or(GetUnitTypeId(GetTriggerUnit())=='h040')
endfunction
function Zj takes nothing returns boolean
return(ZI())
endfunction
function ZJ takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03W')
endfunction
function Zk takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03U')
endfunction
function ZK takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n017')or(GetUnitTypeId(GetTriggerUnit())=='n019')or(GetUnitTypeId(GetTriggerUnit())=='n01B')or(GetUnitTypeId(GetTriggerUnit())=='n01A')
endfunction
function Zl takes nothing returns boolean
return(ZK())
endfunction
function ZL takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n018')
endfunction
function Zm takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01Q')
endfunction
function ZM takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h04C')
endfunction
function Zn takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(9))
endfunction
function ZN takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03Z')or(GetUnitTypeId(GetTriggerUnit())=='h04D')
endfunction
function Zo takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n013')or(GetUnitTypeId(GetTriggerUnit())=='n01N')or(GetUnitTypeId(GetTriggerUnit())=='n01M')or(GetUnitTypeId(GetTriggerUnit())=='n01O')
endfunction
function ZO takes nothing returns boolean
return(Zo())
endfunction
function Zp takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o019')or(GetUnitTypeId(GetTriggerUnit())=='o01A')or(GetUnitTypeId(GetTriggerUnit())=='o018')or(GetUnitTypeId(GetTriggerUnit())=='o01B')
endfunction
function ZP takes nothing returns boolean
return(Zp())
endfunction
function Zq takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01D')
endfunction
function ZQ takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01C')
endfunction
function Zr takes nothing returns boolean
return(ZN())
endfunction
function ZR takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03N')
endfunction
function Zs takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function ZS takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n000')or(GetUnitTypeId(GetTriggerUnit())=='o00X')or(GetUnitTypeId(GetTriggerUnit())=='o00Z')
endfunction
function Zt takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o012')
endfunction
function ZT takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01G')
endfunction
function Zu takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01H')or(GetUnitTypeId(GetTriggerUnit())=='o00Y')
endfunction
function ZU takes nothing returns boolean
return(Zu())
endfunction
function Zv takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h020')
endfunction
function ZV takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n00C')
endfunction
function Zw takes nothing returns boolean
return(ZS())
endfunction
function ZW takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n007')
endfunction
function Zx takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n009')
endfunction
function ZX takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(15))
endfunction
function Zy takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o01C')
endfunction
function ZY takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(7))
endfunction
function Zz takes nothing returns boolean
return(udg_booleans21[(1+GetPlayerId(GetTriggerPlayer()))])and(GetUnitTypeId(GetTriggerUnit())!='h054')
endfunction
function ZZ takes nothing returns nothing
call UnitAddIndicatorBJ(GetTriggerUnit(),50.,80.,100.,40.)
call RemoveLocation(udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])
set udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))]=GetUnitLoc(GetTriggerUnit())
if(Zc())then
call ng(GetTriggerPlayer(),udg_sound172)
set udg_units25[(1+GetPlayerId(GetTriggerPlayer()))]=null
call DestroyEffect(udg_effects06[(1+GetPlayerId(GetTriggerPlayer()))])
endif
call SelectUnitForPlayerSingle(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))],GetTriggerPlayer())
if(Zz())then
set udg_force06=ln(GetTriggerPlayer())
call ng(GetTriggerPlayer(),udg_sound169)
set udg_booleans21[(1+GetPlayerId(GetTriggerPlayer()))]=false
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,("|ccc00ddff SCAN COMPLETE --- Structure: |cccbbfbff"+(GetUnitName(GetTriggerUnit())+"")),1,5.,false)
if(Zd())then
if(ZC())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddffSearches the area for specific threats. Avoid getting detected after your Alert Countdown reaches zero.",1,5.,false)
endif
endif
if(Zn())then
if(Ze())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddffA statue built by the Chozo.",1,5.,false)
endif
if(Zh())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffThis wall can be broken by any attack.",1,5.,false)
else
if(ZG())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffCan be broken by any attack other than beams and missiles.",1,5.,false)
else
if(Zg())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffCan only be broken by Missiles or Super Missiles.",1,5.,false)
else
if(ZF())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffBroken by using a Ball Cannon or Speed Booster.",1,5.,false)
else
if(Zf())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffBroken by Screw Attack.",1,5.,false)
else
if(ZE())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffBroken only by Power Bombs.",1,5.,false)
endif
endif
endif
endif
endif
endif
if(ZL())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffEnter it in crouch/ball mode to detonate a bomb, activating the surrounding blocks.",1,5.,false)
else
if(Zl())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffEnter it in crouch/ball mode to speed boost in a certain direction. You can destroy speed blocks while boosting, and cannot stop or change direction until you hit a wall.",1,5.,false)
else
if(Zk())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffWhen attacked or activated, it explodes and activates the surrounding blocks.",1,5.,false)
else
if(ZJ())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffWhen activated, it is destroyed and activates the surrounding blocks.",1,5.,false)
else
if(Zj())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffActivates the surrounding blocks when activated. Cannot be destroyed.",1,5.,false)
else
if(Zi())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffSwitches from a wall to a space when activated.",1,5.,false)
else
if(ZH())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffSwitches from a space to a wall when activated.",1,5.,false)
endif
endif
endif
endif
endif
endif
endif
if(ZM())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddffUse the door trigger to open it.",1,5.,false)
else
if(Zm())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddffStand under it and use Hold Position to open the door. Can also be opened with wave beam.",1,5.,false)
endif
endif
endif
if(Zs())then
if(ZR())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffWhen attacked, it will grow into a wall for a short time.",1,5.,false)
else
if(Zr())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddffUsually contains energy or ammo pickups. Once destroyed, it will not get replaced.",1,5.,false)
else
if(ZQ())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddffPoisons victims who touch it. Temporarily retracts when attacked.",1,5.,false)
else
if(Zq())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddffSlows your movement when walking in it. Regrows after it's killed.",1,5.,false)
else
if(ZP())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffShoot it to reveal a Chozo item.",1,5.,false)
else
if(ZO())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|ccc00ddffA statue built by the Chozo.",1,5.,false)
endif
endif
endif
endif
endif
endif
endif
if(ZX())then
if(Zx())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffTo replenish used ammo, stand on the recharger and use Hold Position.",1,5.,false)
else
if(ZW())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffTo replenish lost energy, stand on the recharger and use Hold Position.",1,5.,false)
else
if(Zw())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffStand in the save station and use Hold Position to save. When you die, you will respawn at the last place you saved.",1,5.,false)
else
if(ZV())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffUse Hold Position while standing on the elevator to get transported to another area.",1,5.,false)
else
if(Zv())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffX-Ray visor indicates a Torizo is incased inside this statue. Touching the item will awaken it. Defeat the Torizo to aquire the item.",1,5.,false)
else
if(ZU())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffStand on the Lock Station and use Hold Position to unlock all the orange doors in this area.",1,5.,false)
else
if(ZT())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffStand on the Map Station and use Hold Position to download the map of the area.",1,5.,false)
else
if(Zt())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffAn extremely dangerous substance. Avoid contact.",1,5.,false)
endif
endif
endif
endif
endif
endif
endif
endif
endif
if(ZY())then
if(Zy())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccbbfbffAn extremely dangerous substance. Avoid contact.",1,5.,false)
endif
endif
endif
call DestroyEffect(udg_effects06[(1+GetPlayerId(GetTriggerPlayer()))])
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Other\\GeneralAuraTarget\\GeneralAuraTarget.mdl")
set udg_effects06[(1+GetPlayerId(GetTriggerPlayer()))]=bj_lastCreatedEffect
call Kh(1.5)
call DestroyEffect(udg_effects06[(1+GetPlayerId(GetTriggerPlayer()))])
set udg_booleans21[(1+GetPlayerId(GetTriggerPlayer()))]=true
endfunction
function Z0 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01S')or(GetUnitTypeId(GetTriggerUnit())=='n01T')or(GetUnitTypeId(GetTriggerUnit())=='n00S')or(GetUnitTypeId(GetTriggerUnit())=='n00U')
endfunction
function Z1 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(15))and(Z0())
endfunction
function Z2 takes nothing returns boolean
return(RectContainsUnit(udg_rect190,GetTriggerUnit()))
endfunction
function Z3 takes nothing returns boolean
return(RectContainsUnit(udg_rect135,GetTriggerUnit()))
endfunction
function Z4 takes nothing returns boolean
return(RectContainsUnit(udg_rect195,GetTriggerUnit()))
endfunction
function Z5 takes nothing returns boolean
return(RectContainsUnit(udg_rect154,GetTriggerUnit()))
endfunction
function Z6 takes nothing returns boolean
return(RectContainsUnit(udg_rect177,GetTriggerUnit()))
endfunction
function Z7 takes nothing returns boolean
return(RectContainsUnit(udg_rect194,GetTriggerUnit()))
endfunction
function Z8 takes nothing returns boolean
return(RectContainsUnit(udg_rect184,GetTriggerUnit()))
endfunction
function Z9 takes nothing returns boolean
return(RectContainsUnit(udg_rect182,GetTriggerUnit()))
endfunction
function aaa takes nothing returns boolean
return(RectContainsUnit(udg_rect178,GetTriggerUnit()))
endfunction
function aaA takes nothing returns boolean
return(RectContainsUnit(udg_rect179,GetTriggerUnit()))
endfunction
function aab takes nothing returns boolean
return(RectContainsUnit(udg_rect140,GetTriggerUnit()))
endfunction
function aaB takes nothing returns boolean
return(RectContainsUnit(udg_rect156,GetTriggerUnit()))
endfunction
function aac takes nothing returns boolean
return(RectContainsUnit(udg_rect143,GetTriggerUnit()))
endfunction
function aaC takes nothing returns boolean
return(RectContainsUnit(udg_rect151,GetTriggerUnit()))
endfunction
function aad takes nothing returns boolean
return(RectContainsUnit(udg_rect155,GetTriggerUnit()))
endfunction
function aaD takes nothing returns boolean
return(GetTriggerUnit()==udg_unit39)
endfunction
function aae takes nothing returns boolean
return(GetTriggerUnit()==udg_unit10)
endfunction
function aaE takes nothing returns boolean
return(RectContainsUnit(udg_rect137,GetTriggerUnit()))
endfunction
function aaf takes nothing returns boolean
return(RectContainsUnit(udg_rect188,GetTriggerUnit()))
endfunction
function aaF takes nothing returns boolean
return(RectContainsUnit(udg_rect142,GetTriggerUnit()))
endfunction
function aag takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01S')
endfunction
function aaG takes nothing returns boolean
return(GetTriggerUnit()==udg_unit21)
endfunction
function aah takes nothing returns boolean
return(GetTriggerUnit()==udg_unit22)
endfunction
function aaH takes nothing returns boolean
return(RectContainsUnit(udg_rect193,GetTriggerUnit()))
endfunction
function aai takes nothing returns boolean
return(GetTriggerUnit()==udg_unit40)
endfunction
function aaI takes nothing returns boolean
return(GetTriggerUnit()==udg_unit41)
endfunction
function aaj takes nothing returns boolean
return(RectContainsUnit(udg_rect137,GetTriggerUnit()))
endfunction
function aaJ takes nothing returns boolean
return(RectContainsUnit(udg_rect205,GetTriggerUnit()))
endfunction
function aak takes nothing returns boolean
return(RectContainsUnit(udg_rect155,GetTriggerUnit()))
endfunction
function aaK takes nothing returns boolean
return(RectContainsUnit(udg_rect147,GetTriggerUnit()))
endfunction
function aal takes nothing returns boolean
return(RectContainsUnit(udg_rect183,GetTriggerUnit()))
endfunction
function aaL takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n01T')
endfunction
function aam takes nothing returns boolean
return(GetTriggerUnit()==udg_unit09)
endfunction
function aaM takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n00S')
endfunction
function aan takes nothing returns boolean
return true
endfunction
function aaN takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n00U')
endfunction
function aao takes nothing returns nothing
if(aag())then
call ng(GetTriggerPlayer(),udg_sound169)
if(aaa())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3465",1,12.,false)
else
if(Z9())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3466",1,13.,false)
else
if(Z8())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3483",1,12.,false)
else
if(Z7())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3484",1,13.,false)
else
if(Z6())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3485",1,11.,false)
else
if(Z5())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3486",1,11.,false)
else
if(Z4())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3487",1,13.,false)
else
if(Z3())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3495",1,13.,false)
else
if(Z2())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3496",1,11.,false)
endif
endif
endif
endif
endif
endif
endif
endif
endif
if(aad())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3497",1,12.,false)
else
if(aaC())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3498",1,12.,false)
else
if(aac())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3499",1,12.,false)
else
if(aaB())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3500",1,11.,false)
else
if(aab())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3501",1,14.,false)
else
if(aaA())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3509",1,10.,false)
endif
endif
endif
endif
endif
endif
if(aaF())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3520",1,14.,false)
else
if(aaf())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3521",1,11.,false)
else
if(aaE())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3641",1,15.,false)
else
if(aae())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3741",1,15.,false)
else
if(aaD())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3742",1,16.,false)
endif
endif
endif
endif
endif
endif
if(aaL())then
call ng(GetTriggerPlayer(),udg_sound169)
if(aal())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3688",1,11.,false)
else
if(aaK())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3689",1,13.,false)
else
if(aak())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3690",1,9.,false)
else
if(aaJ())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3691",1,16.,false)
else
if(aaj())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3692",1,16.,false)
else
if(aaI())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,("|ccc00ddffConsole message downloaded: |cccbbfbffAccess to lower level DENIED - "+(I2S((15-udg_integer47))+" active biosignatures remain.")),1,9.,false)
else
if(aai())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3701",1,9.,false)
else
if(aaH())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_4250",1,9.,false)
else
if(aah())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_4251",1,14.,false)
else
if(aaG())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_4252",1,10.,false)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if(aaM())then
call ng(GetTriggerPlayer(),udg_sound169)
if(aam())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3739",1,16.,false)
endif
endif
if(aaN())then
call ng(GetTriggerPlayer(),udg_sound169)
if(aan())then
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_3464",1,10.,false)
endif
endif
endfunction
function aaO takes nothing returns boolean
return(GetIssuedOrderId()==851993)and(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aap takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]])
endfunction
function aaP takes nothing returns boolean
return(udg_units25[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]!=null)
endfunction
function aaq takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(15))
endfunction
function aaQ takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n000')or(GetUnitTypeId(GetEnumUnit())=='n01H')or(GetUnitTypeId(GetEnumUnit())=='n01G')
endfunction
function aar takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n007')or(GetUnitTypeId(GetEnumUnit())=='n009')
endfunction
function aaR takes nothing returns boolean
return(aar())
endfunction
function aas takes nothing returns boolean
return(aaQ())
endfunction
function aaS takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n00C')
endfunction
function aat takes nothing returns nothing
if(aaS())then
call IssueTargetOrderById(GetEnumUnit(),852066,GetTriggerUnit())
else
if(aas())then
call IssueTargetOrderById(GetEnumUnit(),852227,GetTriggerUnit())
else
if(aaR())then
call IssueTargetOrderById(GetEnumUnit(),851983,GetTriggerUnit())
endif
endif
endif
endfunction
function aaT takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(9))
endfunction
function aau takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04C')
endfunction
function aaU takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n01Q')
endfunction
function aav takes nothing returns nothing
if(aaU())then
call IssueTargetOrderById(GetTriggerUnit(),851985,GetEnumUnit())
set udg_location05=GetUnitLoc(GetEnumUnit())
call IssueTargetOrderById(GetEnumUnit(),851983,GroupPickRandomUnit(lI(256.,udg_location05,Condition(function aau))))
call RemoveLocation(udg_location05)
endif
endfunction
function aaV takes nothing returns nothing
if(aap())then
call SetUnitAnimation(GetTriggerUnit(),"stand, ready")
endif
call SetUnitAcquireRange(GetTriggerUnit(),800.)
if(aaP())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound172)
set udg_units25[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
endif
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_group14=lI(256.,udg_location03,Condition(function aaq))
call ForGroupBJ(udg_group14,function aat)
set udg_group14=lI(70.,udg_location03,Condition(function aaT))
call ForGroupBJ(udg_group14,function aav)
call RemoveLocation(udg_location03)
endfunction
function aaw takes nothing returns boolean
return(GetPlayerTechCountSimple('R00G',GetEnumPlayer())==1)
endfunction
function aaW takes nothing returns boolean
return(IsUnitVisible(udg_units25[(1+GetPlayerId(GetEnumPlayer()))],GetEnumPlayer()))or(GetPlayerTechCountSimple('R00G',GetEnumPlayer())==1)
endfunction
function aax takes nothing returns boolean
return(IsUnitAliveBJ(udg_units25[(1+GetPlayerId(GetEnumPlayer()))]))and(aaW())
endfunction
function aaX takes nothing returns boolean
return(udg_units25[(1+GetPlayerId(GetEnumPlayer()))]!=null)
endfunction
function aay takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit01))
endfunction
function aaY takes nothing returns boolean
return(DistanceBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetEnumPlayer()))])>=(340./.6))
endfunction
function aaz takes nothing returns boolean
return(DistanceBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetEnumPlayer()))])>=(340./.3))
endfunction
function aaZ takes nothing returns boolean
return(udg_units25[(1+GetPlayerId(GetEnumPlayer()))]!=null)
endfunction
function aa0 takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetEnumPlayer()))]==2)and(IsPlayerInForce(GetEnumPlayer(),udg_force03)==false)
endfunction
function aa1 takes nothing returns boolean
return(udg_integers59[(1+GetPlayerId(GetEnumPlayer()))]==3)
endfunction
function aa2 takes nothing returns boolean
return(udg_integers59[(1+GetPlayerId(GetEnumPlayer()))]==2)
endfunction
function aa3 takes nothing returns boolean
return(udg_integers59[(1+GetPlayerId(GetEnumPlayer()))]==1)
endfunction
function aa4 takes nothing returns boolean
return(udg_booleans23[(1+GetPlayerId(GetEnumPlayer()))])
endfunction
function aa5 takes nothing returns boolean
return(DistanceBetweenPoints(udg_location03,udg_location05)>=10)
endfunction
function aa6 takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetEnumPlayer()))]>=1)and(udg_booleans24[(1+GetPlayerId(GetEnumPlayer()))]==false)and(udg_integers62[(1+GetPlayerId(GetEnumPlayer()))]<=0)
endfunction
function aa7 takes nothing returns boolean
return(udg_integers62[(1+GetPlayerId(GetEnumPlayer()))]<0)
endfunction
function aa8 takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_force01)==false)
endfunction
function aa9 takes nothing returns nothing
set udg_unit01=udg_units24[(1+GetPlayerId(GetEnumPlayer()))]
set udg_location03=GetUnitLoc(udg_unit01)
set udg_player03=GetEnumPlayer()
call TriggerExecute(udg_trigger196)
if(aa8())then
if(aay())then
if(aaX())then
if(aax())then
set udg_location05=GetUnitLoc(udg_units25[(1+GetPlayerId(GetEnumPlayer()))])
call RemoveLocation(udg_locations02[(1+GetPlayerId(GetEnumPlayer()))])
set udg_locations02[(1+GetPlayerId(GetEnumPlayer()))]=Ko(udg_location03,(DistanceBetweenPoints(udg_location03,udg_location05)*.6),AngleBetweenPoints(udg_location03,udg_location05))
if(aaw())then
call SetUnitPositionLoc(udg_units26[(1+GetPlayerId(GetEnumPlayer()))],udg_location04)
endif
call RemoveLocation(udg_location04)
else
set udg_units25[(1+GetPlayerId(GetEnumPlayer()))]=null
call ng(GetEnumPlayer(),udg_sound172)
call DestroyEffect(udg_effects06[(1+GetPlayerId(GetEnumPlayer()))])
endif
endif
else
call RemoveLocation(udg_locations02[(1+GetPlayerId(GetEnumPlayer()))])
set udg_locations02[(1+GetPlayerId(GetEnumPlayer()))]=Ko(udg_location03,-80.,GetUnitFacing(udg_unit01))
endif
set udg_unit01=udg_units24[(1+GetPlayerId(GetEnumPlayer()))]
if(aa0())then
if(aaZ())then
if(aaz())then
set udg_real01=340.
else
set udg_real01=(DistanceBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetEnumPlayer()))])*.3)
endif
else
if(aaY())then
set udg_real01=340.
else
set udg_real01=(DistanceBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetEnumPlayer()))])*.6)
endif
endif
set udg_location05=Ko(udg_location03,udg_real01,AngleBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetEnumPlayer()))]))
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),udg_location05,1.)
call RemoveLocation(udg_location05)
endif
if(aa6())then
if(aa4())then
set udg_real01=1.
else
if(aa3())then
set udg_real01=3.6
else
if(aa2())then
set udg_real01=2.
else
if(aa1())then
set udg_real01=1.2
endif
endif
endif
endif
if(aa5())then
set udg_reals17[(1+GetPlayerId(GetEnumPlayer()))]=AngleBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetEnumPlayer()))])
call SetCameraFieldForPlayer(GetEnumPlayer(),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetEnumPlayer()))],((350.*udg_real01)/DistanceBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetEnumPlayer()))])))
endif
endif
call RemoveLocation(udg_location03)
if(aa7())then
set udg_integers62[(1+GetPlayerId(GetEnumPlayer()))]=0
endif
endif
endfunction
function aAa takes nothing returns nothing
call ForForce(udg_force05,function aa9)
endfunction
function aAA takes nothing returns boolean
return(udg_integers60[(1+GetPlayerId(udg_player03))]==2)
endfunction
function aAb takes nothing returns boolean
return(udg_integers60[(1+GetPlayerId(udg_player03))]==1)
endfunction
function aAB takes nothing returns boolean
return(udg_integers60[(1+GetPlayerId(udg_player03))]==0)
endfunction
function aAc takes nothing returns boolean
return(udg_booleans23[(1+GetPlayerId(udg_player03))])
endfunction
function aAC takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_force01)==false)
endfunction
function aAd takes nothing returns nothing
if(aAC())then
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_FARZ,3500.,.8)
if(aAc())then
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_ANGLE_OF_ATTACK,327.,.7)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_TARGET_DISTANCE,900.,1.1)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_FIELD_OF_VIEW,47.,.9)
else
if(aAB())then
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_ANGLE_OF_ATTACK,295.,1.4)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_TARGET_DISTANCE,1500.,1.4)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_FIELD_OF_VIEW,80.,1.8)
else
if(aAb())then
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_ANGLE_OF_ATTACK,302.,1.4)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_TARGET_DISTANCE,1450.,1.4)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_FIELD_OF_VIEW,80.,1.8)
else
if(aAA())then
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_ANGLE_OF_ATTACK,309.,1.4)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_TARGET_DISTANCE,1400.,1.4)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_FIELD_OF_VIEW,80.,1.8)
endif
endif
endif
endif
else
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_ANGLE_OF_ATTACK,325.,.5)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_TARGET_DISTANCE,450.,.5)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_FIELD_OF_VIEW,70.,.5)
call SetCameraFieldForPlayer(udg_player03,CAMERA_FIELD_ROTATION,90.,.5)
call PanCameraToTimedLocForPlayer(udg_player03,GetRectCenter(udg_rects02[(1+GetPlayerId(udg_player03))]),.5)
endif
endfunction
function aAD takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]>=1)and(IsPlayerInForce(GetTriggerPlayer(),udg_force01)==false)and(IsTriggerEnabled(udg_trigger195))and(IsPlayerInForce(GetTriggerPlayer(),udg_force03)==false)
endfunction
function aAe takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]==1)
endfunction
function aAE takes nothing returns boolean
return(udg_booleans24[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function aAf takes nothing returns nothing
set udg_location03=GetUnitLoc(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))])
if(aAe())then
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),Ko(udg_location03,(DistanceBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])*.3),AngleBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])),.6)
endif
call ng(GetTriggerPlayer(),udg_sound79)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]+1)
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=AngleBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])
if(aAE())then
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=((udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]+11.25)-ModuloReal((udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]+11.25),22.5))
endif
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))],.4)
call RemoveLocation(udg_location03)
call Kh(1.5)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]-1)
endfunction
function aAF takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]>=1)and(IsPlayerInForce(GetTriggerPlayer(),udg_force01)==false)and(IsTriggerEnabled(udg_trigger195))and(IsPlayerInForce(GetTriggerPlayer(),udg_force03)==false)
endfunction
function aAg takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]==1)
endfunction
function aAG takes nothing returns nothing
if(aAg())then
set udg_location03=GetUnitLoc(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))])
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),Ko(udg_location03,(DistanceBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])*.3),AngleBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])),.6)
call RemoveLocation(udg_location03)
endif
call ng(GetTriggerPlayer(),udg_sound80)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]+1)
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=90.
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))],1.)
call Kh(1.5)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]-1)
endfunction
function aAh takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]>=1)and(IsPlayerInForce(GetTriggerPlayer(),udg_force01)==false)and(IsTriggerEnabled(udg_trigger195))
endfunction
function aAH takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]==1)and(IsPlayerInForce(GetTriggerPlayer(),udg_force03)==false)
endfunction
function aAi takes nothing returns boolean
return(udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]>=360.)
endfunction
function aAI takes nothing returns nothing
if(aAH())then
set udg_location03=GetUnitLoc(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))])
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),Ko(udg_location03,(DistanceBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])*.3),AngleBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])),.6)
call RemoveLocation(udg_location03)
endif
call ng(GetTriggerPlayer(),udg_sound82)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]+1)
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]+22.5)
if(aAi())then
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]-360.)
endif
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))],.4)
call Kh(1.5)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]-1)
endfunction
function aAj takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]>=1)and(IsPlayerInForce(GetTriggerPlayer(),udg_force01)==false)and(IsTriggerEnabled(udg_trigger195))
endfunction
function aAJ takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]==1)and(IsPlayerInForce(GetTriggerPlayer(),udg_force03)==false)
endfunction
function aAk takes nothing returns boolean
return(udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]<.0)
endfunction
function aAK takes nothing returns nothing
if(aAJ())then
set udg_location03=GetUnitLoc(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))])
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),Ko(udg_location03,(DistanceBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])*.3),AngleBetweenPoints(udg_location03,udg_locations02[(1+GetPlayerId(GetTriggerPlayer()))])),.6)
call RemoveLocation(udg_location03)
endif
call ng(GetTriggerPlayer(),udg_sound82)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]+1)
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]-22.5)
if(aAk())then
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]+360.)
endif
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))],.4)
call Kh(1.5)
set udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_integers62[(1+GetPlayerId(GetTriggerPlayer()))]-1)
endfunction
function aAl takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function aAL takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B01P')
endfunction
function aAm takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B01Q')
endfunction
function aAM takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h04N')
endfunction
function aAn takes nothing returns boolean
return(GetItemType(GetFilterItem())==ITEM_TYPE_PERMANENT)
endfunction
function aAN takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function aAo takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='o019')or(GetUnitTypeId(GetEnumUnit())=='o01A')or(GetUnitTypeId(GetEnumUnit())=='o018')or(GetUnitTypeId(GetEnumUnit())=='o01B')
endfunction
function aAO takes nothing returns boolean
return(aAo())
endfunction
function aAp takes nothing returns nothing
if(aAO())then
call KillUnit(GetEnumUnit())
endif
endfunction
function aAP takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o017')
endfunction
function aAq takes nothing returns boolean
return(GetOwningPlayer(GetKillingUnit())==Player(0))or(GetOwningPlayer(GetKillingUnit())==Player(1))or(GetOwningPlayer(GetKillingUnit())==Player(2))or(GetOwningPlayer(GetKillingUnit())==Player(3))or(GetOwningPlayer(GetKillingUnit())==Player(4))or(GetOwningPlayer(GetKillingUnit())==Player(5))
endfunction
function aAQ takes nothing returns boolean
return(udg_integer03<=7)
endfunction
function aAr takes nothing returns boolean
return(udg_integer03<=8)
endfunction
function aAR takes nothing returns boolean
return(udg_integer03<=5)
endfunction
function aAs takes nothing returns boolean
return(GetUnitLevel(GetTriggerUnit())==4)
endfunction
function aAS takes nothing returns boolean
return(udg_integer03<=3)
endfunction
function aAt takes nothing returns boolean
return(udg_integer03<=3)
endfunction
function aAT takes nothing returns boolean
return(udg_integer03<=6)
endfunction
function aAu takes nothing returns boolean
return(udg_integer03<=4)
endfunction
function aAU takes nothing returns boolean
return(udg_integer03<=4)
endfunction
function aAv takes nothing returns boolean
return(GetUnitLevel(GetTriggerUnit())==3)
endfunction
function aAV takes nothing returns boolean
return(udg_integer03<=1)
endfunction
function aAw takes nothing returns boolean
return(udg_integer03<=1)
endfunction
function aAW takes nothing returns boolean
return(udg_integer03<=4)
endfunction
function aAx takes nothing returns boolean
return(udg_integer03<=7)
endfunction
function aAX takes nothing returns boolean
return(udg_integer03<=4)
endfunction
function aAy takes nothing returns boolean
return(GetUnitLevel(GetTriggerUnit())==2)
endfunction
function aAY takes nothing returns boolean
return(udg_integer03<=3)
endfunction
function aAz takes nothing returns boolean
return(udg_integer03<=3)
endfunction
function aAZ takes nothing returns boolean
return(udg_integer03<=3)
endfunction
function aA0 takes nothing returns boolean
return(udg_integer03<=6)
endfunction
function aA1 takes nothing returns boolean
return(udg_integer03<=5)
endfunction
function aA2 takes nothing returns boolean
return(GetUnitLevel(GetTriggerUnit())==1)
endfunction
function aA3 takes nothing returns boolean
return(udg_integer04!='I00M')
endfunction
function aA4 takes nothing returns boolean
return(udg_integer03<=4)
endfunction
function aA5 takes nothing returns boolean
return(udg_integer03<=6)
endfunction
function aA6 takes nothing returns boolean
return(udg_integer03<=7)
endfunction
function aA7 takes nothing returns boolean
return(udg_integer03<=3)
endfunction
function aA8 takes nothing returns boolean
return(GetUnitLevel(GetTriggerUnit())==4)
endfunction
function aA9 takes nothing returns boolean
return(udg_integer03<=3)
endfunction
function aba takes nothing returns boolean
return(udg_integer03<=6)
endfunction
function abA takes nothing returns boolean
return(GetUnitLevel(GetTriggerUnit())==3)
endfunction
function abb takes nothing returns boolean
return(udg_integer04!='I00M')
endfunction
function abB takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger203))and(aAq())
endfunction
function abc takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
if(aAP())then
call SetItemVisible(RandomItemInRectBJ(RectFromCenterSizeBJ(udg_location03,100.,100.),Condition(function aAn)),true)
call ForGroupBJ(lI(200.,udg_location03,Condition(function aAN)),function aAp)
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_location03)
return
else
if(aAM())then
call RemoveDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,320.,320.),Condition(function aAL)))
call RemoveDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(udg_location03,320.,320.),Condition(function aAm)))
call AddSpecialEffectLocBJ(udg_location03,"Objects\\Spawnmodels\\Demon\\DemonLargeDeathExplode\\DemonLargeDeathExplode.mdl")
endif
endif
set udg_integer04='I00M'
if(abB())then
call PlaySoundAtPointBJ(udg_sound134,'d',udg_location03,50.)
if(aA2())then
set udg_integer03=GetRandomInt(1,20)
if(aA1())then
set udg_integer04='I004'
else
set udg_integer03=(udg_integer03-5)
if(aA0())then
set udg_integer04='I002'
else
set udg_integer03=(udg_integer03-6)
if(aAZ())then
set udg_integer04='I003'
else
set udg_integer03=(udg_integer03-3)
if(aAz())then
set udg_integer04='I00I'
else
set udg_integer03=(udg_integer03-3)
if(aAY())then
set udg_integer04='I00J'
endif
endif
endif
endif
endif
else
if(aAy())then
set udg_integer03=GetRandomInt(1,20)
if(aAX())then
set udg_integer04='I004'
else
set udg_integer03=(udg_integer03-4)
if(aAx())then
set udg_integer04='I002'
else
set udg_integer03=(udg_integer03-7)
if(aAW())then
set udg_integer04='I003'
else
set udg_integer03=(udg_integer03-4)
if(aAw())then
set udg_integer04='I00I'
else
set udg_integer03=(udg_integer03-1)
if(aAV())then
set udg_integer04='I00J'
endif
endif
endif
endif
endif
else
if(aAv())then
set udg_integer03=GetRandomInt(1,20)
if(aAU())then
set udg_integer04='I004'
else
set udg_integer03=(udg_integer03-4)
if(aAu())then
set udg_integer04='I002'
else
set udg_integer03=(udg_integer03-4)
if(aAT())then
set udg_integer04='I003'
else
set udg_integer03=(udg_integer03-6)
if(aAt())then
set udg_integer04='I00I'
else
set udg_integer03=(udg_integer03-3)
if(aAS())then
set udg_integer04='I00J'
endif
endif
endif
endif
endif
else
if(aAs())then
set udg_integer03=GetRandomInt(1,20)
if(aAR())then
set udg_integer04='I002'
else
set udg_integer03=(udg_integer03-5)
if(aAr())then
set udg_integer04='I003'
else
set udg_integer03=(udg_integer03-8)
if(aAQ())then
set udg_integer04='I001'
endif
endif
endif
endif
endif
endif
endif
if(aA3())then
call CreateItemLoc(udg_integer04,udg_location03)
call SetItemUserData(bj_lastCreatedItem,GetUnitUserData(GetTriggerUnit()))
call IssueTargetOrderById(udg_unit08,851985,bj_lastCreatedItem)
else
call IssueImmediateOrderById(udg_units02[GetUnitUserData(GetTriggerUnit())],udg_integers01[GetUnitUserData(GetTriggerUnit())])
endif
set udg_integer04='I00M'
if(abA())then
set udg_integer03=GetRandomInt(1,20)
if(aba())then
set udg_integer04='I002'
else
set udg_integer03=(udg_integer03-6)
if(aA9())then
set udg_integer04='I003'
endif
endif
else
if(aA8())then
set udg_integer03=GetRandomInt(1,20)
if(aA7())then
set udg_integer04='I003'
else
set udg_integer03=(udg_integer03-3)
if(aA6())then
set udg_integer04='I004'
else
set udg_integer03=(udg_integer03-7)
if(aA5())then
set udg_integer04='I00I'
else
set udg_integer03=(udg_integer03-6)
if(aA4())then
set udg_integer04='I00J'
endif
endif
endif
endif
endif
endif
if(abb())then
call CreateItemLoc(udg_integer04,udg_location03)
call SetItemUserData(bj_lastCreatedItem,0)
call IssueTargetOrderById(udg_unit08,851985,bj_lastCreatedItem)
endif
else
call IssueImmediateOrderById(udg_units02[GetUnitUserData(GetTriggerUnit())],udg_integers01[GetUnitUserData(GetTriggerUnit())])
endif
call RemoveLocation(udg_location03)
endfunction
function abC takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o00K')
endfunction
function abd takes nothing returns boolean
return(udg_integer03<=10)
endfunction
function abD takes nothing returns boolean
return(udg_integer03<=10)
endfunction
function abe takes nothing returns boolean
return(udg_integer03<=4)
endfunction
function abE takes nothing returns boolean
return(udg_integer03<=6)
endfunction
function abf takes nothing returns boolean
return(udg_integer03<=7)
endfunction
function abF takes nothing returns boolean
return(udg_integer03<=3)
endfunction
function abg takes nothing returns nothing
set udg_integer03=GetRandomInt(1,20)
if(abD())then
set udg_integer04='I003'
else
set udg_integer03=(udg_integer03-10)
if(abd())then
set udg_integer04='I001'
endif
endif
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,GetRandomReal(50.,200.),GetRandomReal(0,360))
call CreateItemLoc(udg_integer04,udg_location05)
call RemoveLocation(udg_location05)
set udg_integer03=GetRandomInt(1,20)
if(abF())then
set udg_integer04='I003'
else
set udg_integer03=(udg_integer03-3)
if(abf())then
set udg_integer04='I004'
else
set udg_integer03=(udg_integer03-7)
if(abE())then
set udg_integer04='I00I'
else
set udg_integer03=(udg_integer03-6)
if(abe())then
set udg_integer04='I00J'
endif
endif
endif
endif
set udg_location05=Ko(udg_location03,GetRandomReal(50.,200.),GetRandomReal(0,360))
call CreateItemLoc(udg_integer04,udg_location05)
call SetItemUserData(bj_lastCreatedItem,0)
call ExplodeUnitBJ(GetTriggerUnit())
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function abG takes nothing returns boolean
return(RectContainsItem(GetOrderTargetItem(),bj_mapInitialPlayableArea))
endfunction
function abh takes nothing returns nothing
call Kh(10.)
if(abG())then
set udg_location03=GetItemLoc(GetOrderTargetItem())
call CreateNUnitsAtLoc(1,'o00A',Player(15),udg_location03,bj_UNIT_FACING)
call IssueTargetOrderById(bj_lastCreatedUnit,851971,GetOrderTargetItem())
call RemoveLocation(udg_location03)
endif
endfunction
function abH takes nothing returns boolean
return(GetItemType(GetManipulatedItem())==ITEM_TYPE_POWERUP)
endfunction
function abi takes nothing returns boolean
return(GetItemUserData(GetManipulatedItem())>0)
endfunction
function abI takes nothing returns nothing
if(abi())then
call IssueImmediateOrderById(udg_units02[GetItemUserData(GetManipulatedItem())],udg_integers01[GetItemUserData(GetManipulatedItem())])
endif
endfunction
function abj takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group13))
endfunction
function abJ takes nothing returns nothing
local unit abk
set udg_unit01=GetTrainedUnit()
set abk=udg_unit01
call SetUnitUserData(GetTrainedUnit(),GetUnitUserData(GetTriggerUnit()))
set udg_location03=GetUnitLoc(GetTriggerUnit())
call SetUnitPositionLocFacingBJ(GetTrainedUnit(),udg_location03,GetRandomReal(0,360))
call RemoveLocation(udg_location03)
call SetUnitColor(GetTrainedUnit(),GetPlayerColor(Player(-1+(GetUnitPointValue(GetTrainedUnit())))))
call SetUnitExploded(GetTrainedUnit(),true)
call PauseUnit(GetTrainedUnit(),true)
call SetUnitInvulnerable(GetTrainedUnit(),true)
call Kh(.2)
set udg_unit01=abk
call PauseUnit(udg_unit01,false)
call SetUnitInvulnerable(udg_unit01,false)
if(abj())then
call GroupAddUnit(udg_group13,udg_unit01)
call ConditionalTriggerExecute(udg_trigger206)
endif
endfunction
function abK takes nothing returns boolean
return(IsUnitType(udg_unit01,UNIT_TYPE_STRUCTURE)==false)
endfunction
function abl takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h006')or(GetUnitTypeId(udg_unit01)=='h00S')or(GetUnitTypeId(udg_unit01)=='h013')or(GetUnitTypeId(udg_unit01)=='h016')or(GetUnitTypeId(udg_unit01)=='h01S')or(GetUnitTypeId(udg_unit01)=='h01T')or(GetUnitTypeId(udg_unit01)=='h01P')or(GetUnitTypeId(udg_unit01)=='h01Q')or(GetUnitTypeId(udg_unit01)=='h01R')
endfunction
function abL takes nothing returns boolean
return(abl())
endfunction
function abm takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h00Z')or(GetUnitTypeId(udg_unit01)=='h01U')or(GetUnitTypeId(udg_unit01)=='h024')or(GetUnitTypeId(udg_unit01)=='h02J')
endfunction
function abM takes nothing returns boolean
return(abm())
endfunction
function abn takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='h00C')or(GetUnitTypeId(udg_unit01)=='h011')or(GetUnitTypeId(udg_unit01)=='h029')or(GetUnitTypeId(udg_unit01)=='h02M')or(GetUnitTypeId(udg_unit01)=='h032')or(GetUnitTypeId(udg_unit01)=='h021')or(GetUnitTypeId(udg_unit01)=='h02V')or(GetUnitTypeId(udg_unit01)=='h031')
endfunction
function abN takes nothing returns boolean
return(abn())
endfunction
function abo takes nothing returns nothing
if(abN())then
call IssueImmediateOrderById(udg_unit01,852155)
else
if(abM())then
call IssueImmediateOrderById(udg_unit01,852180)
else
if(abL())then
set udg_location05=GetUnitLoc(udg_unit01)
set udg_location03=Ko(udg_location05,GetRandomReal(100.,200.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(udg_unit01,851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endif
endif
endif
endfunction
function abO takes nothing returns nothing
set udg_location03=GetUnitLoc(udg_units24[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])
call SetUnitPositionLoc(GetEnumUnit(),udg_location03)
call IssueTargetOrderById(GetEnumUnit(),851986,udg_units24[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])
call RemoveLocation(udg_location03)
endfunction
function abp takes nothing returns nothing
set udg_location03=GetUnitLoc(udg_units24[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])
call SetUnitPositionLoc(GetEnumUnit(),udg_location03)
call IssueTargetOrderById(GetEnumUnit(),851986,udg_units24[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))])
call RemoveLocation(udg_location03)
endfunction
function abP takes nothing returns boolean
return(GetUnitCurrentOrder(GetEnumUnit())!=851972)and(GetUnitCurrentOrder(GetEnumUnit())!=852063)
endfunction
function abq takes nothing returns nothing
if(abP())then
call IssueImmediateOrderById(GetEnumUnit(),851972)
endif
endfunction
function abQ takes nothing returns boolean
return(GetUnitCurrentOrder(GetEnumUnit())!=851972)and(GetUnitCurrentOrder(GetEnumUnit())!=852063)
endfunction
function abr takes nothing returns nothing
if(abQ())then
call IssueImmediateOrderById(GetEnumUnit(),851972)
endif
endfunction
function abR takes nothing returns nothing
call ForGroupBJ(lk('o00H'),function abO)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(lk('o00I'),function abp)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(lm(Player(10),'h02C'),function abq)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(lm(Player(10),'h046'),function abr)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function abs takes nothing returns boolean
return(IsUnitHidden(GetTriggerUnit())==false)and(IsUnitInGroup(GetTriggerUnit(),udg_group13))
endfunction
function abS takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01T')
endfunction
function abt takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01S')
endfunction
function abT takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00S')
endfunction
function abu takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h025')
endfunction
function abU takes nothing returns boolean
return(abu())
endfunction
function abv takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01P')or(GetUnitTypeId(GetTriggerUnit())=='h01Q')or(GetUnitTypeId(GetTriggerUnit())=='h01R')
endfunction
function abV takes nothing returns boolean
return(abv())
endfunction
function abw takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00P')or(GetUnitTypeId(GetTriggerUnit())=='h00Q')or(GetUnitTypeId(GetTriggerUnit())=='h017')or(GetUnitTypeId(GetTriggerUnit())=='h025')
endfunction
function abW takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group08))and(abw())
endfunction
function abx takes nothing returns boolean
return(GetIssuedOrderId()!=852155)and(GetIssuedOrderId()!=852156)
endfunction
function abX takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00C')or(GetUnitTypeId(GetTriggerUnit())=='h00G')or(GetUnitTypeId(GetTriggerUnit())=='h011')or(GetUnitTypeId(GetTriggerUnit())=='h012')
endfunction
function aby takes nothing returns boolean
return(abX())
endfunction
function abY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h006')or(GetUnitTypeId(GetTriggerUnit())=='h00S')or(GetUnitTypeId(GetTriggerUnit())=='h013')or(GetUnitTypeId(GetTriggerUnit())=='h016')or(GetUnitTypeId(GetTriggerUnit())=='h01S')or(GetUnitTypeId(GetTriggerUnit())=='h01T')or(GetUnitTypeId(GetTriggerUnit())=='h00D')
endfunction
function abz takes nothing returns boolean
return(abY())
endfunction
function abZ takes nothing returns nothing
set udg_location05=GetUnitLoc(GetTriggerUnit())
if(abz())then
if(abT())then
call PlaySoundOnUnitBJ(udg_sound87,60.,GetTriggerUnit())
else
if(abt())then
call PlaySoundOnUnitBJ(udg_sound120,60.,GetTriggerUnit())
else
if(abS())then
call PlaySoundOnUnitBJ(udg_sound113,60.,GetTriggerUnit())
endif
endif
endif
set udg_location03=Ko(udg_location05,GetRandomReal(400.,700.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(45.,135.)))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
else
if(aby())then
if(abx())then
set udg_location03=Ko(udg_location05,GetRandomReal(350.,600.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(45.,135.)))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
endif
else
if(abW())then
set udg_location03=Ko(udg_location05,GetRandomReal(350.,600.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-30.,30.)))
if(abU())then
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
else
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,udg_location03)
endif
call RemoveLocation(udg_location03)
else
if(abV())then
set udg_location03=Ko(udg_location05,GetRandomReal(400.,700.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(90.,270.)))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
endif
endif
endif
endif
call RemoveLocation(udg_location05)
endfunction
function ab0 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h015')or(GetUnitTypeId(GetAttacker())=='h02F')or(GetUnitTypeId(GetAttacker())=='h02H')or(GetUnitTypeId(GetAttacker())=='h02I')or(GetUnitTypeId(GetAttacker())=='h02N')or(GetUnitTypeId(GetAttacker())=='h02U')or(GetUnitTypeId(GetAttacker())=='h04W')or(GetUnitTypeId(GetAttacker())=='h04N')or(GetUnitTypeId(GetAttacker())=='h04V')or(GetUnitTypeId(GetAttacker())=='h04Y')
endfunction
function ab1 takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(10))and(IsUnitInGroup(GetAttacker(),udg_group13))and(ab0())
endfunction
function ab2 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h04Y')
endfunction
function ab3 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h02U')
endfunction
function ab4 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h015')
endfunction
function ab5 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h04N')
endfunction
function ab6 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h02F')
endfunction
function ab7 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h02H')
endfunction
function ab8 takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h02I')or(GetUnitTypeId(GetAttacker())=='h02N')
endfunction
function ab9 takes nothing returns boolean
return(ab8())
endfunction
function aBa takes nothing returns nothing
if(ab3())then
call PlaySoundOnUnitBJ(udg_sound84,'d',GetAttacker())
call IssueImmediateOrderById(GetAttacker(),852526)
return
else
if(ab2())then
call Kh(.9)
call PlaySoundOnUnitBJ(udg_sound95,'d',GetAttacker())
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,250.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),852089,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
return
endif
endif
call Kh(.1)
if(ab6())then
call PlaySoundOnUnitBJ(udg_sound95,'d',GetAttacker())
else
if(ab5())then
call PlaySoundOnUnitBJ(udg_sound86,65.,GetAttacker())
else
if(ab4())then
call PlaySoundOnUnitBJ(udg_sound114,'d',GetAttacker())
endif
endif
endif
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,250.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),851984,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(.6)
if(ab7())then
call Kh(.6)
endif
if(ab9())then
call Kh(1.2)
endif
call IssueImmediateOrderById(GetAttacker(),851972)
endfunction
function aBA takes nothing returns boolean
return(GetUnitTypeId(GetSummoningUnit())=='h02S')or(GetUnitTypeId(GetSummoningUnit())=='h02O')or(GetUnitTypeId(GetSummoningUnit())=='h02Z')or(GetUnitTypeId(GetSummoningUnit())=='h04Q')
endfunction
function aBb takes nothing returns boolean
return(aBA())
endfunction
function aBB takes nothing returns boolean
return(GetUnitTypeId(GetSummoningUnit())=='h02Z')
endfunction
function aBc takes nothing returns boolean
return(GetUnitTypeId(GetSummoningUnit())=='h02O')
endfunction
function aBC takes nothing returns boolean
return(GetUnitTypeId(GetSummoningUnit())=='h02S')
endfunction
function aBd takes nothing returns boolean
return(IsUnitInGroup(GetSummoningUnit(),udg_group13))
endfunction
function aBD takes nothing returns nothing
if(aBC())then
call PlaySoundOnUnitBJ(udg_sound94,'d',GetSummonedUnit())
else
if(aBc())then
call PlaySoundOnUnitBJ(udg_sound96,'d',GetSummonedUnit())
else
if(aBB())then
call PlaySoundOnUnitBJ(udg_sound103,'d',GetSummonedUnit())
endif
endif
endif
if(aBd())then
call GroupAddUnit(udg_group13,GetSummonedUnit())
endif
set udg_location05=GetUnitLoc(GetSummoningUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(100.,200.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetSummonedUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call SetUnitExploded(GetSummonedUnit(),true)
endfunction
function aBe takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h01N')or(GetUnitTypeId(GetAttacker())=='h01O')or(GetUnitTypeId(GetAttacker())=='h00R')or(GetUnitTypeId(GetAttacker())=='h01Z')
endfunction
function aBE takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(10))and(IsUnitInGroup(GetAttacker(),udg_group08)==false)and(IsUnitInGroup(GetAttacker(),udg_group13))and(aBe())
endfunction
function aBf takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())!='h01Z')
endfunction
function aBF takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00P')or(GetUnitTypeId(GetAttacker())=='h017')or(GetUnitTypeId(GetAttacker())=='h00Q')
endfunction
function aBg takes nothing returns boolean
return(aBF())
endfunction
function aBG takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00P')or(GetUnitTypeId(GetAttacker())=='h017')
endfunction
function aBh takes nothing returns boolean
return(aBG())
endfunction
function aBH takes nothing returns nothing
call GroupAddUnit(udg_group08,GetAttacker())
if(aBf())then
call SetUnitFlyHeight(GetAttacker(),80.,300.)
endif
call IssueImmediateOrderById(GetAttacker(),852155)
call Kh(.1)
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,150.),GetRandomReal(0,360))
if(aBg())then
call IssuePointOrderByIdLoc(GetAttacker(),851983,udg_location03)
else
call IssuePointOrderByIdLoc(GetAttacker(),851986,udg_location03)
endif
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
if(aBh())then
call UnitApplyTimedLifeBJ(5.,'BTLF',GetAttacker())
else
call UnitApplyTimedLifeBJ(8.,'BTLF',GetAttacker())
endif
endfunction
function aBi takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00F')or(GetUnitTypeId(GetAttacker())=='h014')or(GetUnitTypeId(GetAttacker())=='h04T')
endfunction
function aBI takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(10))and(IsUnitInGroup(GetAttacker(),udg_group13))and(aBi())
endfunction
function aBj takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h014')
endfunction
function aBJ takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00F')
endfunction
function aBk takes nothing returns nothing
if(aBJ())then
call PlaySoundOnUnitBJ(udg_sound116,90.,GetAttacker())
else
if(aBj())then
call PlaySoundOnUnitBJ(udg_sound97,90.,GetAttacker())
endif
endif
call Kh(.01)
call SetUnitAcquireRange(GetAttacker(),1.)
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,300.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),852089,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call SetUnitFlyHeight(GetAttacker(),40.,200.)
endfunction
function aBK takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00F')or(GetUnitTypeId(GetTriggerUnit())=='h014')or(GetUnitTypeId(GetTriggerUnit())=='h04T')
endfunction
function aBl takes nothing returns boolean
return(GetSpellAbilityId()=='A05S')and(aBK())
endfunction
function aBL takes nothing returns nothing
call IssueImmediateOrderById(GetTriggerUnit(),852127)
call SetUnitFlyHeight(GetTriggerUnit(),20.,700.)
endfunction
function aBm takes nothing returns boolean
return(GetSpellAbilityId()=='A01E')or(GetSpellAbilityId()=='A02T')or(GetSpellAbilityId()=='A05Q')
endfunction
function aBM takes nothing returns boolean
return(aBm())
endfunction
function aBn takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h014')
endfunction
function aBN takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00F')
endfunction
function aBo takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"abilities\\weapons\\DemolisherMissile\\DemolisherMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location03)
if(aBN())then
call PlaySoundOnUnitBJ(udg_sound117,80.,GetTriggerUnit())
else
if(aBn())then
call PlaySoundOnUnitBJ(udg_sound98,80.,GetTriggerUnit())
endif
endif
call KillUnit(GetTriggerUnit())
endfunction
function aBO takes nothing returns boolean
return(GetSpellAbilityId()=='A01O')or(GetSpellAbilityId()=='A02U')or(GetSpellAbilityId()=='A03Z')or(GetSpellAbilityId()=='A045')
endfunction
function aBp takes nothing returns boolean
return(IsUnitHidden(GetTriggerUnit())==false)and(aBO())
endfunction
function aBP takes nothing returns boolean
return(GetSpellAbilityId()=='A03Z')or(GetSpellAbilityId()=='A045')
endfunction
function aBq takes nothing returns boolean
return(GetSpellAbilityId()=='A02U')
endfunction
function aBQ takes nothing returns boolean
return(GetSpellAbilityId()=='A01O')
endfunction
function aBr takes nothing returns boolean
return(aBP())
endfunction
function aBR takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function aBs takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function aBS takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group13))
endfunction
function aBt takes nothing returns boolean
return(GetSpellAbilityId()=='A045')
endfunction
function aBT takes nothing returns boolean
return(GetSpellAbilityId()=='A03Z')or(GetSpellAbilityId()=='A045')
endfunction
function aBu takes nothing returns boolean
return(GetSpellAbilityId()=='A02U')
endfunction
function aBU takes nothing returns boolean
return(GetSpellAbilityId()=='A01O')
endfunction
function aBv takes nothing returns boolean
return(aBT())
endfunction
function aBV takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function aBw takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function aBW takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function aBx takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group09)==false)
endfunction
function aBX takes nothing returns nothing
if(aBx())then
call GroupAddUnit(udg_group09,GetTriggerUnit())
if(aBv())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_location03,"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_location03,"Abilities\\Weapons\\Mortar\\ScatterShotTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location03)
if(aBt())then
call SetUnitFlyHeight(GetTriggerUnit(),.0,200.)
endif
else
call SetUnitFlyHeight(GetTriggerUnit(),160.,300.)
if(aBU())then
call PlaySoundOnUnitBJ(udg_sound119,'d',GetTriggerUnit())
else
if(aBu())then
call PlaySoundOnUnitBJ(udg_sound110,'d',GetTriggerUnit())
endif
endif
endif
call TriggerSleepAction(.01)
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(200.,400.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-45.,45.)))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(1.7)
if(aBV())then
call Kh(.9)
endif
if(aBw())then
call Kh(.6)
endif
if(aBW())then
call Kh(.7)
endif
call IssueImmediateOrderById(GetTriggerUnit(),852156)
else
call GroupRemoveUnit(udg_group09,GetTriggerUnit())
if(aBr())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_location03,"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_location03,"Abilities\\Weapons\\Mortar\\ScatterShotTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location03)
else
call SetUnitFlyHeight(GetTriggerUnit(),10.,300.)
if(aBQ())then
call PlaySoundOnUnitBJ(udg_sound118,'d',GetTriggerUnit())
else
if(aBq())then
call PlaySoundOnUnitBJ(udg_sound109,'d',GetTriggerUnit())
endif
endif
endif
call TriggerSleepAction(.01)
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(200.,400.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-45.,45.)))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(1.7)
if(aBR())then
call Kh(.9)
endif
if(aBs())then
call Kh(.6)
endif
if(aBS())then
call IssueImmediateOrderById(GetTriggerUnit(),852155)
endif
endif
endfunction
function aBy takes nothing returns boolean
return(GetSpellAbilityId()=='A035')or(GetSpellAbilityId()=='A03I')
endfunction
function aBY takes nothing returns boolean
return(IsUnitHidden(GetTriggerUnit())==false)and(aBy())
endfunction
function aBz takes nothing returns boolean
return(GetSpellAbilityId()=='A03I')
endfunction
function aBZ takes nothing returns boolean
return(GetSpellAbilityId()=='A035')
endfunction
function aB0 takes nothing returns boolean
return(GetSpellAbilityId()=='A03I')
endfunction
function aB1 takes nothing returns boolean
return(GetSpellAbilityId()=='A035')
endfunction
function aB2 takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function aB3 takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function aB4 takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group13))
endfunction
function aB5 takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function aB6 takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function aB7 takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group09)==false)
endfunction
function aB8 takes nothing returns nothing
if(aB7())then
if(aB1())then
call PlaySoundOnUnitBJ(udg_sound112,70.,GetTriggerUnit())
else
if(aB0())then
call PlaySoundOnUnitBJ(udg_sound93,80.,GetTriggerUnit())
endif
endif
call GroupAddUnit(udg_group09,GetTriggerUnit())
call SetUnitFlyHeight(GetTriggerUnit(),250.,400.)
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(200.,400.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(.8)
if(aB5())then
call Kh(.6)
endif
if(aB6())then
call Kh(.4)
endif
call IssueImmediateOrderById(GetTriggerUnit(),852156)
else
if(aBZ())then
call PlaySoundOnUnitBJ(udg_sound111,70.,GetTriggerUnit())
else
if(aBz())then
call PlaySoundOnUnitBJ(udg_sound92,80.,GetTriggerUnit())
endif
endif
call GroupRemoveUnit(udg_group09,GetTriggerUnit())
call SetUnitFlyHeight(GetTriggerUnit(),30.,400.)
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(350.,600.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-60.,60.)))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(1.9)
if(aB2())then
call Kh(1.)
endif
if(aB3())then
call Kh(.7)
endif
if(aB4())then
call IssueImmediateOrderById(GetTriggerUnit(),852155)
endif
endif
endfunction
function aB9 takes nothing returns boolean
return(GetSpellAbilityId()=='A03T')or(GetSpellAbilityId()=='A047')
endfunction
function aca takes nothing returns boolean
return(IsUnitHidden(GetTriggerUnit())==false)and(aB9())
endfunction
function acA takes nothing returns boolean
return(GetSpellAbilityId()=='A047')
endfunction
function acb takes nothing returns boolean
return(GetSpellAbilityId()=='A03T')
endfunction
function acB takes nothing returns boolean
return(GetSpellAbilityId()=='A047')
endfunction
function acc takes nothing returns boolean
return(GetSpellAbilityId()=='A03T')
endfunction
function acC takes nothing returns boolean
return(GetSpellAbilityId()=='A047')
endfunction
function acd takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function acD takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function ace takes nothing returns boolean
return(IsUnitInGroup(udg_units02[GetUnitUserData(GetTriggerUnit())],udg_group13))and(IsUnitInGroup(GetTriggerUnit(),udg_group13))
endfunction
function acE takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function acf takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function acF takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group09)==false)
endfunction
function acg takes nothing returns nothing
if(acF())then
if(acc())then
call AddUnitAnimationPropertiesBJ(false,"alternate",GetTriggerUnit())
call PlaySoundOnUnitBJ(udg_sound91,80.,GetTriggerUnit())
else
if(acB())then
call AddUnitAnimationPropertiesBJ(false,"alternate",GetTriggerUnit())
call PlaySoundOnUnitBJ(udg_sound89,80.,GetTriggerUnit())
endif
endif
call GroupAddUnit(udg_group09,GetTriggerUnit())
call SetUnitFlyHeight(GetTriggerUnit(),250.,300.)
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(200.,400.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(2.2)
if(acE())then
call Kh(.9)
endif
if(acf())then
call Kh(.6)
endif
call IssueImmediateOrderById(GetTriggerUnit(),852156)
else
if(acb())then
call PlaySoundOnUnitBJ(udg_sound90,80.,GetTriggerUnit())
else
if(acA())then
call PlaySoundOnUnitBJ(udg_sound88,80.,GetTriggerUnit())
endif
endif
call GroupRemoveUnit(udg_group09,GetTriggerUnit())
call SetUnitFlyHeight(GetTriggerUnit(),50.,600.)
call TriggerSleepAction(.3)
if(acC())then
call IssueImmediateOrderById(GetTriggerUnit(),852127)
endif
call Kh(.6)
if(acd())then
call Kh(.4)
endif
if(acD())then
call Kh(.3)
endif
if(ace())then
call IssueImmediateOrderById(GetTriggerUnit(),852155)
endif
endif
endfunction
function acG takes nothing returns boolean
return(GetSpellAbilityId()=='A00J')or(GetSpellAbilityId()=='A02R')or(GetSpellAbilityId()=='A02S')or(GetSpellAbilityId()=='A03N')
endfunction
function ach takes nothing returns boolean
return(IsUnitHidden(GetTriggerUnit())==false)and(IsUnitInGroup(GetTriggerUnit(),udg_group01)==false)and(acG())
endfunction
function acH takes nothing returns boolean
return(GetSpellAbilityId()=='A02S')
endfunction
function aci takes nothing returns boolean
return(GetSpellAbilityId()=='A02R')
endfunction
function acI takes nothing returns boolean
return(GetSpellAbilityId()=='A00J')
endfunction
function acj takes nothing returns boolean
return(GetSpellAbilityId()=='A03N')
endfunction
function acJ takes nothing returns nothing
if(acI())then
call PlaySoundOnUnitBJ(udg_sound83,75.,GetTriggerUnit())
else
if(aci())then
call PlaySoundOnUnitBJ(udg_sound115,80.,GetTriggerUnit())
else
if(acH())then
call PlaySoundOnUnitBJ(udg_sound85,80.,GetTriggerUnit())
endif
endif
endif
call om(GetTriggerUnit(),80.)
call SetUnitFlyHeight(GetTriggerUnit(),80.,80.)
call GroupAddUnit(udg_group01,GetTriggerUnit())
if(acj())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_location03,"Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location03)
endif
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(400.,600.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-45.,45.)))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function ack takes nothing returns boolean
return(GetSpellAbilityId()=='A00J')or(GetSpellAbilityId()=='A02R')or(GetSpellAbilityId()=='A02S')or(GetSpellAbilityId()=='A03N')
endfunction
function acK takes nothing returns boolean
return(IsUnitHidden(GetTriggerUnit())==false)and(IsUnitInGroup(GetTriggerUnit(),udg_group01))and(ack())
endfunction
function acl takes nothing returns boolean
return(GetSpellAbilityId()=='A03N')
endfunction
function acL takes nothing returns boolean
return(GetSpellAbilityId()=='A02S')
endfunction
function acm takes nothing returns boolean
return(GetSpellAbilityId()=='A03N')
endfunction
function acM takes nothing returns boolean
return(GetRandomInt(0,1)==1)
endfunction
function acn takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group13))
endfunction
function acN takes nothing returns nothing
call GroupRemoveUnit(udg_group01,GetTriggerUnit())
if(acl())then
set udg_location03=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_location03,"Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_location03)
endif
call TriggerSleepAction(.01)
call SetUnitFacingTimed(GetTriggerUnit(),GetRandomReal(0,360),0)
if(acL())then
call Kh(.3)
call IssueImmediateOrderById(GetTriggerUnit(),852127)
endif
if(acm())then
call Kh(.8)
endif
call Kh(.5)
if(acM())then
call Kh(.4)
endif
if(acn())then
call IssueImmediateOrderById(GetTriggerUnit(),852180)
endif
endfunction
function aco takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h04B')and(IsUnitInGroup(udg_units28[GetUnitUserData(GetTriggerUnit())],udg_group13))
endfunction
function acO takes nothing returns nothing
set udg_location03=GetUnitLoc(udg_units28[GetUnitUserData(GetTriggerUnit())])
set udg_location05=Ko(udg_location03,GetRandomReal(100.,500.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function acp takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n01P')and(IsUnitInGroup(GetAttacker(),udg_group13))
endfunction
function acP takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED)>0)
endfunction
function acq takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED)>=5)
endfunction
function acQ takes nothing returns boolean
return(RectContainsUnit(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[bj_forLoopAIndex]),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+50.),(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+50.)),GetAttacker()))
endfunction
function acr takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(6))
endfunction
function acR takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function acs takes nothing returns boolean
return(GetUnitLevel(GetFilterUnit())>=3)
endfunction
function acS takes nothing returns boolean
return GetBooleanAnd(acR(),acs())
endfunction
function act takes nothing returns boolean
return GetBooleanAnd(acr(),acS())
endfunction
function acT takes nothing returns boolean
return(CountUnitsInGroup(lG(udg_rects01[udg_integer02],Condition(function act)))>0)
endfunction
function acu takes nothing returns boolean
return(udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<35)
endfunction
function acU takes nothing returns boolean
return(udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<30)
endfunction
function acv takes nothing returns boolean
return(udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<25)
endfunction
function acV takes nothing returns boolean
return(udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<20)
endfunction
function acw takes nothing returns boolean
return(udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<15)
endfunction
function acW takes nothing returns boolean
return(udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<10)
endfunction
function acx takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function acX takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function acy takes nothing returns nothing
if(acq())then
return
else
call PlaySoundOnUnitBJ(udg_sound69,85.,GetAttacker())
if(acP())then
return
endif
endif
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location03=GetRectCenter(udg_rects01[bj_forLoopAIndex])
if(acQ())then
set udg_integer02=bj_forLoopAIndex
endif
call RemoveLocation(udg_location03)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(acT())then
call DestroyGroup(GetLastCreatedGroup())
return
endif
call DestroyGroup(GetLastCreatedGroup())
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED,GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_CAP))
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer48=9
call TriggerExecute(udg_trigger316)
call ConditionalTriggerExecute(udg_trigger172)
set udg_unit01=GetAttacker()
call TriggerExecute(udg_trigger119)
if(acW())then
set udg_integers64[1]=1
set udg_integers64[2]=0
else
if(acw())then
set udg_integers64[1]=2
set udg_integers64[2]=0
else
if(acV())then
set udg_integers64[1]=0
set udg_integers64[2]=1
else
if(acv())then
set udg_integers64[1]=1
set udg_integers64[2]=1
else
if(acU())then
set udg_integers64[1]=2
set udg_integers64[2]=1
else
if(acu())then
set udg_integers64[1]=2
set udg_integers64[2]=2
else
set udg_integers64[1]=3
set udg_integers64[2]=2
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integers64[1]
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(acx())then
set udg_integer49='h04F'
else
set udg_integer49='h04G'
endif
call CreateNUnitsAtLoc(1,udg_integer49,Player(8),Ko(GetUnitLoc(GetAttacker()),GetRandomReal(80.,160.),GetRandomReal(0,360)),bj_UNIT_FACING)
call GroupAddUnit(udg_group13,bj_lastCreatedUnit)
call SetUnitColor(bj_lastCreatedUnit,GetPlayerColor(Player(-1+(GetUnitPointValue(bj_lastCreatedUnit)))))
call SetUnitExploded(bj_lastCreatedUnit,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integers64[2]
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(acX())then
set udg_integer49='h04H'
else
set udg_integer49='h04J'
endif
call CreateNUnitsAtLoc(1,udg_integer49,Player(8),Ko(GetUnitLoc(GetAttacker()),GetRandomReal(80.,160.),GetRandomReal(0,360)),bj_UNIT_FACING)
call GroupAddUnit(udg_group13,bj_lastCreatedUnit)
call SetUnitColor(bj_lastCreatedUnit,GetPlayerColor(Player(-1+(GetUnitPointValue(bj_lastCreatedUnit)))))
call SetUnitExploded(bj_lastCreatedUnit,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function acY takes nothing returns boolean
return(GetUnitLevel(GetTriggerUnit())>=3)
endfunction
function acz takes nothing returns boolean
return(RectContainsUnit(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[bj_forLoopAIndex]),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+50.),(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+50.)),udg_unit01))
endfunction
function acZ takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(8))
endfunction
function ac0 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function ac1 takes nothing returns boolean
return(GetUnitLevel(GetFilterUnit())>=3)
endfunction
function ac2 takes nothing returns boolean
return GetBooleanAnd(ac0(),ac1())
endfunction
function ac3 takes nothing returns boolean
return GetBooleanAnd(acZ(),ac2())
endfunction
function ac4 takes nothing returns boolean
return(CountUnitsInGroup(lG(udg_rects01[udg_integer02],Condition(function ac3)))>0)
endfunction
function ac5 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function ac6 takes nothing returns nothing
set udg_player03=GetOwningPlayer(GetEnumUnit())
call TriggerExecute(udg_trigger316)
endfunction
function ac7 takes nothing returns boolean
return(RectContainsUnit(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[bj_forLoopAIndex]),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+50.),(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+50.)),udg_unit01))
endfunction
function ac8 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function ac9 takes nothing returns nothing
set udg_player03=GetOwningPlayer(GetEnumUnit())
call TriggerExecute(udg_trigger316)
endfunction
function aCa takes nothing returns nothing
local unit aCA
set udg_unit01=GetTriggerUnit()
set aCA=udg_unit01
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(15),GetUnitLoc(GetTriggerUnit()),GetUnitFacing(GetTriggerUnit()))
call ExplodeUnitBJ(bj_lastCreatedUnit)
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location03=GetRectCenter(udg_rects01[bj_forLoopAIndex])
if(acz())then
set udg_integer02=bj_forLoopAIndex
endif
call RemoveLocation(udg_location03)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(ac4())then
call RemoveUnit(GetTriggerUnit())
return
endif
call TriggerExecute(udg_trigger120)
call CreateNUnitsAtLoc(1,'o010',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_unit01=bj_lastCreatedUnit
set aCA=udg_unit01
set udg_integer48=20
call ForGroupBJ(lG(udg_rects01[udg_integer02],Condition(function ac5)),function ac6)
call RemoveUnit(GetTriggerUnit())
call Kh(3.)
set udg_unit01=aCA
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location03=GetRectCenter(udg_rects01[bj_forLoopAIndex])
if(ac7())then
set udg_integer02=bj_forLoopAIndex
endif
call RemoveLocation(udg_location03)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer48=udg_integers03[udg_integer02]
call ForGroupBJ(lG(udg_rects01[udg_integer02],Condition(function ac8)),function ac9)
call RemoveUnit(udg_unit01)
endfunction
function aCb takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04B')
endfunction
function aCB takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==GetUnitUserData(udg_unit01))
endfunction
function aCc takes nothing returns boolean
return GetBooleanAnd(aCb(),aCB())
endfunction
function aCC takes nothing returns boolean
return(GetUnitTypeId(udg_unit01)=='n01P')
endfunction
function aCd takes nothing returns nothing
if(aCC())then
set udg_location03=GetUnitLoc(udg_unit01)
set udg_location05=Ko(udg_location03,GetRandomReal(100.,500.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GroupPickRandomUnit(ll(Player(8),Condition(function aCc))),851983,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endif
endfunction
function aCD takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h04F')or(GetUnitTypeId(GetAttacker())=='h04G')or(GetUnitTypeId(GetAttacker())=='h04H')or(GetUnitTypeId(GetAttacker())=='h04J')
endfunction
function aCe takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(8))and(aCD())
endfunction
function aCE takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function aCf takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h04J')
endfunction
function aCF takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function aCg takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h04H')
endfunction
function aCG takes nothing returns nothing
call Kh(.01)
if(aCg())then
if(aCF())then
set udg_location05=GetUnitLoc(GetAttacker())
set udg_location03=Ko(udg_location05,GetRandomReal(30.,80.),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h04I',GetOwningPlayer(GetAttacker()),udg_location03,GetRandomReal(0,360))
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetTriggerUnit())
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call UnitApplyTimedLifeBJ(5.,'BTLF',bj_lastCreatedUnit)
else
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,200.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),851984,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(1.5)
call IssueImmediateOrderById(GetAttacker(),851972)
endif
else
if(aCf())then
if(aCE())then
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,200.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),851984,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(.15)
call IssueImmediateOrderById(GetAttacker(),851972)
else
call IssuePointOrderByIdLoc(GetAttacker(),852658,Ko(GetUnitLoc(GetTriggerUnit()),GetRandomReal(0,200.),GetRandomReal(0,360)))
endif
else
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,200.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),851984,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(.15)
call IssueImmediateOrderById(GetAttacker(),851972)
endif
endif
endfunction
function aCh takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h03A')or(GetUnitTypeId(GetAttacker())=='h03B')or(GetUnitTypeId(GetAttacker())=='h03H')or(GetUnitTypeId(GetAttacker())=='h03F')or(GetUnitTypeId(GetAttacker())=='h03G')or(GetUnitTypeId(GetAttacker())=='h03I')or(GetUnitTypeId(GetAttacker())=='h03J')
endfunction
function aCH takes nothing returns boolean
return(GetOwningPlayer(GetAttacker())==Player(6))and(aCh())
endfunction
function aCi takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h03A')or(GetUnitTypeId(GetAttacker())=='h03H')
endfunction
function aCI takes nothing returns boolean
return(aCi())
endfunction
function aCj takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h03J')
endfunction
function aCJ takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h03I')
endfunction
function aCk takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h03G')
endfunction
function aCK takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h03F')
endfunction
function aCl takes nothing returns boolean
return(GetRandomInt(1,4)==1)
endfunction
function aCL takes nothing returns boolean
return(GetRandomInt(1,5)==1)
endfunction
function aCm takes nothing returns nothing
call Kh(.01)
if(aCL())then
call IssueImmediateOrderById(GetAttacker(),852180)
else
if(aCl())then
set udg_location05=GetUnitLoc(GetAttacker())
set udg_location03=Ko(udg_location05,GetRandomReal(60.,120.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),851986,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call PlaySoundOnUnitBJ(udg_sound108,80.,GetAttacker())
else
if(aCK())then
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,200.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),852658,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
else
if(aCk())then
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,250.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),852658,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
else
if(aCJ())then
call IssueImmediateOrderById(GetAttacker(),851972)
set udg_location03=GetUnitLoc(GetAttacker())
call CreateNUnitsAtLoc(1,'o00O',GetOwningPlayer(GetAttacker()),udg_location03,GetUnitFacing(GetAttacker()))
call RemoveLocation(udg_location03)
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,300.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
else
if(aCj())then
call IssueImmediateOrderById(GetAttacker(),851972)
set udg_location03=GetUnitLoc(GetAttacker())
call CreateNUnitsAtLoc(1,'o00P',GetOwningPlayer(GetAttacker()),udg_location03,GetUnitFacing(GetAttacker()))
call RemoveLocation(udg_location03)
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,250.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
else
if(aCI())then
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,250.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
else
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(.0,250.),GetRandomReal(0,360))
call IssuePointOrderByIdLoc(GetAttacker(),851984,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call Kh(1.3)
call IssueImmediateOrderById(GetAttacker(),851972)
endif
endif
endif
endif
endif
endif
endif
endfunction
function aCM takes nothing returns boolean
return(GetSpellAbilityId()=='A04L')or(GetSpellAbilityId()=='A04G')or(GetSpellAbilityId()=='A04J')or(GetSpellAbilityId()=='A04I')or(GetSpellAbilityId()=='A04K')or(GetSpellAbilityId()=='A04M')or(GetSpellAbilityId()=='A04H')
endfunction
function aCn takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group01)==false)and(aCM())
endfunction
function aCN takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound106,90.,GetTriggerUnit())
call om(GetTriggerUnit(),80.)
call SetUnitFlyHeight(GetTriggerUnit(),80.,80.)
call GroupAddUnit(udg_group01,GetTriggerUnit())
set udg_location05=GetUnitLoc(GetTriggerUnit())
set udg_location03=Ko(udg_location05,GetRandomReal(400.,700.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-30.,30.)))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_location03)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function aCo takes nothing returns boolean
return(GetSpellAbilityId()=='A04L')or(GetSpellAbilityId()=='A04G')or(GetSpellAbilityId()=='A04J')or(GetSpellAbilityId()=='A04I')or(GetSpellAbilityId()=='A04K')or(GetSpellAbilityId()=='A04M')or(GetSpellAbilityId()=='A04H')
endfunction
function aCO takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group01))and(aCo())
endfunction
function aCp takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound107,80.,GetTriggerUnit())
call GroupRemoveUnit(udg_group01,GetTriggerUnit())
call SetUnitFlyHeight(GetTriggerUnit(),.0,300.)
endfunction
function aCP takes nothing returns boolean
return(GetUnitUserData(GetTriggerUnit())==0)
endfunction
function aCq takes nothing returns boolean
return(RectContainsUnit(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[bj_forLoopAIndex]),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+50.),(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+50.)),GetTriggerUnit()))
endfunction
function aCQ takes nothing returns boolean
return(IsUnitInRegion(no(udg_rects01[udg_integer02]),GetEventTargetUnit())==false)
endfunction
function aCr takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h03C')or(GetUnitTypeId(GetTriggerUnit())=='h03E')
endfunction
function aCR takes nothing returns boolean
return(aCr())
endfunction
function aCs takes nothing returns nothing
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(aCq())then
set udg_integer02=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(aCQ())then
return
endif
call PlaySoundOnUnitBJ(udg_sound104,'d',GetTriggerUnit())
call SetSoundPitchBJ(bj_lastPlayedSound,.95)
call UnitRemoveAbility(GetTriggerUnit(),'ACes')
call SetUnitAcquireRange(GetTriggerUnit(),1000.)
call SetUnitUserData(GetTriggerUnit(),(1+GetPlayerId(GetOwningPlayer(GetEventTargetUnit()))))
if(aCR())then
call GroupAddUnit(udg_group09,GetTriggerUnit())
call IssueImmediateOrderById(GetTriggerUnit(),852164)
endif
set udg_player03=GetOwningPlayer(GetEventTargetUnit())
set udg_integer48=10
call TriggerExecute(udg_trigger316)
call Kh(1.)
endfunction
function aCS takes nothing returns boolean
return(GetUnitLevel(GetTriggerUnit())>=3)
endfunction
function aCt takes nothing returns boolean
return(udg_integer47>=7)
endfunction
function aCT takes nothing returns boolean
return(udg_integer47>=11)
endfunction
function aCu takes nothing returns boolean
return(udg_integer47>=15)
endfunction
function aCU takes nothing returns boolean
return(RectContainsUnit(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[bj_forLoopAIndex]),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+50.),(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+50.)),GetTriggerUnit()))
endfunction
function aCv takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(6))
endfunction
function aCV takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function aCw takes nothing returns boolean
return(GetUnitLevel(GetFilterUnit())>=3)
endfunction
function aCW takes nothing returns boolean
return GetBooleanAnd(aCV(),aCw())
endfunction
function aCx takes nothing returns boolean
return GetBooleanAnd(aCv(),aCW())
endfunction
function aCX takes nothing returns boolean
return(CountUnitsInGroup(lG(udg_rects01[udg_integer02],Condition(function aCx)))>0)
endfunction
function aCy takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function aCY takes nothing returns nothing
set udg_player03=GetOwningPlayer(GetEnumUnit())
call TriggerExecute(udg_trigger316)
endfunction
function aCz takes nothing returns boolean
return(RectContainsUnit(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[bj_forLoopAIndex]),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+50.),(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+50.)),udg_unit01))
endfunction
function aCZ takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function aC0 takes nothing returns nothing
set udg_player03=GetOwningPlayer(GetEnumUnit())
call TriggerExecute(udg_trigger316)
endfunction
function aC1 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aC2 takes nothing returns nothing
local unit aC3
set udg_unit01=GetTriggerUnit()
set aC3=udg_unit01
call PlaySoundOnUnitBJ(udg_sound105,90.,GetTriggerUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Orc\\OrcLargeDeathExplode\\OrcLargeDeathExplode.mdl")
call CreateNUnitsAtLocFacingLocBJ(1,'o00K',Player(15),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),Player(15),GetUnitLoc(GetTriggerUnit()),GetUnitFacing(GetTriggerUnit()))
call ExplodeUnitBJ(bj_lastCreatedUnit)
set udg_integer47=(udg_integer47+1)
if(aCt())then
call ConditionalTriggerExecute(udg_trigger267)
endif
if(aCT())then
call ConditionalTriggerExecute(udg_trigger268)
endif
if(aCu())then
call ConditionalTriggerExecute(udg_trigger269)
endif
call l0(bj_lastCreatedMultiboard,2,1,I2S(udg_integer47))
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(aCU())then
set udg_integer02=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(aCX())then
call RemoveUnit(GetTriggerUnit())
return
endif
call CreateNUnitsAtLoc(1,'o010',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call SetUnitUserData(bj_lastCreatedUnit,0)
call SetUnitUserData(bj_lastCreatedUnit,GetUnitUserData(GetTriggerUnit()))
set udg_unit01=bj_lastCreatedUnit
set aC3=udg_unit01
set udg_integer48=20
call ForGroupBJ(lG(udg_rects01[udg_integer02],Condition(function aCy)),function aCY)
call RemoveUnit(GetTriggerUnit())
call Kh(3.)
set udg_unit01=aC3
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location03=GetRectCenter(udg_rects01[bj_forLoopAIndex])
if(aCz())then
set udg_integer02=bj_forLoopAIndex
endif
call RemoveLocation(udg_location03)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger230)
set udg_integer48=udg_integers03[udg_integer02]
call ForGroupBJ(lG(udg_rects01[udg_integer02],Condition(function aCZ)),function aC0)
call TriggerExecute(udg_trigger120)
call RemoveUnit(udg_unit01)
call ForGroupBJ(li(udg_rects01[udg_integer02],Player(6)),function aC1)
endfunction
function aC4 takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)!=null)
endfunction
function aC5 takes nothing returns nothing
if(aC4())then
call IssueImmediateOrderById(GetEnumUnit(),udg_integers01[GetUnitUserData(GetEnumUnit())])
endif
endfunction
function aC6 takes nothing returns nothing
call ForGroupBJ(li(udg_rects01[udg_integer02],Player(10)),function aC5)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function aC7 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01W')or(GetUnitTypeId(GetTriggerUnit())=='h01X')or(GetUnitTypeId(GetTriggerUnit())=='h01Y')or(GetUnitTypeId(GetTriggerUnit())=='h03C')or(GetUnitTypeId(GetTriggerUnit())=='h03E')
endfunction
function aC8 takes nothing returns boolean
return(aC7())and(IsUnitInGroup(GetTriggerUnit(),udg_group10)==false)
endfunction
function aC9 takes nothing returns nothing
return
call GroupAddUnit(udg_group10,GetTriggerUnit())
call om(GetTriggerUnit(),GetUnitFacing(GetTriggerUnit()))
call EnableTrigger(udg_trigger233)
endfunction
function ada takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group10))
endfunction
function adA takes nothing returns nothing
return
call SetUnitMoveSpeed(GetTriggerUnit(),GetUnitDefaultMoveSpeed(GetTriggerUnit()))
call GroupRemoveUnit(udg_group10,GetTriggerUnit())
endfunction
function adb takes nothing returns boolean
return(CountUnitsInGroup(udg_group10)>0)
endfunction
function adB takes nothing returns boolean
return(udg_real01>180.)
endfunction
function adc takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h01W')
endfunction
function adC takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h01X')
endfunction
function add takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h01Y')
endfunction
function adD takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h03C')
endfunction
function ade takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h03E')
endfunction
function adE takes nothing returns boolean
return(GetUnitMoveSpeed(GetEnumUnit())<GetUnitDefaultMoveSpeed(GetEnumUnit()))
endfunction
function adf takes nothing returns boolean
return(GetUnitCurrentOrder(GetEnumUnit())==851972)
endfunction
function adF takes nothing returns boolean
return(GetUnitMoveSpeed(GetEnumUnit())>udg_real15)
endfunction
function adg takes nothing returns nothing
set udg_real01=(oM(GetEnumUnit())-GetUnitFacing(GetEnumUnit()))
set udg_real01=RAbsBJ(udg_real01)
if(adB())then
set udg_real01=RAbsBJ((udg_real01-360.))
endif
if(adc())then
set udg_real14=80.
set udg_real15=400.
set udg_real16=.08
endif
if(adC())then
set udg_real14=80.
set udg_real15=300.
set udg_real16=.05
endif
if(add())then
set udg_real14=100.
set udg_real15=500.
set udg_real16=.12
endif
if(adD())then
set udg_real14=60.
set udg_real15=150.
set udg_real16=.09
endif
if(ade())then
set udg_real14=70.
set udg_real15=300.
set udg_real16=.11
endif
call SetUnitMoveSpeed(GetEnumUnit(),(GetUnitMoveSpeed(GetEnumUnit())+(udg_real14-(udg_real01*(udg_real01*udg_real16)))))
if(adE())then
call SetUnitMoveSpeed(GetEnumUnit(),GetUnitDefaultMoveSpeed(GetEnumUnit()))
endif
if(adf())then
call SetUnitMoveSpeed(GetEnumUnit(),GetUnitDefaultMoveSpeed(GetEnumUnit()))
call GroupRemoveUnit(udg_group10,GetEnumUnit())
endif
if(adF())then
call SetUnitMoveSpeed(GetEnumUnit(),udg_real15)
endif
call om(GetEnumUnit(),GetUnitFacing(GetEnumUnit()))
endfunction
function adG takes nothing returns nothing
return
call ForGroupBJ(udg_group10,function adg)
endfunction
function adh takes nothing returns boolean
return(GetItemType(GetManipulatedItem())==ITEM_TYPE_PERMANENT)and(GetItemUserData(GetManipulatedItem())>0)and(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function adH takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B01G')
endfunction
function adi takes nothing returns boolean
return(GetWidgetLife(GetManipulatedItem())>1.)
endfunction
function adI takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(9))
endfunction
function adj takes nothing returns boolean
return(GetWidgetLife(GetManipulatedItem())>1.)
endfunction
function adJ takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h020')
endfunction
function adk takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B01G')
endfunction
function adK takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h03K')
endfunction
function adl takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h02B')
endfunction
function adL takes nothing returns boolean
return(RectContainsUnit(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[bj_forLoopAIndex]),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+50.),(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+50.)),GetTriggerUnit()))
endfunction
function adm takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function adM takes nothing returns nothing
set udg_player03=GetOwningPlayer(GetEnumUnit())
call TriggerExecute(udg_trigger316)
endfunction
function adn takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),852227,bj_lastCreatedUnit)
endfunction
function adN takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==15)
endfunction
function ado takes nothing returns boolean
return(CountUnitsInGroup(lI(500.,GetUnitLoc(GetEnumUnit()),Condition(function adJ)))>0)
endfunction
function adO takes nothing returns nothing
if(ado())then
call KillDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetItemLoc(GetManipulatedItem()),150.,150.),Condition(function adk)))
set udg_unit01=GetTriggerUnit()
if(adl())then
call CreateNUnitsAtLoc(1,'h02C',Player(10),GetUnitLoc(GetEnumUnit()),GetUnitFacing(GetEnumUnit()))
else
if(adK())then
call CreateNUnitsAtLoc(1,'h046',Player(10),GetUnitLoc(GetEnumUnit()),GetUnitFacing(GetEnumUnit()))
endif
endif
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call UnitAddItem(bj_lastCreatedUnit,GetManipulatedItem())
call SetUnitExploded(bj_lastCreatedUnit,true)
call SetUnitColor(bj_lastCreatedUnit,GetPlayerColor(Player(-1+(GetUnitPointValue(bj_lastCreatedUnit)))))
call SetItemDropOnDeath(GetManipulatedItem(),true)
call SetUnitAnimation(bj_lastCreatedUnit,"spell")
call GroupAddUnit(udg_group13,bj_lastCreatedUnit)
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(adL())then
set udg_integer02=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers03[udg_integer02]=8
set udg_integer48=8
call ForGroupBJ(lG(udg_rects01[udg_integer02],Condition(function adm)),function adM)
call ForGroupBJ(lJ(500.,GetUnitLoc(bj_lastCreatedUnit)),function adn)
call RemoveUnit(GroupPickRandomUnit(lI(250.,GetUnitLoc(GetEnumUnit()),Condition(function adN))))
set udg_location03=GetUnitLoc(bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o01S',Player(15),Ko(udg_location03,GetRandomReal(60.,120.),GetRandomReal(0,360)),GetRandomReal(0,360))
call AddSpecialEffectTargetUnitBJ("origin",bj_lastCreatedUnit,"Objects\\Spawnmodels\\Undead\\GargoyleCrumble\\GargoyleCrumble.mdl")
call SetUnitAnimation(bj_lastCreatedUnit,"decay")
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveUnit(GetEnumUnit())
else
if(adj())then
call SetWidgetLife(GetManipulatedItem(),1.)
set udg_integer45=(udg_integer45+1)
call l0(bj_lastCreatedMultiboard,2,5,I2S(udg_integer45))
endif
set udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call SetUnitMoveSpeed(GetTriggerUnit(),.0)
set udg_player03=GetOwningPlayer(GetTriggerUnit())
call ConditionalTriggerExecute(udg_trigger182)
endif
endfunction
function adp takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h020')
endfunction
function adP takes nothing returns boolean
return(CountUnitsInGroup(lI(500.,GetUnitLoc(GetTriggerUnit()),Condition(function adp)))>0)
endfunction
function adq takes nothing returns nothing
call SetStackedSoundBJ(false,udg_sound70,udg_rects07[GetItemUserData(GetManipulatedItem())])
call ShowDestructableBJ(false,RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetItemLoc(GetManipulatedItem()),100.,100.),Condition(function adH)))
if(adP())then
call ForGroupBJ(lo(1,lI(400.,GetUnitLoc(GetTriggerUnit()),Condition(function adI))),function adO)
else
if(adi())then
call SetWidgetLife(GetManipulatedItem(),1.)
set udg_integer45=(udg_integer45+1)
call l0(bj_lastCreatedMultiboard,2,5,I2S(udg_integer45))
endif
set udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call SetUnitMoveSpeed(GetTriggerUnit(),.0)
call Kh(.5)
set udg_unit01=GetTriggerUnit()
call ConditionalTriggerExecute(udg_trigger182)
endif
endfunction
function adQ takes nothing returns boolean
return(GetSpellAbilityId()=='A03G')
endfunction
function adr takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
endfunction
function adR takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h02C')or(GetUnitTypeId(GetTriggerUnit())=='h046')
endfunction
function ads takes nothing returns boolean
return(adR())
endfunction
function adS takes nothing returns boolean
return(RectContainsUnit(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[bj_forLoopAIndex]),(GetRectWidthBJ(udg_rects01[bj_forLoopAIndex])+50.),(GetRectHeightBJ(udg_rects01[bj_forLoopAIndex])+50.)),GetTriggerUnit()))
endfunction
function adt takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function adT takes nothing returns nothing
set udg_integer48=20
set udg_player03=GetOwningPlayer(GetEnumUnit())
call TriggerExecute(udg_trigger316)
set udg_integers02[(1+GetPlayerId(udg_player03))]=20
endfunction
function adu takes nothing returns nothing
local unit adU
set udg_unit01=GetTriggerUnit()
set adU=udg_unit01
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetTriggerUnit()),GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitFacing(GetTriggerUnit()))
call SetUnitUserData(bj_lastCreatedUnit,GetUnitUserData(GetTriggerUnit()))
set udg_unit01=bj_lastCreatedUnit
set adU=udg_unit01
call UnitAddAbility(bj_lastCreatedUnit,'Avul')
call PauseUnit(bj_lastCreatedUnit,true)
call SetUnitAnimation(bj_lastCreatedUnit,"death")
call SetUnitTimeScalePercent(bj_lastCreatedUnit,70.)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
set udg_integer02=udg_integer50
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer02
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(adS())then
set udg_integer02=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers03[udg_integer02]=20
call ForGroupBJ(lG(udg_rects01[udg_integer02],Condition(function adt)),function adT)
call RemoveUnit(GetTriggerUnit())
call Kh(2.)
set udg_unit01=adU
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit01),"Objects\\Spawnmodels\\NightElf\\NEDeathMedium\\NEDeath.mdl")
call CreateNUnitsAtLocFacingLocBJ(4,'o00K',Player(15),GetUnitLoc(udg_unit01),GetUnitLoc(udg_unit01))
call RemoveUnit(udg_unit01)
endfunction
function adv takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h02C')or(GetUnitTypeId(GetTriggerUnit())=='h046')
endfunction
function adV takes nothing returns boolean
return(GetIssuedOrderId()==851972)and(adv())
endfunction
function adw takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group13)==false)
endfunction
function adW takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function adx takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h02C')
endfunction
function adX takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function ady takes nothing returns boolean
return(GetRandomInt(1,3)==1)
endfunction
function adY takes nothing returns boolean
return(udg_unit01!=null)
endfunction
function adz takes nothing returns nothing
call Kh(.5)
if(adw())then
call IssueTargetOrderById(GetTriggerUnit(),852063,GetTriggerUnit())
return
endif
set udg_unit01=null
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_unit01=GroupPickRandomUnit(lI(700.,udg_location03,Condition(function adW)))
call RemoveLocation(udg_location03)
if(adY())then
if(ady())then
call IssueTargetOrderById(GetTriggerUnit(),852075,udg_unit01)
else
if(adX())then
call IssueTargetOrderById(GetTriggerUnit(),852189,udg_unit01)
else
if(adx())then
call IssueTargetOrderById(GetTriggerUnit(),852101,GetTriggerUnit())
else
call IssueImmediateOrderById(GetTriggerUnit(),852127)
endif
endif
endif
else
call IssueTargetOrderById(GetTriggerUnit(),852063,GetTriggerUnit())
endif
endfunction
function adZ takes nothing returns boolean
return(GetSpellAbilityId()=='A03B')and(GetUnitTypeId(GetTriggerUnit())=='h02C')
endfunction
function ad0 takes nothing returns nothing
set udg_location03=GetUnitLoc(GetSpellTargetUnit())
set udg_location04=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location05=Ko(udg_location03,GetRandomReal(.0,350.),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'o00L',GetOwningPlayer(GetTriggerUnit()),udg_location04,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location05)
call RemoveLocation(udg_location05)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location04)
endfunction
function ad1 takes nothing returns boolean
return(GetSpellAbilityId()=='A03D')and(GetUnitTypeId(GetTriggerUnit())=='h02C')
endfunction
function ad2 takes nothing returns nothing
local unit ad3
set udg_unit01=GetSpellTargetUnit()
set ad3=udg_unit01
set udg_location03=GetUnitLoc(udg_unit01)
set udg_location05=Ko(udg_location03,GetRandomReal(.0,350.),GetRandomReal(0,360))
set udg_location04=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'o008',GetOwningPlayer(GetTriggerUnit()),udg_location04,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852658,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
call PauseUnit(GetTriggerUnit(),true)
call Kh(.5)
set udg_unit01=ad3
set udg_location03=GetUnitLoc(udg_unit01)
set udg_location05=Ko(udg_location03,GetRandomReal(.0,350.),GetRandomReal(0,360))
set udg_location04=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'o008',GetOwningPlayer(GetTriggerUnit()),udg_location04,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852658,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
call PauseUnit(GetTriggerUnit(),false)
endfunction
function ad4 takes nothing returns boolean
return(GetSpellAbilityId()=='A03B')and(GetUnitTypeId(GetTriggerUnit())=='h046')
endfunction
function ad5 takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,GetRandomReal(.0,100.),GetRandomReal(0,360))
set udg_location04=GetUnitLoc(GetSpellTargetUnit())
call CreateNUnitsAtLoc(1,'h04K',GetOwningPlayer(GetTriggerUnit()),udg_location05,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,udg_location04)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
call UnitApplyTimedLifeBJ(20.,'BTLF',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function ad6 takes nothing returns boolean
return(GetSpellAbilityId()=='A03D')and(GetUnitTypeId(GetTriggerUnit())=='h046')
endfunction
function ad7 takes nothing returns nothing
set udg_unit01=GetSpellTargetUnit()
set udg_location03=GetUnitLoc(udg_unit01)
set udg_location04=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location05=Ko(udg_location03,GetRandomReal(.0,350.),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'o014',GetOwningPlayer(GetTriggerUnit()),udg_location04,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852658,udg_location05)
call RemoveLocation(udg_location05)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location04)
endfunction
function ad8 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o009')and(GetOwningPlayer(GetKillingUnit())!=Player(0))and(GetOwningPlayer(GetKillingUnit())!=Player(1))and(GetOwningPlayer(GetKillingUnit())!=Player(2))and(GetOwningPlayer(GetKillingUnit())!=Player(3))and(GetOwningPlayer(GetKillingUnit())!=Player(4))and(GetOwningPlayer(GetKillingUnit())!=Player(5))
endfunction
function ad9 takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'o00J',GetOwningPlayer(GetTriggerUnit()),udg_location03,GetRandomReal(0,360))
set udg_location05=GetUnitLoc(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function aDa takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o016')
endfunction
function aDA takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'o015',GetOwningPlayer(GetTriggerUnit()),udg_location03,GetRandomReal(0,360))
set udg_location05=GetUnitLoc(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function aDb takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h04O')
endfunction
function aDB takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Q')
endfunction
function aDc takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function aDC takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B01V')
endfunction
function aDd takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function aDD takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function aDe takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function aDE takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04O')
endfunction
function aDf takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Q')
endfunction
function aDF takes nothing returns boolean
return(IsUnitPaused(GetFilterUnit()))
endfunction
function aDg takes nothing returns boolean
return GetBooleanAnd(aDf(),aDF())
endfunction
function aDG takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function aDh takes nothing returns boolean
return(IsUnitAliveBJ(GroupPickRandomUnit(lG(udg_rect05,Condition(function aDE)))))
endfunction
function aDH takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit42))
endfunction
function aDi takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit43))
endfunction
function aDI takes nothing returns boolean
return(bj_forLoopAIndex>1)
endfunction
function aDj takes nothing returns boolean
return(IsUnitInGroup(udg_unit44,udg_group13))
endfunction
function aDJ takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04O')
endfunction
function aDk takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function aDK takes nothing returns boolean
return GetBooleanAnd(aDJ(),aDk())
endfunction
function aDl takes nothing returns boolean
return(CountUnitsInGroup(lG(udg_rect137,Condition(function aDK)))==0)
endfunction
function aDL takes nothing returns boolean
return(RectContainsUnit(udg_rect51,GetTriggerUnit()))
endfunction
function aDm takes nothing returns boolean
return(RectContainsUnit(udg_rect48,GetTriggerUnit()))
endfunction
function aDM takes nothing returns boolean
return(RectContainsUnit(udg_rect50,GetTriggerUnit()))
endfunction
function aDn takes nothing returns boolean
return(RectContainsUnit(udg_rect49,GetTriggerUnit()))
endfunction
function aDN takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ForGroupBJ(lG(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),100.,100.),Condition(function aDB)),function aDc)
call ShowDestructableBJ(false,RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),90.,90.),Condition(function aDC)))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(aDe())then
set udg_rect05=udg_rect49
else
if(aDD())then
set udg_rect05=udg_rect50
else
if(aDd())then
set udg_rect05=udg_rect48
else
set udg_rect05=udg_rect51
endif
endif
endif
if(aDh())then
call ForGroupBJ(lo(1,lG(udg_rect05,Condition(function aDg))),function aDG)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(aDl())then
call ShowDestructableBJ(false,udg_destructable14)
if(aDi())then
set udg_unit01=udg_unit43
set udg_integer01=1
else
if(aDH())then
set udg_unit01=udg_unit42
set udg_integer01=2
else
set udg_unit01=udg_unit44
set udg_integer01=3
endif
endif
call SetUnitInvulnerable(udg_unit01,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer01
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h04Y',Player(10),GetUnitLoc(udg_unit01),GetRandomReal(0,360))
if(aDI())then
call UnitAddAbility(bj_lastCreatedUnit,'Apiv')
endif
if(aDj())then
call GroupAddUnit(udg_group13,bj_lastCreatedUnit)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
call Kh(.4)
if(aDn())then
call ShowDestructableBJ(false,udg_destructable22)
call Kh(.4)
call ShowDestructableBJ(false,udg_destructable21)
else
if(aDM())then
call ShowDestructableBJ(false,udg_destructable19)
call Kh(.4)
call ShowDestructableBJ(false,udg_destructable20)
else
if(aDm())then
call ShowDestructableBJ(false,udg_destructable18)
call Kh(.4)
call ShowDestructableBJ(false,udg_destructable16)
else
if(aDL())then
call ShowDestructableBJ(false,udg_destructable17)
call Kh(.4)
call ShowDestructableBJ(false,udg_destructable15)
endif
endif
endif
endif
endfunction
function aDo takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h04P')
endfunction
function aDO takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04O')
endfunction
function aDp takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aDP takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Y')
endfunction
function aDq takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aDQ takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B01Z')
endfunction
function aDr takes nothing returns nothing
if(aDQ())then
call ShowDestructableBJ(false,GetEnumDestructable())
endif
endfunction
function aDR takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit44)==false)
endfunction
function aDs takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit44))
endfunction
function aDS takes nothing returns nothing
call ForGroupBJ(lG(udg_rect137,Condition(function aDO)),function aDp)
call ForGroupBJ(lG(udg_rect44,Condition(function aDP)),function aDq)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Human\\HumanLargeDeathExplode\\HumanLargeDeathExplode.mdl")
if(aDR())then
call EnumDestructablesInRectAll(udg_rect45,function aDr)
endif
call ShowUnitHide(GetTriggerUnit())
call Kh(4.)
if(aDs())then
call ConditionalTriggerExecute(udg_trigger246)
else
call ConditionalTriggerExecute(udg_trigger247)
endif
endfunction
function aDt takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function aDT takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function aDu takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function aDU takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04Q')
endfunction
function aDv takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function aDV takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B01V')
endfunction
function aDw takes nothing returns nothing
if(aDV())then
call ShowDestructableBJ(true,GetEnumDestructable())
call AddSpecialEffectLocBJ(GetDestructableLoc(GetEnumDestructable()),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
endfunction
function aDW takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B01V')
endfunction
function aDx takes nothing returns nothing
if(aDW())then
call ShowDestructableBJ(true,GetEnumDestructable())
call AddSpecialEffectLocBJ(GetDestructableLoc(GetEnumDestructable()),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
endfunction
function aDX takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B01V')
endfunction
function aDy takes nothing returns nothing
if(aDX())then
call ShowDestructableBJ(true,GetEnumDestructable())
call AddSpecialEffectLocBJ(GetDestructableLoc(GetEnumDestructable()),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
endfunction
function aDY takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(aDu())then
set udg_rect05=udg_rect49
else
if(aDT())then
set udg_rect05=udg_rect50
else
if(aDt())then
set udg_rect05=udg_rect48
else
set udg_rect05=udg_rect51
endif
endif
endif
call CreateNUnitsAtLoc(1,'h04O',Player(10),GetRectCenter(udg_rect05),bj_UNIT_FACING)
call ForGroupBJ(lo(2,lG(udg_rect05,Condition(function aDU))),function aDv)
call EnumDestructablesInRectAll(udg_rect05,function aDw)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ShowDestructableBJ(true,udg_destructable14)
call Kh(.4)
call EnumDestructablesInRectAll(udg_rect45,function aDx)
call Kh(.4)
call EnumDestructablesInRectAll(udg_rect44,function aDy)
endfunction
function aDz takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h04N')
endfunction
function aDZ takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function aD0 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function aD1 takes nothing returns nothing
set udg_player03=GetOwningPlayer(GetEnumUnit())
call TriggerExecute(udg_trigger316)
endfunction
function aD2 takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function aD3 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h04O')
endfunction
function aD4 takes nothing returns nothing
if(aD3())then
call RemoveUnit(GetEnumUnit())
else
if(aD2())then
call KillUnit(GetEnumUnit())
endif
endif
endfunction
function aD5 takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B01U')
endfunction
function aD6 takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B01T')
endfunction
function aD7 takes nothing returns nothing
if(aD6())then
call CreateDestructableLoc('B01O',GetDestructableLoc(GetEnumDestructable()),GetRandomReal(0,360),1.8,0)
call TriggerRegisterDeathEvent(udg_trigger248,bj_lastCreatedDestructable)
call RemoveDestructable(GetEnumDestructable())
else
if(aD5())then
call CreateDestructableLoc('B021',GetDestructableLoc(GetEnumDestructable()),GetRandomReal(0,360),3.6,0)
call RemoveDestructable(GetEnumDestructable())
endif
endif
endfunction
function aD8 takes nothing returns nothing
set udg_integer02=45
call ForGroupBJ(lG(RectFromCenterSizeBJ(GetRectCenter(udg_rects01[udg_integer02]),(GetRectWidthBJ(udg_rects01[udg_integer02])+640.),(GetRectHeightBJ(udg_rects01[udg_integer02])+640.)),Condition(function aDz)),function aDZ)
set udg_integer48=20
call ForGroupBJ(lG(udg_rects01[udg_integer02],Condition(function aD0)),function aD1)
call SetBlightRadiusLocBJ(true,Player(10),GetRectCenter(udg_rect51),896.)
call SetBlightRadiusLocBJ(true,Player(10),GetRectCenter(udg_rect48),896.)
call ForGroupBJ(li(udg_rect137,Player(10)),function aD4)
call Kh(1.5)
set udg_integer02=45
set udg_integers03[udg_integer02]=19
call TriggerExecute(udg_trigger120)
call TriggerExecute(udg_trigger230)
call EnumDestructablesInRectAll(udg_rect137,function aD7)
call Kh(1.5)
call AddWeatherEffectSaveLast(udg_rect47,'FDwl')
call EnableWeatherEffect(bj_lastCreatedWeatherEffect,true)
endfunction
function aD9 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetDestructableLoc(GetDyingDestructable()),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ShowDestructableBJ(false,GetDyingDestructable())
endfunction
function aea takes nothing returns nothing
call ShowDestructableBJ(false,udg_destructable26)
call AddSpecialEffectLocBJ(Ko(GetRectCenter(udg_rect94),100.,180.),"Objects\\Spawnmodels\\NightElf\\NEDeathMedium\\NEDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call PlaySoundAtPointBJ(udg_sound142,'d',GetRandomLocInRect(udg_rect94),300.)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function aeA takes nothing returns nothing
call ShowDestructableBJ(false,udg_destructable25)
call AddSpecialEffectLocBJ(Ko(GetRectCenter(udg_rect94),70.,270.),"Objects\\Spawnmodels\\NightElf\\NEDeathMedium\\NEDeath.mdl")
call PlaySoundAtPointBJ(udg_sound142,'d',GetRandomLocInRect(udg_rect94),250.)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function aeb takes nothing returns nothing
call ShowDestructableBJ(false,udg_destructable27)
call AddSpecialEffectLocBJ(Ko(GetRectCenter(udg_rect94),70.,90.),"Objects\\Spawnmodels\\NightElf\\NEDeathMedium\\NEDeath.mdl")
call PlaySoundAtPointBJ(udg_sound142,'d',GetRandomLocInRect(udg_rect94),200.)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function aeB takes nothing returns nothing
call ShowDestructableBJ(false,udg_destructable24)
call AddSpecialEffectLocBJ(Ko(GetRectCenter(udg_rect94),30.,180.),"Objects\\Spawnmodels\\NightElf\\NEDeathMedium\\NEDeath.mdl")
call PlaySoundAtPointBJ(udg_sound142,'d',GetRandomLocInRect(udg_rect94),150.)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function aec takes nothing returns nothing
call RemoveDestructable(GetEnumDestructable())
endfunction
function aeC takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o01E')
endfunction
function aed takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851984,GetRandomLocInRect(udg_rect94))
endfunction
function aeD takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o01E')
endfunction
function aee takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851984,GetRandomLocInRect(udg_rect94))
endfunction
function aeE takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o01E')
endfunction
function aef takes nothing returns nothing
call ExplodeUnitBJ(GetEnumUnit())
endfunction
function aeF takes nothing returns nothing
call EnumDestructablesInRectAll(udg_rect95,function aec)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect94),"Objects\\Spawnmodels\\NightElf\\NEDeathMedium\\NEDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimation(udg_unit27,"death")
call SetUnitTimeScalePercent(udg_unit27,40.)
call PlaySoundAtPointBJ(udg_sound102,'d',GetRectCenter(udg_rect97),100.)
call PlaySoundAtPointBJ(udg_sound142,'d',GetRandomLocInRect(udg_rect94),.0)
call Kh(1.5)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect97),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call Kh(4.)
call PlaySoundAtPointBJ(udg_sound101,'d',GetRectCenter(udg_rect94),300.)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit27,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimation(udg_unit27,"spell")
call SetUnitTimeScalePercent(udg_unit27,140.)
call ForGroupBJ(lG(udg_rect95,Condition(function aeC)),function aed)
call Kh(1.5)
call SetUnitColor(udg_unit27,PLAYER_COLOR_BLUE)
call SetUnitVertexColorBJ(udg_unit27,50.,60.,90.,.0)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit27,"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimation(udg_unit27,"spell")
call SetUnitTimeScalePercent(udg_unit27,35.)
call ForGroupBJ(lG(udg_rect95,Condition(function aeD)),function aee)
call SetUnitPositionLocFacingBJ(udg_unit30,Ko(GetUnitLoc(udg_unit27),5.,0),180.)
call Kh(2.5)
call SetUnitColor(udg_unit27,PLAYER_COLOR_LIGHT_BLUE)
call SetUnitVertexColorBJ(udg_unit27,61.,69.,86.,0)
call Kh(.2)
call SetUnitPositionLocFacingBJ(udg_unit30,Ko(GetUnitLoc(udg_unit27),1.,0),180.)
call ShowUnitShow(udg_unit30)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit30,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit30,"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ForGroupBJ(lG(udg_rect95,Condition(function aeE)),function aef)
set udg_integer48=25
set udg_integer02=57
call TriggerExecute(udg_trigger313)
set udg_integer51=1
call EnableTrigger(udg_trigger254)
call EnableTrigger(udg_trigger255)
call EnableTrigger(udg_trigger257)
call EnableTrigger(udg_trigger258)
call SetUnitVertexColorBJ(udg_unit30,61.,69.,86.,0)
call SetUnitColor(udg_unit30,PLAYER_COLOR_LIGHT_BLUE)
call SetUnitOwner(udg_unit30,Player(10),false)
call RemoveUnit(udg_unit27)
call Kh(.5)
call PauseUnit(udg_unit30,false)
call SetUnitInvulnerable(udg_unit30,false)
call GroupAddUnit(udg_group13,udg_unit30)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function aeg takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o01C')and(GetUnitTypeId(GetSpellTargetUnit())=='h051')
endfunction
function aeG takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function aeh takes nothing returns boolean
return(GetRandomInt(1,4)==1)
endfunction
function aeH takes nothing returns nothing
call UnitRemoveAbility(GetEnumUnit(),'A014')
endfunction
function aei takes nothing returns boolean
return(udg_integer51==1)
endfunction
function aeI takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())>10.)
endfunction
function aej takes nothing returns nothing
set udg_unit01=GetTriggerUnit()
call SetWidgetLife(udg_unit01,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit01)-10.))
set udg_real01=((GetUnitLifePercent(udg_unit01)+3.)*.7)
call SetUnitScalePercent(udg_unit01,udg_real01,udg_real01,udg_real01)
set udg_unit01=GetSpellTargetUnit()
call SetWidgetLife(udg_unit01,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit01)+70.))
if(aeI())then
call SetUnitInvulnerable(udg_unit01,true)
call PauseUnit(udg_unit01,true)
call DestroyEffect(udg_effects10[1])
call SetUnitTimeScalePercent(udg_unit01,20.)
if(aeh())then
call SetUnitAnimation(udg_unit01,"spell")
else
if(aeG())then
call SetUnitAnimation(udg_unit01,"attack")
endif
endif
call SetUnitColor(udg_unit01,PLAYER_COLOR_BLUE)
call SetUnitVertexColorBJ(udg_unit30,50.,60.,90.,.0)
else
call SetUnitOwner(udg_unit01,Player(10),false)
call SetUnitInvulnerable(udg_unit01,false)
call PauseUnit(udg_unit01,false)
call SetUnitTimeScalePercent(udg_unit01,'d')
call SetUnitColor(udg_unit01,PLAYER_COLOR_LIGHT_BLUE)
call SetUnitVertexColorBJ(udg_unit30,61.,69.,86.,0)
call EnableTrigger(udg_trigger255)
call EnableTrigger(udg_trigger258)
call DisableTrigger(udg_trigger256)
call ExplodeUnitBJ(GetTriggerUnit())
call UnitRemoveType(udg_unit30,UNIT_TYPE_PEON)
call ForGroupBJ(li(udg_rect202,Player(11)),function aeH)
if(aei())then
set udg_integer51=2
set udg_integer48=26
set udg_integer02=57
call TriggerExecute(udg_trigger313)
endif
endif
endfunction
function aeJ takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o01C')
endfunction
function aek takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function aeK takes nothing returns boolean
return GetBooleanAnd(aeJ(),aek())
endfunction
function ael takes nothing returns nothing
endfunction
function aeL takes nothing returns nothing
set udg_unit04=GetEnumUnit()
set udg_location03=GetUnitLoc(GetEnumUnit())
call IssuePointOrderByIdLoc(udg_unit30,851986,udg_location03)
call RemoveLocation(udg_location03)
call UnitAddAbility(GetEnumUnit(),'A014')
call IssueImmediateOrderById(GetEnumUnit(),852064)
endfunction
function aem takes nothing returns boolean
return(CountUnitsInGroup(udg_group15)>0)
endfunction
function aeM takes nothing returns boolean
return(udg_integer51==1)
endfunction
function aen takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUnitColor(udg_unit30,PLAYER_COLOR_ORANGE)
call SetUnitVertexColorBJ(udg_unit30,49.,46.,43.,0)
set udg_group15=lG(udg_rect202,Condition(function aeK))
call SetUnitAnimation(udg_unit30,"spell")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit30,"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit30,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(aem())then
call EnableTrigger(udg_trigger256)
call SetUnitOwner(udg_unit30,Player(13),false)
call DisableTrigger(udg_trigger258)
call IssueImmediateOrderById(udg_unit30,851993)
call Kh(2.)
call ForGroupBJ(li(udg_rect202,Player(11)),function ael)
call ForGroupBJ(lo(1,li(udg_rect202,Player(11))),function aeL)
else
call DisableTrigger(udg_trigger256)
call EnableTrigger(udg_trigger263)
call EnableTrigger(udg_trigger264)
call IssueImmediateOrderById(udg_unit30,851972)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit30,"Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire1.mdl")
call AddSpecialEffectTargetUnitBJ("head",udg_unit30,"Environment\\UndeadBuildingFire\\UndeadSmallBuildingFire2.mdl")
endif
if(aeM())then
set udg_integer48=20
set udg_integer02=57
call TriggerExecute(udg_trigger313)
endif
endfunction
function aeN takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())!=Player(10))
endfunction
function aeo takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call AddSpecialEffectTargetUnitBJ("origin",udg_unit30,"Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl")
set udg_effects10[1]=bj_lastCreatedEffect
call SetUnitInvulnerable(udg_unit30,true)
endfunction
function aeO takes nothing returns boolean
return(GetUnitCurrentOrder(udg_unit30)!=851993)
endfunction
function aep takes nothing returns boolean
return(GetOwningPlayer(udg_unit30)==Player(10))
endfunction
function aeP takes nothing returns nothing
if(aep())then
if(aeO())then
call IssueImmediateOrderById(udg_unit30,851993)
endif
else
set udg_location03=GetUnitLoc(udg_unit04)
call IssuePointOrderByIdLoc(udg_unit30,851986,udg_location03)
call RemoveLocation(udg_location03)
endif
endfunction
function aeq takes nothing returns boolean
return(GetIssuedOrderId()==851993)and(IsUnitInGroup(GetTriggerUnit(),udg_group13))and(GetUnitTypeId(GetTriggerUnit())=='h051')
endfunction
function aeQ takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function aer takes nothing returns boolean
return(GetRandomInt(1,3)==1)
endfunction
function aeR takes nothing returns boolean
return(GetRandomInt(1,4)==1)
endfunction
function aes takes nothing returns boolean
return(udg_unit01!=null)
endfunction
function aeS takes nothing returns nothing
call Kh(.5)
set udg_unit01=null
set udg_unit01=GroupPickRandomUnit(lG(udg_rect202,Condition(function aeQ)))
if(aes())then
if(aeR())then
call IssueTargetOrderById(GetTriggerUnit(),852075,udg_unit01)
else
if(aer())then
call IssueTargetOrderById(GetTriggerUnit(),852189,udg_unit01)
else
call IssueImmediateOrderById(GetTriggerUnit(),852164)
endif
endif
endif
endfunction
function aet takes nothing returns boolean
return(GetSpellAbilityId()=='A050')and(GetUnitTypeId(GetTriggerUnit())=='h051')
endfunction
function aeT takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location03=GetUnitLoc(GetSpellTargetUnit())
set udg_location05=Ko(udg_location03,GetRandomReal(.0,380.),GetRandomReal(0,360))
set udg_location04=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'o01F',GetOwningPlayer(GetTriggerUnit()),udg_location04,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function aeu takes nothing returns boolean
return(GetSpellAbilityId()=='A03Y')and(GetUnitTypeId(GetTriggerUnit())=='h051')
endfunction
function aeU takes nothing returns nothing
set udg_unit01=GetSpellTargetUnit()
set udg_location03=GetUnitLoc(udg_unit01)
set udg_location04=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location05=Ko(udg_location03,GetRandomReal(.0,480.),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'o01K',GetOwningPlayer(GetTriggerUnit()),udg_location04,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852658,udg_location05)
call RemoveLocation(udg_location05)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location04)
endfunction
function aev takes nothing returns boolean
return(GetSpellAbilityId()=='A048')and(GetUnitTypeId(GetTriggerUnit())=='h051')
endfunction
function aeV takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,GetRandomReal(300.,500.),GetUnitFacing(GetTriggerUnit()))
set udg_location04=Ko(udg_location05,GetRandomReal(.0,300.),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'o01G',GetOwningPlayer(GetTriggerUnit()),udg_location03,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852658,udg_location04)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
call PauseUnit(GetTriggerUnit(),true)
call Kh(.2)
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,GetRandomReal(300.,500.),GetUnitFacing(GetTriggerUnit()))
set udg_location04=Ko(udg_location05,GetRandomReal(.0,300.),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'o01G',GetOwningPlayer(GetTriggerUnit()),udg_location03,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852658,udg_location04)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
call Kh(.2)
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,GetRandomReal(300.,500.),GetUnitFacing(GetTriggerUnit()))
set udg_location04=Ko(udg_location05,GetRandomReal(.0,300.),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'o01G',GetOwningPlayer(GetTriggerUnit()),udg_location03,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852658,udg_location04)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
call Kh(.2)
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,GetRandomReal(300.,500.),GetUnitFacing(GetTriggerUnit()))
set udg_location04=Ko(udg_location05,GetRandomReal(.0,300.),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'o01G',GetOwningPlayer(GetTriggerUnit()),udg_location03,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852658,udg_location04)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
call RemoveLocation(udg_location04)
call PauseUnit(GetTriggerUnit(),false)
endfunction
function aew takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o01H')and(GetOwningPlayer(GetKillingUnit())!=Player(0))and(GetOwningPlayer(GetKillingUnit())!=Player(1))and(GetOwningPlayer(GetKillingUnit())!=Player(2))and(GetOwningPlayer(GetKillingUnit())!=Player(3))and(GetOwningPlayer(GetKillingUnit())!=Player(4))and(GetOwningPlayer(GetKillingUnit())!=Player(5))
endfunction
function aeW takes nothing returns nothing
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'o01I',GetOwningPlayer(GetTriggerUnit()),udg_location03,GetRandomReal(0,360))
set udg_location05=GetUnitLoc(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function aex takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer48=20
set udg_integer02=57
call TriggerExecute(udg_trigger313)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit30,"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit30,"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
call DisableTrigger(udg_trigger257)
call DisableTrigger(udg_trigger258)
call SetUnitOwner(udg_unit30,Player(13),false)
call IssueImmediateOrderById(udg_unit30,851993)
call SetUnitAnimation(udg_unit30,"spell")
call SetUnitVertexColorBJ(udg_unit30,55.,40.,30.,0)
call Kh(1.2)
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRandomLocInRect(udg_rect96))
call Kh(3.)
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRandomLocInRect(udg_rect96))
call Kh(4.)
call IssuePointOrderByIdLoc(GetTriggerUnit(),851986,GetRandomLocInRect(udg_rect96))
endfunction
function aeX takes nothing returns boolean
return(GetDestructableTypeId(GetEnumDestructable())=='B024')
endfunction
function aey takes nothing returns nothing
if(aeX())then
call ShowDestructableBJ(false,GetEnumDestructable())
call AddSpecialEffectLocBJ(GetDestructableLoc(GetEnumDestructable()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call RemoveDestructable(GetEnumDestructable())
endif
endfunction
function aeY takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call AddSpecialEffectTargetUnitBJ("origin",udg_unit30,"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DisableTrigger(udg_trigger257)
call DisableTrigger(udg_trigger258)
call SetUnitOwner(udg_unit30,Player(13),false)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitInvulnerable(udg_unit30,true)
call SetUnitAnimation(udg_unit30,"spell")
call SetUnitTimeScalePercent(GetTriggerUnit(),30.)
call PlaySoundAtPointBJ(udg_sound101,'d',GetUnitLoc(GetTriggerUnit()),300.)
call SetUnitVertexColorBJ(GetTriggerUnit(),55.,35.,20.,10.)
call Kh(1.5)
call SetUnitVertexColorBJ(GetTriggerUnit(),100.,30.,.0,30.)
call CreateNUnitsAtLoc(1,'o01Q',Player(11),GetUnitLoc(GetTriggerUnit()),GetRandomReal(0,360))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,12.)
call Kh(1.8)
call CreateNUnitsAtLoc(1,'o01Q',Player(11),GetUnitLoc(GetTriggerUnit()),GetRandomReal(0,360))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,25.)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit30,"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call Kh(.6)
call SetUnitVertexColorBJ(GetTriggerUnit(),90.,30.,.0,100.)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
set udg_location03=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location05=Ko(udg_location03,GetRandomReal(1200.,1600.),((I2R(bj_forLoopAIndex)*(360./15.))+GetRandomReal(-8.,8.)))
call CreateNUnitsAtLocFacingLocBJ(1,'o01R',Player(7),udg_location03,udg_location05)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location05)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call Kh(1.)
call RemoveUnit(GetTriggerUnit())
call EnumDestructablesInRectAll(udg_rect202,function aey)
call AddWeatherEffectSaveLast(udg_rect98,'FDwl')
call EnableWeatherEffect(bj_lastCreatedWeatherEffect,true)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,udg_rect202)
set udg_fogmodifiers01[1]=bj_lastCreatedFogModifier
call Kh(1.2)
call FogModifierStop(udg_fogmodifiers01[1])
call DestroyFogModifier(udg_fogmodifiers01[1])
call EnableTrigger(udg_trigger272)
endfunction
function aez takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aeZ takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,GetRectCenter(udg_rect226))
endfunction
function ae0 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(li(udg_rect181,Player(7)),function aeZ)
endfunction
function ae1 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h004')
endfunction
function ae2 takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect227))
call IssueImmediateOrderById(GetTriggerUnit(),851993)
endfunction
function ae3 takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger()))
endfunction
function ae4 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call Kh(34.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"|cccc1c1c1- Incoming transmission from HQ:",1,20.,false)
call Kh(1.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound168,"|cccc1c1c1We have just recieved news that Samus' mission was a success - not only has the pirates' base been destroyed, but the entire planet of Zebes along with it! With any luck, Samus will be able to drop by and help you on your mission.",1,30.,false)
endfunction
function ae5 takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger()))
endfunction
function ae6 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call Kh(68.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"|cccc1c1c1- Incoming transmission from HQ:",1,20.,false)
call Kh(1.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound168,"|cccc1c1c1Samus Aran has just entered Aurora II through an unknown location. Her ship is still idle outside the station... Continue on your mission, we will report any further findings.",1,30.,false)
endfunction
function ae7 takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger()))
endfunction
function ae8 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call Kh(1.)
call KillDestructable(udg_destructable08)
call KillDestructable(udg_destructable09)
call RemoveUnit(udg_unit41)
call ShowUnitShow(udg_unit40)
call SetUnitPositionLoc(udg_unit40,GetRectCenter(udg_rect91))
call Kh(3.)
call EnableTrigger(udg_trigger270)
call Kh(1.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"|cccc1c1c1- Incoming transmission from HQ:",1,20.,false)
call Kh(1.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound168,"|cccc1c1c1Good work, all the pirates have been killed. You have one final objective - |cccffffffmake your way to the restricted area. The entrance will be displayed on your map.",1,30.,false)
endfunction
function ae9 takes nothing returns boolean
return(IsTriggerEnabled(GetTriggeringTrigger()))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_FLYING)==false)and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)
endfunction
function aEa takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function aEA takes nothing returns nothing
set udg_player03=GetOwningPlayer(GetEnumUnit())
call TriggerExecute(udg_trigger316)
endfunction
function aEb takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestructableRestoreLife(udg_destructable08,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call DestructableRestoreLife(udg_destructable09,GetDestructableMaxLife(bj_lastCreatedDestructable),true)
call PlaySoundAtPointBJ(udg_sound133,'d',GetDestructableLoc(udg_destructable08),100.)
call Kh(1.)
call PlaySoundAtPointBJ(udg_sound182,'d',GetDestructableLoc(udg_destructable11),100.)
call KillDestructable(udg_destructable11)
call Kh(1.)
call PlaySoundAtPointBJ(udg_sound183,'d',GetDestructableLoc(udg_destructable12),100.)
call KillDestructable(udg_destructable12)
call Kh(1.)
call PlaySoundAtPointBJ(udg_sound184,'d',GetDestructableLoc(udg_destructable13),100.)
call KillDestructable(udg_destructable13)
set udg_integer48=20
call ForGroupBJ(lG(udg_rect195,Condition(function aEa)),function aEA)
call Kh(1.)
call PlaySoundAtPointBJ(udg_sound185,'d',GetDestructableLoc(udg_destructable10),100.)
call KillDestructable(udg_destructable10)
call ConditionalTriggerExecute(udg_trigger271)
endfunction
function aEB takes nothing returns nothing
call ShowDestructableBJ(false,GetEnumDestructable())
call CreateDestructableLoc('B005',GetDestructableLoc(GetEnumDestructable()),.0,(udg_real17+.3),0)
endfunction
function aEc takes nothing returns nothing
call ShowDestructableBJ(false,GetEnumDestructable())
call CreateDestructableLoc('B002',GetDestructableLoc(GetEnumDestructable()),.0,(udg_real17+.3),0)
endfunction
function aEC takes nothing returns nothing
call ShowDestructableBJ(false,GetEnumDestructable())
call CreateDestructableLoc('B002',GetDestructableLoc(GetEnumDestructable()),.0,(udg_real17+.3),0)
endfunction
function aEd takes nothing returns nothing
call ShowUnitShow(udg_unit27)
call SetUnitInvulnerable(udg_unit20,false)
call SetUnitAnimation(udg_unit27,"stand")
call SetUnitTimeScalePercent(udg_unit27,.0)
call EnumDestructablesInRectAll(udg_rect120,function aEB)
call EnumDestructablesInRectAll(udg_rect121,function aEc)
call EnumDestructablesInRectAll(udg_rect122,function aEC)
endfunction
function aED takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aEe takes nothing returns nothing
call AddSpecialEffectLocBJ(GetDestructableLoc(GetEnumDestructable()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call RemoveDestructable(GetEnumDestructable())
endfunction
function aEE takes nothing returns nothing
set udg_boolean06=true
call DisableTrigger(GetTriggeringTrigger())
call Kh(2.)
call TriggerExecute(udg_trigger273)
set udg_location04=GetRandomLocInRect(udg_rect222)
call PlaySoundAtPointBJ(udg_sound186,'d',udg_location04,100.)
call RemoveLocation(udg_location04)
call Kh(.3)
call TriggerExecute(udg_trigger273)
set udg_location04=GetRandomLocInRect(udg_rect222)
call PlaySoundAtPointBJ(udg_sound187,'d',udg_location04,100.)
call RemoveLocation(udg_location04)
call Kh(1.)
call TriggerExecute(udg_trigger273)
set udg_location04=GetRandomLocInRect(udg_rect222)
call StopSoundBJ(udg_sound186,false)
call PlaySoundAtPointBJ(udg_sound186,'d',udg_location04,100.)
call RemoveLocation(udg_location04)
call Kh(.2)
call TriggerExecute(udg_trigger273)
set udg_location04=GetRandomLocInRect(udg_rect222)
call StopSoundBJ(udg_sound187,false)
call PlaySoundAtPointBJ(udg_sound187,'d',udg_location04,100.)
call RemoveLocation(udg_location04)
call Kh(.4)
call TriggerExecute(udg_trigger273)
set udg_location04=GetRandomLocInRect(udg_rect222)
call StopSoundBJ(udg_sound186,false)
call PlaySoundAtPointBJ(udg_sound186,'d',udg_location04,100.)
call RemoveLocation(udg_location04)
call Kh(.2)
call EnumDestructablesInRectAll(udg_rect223,function aEe)
call ShowUnitShow(udg_unit31)
call SetUnitInvulnerable(udg_unit31,true)
call EnableTrigger(udg_trigger274)
call Kh(2.)
set udg_integer52=0
set udg_integer48=27
set udg_integer02=59
call TriggerExecute(udg_trigger313)
set udg_integer02=18
call TriggerExecute(udg_trigger313)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function aEf takes nothing returns nothing
set udg_location03=GetRandomLocInRect(udg_rect216)
set udg_location05=GetRandomLocInRect(udg_rect215)
call CreateNUnitsAtLocFacingLocBJ(1,'o01L',Player(7),udg_location03,udg_location05)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location05)
call CreateNUnitsAtLocFacingLocBJ(1,'o01M',Player(7),udg_location03,udg_location05)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851984,udg_location05)
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
endfunction
function aEF takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aEg takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssuePointOrderByIdLoc(udg_unit31,851986,GetRectCenter(udg_rect221))
call EnableTrigger(udg_trigger275)
endfunction
function aEG takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aEh takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssuePointOrderByIdLoc(udg_unit31,851986,GetRectCenter(udg_rect210))
call EnableTrigger(udg_trigger276)
endfunction
function aEH takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aEi takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssuePointOrderByIdLoc(udg_unit31,851986,GetRectCenter(udg_rect211))
call EnableTrigger(udg_trigger277)
endfunction
function aEI takes nothing returns boolean
return(GetTriggerUnit()==udg_unit31)
endfunction
function aEj takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrderById(GetTriggerUnit(),852180)
call Kh(3.)
call EnableTrigger(udg_trigger278)
endfunction
function aEJ takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aEk takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssuePointOrderByIdLoc(udg_unit31,851986,GetRectCenter(udg_rect208))
call EnableTrigger(udg_trigger279)
endfunction
function aEK takes nothing returns boolean
return(GetTriggerUnit()==udg_unit31)
endfunction
function aEl takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrderById(GetTriggerUnit(),852180)
call Kh(3.5)
call IssueImmediateOrderById(GetTriggerUnit(),852180)
call EnableTrigger(udg_trigger280)
endfunction
function aEL takes nothing returns boolean
return(GetTriggerUnit()==udg_unit31)
endfunction
function aEm takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPositionLocFacingBJ(GetTriggerUnit(),GetRectCenter(udg_rect206),210.)
call SetUnitFlyHeight(GetTriggerUnit(),.0,600.)
call Kh(3.5)
call EnableTrigger(udg_trigger281)
call SetUnitAnimation(GetTriggerUnit(),"morph alternate fourth")
endfunction
function aEM takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aEn takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssuePointOrderByIdLoc(udg_unit31,851986,GetRectCenter(udg_rect209))
call EnableTrigger(udg_trigger282)
endfunction
function aEN takes nothing returns boolean
return(GetTriggerUnit()==udg_unit31)
endfunction
function aEo takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrderById(GetTriggerUnit(),852180)
set udg_integer48=28
set udg_integer02=18
call TriggerExecute(udg_trigger313)
call EnableTrigger(udg_trigger286)
endfunction
function aEO takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h004')
endfunction
function aEp takes nothing returns nothing
call Kh(1.)
call SetUnitTimeScalePercent(GetTriggerUnit(),.0)
call PauseUnit(GetTriggerUnit(),true)
call Kh(.8)
call SetUnitInvulnerable(GetTriggerUnit(),true)
endfunction
function aEP takes nothing returns boolean
return(GetSpellAbilityId()=='A04X')and(IsUnitInGroup(GetTriggerUnit(),udg_group01)==false)
endfunction
function aEq takes nothing returns boolean
return(udg_integer52==3)
endfunction
function aEQ takes nothing returns boolean
return(udg_integer52==2)
endfunction
function aEr takes nothing returns boolean
return(udg_integer52==1)
endfunction
function aER takes nothing returns boolean
return(udg_integer52==0)
endfunction
function aEs takes nothing returns nothing
call om(GetTriggerUnit(),80.)
call SetUnitFlyHeight(GetTriggerUnit(),80.,120.)
call GroupAddUnit(udg_group01,GetTriggerUnit())
if(aER())then
call IssuePointOrderByIdLoc(udg_unit31,851986,GetRectCenter(udg_rect211))
else
if(aEr())then
call IssuePointOrderByIdLoc(udg_unit31,851986,GetRectCenter(udg_rect212))
else
if(aEQ())then
call IssuePointOrderByIdLoc(udg_unit31,851986,GetRectCenter(udg_rect213))
call SetUnitFlyHeight(GetTriggerUnit(),700.,500.)
call GroupRemoveUnit(udg_group01,GetTriggerUnit())
else
if(aEq())then
call IssuePointOrderByIdLoc(udg_unit31,851986,GetRectCenter(udg_rect214))
endif
endif
endif
endif
set udg_integer52=(udg_integer52+1)
endfunction
function aES takes nothing returns boolean
return(GetSpellAbilityId()=='A04X')and(IsUnitInGroup(GetTriggerUnit(),udg_group01))
endfunction
function aEt takes nothing returns nothing
call GroupRemoveUnit(udg_group01,GetTriggerUnit())
set udg_unit01=GetTriggerUnit()
call SetUnitAnimationByIndex(udg_unit01,13)
call SetUnitAnimation(GetTriggerUnit(),"morph alternate fourth")
call PlaySoundOnUnitBJ(udg_sound149,90.,GetTriggerUnit())
call Kh(.01)
set udg_unit01=GetTriggerUnit()
call SetUnitAnimationByIndex(udg_unit01,0)
call QueueUnitAnimation(udg_unit01,"stand")
endfunction
function aET takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aEu takes nothing returns nothing
set udg_player03=GetEnumPlayer()
call TriggerExecute(udg_trigger316)
endfunction
function aEU takes nothing returns nothing
call CameraSetupApplyForPlayer(true,udg_camerasetup24,GetEnumPlayer(),.0)
call CameraSetupApplyForPlayer(true,udg_camerasetup25,GetEnumPlayer(),9.5)
endfunction
function aEv takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect227))
call IssueImmediateOrderById(GetEnumUnit(),851993)
endfunction
function aEV takes nothing returns nothing
set udg_player03=GetEnumPlayer()
call TriggerExecute(udg_trigger316)
endfunction
function aEw takes nothing returns boolean
return(RectContainsUnit(udg_rect196,GetEnumUnit()))
endfunction
function aEW takes nothing returns nothing
if(aEw())then
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,Ko(Ko(GetUnitLoc(GetEnumUnit()),GetRandomReal(-50.,200.),GetRandomReal(0,360)),256,0))
else
call IssueImmediateOrderById(GetEnumUnit(),851972)
call SetUnitInvulnerable(GetEnumUnit(),true)
call PauseUnit(GetEnumUnit(),true)
endif
endfunction
function aEx takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h004')
endfunction
function aEX takes nothing returns nothing
call IssueTargetOrderById(GetEnumUnit(),851983,udg_unit31)
endfunction
function aEy takes nothing returns boolean
return(RectContainsUnit(udg_rect196,GetEnumUnit()))
endfunction
function aEY takes nothing returns nothing
if(aEy())then
call IssuePointOrderByIdLoc(GetEnumUnit(),851983,GetRandomLocInRect(udg_rect224))
endif
endfunction
function aEz takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h004')
endfunction
function aEZ takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(10),false)
endfunction
function aE0 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h004')
endfunction
function aE1 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,Ko(GetUnitLoc(udg_unit31),220.,70.))
endfunction
function aE2 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h004')
endfunction
function aE3 takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),851986,Ko(GetUnitLoc(udg_unit31),250.,30.))
endfunction
function aE4 takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_MASKED,bj_mapInitialPlayableArea)
endfunction
function aE5 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
call ShowUnitHide(GetEnumUnit())
endfunction
function aE6 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PauseTimerBJ(true,udg_timer01)
call SetUserControlForceOff(bj_FORCE_ALL_PLAYERS)
call DisableTrigger(udg_trigger195)
call DisableTrigger(udg_trigger196)
call DisableTrigger(udg_trigger319)
call EnableTrigger(udg_trigger283)
call CinematicFadeBJ(1,3.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,40.)
set udg_integer48=20
call ForForce(udg_force05,function aEu)
call Kh(2.)
call CreateFogModifierRectBJ(true,Player(14),FOG_OF_WAR_VISIBLE,udg_rect225)
set udg_fogmodifiers01[1]=bj_lastCreatedFogModifier
call CinematicFadeBJ(0,2.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,60.)
call ForForce(bj_FORCE_ALL_PLAYERS,function aEU)
call ForGroupBJ(li(udg_rect181,Player(7)),function aEv)
call SetUnitPositionLoc(GroupPickRandomUnit(li(udg_rect227,Player(7))),GetRectCenter(udg_rect224))
call SetUnitPositionLoc(GroupPickRandomUnit(li(udg_rect227,Player(7))),Ko(GetRectCenter(udg_rect224),250.,115.))
call SetUnitPositionLoc(GroupPickRandomUnit(li(udg_rect227,Player(7))),Ko(GetRectCenter(udg_rect224),350.,220.))
call Kh(.7)
set udg_integer48=20
call ForForce(udg_force05,function aEV)
call PlaySoundBJ(udg_sound57)
call SetUnitFacingTimed(udg_unit31,20.,.2)
call SetUnitInvulnerable(udg_unit31,false)
call ForGroupBJ(udg_group11,function aEW)
call Kh(.1)
set udg_unit01=udg_unit31
call SetUnitAnimationByIndex(udg_unit01,4)
call ForGroupBJ(lo(1,lG(udg_rect225,Condition(function aEx))),function aEX)
call Kh(1.6)
call ForGroupBJ(udg_group11,function aEY)
call ForGroupBJ(lG(udg_rect225,Condition(function aEz)),function aEZ)
call Kh(1.5)
call ForGroupBJ(lo(1,lG(udg_rect225,Condition(function aE0))),function aE1)
call Kh(2.5)
call ForGroupBJ(lo(1,lG(udg_rect224,Condition(function aE2))),function aE3)
call CinematicFadeBJ(1,6.,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,.0)
call Kh(4.)
call FogModifierStop(udg_fogmodifiers01[1])
call DestroyFogModifier(udg_fogmodifiers01[1])
call Kh(1.)
call StopSoundBJ(udg_sound57,true)
call PlaySoundBJ(udg_sound58)
call DisableTrigger(udg_trigger207)
call DisableTrigger(udg_trigger315)
call DisableTrigger(udg_trigger308)
call DisableTrigger(udg_trigger318)
call Kh(2.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"Samus Aran has been captured by the Pirates. She is being held captive on a ship heading towards the former location of planet Zebes...",0,12.,false)
call Kh(11.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"...It has been confirmed that Zebes was not completely destroyed; a Pirate base launched from the surface just before the planet's explosion. That is where they are headed.",0,12.,false)
call Kh(11.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"Further analysis of the base indicates something most startling - there are metroids.",0,12.,false)
call Kh(9.5)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"|cccc1c1c1To be continued?",0,12.,false)
call FogMaskEnableOn()
call ForForce(bj_FORCE_ALL_PLAYERS,function aE4)
call ForGroupBJ(lH(bj_mapInitialPlayableArea),function aE5)
call SetUserControlForceOn(bj_FORCE_ALL_PLAYERS)
endfunction
function aE7 takes nothing returns boolean
return(GetItemType(GetManipulatedItem())==ITEM_TYPE_PERMANENT)
endfunction
function aE8 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00W')
endfunction
function aE9 takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==GetItemUserData(GetManipulatedItem()))
endfunction
function afa takes nothing returns boolean
return GetBooleanAnd(aE8(),aE9())
endfunction
function afA takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B01G')
endfunction
function afb takes nothing returns boolean
return(udg_booleans31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)and(IsItemOwned(GetManipulatedItem())==false)
endfunction
function afB takes nothing returns nothing
set udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
call SetUnitMoveSpeed(GetTriggerUnit(),GetUnitDefaultMoveSpeed(GetTriggerUnit()))
call Kh(.01)
if(afb())then
call SetItemPositionLoc(GetManipulatedItem(),GetUnitLoc(GroupPickRandomUnit(ll(Player(9),Condition(function afa)))))
call ShowDestructableBJ(true,RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetItemLoc(GetManipulatedItem()),100.,100.),Condition(function afA)))
endif
endfunction
function afc takes nothing returns boolean
return(GetItemType(GetManipulatedItem())==ITEM_TYPE_PERMANENT)
endfunction
function afC takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!=udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]])
endfunction
function afd takes nothing returns boolean
return(KN(udg_units03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetItemTypeId(GetManipulatedItem())))
endfunction
function afD takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I007')
endfunction
function afe takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I006')
endfunction
function afE takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I008')
endfunction
function aff takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I009')
endfunction
function afF takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00A')
endfunction
function afg takes nothing returns boolean
return(GetItemLevel(GetManipulatedItem())==1)
endfunction
function afG takes nothing returns boolean
return(KN(udg_units04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetItemTypeId(GetManipulatedItem())))
endfunction
function afh takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00D')
endfunction
function afH takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00C')
endfunction
function afi takes nothing returns boolean
return(GetItemLevel(GetManipulatedItem())==2)
endfunction
function afI takes nothing returns boolean
return(KN(udg_units05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetItemTypeId(GetManipulatedItem())))
endfunction
function afj takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00O')
endfunction
function afJ takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00Q')
endfunction
function afk takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00B')
endfunction
function afK takes nothing returns boolean
return(GetItemLevel(GetManipulatedItem())==3)
endfunction
function afl takes nothing returns boolean
return(GetItemTypeId(Kn(udg_units06[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetItemTypeId(GetManipulatedItem())))==GetItemTypeId(GetManipulatedItem()))
endfunction
function afL takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I012')
endfunction
function afm takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00P')
endfunction
function afM takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00X')
endfunction
function afn takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00N')
endfunction
function afN takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00M')
endfunction
function afo takes nothing returns boolean
return(GetItemLevel(GetManipulatedItem())==4)
endfunction
function afO takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00A')
endfunction
function afp takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I009')
endfunction
function afP takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I008')
endfunction
function afq takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I006')
endfunction
function afQ takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I007')
endfunction
function afr takes nothing returns boolean
return(GetItemLevel(GetManipulatedItem())==1)
endfunction
function afR takes nothing returns boolean
return(CountUnitsInGroup(lm(GetOwningPlayer(GetTriggerUnit()),'o00H'))>0)
endfunction
function afs takes nothing returns boolean
return(GetPlayerTechCountSimple('R007',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function afS takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00C')
endfunction
function aft takes nothing returns boolean
return(GetPlayerTechCountSimple('R006',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function afT takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00D')
endfunction
function afu takes nothing returns boolean
return(GetItemLevel(GetManipulatedItem())==2)
endfunction
function afU takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00B')
endfunction
function afv takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00Q')
endfunction
function afV takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00O')
endfunction
function afw takes nothing returns boolean
return(GetItemLevel(GetManipulatedItem())==3)
endfunction
function afW takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00M')
endfunction
function afx takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00N')
endfunction
function afX takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00X')
endfunction
function afy takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00P')
endfunction
function afY takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I012')
endfunction
function afz takes nothing returns boolean
return(GetItemLevel(GetManipulatedItem())==4)
endfunction
function afZ takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED)<=0)
endfunction
function af0 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED)>0)
endfunction
function af1 takes nothing returns nothing
call SetUnitMoveSpeed(GetTriggerUnit(),GetUnitDefaultMoveSpeed(GetTriggerUnit()))
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
if(afC())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound168,"|cccffcc00Item can only be equipped when standing.|r",1,2.,false)
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call SetItemCharges(GetManipulatedItem(),1)
call UnitRemoveItemFromSlotSwapped(5,GetTriggerUnit())
return
endif
if(afg())then
if(afd())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound168,"|cccffcc00Cannot equip duplicate item.|r",1,5.,false)
call SetItemCharges(GetManipulatedItem(),1)
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call UnitRemoveItemFromSlotSwapped(5,GetTriggerUnit())
return
endif
call PauseUnit(GetTriggerUnit(),true)
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(GetUnitLoc(GetTriggerUnit()),GetRandomReal(-150.,-200.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-80.,-20.)))
set udg_booleans31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call SetUnitAnimation(GetTriggerUnit(),"stand ready")
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Human\\StormBolt\\StormBoltMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call DestroyEffect(udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl")
set udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
if(afF())then
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\NightElf\\Barkskin\\BarkSkinTarget.mdl")
else
if(aff())then
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
else
if(afE())then
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
else
if(afe())then
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Other\\HowlOfTerror\\HowlTarget.mdl")
else
if(afD())then
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl")
endif
endif
endif
endif
endif
set udg_effects07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call UnitAddItem(udg_units03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetManipulatedItem())
call SetItemDroppable(GetManipulatedItem(),false)
endif
if(afi())then
if(afG())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound168,"|cccffcc00Cannot equip duplicate item.|r",1,5.,false)
call SetItemCharges(GetManipulatedItem(),1)
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call UnitRemoveItemFromSlotSwapped(5,GetTriggerUnit())
return
endif
call PauseUnit(GetTriggerUnit(),true)
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(GetUnitLoc(GetTriggerUnit()),GetRandomReal(-150.,-200.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-30.,30.)))
set udg_booleans31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call SetUnitAnimation(GetTriggerUnit(),"birth")
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Orc\\Reincarnation\\ReincarnationTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Other\\Levelup\\LevelupCaster.mdl")
set udg_effects07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call DestroyEffect(udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
if(afH())then
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
else
if(afh())then
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
endif
endif
set udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call UnitAddItem(udg_units04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetManipulatedItem())
call SetItemDroppable(GetManipulatedItem(),false)
endif
if(afK())then
if(afI())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound168,"|cccffcc00Cannot equip duplicate item.|r",1,5.,false)
call SetItemCharges(GetManipulatedItem(),1)
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call UnitRemoveItemFromSlotSwapped(5,GetTriggerUnit())
return
endif
call PauseUnit(GetTriggerUnit(),true)
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(GetUnitLoc(GetTriggerUnit()),GetRandomReal(-150.,-200.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(20.,80.)))
set udg_booleans31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call SetUnitAnimationWithRarity(GetTriggerUnit(),"stand",RARITY_FREQUENT)
call AddSpecialEffectTargetUnitBJ("foot, right",GetTriggerUnit(),"Abilities\\Weapons\\VengeanceMissile\\VengeanceMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectTargetUnitBJ("foot, left",GetTriggerUnit(),"Abilities\\Weapons\\VengeanceMissile\\VengeanceMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Orc\\Voodoo\\VoodooAuraTarget.mdl")
set udg_effects07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call DestroyEffect(udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
if(afk())then
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Items\\AIam\\AIamTarget.mdl")
else
if(afJ())then
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
else
if(afj())then
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Orc\\LightningShield\\LightningShieldTarget.mdl")
endif
endif
endif
set udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call UnitAddItem(udg_units05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetManipulatedItem())
call SetItemDroppable(GetManipulatedItem(),false)
endif
if(afo())then
if(afl())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound168,"|cccffcc00Cannot equip duplicate item.|r",1,5.,false)
call SetItemCharges(GetManipulatedItem(),1)
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call UnitRemoveItemFromSlotSwapped(5,GetTriggerUnit())
return
endif
call PauseUnit(GetTriggerUnit(),true)
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=Ko(GetUnitLoc(GetTriggerUnit()),GetRandomReal(-150.,-200.),(GetUnitFacing(GetTriggerUnit())+GetRandomReal(-90.,90.)))
set udg_booleans31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call SetUnitAnimation(GetTriggerUnit(),"morph fourth")
call QueueUnitAnimation(GetTriggerUnit(),"stand alternate fourth")
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call DestroyEffect(udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
if(afN())then
call AddSpecialEffectTargetUnitBJ("head",GetTriggerUnit(),"Abilities\\Spells\\Items\\StaffOfSanctuary\\Staff_Sanctuary_Target.mdl")
else
if(afn())then
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl")
else
if(afM())then
call AddSpecialEffectTargetUnitBJ("head",GetTriggerUnit(),"Abilities\\Spells\\Other\\GeneralAuraTarget\\GeneralAuraTarget.mdl")
else
if(afm())then
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
else
if(afL())then
call AddSpecialEffectTargetUnitBJ("overhead",GetTriggerUnit(),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCasterOverhead.mdl")
endif
endif
endif
endif
endif
set udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("head",GetTriggerUnit(),"Abilities\\Spells\\Undead\\AntiMagicShell\\AntiMagicShell.mdl")
set udg_effects07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call UnitAddItem(udg_units06[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],GetManipulatedItem())
call SetItemDroppable(GetManipulatedItem(),false)
endif
call SetUnitInvulnerable(GetTriggerUnit(),true)
set udg_booleans30[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_booleans32[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_unit01=GetTriggerUnit()
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer48=0
call TriggerExecute(udg_trigger316)
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_integer01
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),2.5)
call QI(GetOwningPlayer(GetTriggerUnit()),6.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",.0,.0,.0,.0,0,20.,20.,100.)
call Kh(1.7)
if(afr())then
if(afO())then
call SetPlayerTechResearchedSwap('R005',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3880",1,15.,false)
endif
if(afp())then
call SetPlayerTechResearchedSwap('R001',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3881",1,15.,false)
endif
if(afP())then
call SetPlayerTechResearchedSwap('R002',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3882",1,15.,false)
endif
if(afq())then
call SetPlayerTechResearchedSwap('R003',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3883",1,15.,false)
endif
if(afQ())then
call SetPlayerTechResearchedSwap('R000',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3884",1,15.,false)
endif
endif
if(afu())then
if(afS())then
call SetPlayerTechResearchedSwap('R006',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3886",1,15.,false)
if(afR())then
call KW(GroupPickRandomUnit(lm(GetOwningPlayer(GetTriggerUnit()),'o00H')),'o00I',1)
call IssueTargetOrderById(bj_lastReplacedUnit,851986,GetTriggerUnit())
endif
if(afs())then
call RemoveItem(Kn(GetTriggerUnit(),'I00H'))
call UnitAddItemByIdSwapped('I00E',GetTriggerUnit())
set udg_integers66[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=3
else
call RemoveItem(Kn(GetTriggerUnit(),'I00F'))
call UnitAddItemByIdSwapped('I00G',GetTriggerUnit())
set udg_integers66[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=1
endif
endif
if(afT())then
call SetPlayerTechResearchedSwap('R007',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3887",1,15.,false)
if(aft())then
call RemoveItem(Kn(GetTriggerUnit(),'I00G'))
call UnitAddItemByIdSwapped('I00E',GetTriggerUnit())
set udg_integers66[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=3
else
call RemoveItem(Kn(GetTriggerUnit(),'I00F'))
call UnitAddItemByIdSwapped('I00H',GetTriggerUnit())
set udg_integers66[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=2
endif
endif
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_unit01=GroupPickRandomUnit(li(udg_rects02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],Player(15)))
call DestroyGroup(GetLastCreatedGroup())
call TriggerExecute(udg_trigger290)
endif
if(afw())then
if(afU())then
call SetPlayerTechResearchedSwap('R004',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3889",1,15.,false)
endif
if(afv())then
call SetPlayerTechResearchedSwap('R00F',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3890",1,15.,false)
endif
if(afV())then
call SetPlayerTechResearchedSwap('R00A',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3891",1,15.,false)
endif
endif
if(afz())then
if(afW())then
call SetPlayerTechResearchedSwap('R009',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3893",1,15.,false)
endif
if(afx())then
call SetPlayerTechResearchedSwap('R008',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3894",1,15.,false)
endif
if(afX())then
call SetPlayerTechResearchedSwap('R00G',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3895",1,15.,false)
call CreateNUnitsAtLoc(1,'o00R',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_units26[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedUnit
endif
if(afy())then
call SetPlayerTechResearchedSwap('R00E',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3896",1,15.,false)
endif
if(afY())then
call SetPlayerTechResearchedSwap('R00J',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"TRIGSTR_3897",1,15.,false)
endif
endif
set udg_unit01=GetTriggerUnit()
call TriggerExecute(udg_trigger85)
call TriggerExecute(udg_trigger290)
call DestroyEffect(udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call DestroyEffect(udg_effects07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sounds01[16])
set udg_integer46=(udg_integer46+1)
call l0(bj_lastCreatedMultiboard,2,4,I2S(udg_integer46))
call Kh(3.)
set udg_booleans31[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
call SetUnitInvulnerable(GetTriggerUnit(),false)
call PauseUnit(GetTriggerUnit(),false)
set udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
call UnitRemoveAbility(GetTriggerUnit(),'BPSE')
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call SetUnitTimeScalePercent(GetTriggerUnit(),100.)
call Kh(2.)
if(af0())then
call AdjustPlayerStateBJ(-1,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED)
if(afZ())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound168,"TRIGSTR_3673",1,10.,false)
endif
endif
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
set udg_integer48=udg_integer01
call TriggerExecute(udg_trigger316)
call ConditionalTriggerExecute(udg_trigger171)
endfunction
function af2 takes nothing returns boolean
return(GetItemType(GetManipulatedItem())==ITEM_TYPE_PURCHASABLE)
endfunction
function af3 takes nothing returns boolean
return(GetDestructableTypeId(GetFilterDestructable())=='B00L')
endfunction
function af4 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED)<=0)
endfunction
function af5 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED)>0)
endfunction
function af6 takes nothing returns nothing
set udg_booleans32[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call RemoveDestructable(RandomDestructableInRectBJ(RectFromCenterSizeBJ(GetItemLoc(GetManipulatedItem()),80.,80.),Condition(function af3)))
set udg_integer46=(udg_integer46+1)
set udg_integer45=(udg_integer45+1)
set udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers65[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
call l0(bj_lastCreatedMultiboard,2,4,I2S(udg_integer46))
call l0(bj_lastCreatedMultiboard,2,5,I2S(udg_integer45))
call AddSpecialEffectLocBJ(GetItemLoc(GetManipulatedItem()),"Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call QI(GetOwningPlayer(GetTriggerUnit()),5.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",.0,.0,.0,.0,0,20.,20.,100.)
call Kh(3.)
if(af5())then
call AdjustPlayerStateBJ(-1,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED)
if(af4())then
call Kh(1.)
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound168,"TRIGSTR_3674",1,10.,false)
endif
endif
call Kh(2.)
set udg_player03=GetOwningPlayer(GetTriggerUnit())
call ConditionalTriggerExecute(udg_trigger171)
endfunction
function af7 takes nothing returns boolean
return(udg_integers66[(1+GetPlayerId(udg_player03))]==2)
endfunction
function af8 takes nothing returns boolean
return(udg_integers66[(1+GetPlayerId(udg_player03))]==1)
endfunction
function af9 takes nothing returns boolean
return(udg_integers66[(1+GetPlayerId(udg_player03))]==0)
endfunction
function aFa takes nothing returns boolean
return(udg_integers66[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==2)
endfunction
function aFA takes nothing returns boolean
return(udg_integers66[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==1)
endfunction
function aFb takes nothing returns boolean
return(udg_integers66[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==0)
endfunction
function aFB takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(15))
endfunction
function aFc takes nothing returns nothing
if(aFB())then
if(af9())then
call SetUnitVertexColorBJ(udg_unit01,84.,100.,100.,0)
else
if(af8())then
call SetUnitVertexColorBJ(udg_unit01,90.,52.,14.,0)
else
if(af7())then
call SetUnitVertexColorBJ(udg_unit01,45.,49.,100.,0)
else
call SetUnitVertexColorBJ(udg_unit01,44.,26.,26.,0)
endif
endif
endif
else
if(aFb())then
call SetUnitVertexColorBJ(udg_unit01,84.,100.,100.,0)
else
if(aFA())then
call SetUnitVertexColorBJ(udg_unit01,90.,52.,14.,0)
else
if(aFa())then
call SetUnitVertexColorBJ(udg_unit01,45.,49.,100.,0)
else
call SetUnitVertexColorBJ(udg_unit01,44.,26.,26.,0)
endif
endif
endif
endif
endfunction
function aFC takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I004')
endfunction
function aFd takes nothing returns boolean
return(udg_booleans27[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function aFD takes nothing returns boolean
return(GetItemCharges(Kn(GetTriggerUnit(),'I00K'))>GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00U')))
endfunction
function aFe takes nothing returns boolean
return(GetPlayerTechCountSimple('R00C',GetOwningPlayer(GetTriggerUnit()))==1)and(GetItemCharges(Kn(GetTriggerUnit(),'I00K'))<GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00U')))
endfunction
function aFE takes nothing returns nothing
if(aFe())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound75)
if(aFd())then
set udg_location03=GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call CreateNUnitsAtLoc(1,'o00T',GetOwningPlayer(GetTriggerUnit()),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
endif
call SetItemCharges(Kn(GetTriggerUnit(),'I00K'),(GetItemCharges(Kn(GetTriggerUnit(),'I00K'))+5))
if(aFD())then
call SetItemCharges(Kn(GetTriggerUnit(),'I00K'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00U'))+0))
endif
endif
call RemoveItem(GetManipulatedItem())
endfunction
function aFf takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00I')
endfunction
function aFF takes nothing returns boolean
return(udg_booleans28[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function aFg takes nothing returns boolean
return(GetItemCharges(Kn(GetTriggerUnit(),'I005'))>GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00V')))
endfunction
function aFG takes nothing returns boolean
return(GetPlayerTechCountSimple('R00D',GetOwningPlayer(GetTriggerUnit()))==1)and(GetItemCharges(Kn(GetTriggerUnit(),'I005'))<GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00V')))
endfunction
function aFh takes nothing returns nothing
if(aFG())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound78)
if(aFF())then
set udg_location03=GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call CreateNUnitsAtLoc(1,'o00U',GetOwningPlayer(GetTriggerUnit()),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
endif
call SetItemCharges(Kn(GetTriggerUnit(),'I005'),(GetItemCharges(Kn(GetTriggerUnit(),'I005'))+2))
if(aFg())then
call SetItemCharges(Kn(GetTriggerUnit(),'I005'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00V'))+0))
endif
endif
call RemoveItem(GetManipulatedItem())
endfunction
function aFH takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00J')
endfunction
function aFi takes nothing returns boolean
return(udg_booleans29[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function aFI takes nothing returns boolean
return(GetPlayerTechCountSimple('R00B',GetOwningPlayer(GetTriggerUnit()))==1)and(GetItemCharges(Kn(GetTriggerUnit(),'I00L'))<GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00W')))
endfunction
function aFj takes nothing returns nothing
if(aFI())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound76)
if(aFi())then
set udg_location03=GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call CreateNUnitsAtLoc(1,'o00V',GetOwningPlayer(GetTriggerUnit()),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
endif
call SetItemCharges(Kn(GetTriggerUnit(),'I00L'),(GetItemCharges(Kn(GetTriggerUnit(),'I00L'))+1))
endif
call RemoveItem(GetManipulatedItem())
endfunction
function aFJ takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00R')
endfunction
function aFk takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h02X')
endfunction
function aFK takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aFl takes nothing returns boolean
return(udg_booleans27[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function aFL takes nothing returns boolean
return(udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==2)
endfunction
function aFm takes nothing returns boolean
return(udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==3)
endfunction
function aFM takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]])
endfunction
function aFn takes nothing returns boolean
return(GetPlayerTechCountSimple('R00C',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function aFN takes nothing returns nothing
call SetItemCharges(Kn(GetTriggerUnit(),'I00K'),(GetItemCharges(Kn(GetTriggerUnit(),'I00K'))+5))
call ForGroupBJ(lI(100.,GetItemLoc(GetManipulatedItem()),Condition(function aFk)),function aFK)
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer48=0
call TriggerExecute(udg_trigger316)
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_integer01
if(aFl())then
call CreateNUnitsAtLoc(1,'o00T',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),bj_UNIT_FACING)
endif
if(aFn())then
call SetPlayerTechResearchedSwap('R00C',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sounds01[14],"TRIGSTR_650",1,15.,false)
call RemoveItem(GetManipulatedItem())
call UnitAddItemByIdSwapped('I00U',udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetItemCharges(bj_lastCreatedItem,5)
if(aFM())then
if(aFm())then
call UnitAddAbility(GetTriggerUnit(),'A020')
else
if(aFL())then
call UnitAddAbility(GetTriggerUnit(),'A00C')
else
call UnitAddAbility(GetTriggerUnit(),'A01Z')
endif
endif
endif
call Kh(2.)
else
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sounds01[15],"TRIGSTR_651",1,5.,false)
call RemoveItem(GetManipulatedItem())
call SetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00U'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00U'))+5))
endif
call Kh(2.5)
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
set udg_integer48=udg_integer01
call TriggerExecute(udg_trigger316)
call ConditionalTriggerExecute(udg_trigger171)
endfunction
function aFo takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00S')
endfunction
function aFO takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h02X')
endfunction
function aFp takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aFP takes nothing returns boolean
return(udg_booleans28[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function aFq takes nothing returns boolean
return(udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==2)
endfunction
function aFQ takes nothing returns boolean
return(udg_integers55[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==3)
endfunction
function aFr takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]])
endfunction
function aFR takes nothing returns boolean
return(GetPlayerTechCountSimple('R00D',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function aFs takes nothing returns nothing
call SetItemCharges(Kn(GetTriggerUnit(),'I005'),(GetItemCharges(Kn(GetTriggerUnit(),'I005'))+2))
call ForGroupBJ(lI(100.,GetItemLoc(GetManipulatedItem()),Condition(function aFO)),function aFp)
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer48=0
call TriggerExecute(udg_trigger316)
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_integer01
if(aFP())then
call CreateNUnitsAtLoc(1,'o00U',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),bj_UNIT_FACING)
endif
if(aFR())then
call SetPlayerTechResearchedSwap('R00D',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sounds01[14],"TRIGSTR_653",1,15.,false)
call RemoveItem(GetManipulatedItem())
call UnitAddItemByIdSwapped('I00V',udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetItemCharges(bj_lastCreatedItem,2)
if(aFr())then
if(aFQ())then
call UnitAddAbility(GetTriggerUnit(),'A021')
else
if(aFq())then
call UnitAddAbility(GetTriggerUnit(),'A013')
else
call UnitAddAbility(GetTriggerUnit(),'A00Z')
endif
endif
endif
call Kh(2.)
else
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sounds01[15],"TRIGSTR_652",1,5.,false)
call RemoveItem(GetManipulatedItem())
call SetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00V'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00V'))+2))
endif
call Kh(2.5)
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
set udg_integer48=udg_integer01
call TriggerExecute(udg_trigger316)
call ConditionalTriggerExecute(udg_trigger171)
endfunction
function aFS takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00T')
endfunction
function aFt takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='h02X')
endfunction
function aFT takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aFu takes nothing returns boolean
return(udg_booleans29[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function aFU takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h00L')or(GetUnitTypeId(GetTriggerUnit())=='h019')or(GetUnitTypeId(GetTriggerUnit())=='h00U')or(GetUnitTypeId(GetTriggerUnit())=='h01J')or(GetUnitTypeId(GetTriggerUnit())=='h01E')or(GetUnitTypeId(GetTriggerUnit())=='h002')or(GetUnitTypeId(GetTriggerUnit())=='h00M')or(GetUnitTypeId(GetTriggerUnit())=='h01A')or(GetUnitTypeId(GetTriggerUnit())=='h00V')or(GetUnitTypeId(GetTriggerUnit())=='h01K')or(GetUnitTypeId(GetTriggerUnit())=='h01F')or(GetUnitTypeId(GetTriggerUnit())=='h003')
endfunction
function aFv takes nothing returns boolean
return(aFU())
endfunction
function aFV takes nothing returns boolean
return(GetPlayerTechCountSimple('R00B',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function aFw takes nothing returns nothing
call SetItemCharges(Kn(GetTriggerUnit(),'I00L'),(GetItemCharges(Kn(GetTriggerUnit(),'I00L'))+2))
call ForGroupBJ(lI(100.,GetItemLoc(GetManipulatedItem()),Condition(function aFt)),function aFT)
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer48=0
call TriggerExecute(udg_trigger316)
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_integer01
if(aFu())then
call CreateNUnitsAtLoc(1,'o00V',GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),bj_UNIT_FACING)
endif
if(aFV())then
call SetPlayerTechResearchedSwap('R00B',1,GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sounds01[14],"TRIGSTR_655",1,15.,false)
call RemoveItem(GetManipulatedItem())
call UnitAddItemByIdSwapped('I00W',udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetItemCharges(bj_lastCreatedItem,2)
if(aFv())then
call UnitAddAbility(GetTriggerUnit(),'A041')
endif
call Kh(2.)
else
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sounds01[15],"TRIGSTR_654",1,5.,false)
call RemoveItem(GetManipulatedItem())
call SetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00W'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I00W'))+2))
endif
call Kh(2.5)
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
set udg_integer48=udg_integer01
call TriggerExecute(udg_trigger316)
call ConditionalTriggerExecute(udg_trigger171)
endfunction
function aFW takes nothing returns boolean
return(GetSpellAbilityId()=='A01Z')or(GetSpellAbilityId()=='A00C')or(GetSpellAbilityId()=='A020')or(GetSpellAbilityId()=='A00Z')or(GetSpellAbilityId()=='A013')or(GetSpellAbilityId()=='A021')
endfunction
function aFx takes nothing returns boolean
return(aFW())and(GetUnitTypeId(GetTriggerUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]])
endfunction
function aFX takes nothing returns nothing
set udg_integer53=4
call IssueImmediateOrderById(udg_units29[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],852184)
endfunction
function aFy takes nothing returns boolean
return(GetSpellAbilityId()=='A01Z')or(GetSpellAbilityId()=='A00C')or(GetSpellAbilityId()=='A020')
endfunction
function aFY takes nothing returns boolean
return(aFy())and(GetUnitTypeId(GetTriggerUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]])
endfunction
function aFz takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aFZ takes nothing returns boolean
return(GetDestructableTypeId(GetSpellTargetDestructable())=='B006')or(GetDestructableTypeId(GetSpellTargetDestructable())=='B003')or(GetDestructableTypeId(GetSpellTargetDestructable())=='B004')or(GetDestructableTypeId(GetSpellTargetDestructable())=='B001')
endfunction
function aF0 takes nothing returns boolean
return(aFZ())
endfunction
function aF1 takes nothing returns boolean
return(GetItemCharges(Kn(GetTriggerUnit(),'I00K'))>0)
endfunction
function aF2 takes nothing returns nothing
if(aF1())then
call DestroyEffect(udg_effects09[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
set udg_effects09[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call SetItemCharges(Kn(GetTriggerUnit(),'I00K'),(GetItemCharges(Kn(GetTriggerUnit(),'I00K'))-1))
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,10.,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'o000',GetOwningPlayer(GetTriggerUnit()),udg_location05,GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
if(aF0())then
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetSpellTargetDestructable())
else
call IssueTargetOrderById(bj_lastCreatedUnit,851985,GetSpellTargetUnit())
endif
else
set udg_force06=ln(GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",udg_sound168,"|cccffcc00Out of Missile ammo.",1,5.,false)
set udg_booleans27[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_booleans26[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
call ForGroupBJ(lm(GetOwningPlayer(GetTriggerUnit()),'o00T'),function aFz)
call DestroyGroup(GetLastCreatedGroup())
endif
endfunction
function aF3 takes nothing returns boolean
return(GetSpellAbilityId()=='A00Z')or(GetSpellAbilityId()=='A013')or(GetSpellAbilityId()=='A021')
endfunction
function aF4 takes nothing returns boolean
return(aF3())
endfunction
function aF5 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aF6 takes nothing returns boolean
return(GetDestructableTypeId(GetSpellTargetDestructable())=='B00D')or(GetDestructableTypeId(GetSpellTargetDestructable())=='B00E')or(GetDestructableTypeId(GetSpellTargetDestructable())=='B006')or(GetDestructableTypeId(GetSpellTargetDestructable())=='B003')or(GetDestructableTypeId(GetSpellTargetDestructable())=='B004')or(GetDestructableTypeId(GetSpellTargetDestructable())=='B001')
endfunction
function aF7 takes nothing returns boolean
return(aF6())
endfunction
function aF8 takes nothing returns boolean
return(GetItemCharges(Kn(GetTriggerUnit(),'I005'))>0)
endfunction
function aF9 takes nothing returns nothing
if(aF8())then
call DestroyEffect(udg_effects09[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("weapon",GetTriggerUnit(),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
set udg_effects09[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call SetItemCharges(Kn(GetTriggerUnit(),'I005'),(GetItemCharges(Kn(GetTriggerUnit(),'I005'))-1))
set udg_location03=GetUnitLoc(GetTriggerUnit())
set udg_location05=Ko(udg_location03,10.,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'o002',GetOwningPlayer(GetTriggerUnit()),udg_location05,GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
if(aF7())then
call IssueTargetOrderById(bj_lastCreatedUnit,851983,GetSpellTargetDestructable())
else
call IssueTargetOrderById(bj_lastCreatedUnit,851985,GetSpellTargetUnit())
endif
else
set udg_force06=ln(GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",udg_sound168,"|cccffcc00Out of Super Missile ammo.",1,5.,false)
set udg_booleans28[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
call ForGroupBJ(lm(GetOwningPlayer(GetTriggerUnit()),'o00U'),function aF5)
call DestroyGroup(GetLastCreatedGroup())
endif
endfunction
function aga takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o003')
endfunction
function agA takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function agb takes nothing returns boolean
return(GetItemCharges(Kn(GetSummoningUnit(),'I00L'))>0)
endfunction
function agB takes nothing returns nothing
if(agb())then
call SetItemCharges(Kn(GetSummoningUnit(),'I00L'),(GetItemCharges(Kn(GetSummoningUnit(),'I00L'))-1))
call IssueImmediateOrderById(GetSummonedUnit(),852127)
call Kh(2.2)
set udg_location03=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'o004',GetOwningPlayer(GetTriggerUnit()),udg_location03,GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(udg_location03)
call SetUnitColor(bj_lastCreatedUnit,PLAYER_COLOR_ORANGE)
else
call RemoveUnit(GetSummonedUnit())
set udg_force06=ln(GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",udg_sound168,"|cccffcc00Out of Power Bomb ammo.",1,5.,false)
set udg_booleans29[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
call ForGroupBJ(lm(GetOwningPlayer(GetTriggerUnit()),'o00V'),function agA)
call DestroyGroup(GetLastCreatedGroup())
endif
endfunction
function agc takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n009')
endfunction
function agC takes nothing returns boolean
return(GetItemCharges(Kn(udg_unit01,'I00K'))<GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],'I00U')))or(GetItemCharges(Kn(udg_unit01,'I005'))<GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],'I00V')))or(GetItemCharges(Kn(udg_unit01,'I00L'))<GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],'I00W')))
endfunction
function agd takes nothing returns boolean
return(udg_booleans27[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==false)
endfunction
function agD takes nothing returns boolean
return(GetItemCharges(Kn(udg_unit01,'I00K'))>GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],'I00U')))
endfunction
function age takes nothing returns boolean
return(GetPlayerTechCountSimple('R00C',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function agE takes nothing returns boolean
return(udg_booleans28[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==false)
endfunction
function agf takes nothing returns boolean
return(GetItemCharges(Kn(udg_unit01,'I005'))>GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],'I00V')))
endfunction
function agF takes nothing returns boolean
return(GetPlayerTechCountSimple('R00D',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function agg takes nothing returns boolean
return(udg_booleans29[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]==false)
endfunction
function agG takes nothing returns boolean
return(GetItemCharges(Kn(udg_unit01,'I00L'))>GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],'I00W')))
endfunction
function agh takes nothing returns boolean
return(GetPlayerTechCountSimple('R00B',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function agH takes nothing returns boolean
return(agC())
endfunction
function agi takes nothing returns nothing
set udg_unit01=GetTriggerUnit()
if(agH())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound77)
if(age())then
if(agd())then
call CreateNUnitsAtLoc(1,'o00T',GetOwningPlayer(udg_unit01),GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]),bj_UNIT_FACING)
endif
call SetItemCharges(Kn(udg_unit01,'I00K'),(GetItemCharges(Kn(udg_unit01,'I00K'))+5))
if(agD())then
call SetItemCharges(Kn(udg_unit01,'I00K'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],'I00U'))+0))
endif
endif
if(agF())then
if(agE())then
call CreateNUnitsAtLoc(1,'o00U',GetOwningPlayer(udg_unit01),GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]),bj_UNIT_FACING)
endif
call SetItemCharges(Kn(udg_unit01,'I005'),(GetItemCharges(Kn(udg_unit01,'I005'))+2))
if(agf())then
call SetItemCharges(Kn(udg_unit01,'I005'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],'I00V'))+0))
endif
endif
if(agh())then
if(agg())then
call CreateNUnitsAtLoc(1,'o00V',GetOwningPlayer(udg_unit01),GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]),bj_UNIT_FACING)
endif
call SetItemCharges(Kn(udg_unit01,'I00L'),(GetItemCharges(Kn(udg_unit01,'I00L'))+1))
if(agG())then
call SetItemCharges(Kn(udg_unit01,'I00L'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],'I00W'))+0))
endif
endif
else
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",null,"Ammo fully recharged.",1,5.,false)
call IssueImmediateOrderById(GetAttacker(),851972)
endif
endfunction
function agI takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I002')or(GetItemTypeId(GetManipulatedItem())=='I003')or(GetItemTypeId(GetManipulatedItem())=='I001')
endfunction
function agj takes nothing returns boolean
return(agI())
endfunction
function agJ takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I001')
endfunction
function agk takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I003')
endfunction
function agK takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I002')
endfunction
function agl takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())<GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))
endfunction
function agL takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I001')
endfunction
function agm takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I003')
endfunction
function agM takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I002')
endfunction
function agn takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==1)
endfunction
function agN takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==0)
endfunction
function ago takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)>=udg_integers61[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function agO takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>='d')
endfunction
function agp takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)<udg_integers61[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function agP takes nothing returns nothing
if(agl())then
if(agK())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound138)
else
if(agk())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound135)
else
if(agJ())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound140)
endif
endif
endif
endif
if(agp())then
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Weapons\\VoidWalkerMissile\\VoidWalkerMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(agM())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound139)
call AdjustPlayerStateBJ(10,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
if(agm())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound136)
call AdjustPlayerStateBJ(25,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
else
if(agL())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound141)
call AdjustPlayerStateBJ(50,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
endif
endif
endif
if(agO())then
set udg_unit01=GetTriggerUnit()
call ConditionalTriggerExecute(udg_trigger181)
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)-'d'))
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(agN())then
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+'d'))
else
if(agn())then
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+50))
else
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)+25))
endif
endif
if(ago())then
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD,0)
endif
endif
endif
endfunction
function agq takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I000')or(GetItemTypeId(GetManipulatedItem())=='I00Z')or(GetItemTypeId(GetManipulatedItem())=='I00Y')
endfunction
function agQ takes nothing returns boolean
return(agq())
endfunction
function agr takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00Y')
endfunction
function agR takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00Z')
endfunction
function ags takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I000')
endfunction
function agS takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00Y')
endfunction
function agt takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I00Z')
endfunction
function agT takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I000')
endfunction
function agu takes nothing returns boolean
return(CheckItemStatus(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I014'),1)!=true)
endfunction
function agU takes nothing returns nothing
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer48=0
call TriggerExecute(udg_trigger316)
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_integer01
if(agu())then
call UnitAddItemByIdSwapped('I014',udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetItemCharges(bj_lastCreatedItem,1)
if(agT())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound43,"TRIGSTR_3066",1,5.,false)
else
if(agt())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound43,"TRIGSTR_3065",1,5.,false)
else
if(agS())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound43,"TRIGSTR_3064",1,5.,false)
endif
endif
endif
call RemoveItem(GetManipulatedItem())
call Kh(2.)
else
if(ags())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound44,"TRIGSTR_1658",1,5.,false)
else
if(agR())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound44,"TRIGSTR_1657",1,5.,false)
else
if(agr())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound44,"TRIGSTR_1341",1,5.,false)
endif
endif
endif
call RemoveItem(GetManipulatedItem())
call SetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I014'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I014'))+1))
endif
call Kh(2.5)
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
set udg_integer48=udg_integer01
call TriggerExecute(udg_trigger316)
call ConditionalTriggerExecute(udg_trigger171)
endfunction
function agv takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I011')
endfunction
function agV takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==1)
endfunction
function agw takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==0)
endfunction
function agW takes nothing returns boolean
return(GetPlayerTechCountSimple('R00K',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function agx takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==1)
endfunction
function agX takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==0)
endfunction
function agy takes nothing returns boolean
return(GetPlayerTechCountSimple('R00K',GetOwningPlayer(GetTriggerUnit()))==0)
endfunction
function agY takes nothing returns nothing
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer48=0
call TriggerExecute(udg_trigger316)
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_integer01
if(agW())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound43,"TRIGSTR_2721",1,18.,false)
call RemoveItem(GetManipulatedItem())
call UnitAddItemByIdSwapped('I013',udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetItemCharges(bj_lastCreatedItem,1)
else
call SetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I013'),(GetItemCharges(Kn(udg_units07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],'I013'))+1))
if(agw())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound44,"TRIGSTR_2777",1,8.,false)
else
if(agV())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound44,"TRIGSTR_2776",1,8.,false)
else
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(GetTriggerUnit())),null,"",udg_sound44,"TRIGSTR_2775",1,8.,false)
endif
endif
call RemoveItem(GetManipulatedItem())
endif
if(agX())then
set udg_integers61[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers61[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+'d')
else
if(agx())then
set udg_integers61[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers61[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+50)
else
set udg_integers61[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers61[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+25)
endif
endif
if(agy())then
call SetPlayerTechResearchedSwap('R00K',1,GetOwningPlayer(GetTriggerUnit()))
call Kh(2.)
endif
call Kh(2.5)
set udg_player03=GetOwningPlayer(GetTriggerUnit())
set udg_integer01=udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]
set udg_integers02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=0
set udg_integer48=udg_integer01
call TriggerExecute(udg_trigger316)
call ConditionalTriggerExecute(udg_trigger171)
endfunction
function agz takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n007')
endfunction
function agZ takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())<GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))
endfunction
function ag0 takes nothing returns nothing
if(agZ())then
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound137)
call SetWidgetLife(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+50.))
else
set udg_force06=ln(GetOwningPlayer(GetTriggerUnit()))
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccffffffEnergy fully recharged.|r",1,5.,false)
call IssueImmediateOrderById(GetAttacker(),851972)
endif
endfunction
function ag1 takes nothing returns boolean
return(GetSpellAbilityId()=='A04S')
endfunction
function ag2 takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==1)
endfunction
function ag3 takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==0)
endfunction
function ag4 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())>GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))
endfunction
function ag5 takes nothing returns boolean
return(GetPlayerTechCountSimple('R009',GetOwningPlayer(GetTriggerUnit()))==1)
endfunction
function ag6 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())>=GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))
endfunction
function ag7 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)<=0)
endfunction
function ag8 takes nothing returns nothing
set udg_force06=ln(GetOwningPlayer(GetTriggerUnit()))
if(ag7())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",udg_sound168,"|cccffcc00Reserve Tanks are empty.|r",1,5.,false)
else
if(ag6())then
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",udg_sound168,"|cccffcc00Already at full energy.|r",1,5.,false)
else
call DestroyEffect(udg_effects07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
set udg_effects07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call DestroyEffect(bj_lastCreatedEffect)
call DestroyEffect(udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
set udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccffffffReserve Tank used.|r",1,5.,false)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"death")
if(ag3())then
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)-'d'))
call SetWidgetLife(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+100.))
else
if(ag2())then
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)-50))
call SetWidgetLife(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+50.))
else
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)-25))
call SetWidgetLife(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+25.))
endif
endif
if(ag4())then
call SetWidgetLife(GetTriggerUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))
endif
call Kh(2)
call PauseUnit(GetTriggerUnit(),false)
call SetUnitInvulnerable(GetTriggerUnit(),false)
set udg_unit01=GetTriggerUnit()
if(ag5())then
call SetUnitAnimationByIndex(udg_unit01,14)
else
call SetUnitAnimationByIndex(udg_unit01,11)
endif
call DestroyEffect(udg_effects07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call DestroyEffect(udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endif
endif
endfunction
function ag9 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n000')
endfunction
function aGa takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger310)==false)
endfunction
function aGA takes nothing returns boolean
return(GetTriggerUnit()!=udg_unit05)
endfunction
function aGb takes nothing returns boolean
return(IsUnitInGroup(GetEnumUnit(),udg_group11))
endfunction
function aGB takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())==udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]])and(IsUnitAliveBJ(GetEnumUnit()))
endfunction
function aGc takes nothing returns nothing
if(aGB())then
call SetUnitAnimation(GetEnumUnit(),"birth")
if(aGa())then
set udg_force06=ln(GetOwningPlayer(GetEnumUnit()))
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",udg_sound168,"|cccffcc00The save stations have run out of power. You can no longer save or respawn.|r",1,3.,false)
call DestroyGroup(GetLastCreatedGroup())
return
endif
if(aGA())then
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=true
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=Ko(GetUnitLoc(GetEnumUnit()),GetRandomReal(-150.,-200.),(GetUnitFacing(GetEnumUnit())+GetRandomReal(-60.,60.)))
endif
set udg_units01[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]=GetTriggerUnit()
call SetUnitPositionLoc(GetEnumUnit(),GetUnitLoc(GetTriggerUnit()))
call SetUnitFacingTimed(GetEnumUnit(),270.,.2)
call QI(GetOwningPlayer(GetEnumUnit()),3.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",35.,55.,100.,70.,.0,40.,100.,100.)
set udg_force06=ln(GetOwningPlayer(GetEnumUnit()))
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,"|cccffffff- SAVE COMPLETE -|r",1,5.,false)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),2.)
else
if(aGb())then
set udg_force06=ln(GetOwningPlayer(GetEnumUnit()))
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",udg_sound168,"|cccffcc00Must be standing to save position.|r",1,2.,false)
endif
endif
endfunction
function aGC takes nothing returns nothing
call ForGroupBJ(nZ(GetSpellTargetUnit()),function aGc)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function aGd takes nothing returns boolean
return(GetEnumPlayer()==Player(5))
endfunction
function aGD takes nothing returns boolean
return(GetEnumPlayer()==Player(4))
endfunction
function aGe takes nothing returns boolean
return(GetEnumPlayer()==Player(3))
endfunction
function aGE takes nothing returns boolean
return(GetEnumPlayer()==Player(2))
endfunction
function aGf takes nothing returns boolean
return(GetEnumPlayer()==Player(1))
endfunction
function aGF takes nothing returns boolean
return(GetEnumPlayer()==Player(0))
endfunction
function aGg takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_units24[(1+GetPlayerId(GetEnumPlayer()))])<=udg_real01)
endfunction
function aGG takes nothing returns boolean
return(IsUnitAliveBJ(udg_units24[(1+GetPlayerId(GetEnumPlayer()))]))
endfunction
function aGh takes nothing returns nothing
if(aGG())then
set udg_real01=(17.+(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_units24[(1+GetPlayerId(GetEnumPlayer()))])/4.))
if(aGg())then
if(aGF())then
set udg_sound28=udg_sound63
else
if(aGf())then
set udg_sound28=udg_sound64
else
if(aGE())then
set udg_sound28=udg_sound65
else
if(aGe())then
set udg_sound28=udg_sound66
else
if(aGD())then
set udg_sound28=udg_sound67
else
if(aGd())then
set udg_sound28=udg_sound68
endif
endif
endif
endif
endif
endif
set udg_real01=(1.-(GetUnitStateSwap(UNIT_STATE_LIFE,udg_units24[(1+GetPlayerId(GetEnumPlayer()))])/udg_real01))
call SetSoundPitchBJ(udg_sound28,(.5+(udg_real01*.7)))
call SetSoundVolumeBJ(udg_sound28,(60.+(udg_real01*40.)))
call ng(GetEnumPlayer(),udg_sound28)
endif
endif
endfunction
function aGH takes nothing returns nothing
call ForForce(udg_force05,function aGh)
endfunction
function aGi takes nothing returns boolean
return(IsUnitInGroup(GetTriggerUnit(),udg_group11))
endfunction
function aGI takes nothing returns boolean
return(IsPlayerInForce(udg_player03,udg_force01))
endfunction
function aGj takes nothing returns boolean
return(udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==6)
endfunction
function aGJ takes nothing returns boolean
return(udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==5)
endfunction
function aGk takes nothing returns boolean
return(udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==4)
endfunction
function aGK takes nothing returns boolean
return(udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==3)
endfunction
function aGl takes nothing returns boolean
return(udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==2)
endfunction
function aGL takes nothing returns boolean
return(udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==1)
endfunction
function aGm takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==2)
endfunction
function aGM takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==1)
endfunction
function aGn takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==0)
endfunction
function aGN takes nothing returns boolean
return(IsItemOwned(GetEnumItem())==false)
endfunction
function aGo takes nothing returns nothing
if(aGN())then
call RemoveItem(GetEnumItem())
endif
endfunction
function aGO takes nothing returns boolean
return(GetPlayerSlotState(GetOwningPlayer(udg_unit01))==PLAYER_SLOT_STATE_LEFT)
endfunction
function aGp takes nothing returns boolean
return(udg_boolean06==false)
endfunction
function aGP takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function aGq takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function aGQ takes nothing returns boolean
return GetBooleanAnd(aGP(),aGq())
endfunction
function aGr takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_force03)==false)
endfunction
function aGR takes nothing returns boolean
return GetBooleanAnd(aGQ(),aGr())
endfunction
function aGs takes nothing returns boolean
return(0>=CountPlayersInForceBJ(lN(Condition(function aGR))))
endfunction
function aGS takes nothing returns boolean
return(IsItemOwned(GetEnumItem())==false)
endfunction
function aGt takes nothing returns nothing
if(aGS())then
call RemoveItem(GetEnumItem())
endif
endfunction
function aGT takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger310)==false)
endfunction
function aGu takes nothing returns boolean
return(udg_units01[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]!=udg_unit05)
endfunction
function aGU takes nothing returns boolean
return(GetItemTypeId(GetFilterItem())=='I005')
endfunction
function aGv takes nothing returns boolean
return(GetItemTypeId(GetFilterItem())=='I00K')
endfunction
function aGV takes nothing returns boolean
return(GetItemTypeId(GetFilterItem())=='I00L')
endfunction
function aGw takes nothing returns boolean
return(GetItemType(GetFilterItem())==ITEM_TYPE_CHARGED)
endfunction
function aGW takes nothing returns boolean
return(GetItemTypeId(GetFilterItem())!='I010')
endfunction
function aGx takes nothing returns nothing
set udg_integer01=(udg_integer01+1)
endfunction
function aGX takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function aGy takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==1)
endfunction
function aGY takes nothing returns boolean
return(GetPlayerTechCountSimple('R00H',Player(10))==0)
endfunction
function aGz takes nothing returns nothing
local unit aGZ
set udg_unit01=GetTriggerUnit()
set aGZ=udg_unit01
set udg_integer48=0
set udg_player03=GetOwningPlayer(GetTriggerUnit())
call TriggerExecute(udg_trigger316)
if(aGI())then
call ForceUICancelBJ(udg_player03)
endif
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound146)
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_location03=GetUnitLoc(GetTriggerUnit())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_location03,.6)
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_booleans25[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
if(aGL())then
call PlaySoundAtPointBJ(udg_sound126,'d',udg_location03,100.)
else
if(aGl())then
call PlaySoundAtPointBJ(udg_sound123,'d',udg_location03,100.)
else
if(aGK())then
call PlaySoundAtPointBJ(udg_sound125,'d',udg_location03,100.)
else
if(aGk())then
call PlaySoundAtPointBJ(udg_sound124,'d',udg_location03,100.)
else
if(aGJ())then
call PlaySoundAtPointBJ(udg_sound122,'d',udg_location03,100.)
else
if(aGj())then
call PlaySoundAtPointBJ(udg_sound121,'d',udg_location03,100.)
endif
endif
endif
endif
endif
endif
call QI(GetOwningPlayer(GetTriggerUnit()),1.6,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.,5.,.0,70.,100.,100.,100.,20.)
call CreateCorpseLocBJ(udg_integers50[udg_integers51[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]],GetOwningPlayer(GetTriggerUnit()),udg_location03)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,.0,.0,.0,100.)
call SetUnitAnimation(bj_lastCreatedUnit,"death")
set udg_unit01=bj_lastCreatedUnit
call DestroyEffect(udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call AddSpecialEffectTargetUnitBJ("origin",udg_unit01,"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
set udg_effects08[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedEffect
set udg_location05=GetRectCenter(udg_rects02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitRemoveItemSwapped(UnitItemInSlotBJ(GetTriggerUnit(),bj_forLoopAIndex),GetTriggerUnit())
call SetItemPositionLoc(bj_lastRemovedItem,udg_location05)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(aGn())then
set udg_integer01=((R2I(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))-99)/25)
else
if(aGM())then
set udg_integer01=((R2I(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))-49)/25)
else
if(aGm())then
set udg_integer01=((R2I(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))-24)/25)
endif
endif
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer01
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateItemLoc('I010',udg_location05)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location03)
call RemoveLocation(udg_location05)
set udg_units24[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=bj_lastCreatedUnit
call GroupAddUnit(udg_group11,bj_lastCreatedUnit)
set aGZ=udg_unit01
set udg_player03=GetOwningPlayer(GetTriggerUnit())
call TriggerExecute(udg_trigger167)
call RemoveUnit(GetTriggerUnit())
call Kh(1.3)
set udg_unit01=aGZ
call ShowUnitHide(udg_unit01)
call QI(GetOwningPlayer(udg_unit01),1.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",90.,90.,90.,.0,.0,.0,.0,.0)
set udg_location03=GetRectCenter(udg_rect248)
call SetUnitPositionLoc(udg_units08[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],udg_location03)
call SetUnitPositionLoc(udg_units26[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],udg_location03)
call RemoveLocation(udg_location03)
call Kh(5.5)
set udg_unit01=aGZ
call ShowUnitShow(udg_unit01)
call SetPlayerStateBJ(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD,0)
if(aGO())then
call ForceAddPlayer(udg_force03,GetOwningPlayer(udg_unit01))
call EnumItemsInRectBJ(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],function aGo)
call RemoveUnit(udg_units08[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
call RemoveUnit(udg_units26[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
call SetUnitPositionLoc(udg_unit01,GetUnitLoc(udg_unit05))
call RemoveUnit(udg_unit01)
return
endif
if(aGT())then
call ForceAddPlayer(udg_force03,GetOwningPlayer(udg_unit01))
if(aGs())then
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",null,"|cccffffffYou have been revived in the ship, but your suit has been destroyed.|r",1,20.,false)
call QI(GetOwningPlayer(udg_unit01),5.5,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",.0,.0,.0,.0,.0,.0,.0,100.)
if(aGp())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"|cccffffff- MISSION FAILED -|r",1,20.,false)
else
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",null,"|cccffffff- MISSION ACCOMPLISHED -|r",1,20.,false)
endif
else
call TransmissionFromUnitWithNameBJ(ln(GetOwningPlayer(udg_unit01)),null,"",null,"TRIGSTR_3541",1,20.,false)
call QI(GetOwningPlayer(udg_unit01),5.5,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",.0,.0,.0,.0,.0,.0,.0,100.)
endif
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=false
set udg_booleans24[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=true
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit01),CAMERA_FIELD_ROTATION,90.,0)
set udg_reals17[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=90.
call SetCameraBoundsToRectForPlayerBJ(GetOwningPlayer(udg_unit01),bj_mapInitialCameraBounds)
call CreateFogModifierRectBJ(true,GetOwningPlayer(udg_unit01),FOG_OF_WAR_VISIBLE,udg_rect176)
call CreateFogModifierRectBJ(true,GetOwningPlayer(udg_unit01),FOG_OF_WAR_MASKED,bj_mapInitialPlayableArea)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),Ko(GetRectCenter(udg_rect231),250.,GetRandomReal(0,360)),.0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect231),6.5)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerAllianceBJ(Player(-1+(bj_forLoopAIndex)),ALLIANCE_SHARED_VISION,true,GetOwningPlayer(udg_unit01))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnumItemsInRectBJ(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],function aGt)
call RemoveUnit(udg_units08[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
call RemoveUnit(udg_units26[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
call SetUnitPositionLoc(udg_unit01,GetUnitLoc(udg_unit05))
call RemoveUnit(udg_unit01)
return
endif
if(aGu())then
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=true
else
set udg_booleans23[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=false
endif
call ng(GetOwningPlayer(udg_unit01),udg_sounds01[13])
set udg_location03=GetUnitLoc(udg_units01[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
call SetUnitPositionLoc(udg_unit01,udg_location03)
call RemoveLocation(udg_location03)
set udg_locations02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=Ko(GetUnitLoc(udg_unit01),GetRandomReal(-150.,-200.),(GetUnitFacing(udg_unit01)+GetRandomReal(-90.,90.)))
call SetUnitFacingTimed(udg_unit01,270.,0)
call SetUnitAnimation(udg_unit01,"spell 2")
call SetUnitColor(udg_unit01,PLAYER_COLOR_LIGHT_BLUE)
set udg_location03=GetUnitLoc(udg_unit01)
call CreateNUnitsAtLoc(1,'o005',GetOwningPlayer(udg_unit01),udg_location03,bj_UNIT_FACING)
call RemoveLocation(udg_location03)
call IssueImmediateOrderById(bj_lastCreatedUnit,852094)
call PauseUnit(udg_unit01,true)
call Kh(.01)
call SetUnitAnimation(udg_unit01,"birth")
call SetUnitColor(udg_unit01,PLAYER_COLOR_LIGHT_BLUE)
set udg_unit01=aGZ
call IssueTargetOrderById(GroupPickRandomUnit(lm(GetOwningPlayer(udg_unit01),'o005')),852486,udg_unit01)
call UnitAddAbility(udg_unit01,'Avul')
call SetUnitLifePercentBJ(udg_unit01,100.)
call UnitAddItemByIdSwapped('I00K',udg_unit01)
call UnitAddItemByIdSwapped('I00K',udg_unit01)
call UnitAddItemByIdSwapped('I00K',udg_unit01)
call UnitAddItemByIdSwapped('I00K',udg_unit01)
call UnitAddItemByIdSwapped('I00K',udg_unit01)
call RemoveItem(UnitItemInSlotBJ(udg_unit01,1))
call UnitAddItem(udg_unit01,RandomItemInRectBJ(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],Condition(function aGU)))
call RemoveItem(UnitItemInSlotBJ(udg_unit01,2))
call UnitAddItem(udg_unit01,RandomItemInRectBJ(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],Condition(function aGv)))
call RemoveItem(UnitItemInSlotBJ(udg_unit01,3))
call UnitAddItem(udg_unit01,RandomItemInRectBJ(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],Condition(function aGV)))
call RemoveItem(UnitItemInSlotBJ(udg_unit01,4))
call UnitAddItem(udg_unit01,RandomItemInRectBJ(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],Condition(function aGw)))
call RemoveItem(UnitItemInSlotBJ(udg_unit01,5))
call UnitAddItem(udg_unit01,RandomItemInRectBJ(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],Condition(function aGW)))
set udg_player03=GetOwningPlayer(udg_unit01)
set udg_integer48=0
call TriggerExecute(udg_trigger316)
call TriggerExecute(udg_trigger85)
call TriggerExecute(udg_trigger290)
call SetItemCharges(Kn(udg_unit01,'I00K'),R2I(((I2R(GetItemCharges(Kn(udg_unit01,'I00K')))*.75)+.99)))
call SetItemCharges(Kn(udg_unit01,'I005'),R2I(((I2R(GetItemCharges(Kn(udg_unit01,'I005')))*.75)+.99)))
call SetItemCharges(Kn(udg_unit01,'I00L'),R2I(((I2R(GetItemCharges(Kn(udg_unit01,'I00L')))*.75)+.99)))
set udg_location03=GetRectCenter(udg_rects01[udg_integers63[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]])
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit01),CAMERA_FIELD_ROTATION,90.,0)
call SetCameraBoundsToRectForPlayerBJ(GetOwningPlayer(udg_unit01),RectFromCenterSizeBJ(udg_location03,udg_real18,udg_real18))
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit01),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],0)
call RemoveLocation(udg_location03)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),Ko(GetUnitLoc(udg_unit01),250.,GetRandomReal(0,360)),.0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),6.5)
call QI(GetOwningPlayer(udg_unit01),6.5,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\White_mask.blp",.0,.0,.0,.0,15.,20.,30.,100.)
set udg_units25[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=null
call DestroyEffect(udg_effects06[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))])
set udg_force06=ln(GetOwningPlayer(udg_unit01))
call TransmissionFromUnitWithNameBJ(udg_force06,null,"",null,("|cccffffff- "+(udg_strings22[udg_integers56[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]]+" -|r")),1,5.,false)
call Kh(4.5)
set udg_unit01=aGZ
call SelectUnitForPlayerSingle(udg_unit01,GetOwningPlayer(udg_unit01))
call PauseUnit(udg_unit01,false)
call Kh(.5)
set udg_unit01=aGZ
call UnitRemoveAbility(udg_unit01,'Avul')
set udg_integer01=0
call EnumItemsInRectBJ(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],function aGx)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer01
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateItemLoc('I010',GetUnitLoc(udg_unit01))
call UnitAddItem(udg_unit01,bj_lastCreatedItem)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnumItemsInRectBJ(udg_rects02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))],function aGX)
call SetUnitExploded(udg_unit01,true)
call TriggerRegisterUnitEvent(udg_trigger314,udg_unit01,EVENT_UNIT_DAMAGED)
set udg_booleans22[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=true
set udg_booleans25[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]=false
if(aGY())then
call SetWidgetLife(udg_unit01,(99.+((GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_unit01)-99.)*.5)))
else
if(aGy())then
call SetWidgetLife(udg_unit01,(49.+((GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_unit01)-49.)*.5)))
else
call SetWidgetLife(udg_unit01,(24.+((GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_unit01)-24.)*.5)))
endif
endif
call ConditionalTriggerExecute(udg_trigger177)
endfunction
function aG0 takes nothing returns nothing
call SetUnitColor(GetEnumUnit(),ConvertPlayerColor(12))
call UnitRemoveAbility(GetEnumUnit(),'A00H')
call UnitAddAbility(GetEnumUnit(),'A05D')
endfunction
function aG1 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aG2 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function aG3 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_trigger311)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"",udg_sound171,"TRIGSTR_3538",1,20.,false)
call ForGroupBJ(lm(Player(15),'n000'),function aG0)
call ForGroupBJ(lm(Player(15),'o00X'),function aG1)
call ForGroupBJ(lm(Player(15),'o00Z'),function aG2)
call SetTimeOfDay(5.)
call UseTimeOfDayBJ(true)
endfunction
function aG4 takes nothing returns nothing
call UseTimeOfDayBJ(false)
endfunction
function aG5 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function aG6 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function aG7 takes nothing returns boolean
return GetBooleanAnd(aG5(),aG6())
endfunction
function aG8 takes nothing returns nothing
set udg_force05=lN(Condition(function aG7))
endfunction
function aG9 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11))
endfunction
function aha takes nothing returns nothing
set udg_player03=GetOwningPlayer(GetEnumUnit())
call TriggerExecute(udg_trigger316)
endfunction
function ahA takes nothing returns nothing
set udg_integers03[udg_integer02]=udg_integer48
call ForGroupBJ(lG(udg_rects01[udg_integer02],Condition(function aG9)),function aha)
endfunction
function ahb takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(5))
endfunction
function ahB takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(4))
endfunction
function ahc takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(3))
endfunction
function ahC takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(2))
endfunction
function ahd takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(1))
endfunction
function ahD takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(0))
endfunction
function ahe takes nothing returns boolean
return(GetEventDamage()>=40.)
endfunction
function ahE takes nothing returns boolean
return(GetEventDamage()>=4.)
endfunction
function ahf takes nothing returns boolean
return(GetEventDamage()>=1.)
endfunction
function ahF takes nothing returns nothing
if(ahf())then
if(ahE())then
if(ahD())then
set udg_sound28=udg_sound153
else
if(ahd())then
set udg_sound28=udg_sound154
else
if(ahC())then
set udg_sound28=udg_sound155
else
if(ahc())then
set udg_sound28=udg_sound156
else
if(ahB())then
set udg_sound28=udg_sound157
else
if(ahb())then
set udg_sound28=udg_sound158
endif
endif
endif
endif
endif
endif
if(ahe())then
set udg_real01=40.
else
set udg_real01=GetEventDamage()
endif
call SetSoundPitchBJ(udg_sound28,(.97+(udg_real01/500.)))
call SetSoundVolumeBJ(udg_sound28,(55.+(udg_real01*1.4)))
call StopSoundBJ(udg_sound28,false)
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound28)
else
call StopSoundBJ(udg_sound159,false)
call ng(GetOwningPlayer(GetTriggerUnit()),udg_sound159)
endif
endif
endfunction
function ahg takes nothing returns boolean
return(bj_forLoopAIndex==6)
endfunction
function ahG takes nothing returns boolean
return(bj_forLoopAIndex==5)
endfunction
function ahh takes nothing returns boolean
return(bj_forLoopAIndex==4)
endfunction
function ahH takes nothing returns boolean
return(bj_forLoopAIndex==3)
endfunction
function ahi takes nothing returns boolean
return(bj_forLoopAIndex==2)
endfunction
function ahI takes nothing returns boolean
return(bj_forLoopAIndex==1)
endfunction
function ahj takes nothing returns boolean
return(IsUnitAliveBJ(udg_units24[bj_forLoopAIndex]))
endfunction
function ahJ takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger310))
endfunction
function ahk takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger269)==false)
endfunction
function ahK takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(ahj())then
if(ahI())then
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetUnitLoc(udg_units24[bj_forLoopAIndex]),1.5,0,50.,.0,.0)
else
if(ahi())then
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetUnitLoc(udg_units24[bj_forLoopAIndex]),1.5,0,.0,5.,50.)
else
if(ahH())then
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetUnitLoc(udg_units24[bj_forLoopAIndex]),1.5,0,.0,50.,30.)
else
if(ahh())then
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetUnitLoc(udg_units24[bj_forLoopAIndex]),1.5,0,12.,.0,40.)
else
if(ahG())then
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetUnitLoc(udg_units24[bj_forLoopAIndex]),1.5,0,50.,49.,.0)
else
if(ahg())then
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetUnitLoc(udg_units24[bj_forLoopAIndex]),1.5,0,50.,27.,.0)
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call Kh(3.)
if(ahJ())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PingMinimapLocForForceEx(ln(Player(-1+(bj_forLoopAIndex))),GetUnitLoc(udg_units01[bj_forLoopAIndex]),1.5,0,.0,35.,50.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
if(ahk())then
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect92),1.5,0,40.,40.,40.)
endif
endfunction
function ahl takes nothing returns boolean
return(udg_integer48==11)and(udg_booleans32[(1+GetPlayerId(udg_player03))])
endfunction
function ahL takes nothing returns boolean
return(udg_integer48==1)and(udg_booleans32[(1+GetPlayerId(udg_player03))]==false)
endfunction
function ahm takes nothing returns boolean
return(udg_player03==Player(0))or(udg_player03==Player(1))or(udg_player03==Player(2))or(udg_player03==Player(3))or(udg_player03==Player(4))or(udg_player03==Player(5))
endfunction
function ahM takes nothing returns boolean
return(udg_integers57[(1+GetPlayerId(udg_player03))]==1)
endfunction
function ahn takes nothing returns boolean
return(udg_integers57[(1+GetPlayerId(udg_player03))]==1)
endfunction
function ahN takes nothing returns boolean
return(udg_integers02[bj_forLoopAIndex]==udg_integers02[(1+GetPlayerId(udg_player03))])and(bj_forLoopAIndex!=(1+GetPlayerId(udg_player03)))and(udg_integers57[bj_forLoopAIndex]==udg_integers57[(1+GetPlayerId(udg_player03))])
endfunction
function aho takes nothing returns boolean
return(udg_integers57[(1+GetPlayerId(udg_player03))]==1)
endfunction
function ahO takes nothing returns boolean
return(GetPlayerController(udg_player03)==MAP_CONTROL_USER)and(udg_integers02[(1+GetPlayerId(GetOwningPlayer(udg_unit01)))]!=udg_integer48)and(ahm())
endfunction
function ahp takes nothing returns nothing
if(ahL())then
set udg_integer48=11
else
if(ahl())then
set udg_integer48=1
endif
endif
if(ahO())then
if(ahM())then
call StopSoundBJ(udg_sounds01[udg_integers02[(1+GetPlayerId(udg_player03))]],true)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(ahN())then
if(ahn())then
call ng(Player(-1+(bj_forLoopAIndex)),udg_sounds01[udg_integers02[bj_forLoopAIndex]])
call SetSoundOffsetBJ(TimerGetElapsed(udg_timers02[bj_forLoopAIndex]),udg_sounds01[udg_integers02[bj_forLoopAIndex]])
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers02[(1+GetPlayerId(udg_player03))]=udg_integer48
if(aho())then
call ng(udg_player03,udg_sounds01[udg_integer48])
call StartTimerBJ(udg_timers02[(1+GetPlayerId(udg_player03))],false,1200.)
endif
endif
endfunction
function ahP takes nothing returns boolean
return(GetPlayerTechCountSimple('R00G',GetEnumPlayer())==1)and(udg_units25[(1+GetPlayerId(GetEnumPlayer()))]==null)
endfunction
function ahq takes nothing returns boolean
return(IsUnitAliveBJ(udg_units24[(1+GetPlayerId(GetEnumPlayer()))]))
endfunction
function ahQ takes nothing returns nothing
if(ahq())then
set udg_location03=GetUnitLoc(udg_units24[(1+GetPlayerId(GetEnumPlayer()))])
call SetUnitPositionLoc(udg_units08[(1+GetPlayerId(GetEnumPlayer()))],udg_location03)
if(ahP())then
call SetUnitPositionLoc(udg_units26[(1+GetPlayerId(GetEnumPlayer()))],udg_location03)
endif
call RemoveLocation(udg_location03)
endif
endfunction
function ahr takes nothing returns nothing
call ForForce(udg_force05,function ahQ)
endfunction
function ahR takes nothing returns boolean
return(IsPlayerInForce(GetTriggerPlayer(),udg_force03))
endfunction
function ahs takes nothing returns boolean
return(IsPlayerInForce(GetTriggerPlayer(),udg_force01)==false)
endfunction
function ahS takes nothing returns nothing
call StopMusic(true)
if(ahs())then
call DialogDisplayBJ(true,udg_dialog08,GetTriggerPlayer())
call ng(GetTriggerPlayer(),udg_sound167)
else
call QI(GetTriggerPlayer(),1.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",.0,.0,.0,.0,.0,.0,.0,100.)
call ForceRemovePlayer(udg_force01,GetTriggerPlayer())
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,90.,0)
if(ahR())then
call SetCameraBoundsToRectForPlayerBJ(GetTriggerPlayer(),bj_mapInitialCameraBounds)
else
call SetCameraBoundsToRectForPlayerBJ(GetTriggerPlayer(),RectFromCenterSizeBJ(GetRectCenter(udg_rects01[udg_integers63[(1+GetPlayerId(GetTriggerPlayer()))]]),udg_real18,udg_real18))
endif
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))],0)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))]),0)
call ng(GetTriggerPlayer(),udg_sound166)
call SelectUnitForPlayerSingle(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))],GetTriggerPlayer())
endif
endfunction
function aht takes nothing returns boolean
return(udg_booleans22[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function ahT takes nothing returns boolean
return(GetClickedButton()==udg_buttons07[6])
endfunction
function ahu takes nothing returns boolean
return(GetClickedButton()==udg_buttons07[5])
endfunction
function ahU takes nothing returns boolean
return(GetClickedButton()==udg_buttons07[4])
endfunction
function ahv takes nothing returns boolean
return(GetClickedButton()==udg_buttons07[3])
endfunction
function ahV takes nothing returns boolean
return(GetClickedButton()==udg_buttons07[2])
endfunction
function ahw takes nothing returns boolean
return(GetClickedButton()==udg_buttons07[1])
endfunction
function ahW takes nothing returns nothing
call DialogSetMessage(udg_dialog08,(udg_string25+"Escape Menu"))
if(ahw())then
call QI(GetTriggerPlayer(),1.,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",.0,.0,.0,.0,.0,17.,14.,65.)
call ForceAddPlayer(udg_force01,GetTriggerPlayer())
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,90.,0)
call SetCameraBoundsToRectForPlayerBJ(GetTriggerPlayer(),udg_rects02[(1+GetPlayerId(GetTriggerPlayer()))])
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rects02[(1+GetPlayerId(GetTriggerPlayer()))]),0)
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_TARGET_DISTANCE,450.,0)
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ANGLE_OF_ATTACK,325.,0)
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_FIELD_OF_VIEW,70.,0)
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,90.,0)
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",null,"TRIGSTR_1093",1,5.,false)
call SelectUnitForPlayerSingle(GroupPickRandomUnit(li(udg_rects02[(1+GetPlayerId(GetTriggerPlayer()))],Player(15))),GetTriggerPlayer())
call CreateTextTagLocBJ("Tanks",Ko(GetUnitLoc(udg_units07[(1+GetPlayerId(GetTriggerPlayer()))]),20.,180.),0,16.,100.,100.,100.,0)
call CreateTextTagLocBJ("Beam",Ko(GetUnitLoc(udg_units03[(1+GetPlayerId(GetTriggerPlayer()))]),20.,180.),0,16.,100.,100.,100.,0)
call CreateTextTagLocBJ("Boots",Ko(GetUnitLoc(udg_units05[(1+GetPlayerId(GetTriggerPlayer()))]),20.,180.),0,16.,100.,100.,100.,0)
call CreateTextTagLocBJ("Misc.",Ko(GetUnitLoc(udg_units06[(1+GetPlayerId(GetTriggerPlayer()))]),20.,180.),0,16.,100.,100.,100.,0)
call CreateTextTagLocBJ("Suit",Ko(GetUnitLoc(udg_units04[(1+GetPlayerId(GetTriggerPlayer()))]),20.,180.),0,16.,100.,100.,100.,0)
else
if(ahV())then
if(aht())then
call KillUnit(udg_units24[(1+GetPlayerId(GetTriggerPlayer()))])
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",udg_sound171,"|cccffffff- SELF DESTRUCTING -|r",1,5.,false)
else
call TransmissionFromUnitWithNameBJ(ln(GetTriggerPlayer()),null,"",udg_sound168,"|cccffcc00Unable to self destruct.|r",1,2.,false)
endif
else
if(ahv())then
call DialogDisplayBJ(true,udg_dialog09,GetTriggerPlayer())
else
if(ahU())then
call DialogDisplayBJ(true,udg_dialog10,GetTriggerPlayer())
else
if(ahu())then
call DialogDisplayBJ(true,udg_dialog14,GetTriggerPlayer())
else
if(ahT())then
call DialogDisplayBJ(true,udg_dialog13,GetTriggerPlayer())
endif
endif
endif
endif
endif
endif
call ng(GetTriggerPlayer(),udg_sound166)
endfunction
function ahx takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger53))
endfunction
function ahX takes nothing returns boolean
return(GetClickedButton()==udg_buttons11[3])
endfunction
function ahy takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger53))
endfunction
function ahY takes nothing returns boolean
return(GetClickedButton()==udg_buttons11[2])
endfunction
function ahz takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger53))
endfunction
function ahZ takes nothing returns boolean
return(GetClickedButton()==udg_buttons11[1])
endfunction
function ah0 takes nothing returns boolean
return(udg_booleans24[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function ah1 takes nothing returns boolean
return(udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]==0)
endfunction
function ah2 takes nothing returns nothing
if(ahZ())then
set udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]=0
set udg_booleans24[(1+GetPlayerId(GetTriggerPlayer()))]=true
if(ahz())then
call DialogDisplayBJ(true,udg_dialog13,GetTriggerPlayer())
endif
else
if(ahY())then
set udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]=1
set udg_booleans24[(1+GetPlayerId(GetTriggerPlayer()))]=true
if(ahy())then
call DialogDisplayBJ(true,udg_dialog13,GetTriggerPlayer())
endif
else
if(ahX())then
set udg_integers58[(1+GetPlayerId(GetTriggerPlayer()))]=2
set udg_booleans24[(1+GetPlayerId(GetTriggerPlayer()))]=true
if(ahx())then
call DialogDisplayBJ(true,udg_dialog13,GetTriggerPlayer())
endif
endif
endif
endif
call ng(GetTriggerPlayer(),udg_sound166)
set udg_booleans24[(1+GetPlayerId(GetTriggerPlayer()))]=true
if(ah1())then
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=90.
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,90.,1.5)
else
if(ah0())then
set udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]=((udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]+11.25)-ModuloReal((udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))]+11.25),22.5))
call SetCameraFieldForPlayer(GetTriggerPlayer(),CAMERA_FIELD_ROTATION,udg_reals17[(1+GetPlayerId(GetTriggerPlayer()))],1.5)
endif
endif
endfunction
function ah3 takes nothing returns boolean
return(GetClickedButton()==udg_buttons10[4])
endfunction
function ah4 takes nothing returns boolean
return(GetClickedButton()==udg_buttons10[3])
endfunction
function ah5 takes nothing returns boolean
return(GetClickedButton()==udg_buttons10[2])
endfunction
function ah6 takes nothing returns boolean
return(GetClickedButton()==udg_buttons10[1])
endfunction
function ah7 takes nothing returns nothing
if(ah6())then
set udg_integers60[(1+GetPlayerId(GetTriggerPlayer()))]=0
else
if(ah5())then
set udg_integers60[(1+GetPlayerId(GetTriggerPlayer()))]=1
else
if(ah4())then
set udg_integers60[(1+GetPlayerId(GetTriggerPlayer()))]=2
else
if(ah3())then
set udg_integers60[(1+GetPlayerId(GetTriggerPlayer()))]=3
endif
endif
endif
endif
call ng(GetTriggerPlayer(),udg_sound166)
endfunction
function ah8 takes nothing returns boolean
return(GetClickedButton()==udg_buttons08[1])
endfunction
function ah9 takes nothing returns boolean
return(GetClickedButton()==udg_buttons08[2])
endfunction
function aHa takes nothing returns nothing
call DialogSetMessage(udg_dialog10,(udg_string25+"Beginner Hints"))
if(ah8())then
set udg_booleans20[(1+GetPlayerId(GetTriggerPlayer()))]=true
endif
if(ah9())then
set udg_booleans20[(1+GetPlayerId(GetTriggerPlayer()))]=false
endif
call ng(GetTriggerPlayer(),udg_sound166)
endfunction
function main2 takes nothing returns nothing
local weathereffect we
local destructable d
local trigger t
local real aHA
local integer LM
local player p
local unit u
local integer unitID
local integer Km
local integer aHb
local version v
local integer LG
local integer i
call SetCameraBounds(-11520.+GetCameraMargin(CAMERA_MARGIN_LEFT),-11776.+GetCameraMargin(CAMERA_MARGIN_BOTTOM),11520.-GetCameraMargin(CAMERA_MARGIN_RIGHT),11264.-GetCameraMargin(CAMERA_MARGIN_TOP),-11520.+GetCameraMargin(CAMERA_MARGIN_LEFT),11264.-GetCameraMargin(CAMERA_MARGIN_TOP),11520.-GetCameraMargin(CAMERA_MARGIN_RIGHT),-11776.+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCDalaran\\DNCDalaranTerrain\\DNCDalaranTerrain.mdl","Environment\\DNC\\DNCDalaran\\DNCDalaranUnit\\DNCDalaranUnit.mdl")
call SetTerrainFogEx(0,700.,5000.,.5,.0,.02,.118)
call SetWaterBaseColor(255,160,'n',255)
call NewSoundEnvironment("Default")
call SetAmbientDaySound("DalaranRuinsDay")
call SetAmbientNightSound("DalaranRuinsNight")
call SetMapMusic("Music",true,0)
set udg_sound29=CreateSound("Sound\\Music\\mp3Music\\War3XMainScreen.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound29,80162)
call SetSoundChannel(udg_sound29,7)
call SetSoundVolume(udg_sound29,0)
call SetSoundPitch(udg_sound29,1.)
set udg_sound30=CreateSound("war3mapImported\\Brinstar.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound30,17676)
call SetSoundChannel(udg_sound30,7)
call SetSoundVolume(udg_sound30,'n')
call SetSoundPitch(udg_sound30,1.)
set udg_sound31=CreateSound("war3mapImported\\CrateriaCave.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound31,19224)
call SetSoundChannel(udg_sound31,7)
call SetSoundVolume(udg_sound31,'i')
call SetSoundPitch(udg_sound31,1.)
set udg_sound32=CreateSound("war3mapImported\\Chozo.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound32,16020)
call SetSoundChannel(udg_sound32,7)
call SetSoundVolume(udg_sound32,'s')
call SetSoundPitch(udg_sound32,1.)
set udg_sound33=CreateSound("war3mapImported\\BrinstarRed.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound33,20340)
call SetSoundChannel(udg_sound33,7)
call SetSoundVolume(udg_sound33,'n')
call SetSoundPitch(udg_sound33,1.)
set udg_sound34=CreateSound("war3mapImported\\Norfair.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound34,15372)
call SetSoundChannel(udg_sound34,7)
call SetSoundVolume(udg_sound34,'n')
call SetSoundPitch(udg_sound34,1.)
set udg_sound35=CreateSound("war3mapImported\\Tourian.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound35,15372)
call SetSoundChannel(udg_sound35,7)
call SetSoundVolume(udg_sound35,'d')
call SetSoundPitch(udg_sound35,1.)
set udg_sound36=CreateSound("war3mapImported\\Drone.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound36,7416)
call SetSoundChannel(udg_sound36,7)
call SetSoundVolume(udg_sound36,'i')
call SetSoundPitch(udg_sound36,1.)
set udg_sound37=CreateSound("war3mapImported\\MetroidFight.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound37,13284)
call SetSoundChannel(udg_sound37,7)
call SetSoundVolume(udg_sound37,'i')
call SetSoundPitch(udg_sound37,1.)
set udg_sound38=CreateSound("war3mapImported\\Ridley.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound38,13680)
call SetSoundChannel(udg_sound38,7)
call SetSoundVolume(udg_sound38,95)
call SetSoundPitch(udg_sound38,1.)
set udg_sound39=CreateSound("war3mapImported\\PirateFight.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound39,13284)
call SetSoundChannel(udg_sound39,7)
call SetSoundVolume(udg_sound39,'n')
call SetSoundPitch(udg_sound39,1.)
set udg_sound40=CreateSound("Sound\\Music\\mp3Music\\War3XMainScreen.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound40,80162)
call SetSoundChannel(udg_sound40,7)
call SetSoundVolume(udg_sound40,'n')
call SetSoundPitch(udg_sound40,.8)
set udg_sound41=CreateSound("war3mapImported\\Intro.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound41,17244)
call SetSoundChannel(udg_sound41,7)
call SetSoundVolume(udg_sound41,'i')
call SetSoundPitch(udg_sound41,1.)
set udg_sound42=CreateSound("war3mapImported\\Start.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound42,6048)
call SetSoundChannel(udg_sound42,7)
call SetSoundVolume(udg_sound42,'d')
call SetSoundPitch(udg_sound42,1.)
set udg_sound43=CreateSound("war3mapImported\\itembig.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound43,3996)
call SetSoundChannel(udg_sound43,7)
call SetSoundVolume(udg_sound43,'d')
call SetSoundPitch(udg_sound43,1.)
set udg_sound44=CreateSound("war3mapImported\\itemsmall.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound44,2088)
call SetSoundChannel(udg_sound44,7)
call SetSoundVolume(udg_sound44,95)
call SetSoundPitch(udg_sound44,1.)
set udg_sound45=CreateSound("war3mapImported\\itembig.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound45,3996)
call SetSoundChannel(udg_sound45,7)
call SetSoundVolume(udg_sound45,'i')
call SetSoundPitch(udg_sound45,.8)
set udg_sound46=CreateSound("Sound\\Music\\mp3Music\\Mainscreen.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound46,69177)
call SetSoundChannel(udg_sound46,7)
call SetSoundVolume(udg_sound46,'d')
call SetSoundPitch(udg_sound46,.8)
set udg_sound47=CreateSound("Sound\\Music\\mp3Music\\NightElf2.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound47,279493)
call SetSoundChannel(udg_sound47,7)
call SetSoundVolume(udg_sound47,'i')
call SetSoundPitch(udg_sound47,.8)
set udg_sound48=CreateSound("Sound\\Music\\mp3Music\\UndeadX1.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound48,270671)
call SetSoundChannel(udg_sound48,7)
call SetSoundVolume(udg_sound48,'x')
call SetSoundPitch(udg_sound48,.8)
set udg_sound49=CreateSound("Sound\\Music\\mp3Music\\ArthasTheme.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound49,122295)
call SetSoundChannel(udg_sound49,7)
call SetSoundVolume(udg_sound49,'x')
call SetSoundPitch(udg_sound49,.8)
set udg_sound50=CreateSound("Sound\\Music\\mp3Music\\Orc2.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound50,313496)
call SetSoundChannel(udg_sound50,7)
call SetSoundVolume(udg_sound50,95)
call SetSoundPitch(udg_sound50,1.)
set udg_sound51=CreateSound("Sound\\Music\\mp3Music\\IllidansTheme.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound51,108006)
call SetSoundChannel(udg_sound51,7)
call SetSoundVolume(udg_sound51,'n')
call SetSoundPitch(udg_sound51,.5)
set udg_sound52=CreateSound("Sound\\Music\\mp3Music\\Undead3.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound52,291071)
call SetSoundChannel(udg_sound52,7)
call SetSoundVolume(udg_sound52,'i')
call SetSoundPitch(udg_sound52,1.3)
set udg_sound53=CreateSound("war3mapImported\\PirateFight.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound53,13284)
call SetSoundChannel(udg_sound53,7)
call SetSoundVolume(udg_sound53,'i')
call SetSoundPitch(udg_sound53,.8)
set udg_sound54=CreateSound("war3mapImported\\MetroidFight.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound54,13284)
call SetSoundChannel(udg_sound54,7)
call SetSoundVolume(udg_sound54,'d')
call SetSoundPitch(udg_sound54,.5)
set udg_sound55=CreateSound("war3mapImported\\Intro.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound55,17244)
call SetSoundChannel(udg_sound55,7)
call SetSoundVolume(udg_sound55,'n')
call SetSoundPitch(udg_sound55,.8)
set udg_sound56=CreateSound("war3mapImported\\Chozo.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound56,16020)
call SetSoundChannel(udg_sound56,7)
call SetSoundVolume(udg_sound56,'x')
call SetSoundPitch(udg_sound56,.5)
set udg_sound57=CreateSound("war3mapImported\\Ridley.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound57,13680)
call SetSoundChannel(udg_sound57,7)
call SetSoundVolume(udg_sound57,'d')
call SetSoundPitch(udg_sound57,.8)
set udg_sound58=CreateSound("war3mapImported\\Drone.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound58,7416)
call SetSoundChannel(udg_sound58,7)
call SetSoundVolume(udg_sound58,'s')
call SetSoundPitch(udg_sound58,.8)
set udg_sound59=CreateSound("war3mapImported\\Drone.mp3",true,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound59,7416)
call SetSoundChannel(udg_sound59,7)
call SetSoundVolume(udg_sound59,'n')
call SetSoundPitch(udg_sound59,1.)
set udg_sound60=CreateSound("war3mapImported\\Chozo.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound60,16020)
call SetSoundChannel(udg_sound60,7)
call SetSoundVolume(udg_sound60,95)
call SetSoundPitch(udg_sound60,.8)
set udg_sound61=CreateSound("Abilities\\Spells\\Other\\CrushingWave\\CrushingWaveCaster1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound61,"CrushingWave")
call SetSoundDuration(udg_sound61,1991)
call SetSoundChannel(udg_sound61,0)
call SetSoundPitch(udg_sound61,.9)
set udg_sound62=CreateSound("Sound\\Ambient\\DoodadEffects\\LordaeronSummerHumanTorchLoop1.wav",true,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound62,"LordSumHumanTorchLoop")
call SetSoundDuration(udg_sound62,1892)
call SetSoundChannel(udg_sound62,0)
call SetSoundVolume(udg_sound62,127)
call SetSoundPitch(udg_sound62,.8)
set udg_sound63=CreateSound("war3mapImported\\Alarm.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound63,313)
call SetSoundChannel(udg_sound63,0)
call SetSoundVolume(udg_sound63,127)
call SetSoundPitch(udg_sound63,1.)
set udg_sound64=CreateSound("war3mapImported\\Alarm.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound64,313)
call SetSoundChannel(udg_sound64,0)
call SetSoundVolume(udg_sound64,127)
call SetSoundPitch(udg_sound64,1.)
set udg_sound65=CreateSound("war3mapImported\\Alarm.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound65,313)
call SetSoundChannel(udg_sound65,0)
call SetSoundVolume(udg_sound65,127)
call SetSoundPitch(udg_sound65,1.)
set udg_sound66=CreateSound("war3mapImported\\Alarm.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound66,313)
call SetSoundChannel(udg_sound66,0)
call SetSoundVolume(udg_sound66,127)
call SetSoundPitch(udg_sound66,1.)
set udg_sound67=CreateSound("war3mapImported\\Alarm.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound67,313)
call SetSoundChannel(udg_sound67,0)
call SetSoundVolume(udg_sound67,127)
call SetSoundPitch(udg_sound67,1.)
set udg_sound68=CreateSound("war3mapImported\\Alarm.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound68,313)
call SetSoundChannel(udg_sound68,0)
call SetSoundVolume(udg_sound68,127)
call SetSoundPitch(udg_sound68,1.)
set udg_sound69=CreateSound("Sound\\Ambient\\DoodadEffects\\RunesGlow.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound69,"RunesGlowLoop")
call SetSoundDuration(udg_sound69,5000)
call SetSoundChannel(udg_sound69,5)
call SetSoundPitch(udg_sound69,1.3)
call SetSoundDistances(udg_sound69,600.,10000.)
call SetSoundDistanceCutoff(udg_sound69,3000.)
set udg_sound70=CreateSound("Sound\\Ambient\\DoodadEffects\\EnchantedCellLoop.wav",true,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound70,"EnchantedCellLoop")
call SetSoundDuration(udg_sound70,4999)
call SetSoundVolume(udg_sound70,60)
call SetSoundPitch(udg_sound70,.9)
set udg_sound71=CreateSound("Sound\\Ambient\\DoodadEffects\\EyeOfSargeras.wav",true,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound71,"EyeOfSargerasLoop")
call SetSoundDuration(udg_sound71,2966)
call SetSoundDistances(udg_sound71,600.,10000.)
call SetSoundDistanceCutoff(udg_sound71,3000.)
set udg_sound72=CreateSound("Sound\\Ambient\\UndeadGlueScreenLoop1.wav",true,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound72,"UndeadGlueScreenLoop")
call SetSoundDuration(udg_sound72,7291)
call SetSoundVolume(udg_sound72,127)
call SetSoundPitch(udg_sound72,1.2)
set udg_sound73=CreateSound("Sound\\Ambient\\NightElfGlueScreenLoop1.wav",true,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound73,"NightElfGlueScreenLoop")
call SetSoundDuration(udg_sound73,7163)
call SetSoundVolume(udg_sound73,127)
call SetSoundPitch(udg_sound73,.8)
set udg_sound74=CreateSound("Sound\\Ambient\\AllianceGlueScreen.wav",true,false,false,60,60,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound74,"ExpansionHumanGlueScreenLoop")
call SetSoundDuration(udg_sound74,9997)
call SetSoundVolume(udg_sound74,70)
set udg_sound75=CreateSound("war3mapImported\\Ammo.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound75,213)
call SetSoundChannel(udg_sound75,0)
call SetSoundVolume(udg_sound75,90)
call SetSoundPitch(udg_sound75,1.1)
set udg_sound76=CreateSound("war3mapImported\\Ammo.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound76,213)
call SetSoundChannel(udg_sound76,0)
call SetSoundVolume(udg_sound76,'d')
call SetSoundPitch(udg_sound76,.9)
set udg_sound77=CreateSound("war3mapImported\\Ammo.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound77,213)
call SetSoundChannel(udg_sound77,0)
call SetSoundVolume(udg_sound77,40)
call SetSoundPitch(udg_sound77,.9)
set udg_sound78=CreateSound("war3mapImported\\Ammo.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound78,213)
call SetSoundChannel(udg_sound78,0)
call SetSoundVolume(udg_sound78,'n')
call SetSoundPitch(udg_sound78,1.)
set udg_sound79=CreateSound("war3mapImported\\Beep.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound79,357)
call SetSoundChannel(udg_sound79,0)
call SetSoundVolume(udg_sound79,50)
call SetSoundPitch(udg_sound79,1.2)
set udg_sound80=CreateSound("war3mapImported\\Target.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound80,183)
call SetSoundChannel(udg_sound80,0)
call SetSoundVolume(udg_sound80,'i')
call SetSoundPitch(udg_sound80,1.4)
set udg_sound81=CreateSound("war3mapImported\\Target.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound81,183)
call SetSoundChannel(udg_sound81,0)
call SetSoundVolume(udg_sound81,'s')
call SetSoundPitch(udg_sound81,1.6)
set udg_sound82=CreateSound("war3mapImported\\Beep.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound82,357)
call SetSoundChannel(udg_sound82,0)
call SetSoundVolume(udg_sound82,45)
call SetSoundPitch(udg_sound82,1.4)
set udg_sound83=CreateSound("Units\\Creeps\\Wendigo\\WendigoYes3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound83,"WendigoYes")
call SetSoundDuration(udg_sound83,692)
call SetSoundChannel(udg_sound83,5)
call SetSoundVolume(udg_sound83,80)
call SetSoundPitch(udg_sound83,1.7)
call SetSoundDistances(udg_sound83,600.,10000.)
call SetSoundDistanceCutoff(udg_sound83,3000.)
set udg_sound84=CreateSound("Units\\Creeps\\CorruptedEnt\\EntWhat1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound84,"CorruptedEntWhat")
call SetSoundDuration(udg_sound84,1724)
call SetSoundChannel(udg_sound84,5)
call SetSoundPitch(udg_sound84,1.2)
call SetSoundDistances(udg_sound84,600.,10000.)
call SetSoundDistanceCutoff(udg_sound84,3000.)
set udg_sound85=CreateSound("Units\\Creeps\\Wendigo\\WendigoWhat1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound85,"WendigoWhat")
call SetSoundDuration(udg_sound85,1013)
call SetSoundChannel(udg_sound85,5)
call SetSoundVolume(udg_sound85,'n')
call SetSoundPitch(udg_sound85,.9)
call SetSoundDistances(udg_sound85,600.,10000.)
call SetSoundDistanceCutoff(udg_sound85,3000.)
set udg_sound86=CreateSound("Units\\Creeps\\Archnathid\\ArachnathidYes2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound86,"ArachnathidYesAttack")
call SetSoundDuration(udg_sound86,533)
call SetSoundChannel(udg_sound86,5)
call SetSoundVolume(udg_sound86,'n')
call SetSoundPitch(udg_sound86,.9)
call SetSoundDistances(udg_sound86,600.,10000.)
call SetSoundDistanceCutoff(udg_sound86,3000.)
set udg_sound87=CreateSound("Units\\Creeps\\Archnathid\\ArachnathidYes1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound87,"ArachnathidYesAttack")
call SetSoundDuration(udg_sound87,1016)
call SetSoundChannel(udg_sound87,5)
call SetSoundVolume(udg_sound87,80)
call SetSoundPitch(udg_sound87,.7)
call SetSoundDistances(udg_sound87,600.,10000.)
call SetSoundDistanceCutoff(udg_sound87,3000.)
set udg_sound88=CreateSound("Units\\Creeps\\NetherDragon\\NetherDragonYesAttack2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound88,"NetherDragonYesAttack")
call SetSoundDuration(udg_sound88,1743)
call SetSoundChannel(udg_sound88,5)
call SetSoundVolume(udg_sound88,'x')
call SetSoundPitch(udg_sound88,1.1)
call SetSoundDistances(udg_sound88,600.,10000.)
call SetSoundDistanceCutoff(udg_sound88,3000.)
set udg_sound89=CreateSound("Units\\Creeps\\NetherDragon\\NetherDragonWhat3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound89,"NetherDragonWhat")
call SetSoundDuration(udg_sound89,821)
call SetSoundChannel(udg_sound89,5)
call SetSoundPitch(udg_sound89,1.1)
call SetSoundDistances(udg_sound89,600.,10000.)
call SetSoundDistanceCutoff(udg_sound89,3000.)
set udg_sound90=CreateSound("Units\\Creeps\\AzureDragon\\DragonWhat1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound90,"AzureDragonWhat")
call SetSoundDuration(udg_sound90,1014)
call SetSoundChannel(udg_sound90,5)
call SetSoundVolume(udg_sound90,90)
call SetSoundPitch(udg_sound90,1.4)
call SetSoundDistances(udg_sound90,600.,10000.)
call SetSoundDistanceCutoff(udg_sound90,3000.)
set udg_sound91=CreateSound("Units\\Creeps\\AzureDragon\\DragonWhat3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound91,"AzureDragonWhat")
call SetSoundDuration(udg_sound91,782)
call SetSoundChannel(udg_sound91,5)
call SetSoundVolume(udg_sound91,90)
call SetSoundPitch(udg_sound91,1.4)
call SetSoundDistances(udg_sound91,600.,10000.)
call SetSoundDistanceCutoff(udg_sound91,3000.)
set udg_sound92=CreateSound("Units\\Creeps\\Murloc\\MurlocYesAttack1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound92,"MurlocYesAttack")
call SetSoundDuration(udg_sound92,778)
call SetSoundChannel(udg_sound92,5)
call SetSoundVolume(udg_sound92,90)
call SetSoundPitch(udg_sound92,.6)
call SetSoundDistances(udg_sound92,600.,10000.)
call SetSoundDistanceCutoff(udg_sound92,3000.)
set udg_sound93=CreateSound("Units\\Creeps\\Murloc\\MurlocWhat1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound93,"MurlocWhat")
call SetSoundDuration(udg_sound93,589)
call SetSoundChannel(udg_sound93,5)
call SetSoundVolume(udg_sound93,90)
call SetSoundPitch(udg_sound93,.6)
call SetSoundDistances(udg_sound93,600.,10000.)
call SetSoundDistanceCutoff(udg_sound93,3000.)
set udg_sound94=CreateSound("Units\\Creeps\\Archnathid\\ArachnathidYes1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound94,"ArachnathidYesAttack")
call SetSoundDuration(udg_sound94,1016)
call SetSoundChannel(udg_sound94,5)
call SetSoundVolume(udg_sound94,'n')
call SetSoundPitch(udg_sound94,.9)
call SetSoundDistances(udg_sound94,600.,10000.)
call SetSoundDistanceCutoff(udg_sound94,3000.)
set udg_sound95=CreateSound("Units\\Demon\\Infernal\\InfernalAttack2.wav",false,true,true,10,10,"CombatSoundsEAX")
call SetSoundParamsFromLabel(udg_sound95,"InfernalAttack2")
call SetSoundDuration(udg_sound95,1254)
call SetSoundChannel(udg_sound95,5)
call SetSoundVolume(udg_sound95,'n')
set udg_sound96=CreateSound("Units\\Critters\\Vulture\\VultureDeath1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound96,"VultureDeath")
call SetSoundDuration(udg_sound96,1202)
call SetSoundChannel(udg_sound96,5)
call SetSoundVolume(udg_sound96,'d')
call SetSoundPitch(udg_sound96,1.2)
set udg_sound97=CreateSound("Units\\Creeps\\Spider\\SpiderDeath1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound97,"SpiderDeath")
call SetSoundDuration(udg_sound97,1180)
call SetSoundChannel(udg_sound97,5)
call SetSoundVolume(udg_sound97,'d')
call SetSoundPitch(udg_sound97,.9)
set udg_sound98=CreateSound("Units\\Creeps\\WindSerpent\\DragonHawkDeath1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound98,"DragonHawkDeath")
call SetSoundDuration(udg_sound98,1637)
call SetSoundChannel(udg_sound98,5)
call SetSoundVolume(udg_sound98,'d')
call SetSoundPitch(udg_sound98,1.3)
set udg_sound99=CreateSound("war3mapImported\\MetroidSquee.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound99,784)
call SetSoundChannel(udg_sound99,5)
call SetSoundVolume(udg_sound99,127)
call SetSoundPitch(udg_sound99,1.)
call SetSoundDistances(udg_sound99,600.,10000.)
call SetSoundDistanceCutoff(udg_sound99,3000.)
call SetSoundConeAngles(udg_sound99,.0,.0,127)
call SetSoundConeOrientation(udg_sound99,.0,.0,.0)
set udg_sound100=CreateSound("Units\\Creeps\\SeaGiant\\SeaGiantWhat3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound100,"SeaGiantWhat")
call SetSoundDuration(udg_sound100,1413)
call SetSoundChannel(udg_sound100,5)
call SetSoundVolume(udg_sound100,'d')
call SetSoundDistances(udg_sound100,600.,10000.)
call SetSoundDistanceCutoff(udg_sound100,3000.)
set udg_sound101=CreateSound("Units\\Demon\\Infernal\\InfernalDeath.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound101,"InfernalDeath")
call SetSoundDuration(udg_sound101,5000)
call SetSoundChannel(udg_sound101,0)
call SetSoundPitch(udg_sound101,.7)
set udg_sound102=CreateSound("Units\\Demon\\DoomGuard\\DoomGuardDeath1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound102,"DoomGuardDeath")
call SetSoundDuration(udg_sound102,2701)
call SetSoundChannel(udg_sound102,0)
call SetSoundPitch(udg_sound102,.9)
set udg_sound103=CreateSound("Units\\Creeps\\Archnathid\\ArachnathidWhat2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound103,"ArachnathidWhat")
call SetSoundDuration(udg_sound103,862)
call SetSoundChannel(udg_sound103,5)
call SetSoundVolume(udg_sound103,90)
call SetSoundPitch(udg_sound103,1.3)
call SetSoundDistances(udg_sound103,600.,10000.)
call SetSoundDistanceCutoff(udg_sound103,3000.)
set udg_sound104=CreateSound("Units\\Undead\\Ghoul\\GhoulWarcry1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound104,"GhoulWarcry")
call SetSoundDuration(udg_sound104,1483)
call SetSoundChannel(udg_sound104,5)
call SetSoundPitch(udg_sound104,.8)
call SetSoundDistances(udg_sound104,600.,10000.)
call SetSoundDistanceCutoff(udg_sound104,3000.)
set udg_sound105=CreateSound("Units\\Undead\\Banshee\\BansheeDeath.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound105,"BansheeDeath")
call SetSoundDuration(udg_sound105,2380)
call SetSoundChannel(udg_sound105,5)
call SetSoundVolume(udg_sound105,'d')
call SetSoundPitch(udg_sound105,.7)
set udg_sound106=CreateSound("Units\\Undead\\Ghoul\\GhoulYesAttack2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound106,"GhoulYesAttack")
call SetSoundDuration(udg_sound106,536)
call SetSoundChannel(udg_sound106,5)
call SetSoundVolume(udg_sound106,'n')
call SetSoundPitch(udg_sound106,.8)
call SetSoundDistances(udg_sound106,600.,10000.)
call SetSoundDistanceCutoff(udg_sound106,3000.)
set udg_sound107=CreateSound("Units\\Undead\\Ghoul\\GhoulYesAttack1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound107,"GhoulYesAttack")
call SetSoundDuration(udg_sound107,683)
call SetSoundChannel(udg_sound107,5)
call SetSoundVolume(udg_sound107,90)
call SetSoundPitch(udg_sound107,.8)
call SetSoundDistances(udg_sound107,600.,10000.)
call SetSoundDistanceCutoff(udg_sound107,3000.)
set udg_sound108=CreateSound("Units\\Undead\\Ghoul\\GhoulYesAttack3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound108,"GhoulYesAttack")
call SetSoundDuration(udg_sound108,634)
call SetSoundChannel(udg_sound108,5)
call SetSoundVolume(udg_sound108,80)
call SetSoundPitch(udg_sound108,.8)
call SetSoundDistances(udg_sound108,600.,10000.)
call SetSoundDistanceCutoff(udg_sound108,3000.)
set udg_sound109=CreateSound("Units\\Undead\\Scarab\\ScarabWhat2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound109,"ScarabWhat")
call SetSoundDuration(udg_sound109,978)
call SetSoundChannel(udg_sound109,5)
call SetSoundVolume(udg_sound109,'n')
call SetSoundPitch(udg_sound109,.6)
call SetSoundDistances(udg_sound109,600.,10000.)
call SetSoundDistanceCutoff(udg_sound109,3000.)
set udg_sound110=CreateSound("Units\\Undead\\Scarab\\ScarabYes3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound110,"ScarabYes")
call SetSoundDuration(udg_sound110,836)
call SetSoundChannel(udg_sound110,5)
call SetSoundVolume(udg_sound110,'n')
call SetSoundPitch(udg_sound110,.6)
call SetSoundDistances(udg_sound110,600.,10000.)
call SetSoundDistanceCutoff(udg_sound110,3000.)
set udg_sound111=CreateSound("Units\\Creeps\\Spider\\SpiderYes2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound111,"SpiderYes")
call SetSoundDuration(udg_sound111,1154)
call SetSoundChannel(udg_sound111,5)
call SetSoundVolume(udg_sound111,90)
call SetSoundPitch(udg_sound111,.8)
call SetSoundDistances(udg_sound111,600.,10000.)
call SetSoundDistanceCutoff(udg_sound111,3000.)
set udg_sound112=CreateSound("Units\\Creeps\\Spider\\SpiderYes1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound112,"SpiderYes")
call SetSoundDuration(udg_sound112,610)
call SetSoundChannel(udg_sound112,5)
call SetSoundVolume(udg_sound112,90)
call SetSoundPitch(udg_sound112,.8)
call SetSoundDistances(udg_sound112,600.,10000.)
call SetSoundDistanceCutoff(udg_sound112,3000.)
set udg_sound113=CreateSound("Units\\Creeps\\Murloc\\MurlocWhat3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound113,"MurlocWhat")
call SetSoundDuration(udg_sound113,621)
call SetSoundChannel(udg_sound113,5)
call SetSoundVolume(udg_sound113,70)
call SetSoundPitch(udg_sound113,.6)
call SetSoundDistances(udg_sound113,600.,10000.)
call SetSoundDistanceCutoff(udg_sound113,3000.)
set udg_sound114=CreateSound("Units\\Creeps\\tuskar\\TuskarrYes2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound114,"TuskarrYesAttack")
call SetSoundDuration(udg_sound114,882)
call SetSoundChannel(udg_sound114,5)
call SetSoundVolume(udg_sound114,'n')
call SetSoundPitch(udg_sound114,.9)
call SetSoundDistances(udg_sound114,600.,10000.)
call SetSoundDistanceCutoff(udg_sound114,3000.)
set udg_sound115=CreateSound("Units\\Creeps\\Wendigo\\WendigoYes3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound115,"WendigoYes")
call SetSoundDuration(udg_sound115,692)
call SetSoundChannel(udg_sound115,5)
call SetSoundVolume(udg_sound115,'n')
call SetSoundDistances(udg_sound115,600.,10000.)
call SetSoundDistanceCutoff(udg_sound115,3000.)
set udg_sound116=CreateSound("Units\\Creeps\\Spider\\SpiderDeath1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound116,"SpiderDeath")
call SetSoundDuration(udg_sound116,1180)
call SetSoundChannel(udg_sound116,5)
call SetSoundVolume(udg_sound116,'d')
call SetSoundPitch(udg_sound116,1.2)
set udg_sound117=CreateSound("Units\\Creeps\\WindSerpent\\DragonHawkDeath1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound117,"DragonHawkDeath")
call SetSoundDuration(udg_sound117,1637)
call SetSoundChannel(udg_sound117,5)
call SetSoundVolume(udg_sound117,'d')
call SetSoundPitch(udg_sound117,1.6)
set udg_sound118=CreateSound("Units\\Undead\\Scarab\\ScarabWhat1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound118,"ScarabWhat")
call SetSoundDuration(udg_sound118,639)
call SetSoundChannel(udg_sound118,5)
call SetSoundVolume(udg_sound118,'n')
call SetSoundPitch(udg_sound118,.7)
call SetSoundDistances(udg_sound118,600.,10000.)
call SetSoundDistanceCutoff(udg_sound118,3000.)
set udg_sound119=CreateSound("Units\\Undead\\Scarab\\ScarabYes3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound119,"ScarabYes")
call SetSoundDuration(udg_sound119,836)
call SetSoundChannel(udg_sound119,5)
call SetSoundVolume(udg_sound119,'n')
call SetSoundPitch(udg_sound119,.7)
call SetSoundDistances(udg_sound119,600.,10000.)
call SetSoundDistanceCutoff(udg_sound119,3000.)
set udg_sound120=CreateSound("Units\\Creeps\\Lobstrokkblue\\LobstrokkYes2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound120,"LobstrokkYesAttack")
call SetSoundDuration(udg_sound120,847)
call SetSoundChannel(udg_sound120,5)
call SetSoundVolume(udg_sound120,60)
call SetSoundPitch(udg_sound120,.9)
call SetSoundDistances(udg_sound120,600.,10000.)
call SetSoundDistanceCutoff(udg_sound120,3000.)
set udg_sound121=CreateSound("Units\\Human\\HeroPaladin\\HeroPaladinDeath.wav",false,true,true,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound121,"HeroPaladinDeath")
call SetSoundDuration(udg_sound121,1672)
set udg_sound122=CreateSound("Units\\Undead\\CryptFiend\\PitFiendDeath1.wav",false,true,true,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound122,"CryptFiendDeath")
call SetSoundDuration(udg_sound122,2792)
call SetSoundPitch(udg_sound122,.9)
set udg_sound123=CreateSound("Units\\NightElf\\Archer\\ArcherDeath1.wav",false,true,true,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound123,"ArcherDeath")
call SetSoundDuration(udg_sound123,3599)
set udg_sound124=CreateSound("Units\\NightElf\\HeroWarden\\WardenDeath1.wav",false,true,true,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound124,"HeroWardenDeath")
call SetSoundDuration(udg_sound124,1384)
call SetSoundPitch(udg_sound124,.9)
set udg_sound125=CreateSound("Units\\Human\\Priest\\PriestDeath.wav",false,true,true,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound125,"PriestDeath")
call SetSoundDuration(udg_sound125,2148)
set udg_sound126=CreateSound("Units\\Human\\HeroMountainKing\\HeroMountainKingDeath.wav",false,true,true,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound126,"HeroMountainKingDeath")
call SetSoundDuration(udg_sound126,2680)
set udg_sound127=CreateSound("war3mapImported\\DoorClose.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound127,520)
call SetSoundChannel(udg_sound127,0)
call SetSoundVolume(udg_sound127,127)
call SetSoundPitch(udg_sound127,1.)
call SetSoundDistances(udg_sound127,600.,10000.)
call SetSoundDistanceCutoff(udg_sound127,3000.)
call SetSoundConeAngles(udg_sound127,.0,.0,127)
call SetSoundConeOrientation(udg_sound127,.0,.0,.0)
set udg_sound128=CreateSound("war3mapImported\\DoorClose.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound128,520)
call SetSoundChannel(udg_sound128,0)
call SetSoundVolume(udg_sound128,'n')
call SetSoundPitch(udg_sound128,1.1)
call SetSoundDistances(udg_sound128,600.,10000.)
call SetSoundDistanceCutoff(udg_sound128,3000.)
call SetSoundConeAngles(udg_sound128,.0,.0,127)
call SetSoundConeOrientation(udg_sound128,.0,.0,.0)
set udg_sound129=CreateSound("Sound\\Ambient\\DoodadEffects\\Switch.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound129,"Switch")
call SetSoundDuration(udg_sound129,2606)
call SetSoundChannel(udg_sound129,5)
call SetSoundPitch(udg_sound129,1.1)
call SetSoundDistances(udg_sound129,600.,10000.)
call SetSoundDistanceCutoff(udg_sound129,3000.)
set udg_sound130=CreateSound("Sound\\Ambient\\DoodadEffects\\Switch.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound130,"Switch")
call SetSoundDuration(udg_sound130,2606)
call SetSoundChannel(udg_sound130,5)
call SetSoundVolume(udg_sound130,'d')
call SetSoundPitch(udg_sound130,1.6)
call SetSoundDistances(udg_sound130,600.,10000.)
call SetSoundDistanceCutoff(udg_sound130,3000.)
set udg_sound131=CreateSound("war3mapImported\\DoorOpen.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound131,443)
call SetSoundChannel(udg_sound131,0)
call SetSoundVolume(udg_sound131,127)
call SetSoundPitch(udg_sound131,1.)
call SetSoundDistances(udg_sound131,600.,10000.)
call SetSoundDistanceCutoff(udg_sound131,3000.)
call SetSoundConeAngles(udg_sound131,.0,.0,127)
call SetSoundConeOrientation(udg_sound131,.0,.0,.0)
set udg_sound132=CreateSound("war3mapImported\\DoorOpen.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound132,443)
call SetSoundChannel(udg_sound132,0)
call SetSoundVolume(udg_sound132,'n')
call SetSoundPitch(udg_sound132,1.1)
call SetSoundDistances(udg_sound132,600.,10000.)
call SetSoundDistanceCutoff(udg_sound132,3000.)
call SetSoundConeAngles(udg_sound132,.0,.0,127)
call SetSoundConeOrientation(udg_sound132,.0,.0,.0)
set udg_sound133=CreateSound("Sound\\Ambient\\DoodadEffects\\GateOpen.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound133,"CityEntranceGateOpen")
call SetSoundDuration(udg_sound133,4853)
call SetSoundChannel(udg_sound133,0)
call SetSoundPitch(udg_sound133,.8)
call SetSoundDistances(udg_sound133,600.,10000.)
call SetSoundDistanceCutoff(udg_sound133,3000.)
set udg_sound134=CreateSound("war3mapImported\\EnemyDie.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound134,450)
call SetSoundChannel(udg_sound134,0)
call SetSoundVolume(udg_sound134,127)
call SetSoundPitch(udg_sound134,.9)
call SetSoundDistances(udg_sound134,600.,10000.)
call SetSoundDistanceCutoff(udg_sound134,3000.)
call SetSoundConeAngles(udg_sound134,.0,.0,127)
call SetSoundConeOrientation(udg_sound134,.0,.0,.0)
set udg_sound135=CreateSound("war3mapImported\\Energy.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound135,540)
call SetSoundChannel(udg_sound135,0)
call SetSoundVolume(udg_sound135,95)
call SetSoundPitch(udg_sound135,.9)
set udg_sound136=CreateSound("war3mapImported\\Energy.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound136,540)
call SetSoundChannel(udg_sound136,0)
call SetSoundVolume(udg_sound136,45)
call SetSoundPitch(udg_sound136,.6)
set udg_sound137=CreateSound("war3mapImported\\Energy.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound137,540)
call SetSoundChannel(udg_sound137,0)
call SetSoundVolume(udg_sound137,40)
call SetSoundPitch(udg_sound137,1.)
set udg_sound138=CreateSound("war3mapImported\\Energy.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound138,540)
call SetSoundChannel(udg_sound138,0)
call SetSoundVolume(udg_sound138,50)
call SetSoundPitch(udg_sound138,1.)
set udg_sound139=CreateSound("war3mapImported\\Energy.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound139,540)
call SetSoundChannel(udg_sound139,0)
call SetSoundVolume(udg_sound139,30)
call SetSoundPitch(udg_sound139,.7)
set udg_sound140=CreateSound("war3mapImported\\Energy.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound140,540)
call SetSoundChannel(udg_sound140,0)
call SetSoundVolume(udg_sound140,'n')
call SetSoundPitch(udg_sound140,.9)
set udg_sound141=CreateSound("war3mapImported\\Energy.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound141,540)
call SetSoundChannel(udg_sound141,0)
call SetSoundVolume(udg_sound141,60)
call SetSoundPitch(udg_sound141,.6)
set udg_sound142=CreateSound("war3mapImported\\Glassbreak.wav",false,true,false,10,10,"HeroAcksEAX")
call SetSoundDuration(udg_sound142,1176)
call SetSoundChannel(udg_sound142,11)
call SetSoundVolume(udg_sound142,127)
call SetSoundPitch(udg_sound142,1.)
call SetSoundDistances(udg_sound142,600.,10000.)
call SetSoundDistanceCutoff(udg_sound142,3000.)
call SetSoundConeAngles(udg_sound142,.0,.0,127)
call SetSoundConeOrientation(udg_sound142,.0,.0,.0)
set udg_sound143=CreateSound("Units\\Creeps\\RockGolem\\RockGolemAttack2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound143,"RockGolemAttack2")
call SetSoundDuration(udg_sound143,896)
call SetSoundChannel(udg_sound143,0)
call SetSoundVolume(udg_sound143,60)
call SetSoundPitch(udg_sound143,1.6)
set udg_sound144=CreateSound("war3mapImported\\Charge.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound144,2460)
call SetSoundChannel(udg_sound144,0)
call SetSoundVolume(udg_sound144,'n')
call SetSoundPitch(udg_sound144,1.)
call SetSoundDistances(udg_sound144,600.,10000.)
call SetSoundDistanceCutoff(udg_sound144,3000.)
call SetSoundConeAngles(udg_sound144,.0,.0,127)
call SetSoundConeOrientation(udg_sound144,.0,.0,.0)
set udg_sound145=CreateSound("Sound\\Units\\Footsteps\\step.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound145,"TestFootstep")
call SetSoundDuration(udg_sound145,540)
call SetSoundChannel(udg_sound145,0)
call SetSoundVolume(udg_sound145,90)
call SetSoundPitch(udg_sound145,.7)
call SetSoundDistances(udg_sound145,600.,10000.)
call SetSoundDistanceCutoff(udg_sound145,3000.)
set udg_sound146=CreateSound("war3mapImported\\PlasmaWave.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound146,979)
call SetSoundChannel(udg_sound146,0)
call SetSoundVolume(udg_sound146,'s')
call SetSoundPitch(udg_sound146,.6)
set udg_sound147=CreateSound("Abilities\\Spells\\Human\\Defend\\DefendCaster.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound147,"Defend")
call SetSoundDuration(udg_sound147,1167)
call SetSoundChannel(udg_sound147,0)
call SetSoundVolume(udg_sound147,75)
call SetSoundPitch(udg_sound147,1.1)
set udg_sound148=CreateSound("Units\\Demon\\HeroPitLord\\HeroPItLordAttack3.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound148,"PitLordAttack3")
call SetSoundDuration(udg_sound148,772)
call SetSoundChannel(udg_sound148,0)
call SetSoundVolume(udg_sound148,'x')
call SetSoundPitch(udg_sound148,1.5)
set udg_sound149=CreateSound("war3mapImported\\Land.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound149,209)
call SetSoundChannel(udg_sound149,0)
call SetSoundVolume(udg_sound149,'d')
call SetSoundPitch(udg_sound149,1.)
call SetSoundDistances(udg_sound149,600.,10000.)
call SetSoundDistanceCutoff(udg_sound149,3000.)
call SetSoundConeAngles(udg_sound149,.0,.0,127)
call SetSoundConeOrientation(udg_sound149,.0,.0,.0)
set udg_sound150=CreateSound("Abilities\\Spells\\Human\\Flare\\FlareTarget1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound150,"Flare1")
call SetSoundDuration(udg_sound150,3582)
call SetSoundChannel(udg_sound150,0)
call SetSoundVolume(udg_sound150,90)
call SetSoundPitch(udg_sound150,1.8)
set udg_sound151=CreateSound("Units\\Creeps\\RockGolem\\RockGolemAttack1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound151,"RockGolemAttack1")
call SetSoundDuration(udg_sound151,951)
call SetSoundChannel(udg_sound151,0)
call SetSoundVolume(udg_sound151,60)
call SetSoundPitch(udg_sound151,1.6)
set udg_sound152=CreateSound("Sound\\Units\\Footsteps\\WaterStep1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound152,"WaterStep")
call SetSoundDuration(udg_sound152,801)
call SetSoundChannel(udg_sound152,0)
call SetSoundVolume(udg_sound152,65)
call SetSoundPitch(udg_sound152,.6)
call SetSoundDistances(udg_sound152,600.,10000.)
call SetSoundDistanceCutoff(udg_sound152,3000.)
set udg_sound153=CreateSound("war3mapImported\\Damage.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound153,421)
call SetSoundChannel(udg_sound153,0)
call SetSoundVolume(udg_sound153,127)
call SetSoundPitch(udg_sound153,1.)
set udg_sound154=CreateSound("war3mapImported\\Damage.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound154,421)
call SetSoundChannel(udg_sound154,0)
call SetSoundVolume(udg_sound154,127)
call SetSoundPitch(udg_sound154,1.)
set udg_sound155=CreateSound("war3mapImported\\Damage.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound155,421)
call SetSoundChannel(udg_sound155,0)
call SetSoundVolume(udg_sound155,127)
call SetSoundPitch(udg_sound155,1.)
set udg_sound156=CreateSound("war3mapImported\\Damage.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound156,421)
call SetSoundChannel(udg_sound156,0)
call SetSoundVolume(udg_sound156,127)
call SetSoundPitch(udg_sound156,1.)
set udg_sound157=CreateSound("war3mapImported\\Damage.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound157,421)
call SetSoundChannel(udg_sound157,0)
call SetSoundVolume(udg_sound157,127)
call SetSoundPitch(udg_sound157,1.)
set udg_sound158=CreateSound("war3mapImported\\Damage.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound158,421)
call SetSoundChannel(udg_sound158,0)
call SetSoundVolume(udg_sound158,127)
call SetSoundPitch(udg_sound158,1.)
set udg_sound159=CreateSound("war3mapImported\\Acid.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound159,998)
call SetSoundChannel(udg_sound159,0)
call SetSoundVolume(udg_sound159,80)
call SetSoundPitch(udg_sound159,1.)
set udg_sound160=CreateSound("war3mapImported\\Ice.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound160,643)
call SetSoundChannel(udg_sound160,5)
call SetSoundVolume(udg_sound160,127)
call SetSoundPitch(udg_sound160,1.)
call SetSoundDistances(udg_sound160,600.,10000.)
call SetSoundDistanceCutoff(udg_sound160,3000.)
call SetSoundConeAngles(udg_sound160,.0,.0,127)
call SetSoundConeOrientation(udg_sound160,.0,.0,.0)
set udg_sound161=CreateSound("war3mapImported\\Ice.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound161,643)
call SetSoundChannel(udg_sound161,5)
call SetSoundVolume(udg_sound161,127)
call SetSoundPitch(udg_sound161,1.1)
call SetSoundDistances(udg_sound161,600.,10000.)
call SetSoundDistanceCutoff(udg_sound161,3000.)
call SetSoundConeAngles(udg_sound161,.0,.0,127)
call SetSoundConeOrientation(udg_sound161,.0,.0,.0)
set udg_sound162=CreateSound("war3mapImported\\IceWave.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound162,897)
call SetSoundChannel(udg_sound162,5)
call SetSoundVolume(udg_sound162,127)
call SetSoundPitch(udg_sound162,1.)
call SetSoundDistances(udg_sound162,600.,10000.)
call SetSoundDistanceCutoff(udg_sound162,3000.)
call SetSoundConeAngles(udg_sound162,.0,.0,127)
call SetSoundConeOrientation(udg_sound162,.0,.0,.0)
set udg_sound163=CreateSound("war3mapImported\\IceWave.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound163,897)
call SetSoundChannel(udg_sound163,5)
call SetSoundVolume(udg_sound163,127)
call SetSoundPitch(udg_sound163,.9)
call SetSoundDistances(udg_sound163,600.,10000.)
call SetSoundDistanceCutoff(udg_sound163,3000.)
call SetSoundConeAngles(udg_sound163,.0,.0,127)
call SetSoundConeOrientation(udg_sound163,.0,.0,.0)
set udg_sound164=CreateSound("war3mapImported\\IceWave.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound164,897)
call SetSoundChannel(udg_sound164,5)
call SetSoundVolume(udg_sound164,127)
call SetSoundPitch(udg_sound164,1.1)
call SetSoundDistances(udg_sound164,600.,10000.)
call SetSoundDistanceCutoff(udg_sound164,3000.)
call SetSoundConeAngles(udg_sound164,.0,.0,127)
call SetSoundConeOrientation(udg_sound164,.0,.0,.0)
set udg_sound165=CreateSound("war3mapImported\\transmission.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound165,789)
call SetSoundChannel(udg_sound165,8)
call SetSoundVolume(udg_sound165,'x')
call SetSoundPitch(udg_sound165,1.1)
set udg_sound166=CreateSound("war3mapImported\\Target.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound166,183)
call SetSoundChannel(udg_sound166,0)
call SetSoundVolume(udg_sound166,127)
call SetSoundPitch(udg_sound166,.9)
set udg_sound167=CreateSound("war3mapImported\\Beep.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound167,357)
call SetSoundChannel(udg_sound167,0)
call SetSoundVolume(udg_sound167,'x')
call SetSoundPitch(udg_sound167,.8)
set udg_sound168=CreateSound("war3mapImported\\Beep.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound168,357)
call SetSoundChannel(udg_sound168,0)
call SetSoundVolume(udg_sound168,127)
call SetSoundPitch(udg_sound168,1.)
set udg_sound169=CreateSound("war3mapImported\\transmission.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound169,789)
call SetSoundChannel(udg_sound169,0)
call SetSoundVolume(udg_sound169,'d')
call SetSoundPitch(udg_sound169,1.2)
set udg_sound170=CreateSound("war3mapImported\\Target.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound170,183)
call SetSoundChannel(udg_sound170,0)
call SetSoundVolume(udg_sound170,'x')
call SetSoundPitch(udg_sound170,1.)
set udg_sound171=CreateSound("war3mapImported\\transmission.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound171,789)
call SetSoundChannel(udg_sound171,0)
call SetSoundVolume(udg_sound171,'x')
call SetSoundPitch(udg_sound171,1.)
set udg_sound172=CreateSound("war3mapImported\\Target.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound172,183)
call SetSoundChannel(udg_sound172,0)
call SetSoundVolume(udg_sound172,127)
call SetSoundPitch(udg_sound172,.9)
set udg_sound173=CreateSound("Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound173,"EntanglingRoots")
call SetSoundDuration(udg_sound173,1625)
call SetSoundChannel(udg_sound173,0)
call SetSoundPitch(udg_sound173,.7)
call SetSoundDistances(udg_sound173,600.,10000.)
set udg_sound174=CreateSound("Abilities\\Spells\\Demon\\RainOfFire\\RainOfFireLoop1.wav",true,false,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound174,"RainOfFireLoop")
call SetSoundDuration(udg_sound174,4000)
call SetSoundChannel(udg_sound174,0)
call SetSoundVolume(udg_sound174,90)
call SetSoundPitch(udg_sound174,.7)
set udg_sound175=CreateSound("war3mapImported\\plasma.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound175,524)
call SetSoundChannel(udg_sound175,5)
call SetSoundVolume(udg_sound175,127)
call SetSoundPitch(udg_sound175,1.)
call SetSoundDistances(udg_sound175,600.,10000.)
call SetSoundDistanceCutoff(udg_sound175,3000.)
call SetSoundConeAngles(udg_sound175,.0,.0,127)
call SetSoundConeOrientation(udg_sound175,.0,.0,.0)
set udg_sound176=CreateSound("war3mapImported\\plasma.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound176,524)
call SetSoundChannel(udg_sound176,5)
call SetSoundVolume(udg_sound176,127)
call SetSoundPitch(udg_sound176,1.1)
call SetSoundDistances(udg_sound176,600.,10000.)
call SetSoundDistanceCutoff(udg_sound176,3000.)
call SetSoundConeAngles(udg_sound176,.0,.0,127)
call SetSoundConeOrientation(udg_sound176,.0,.0,.0)
set udg_sound177=CreateSound("war3mapImported\\PlasmaWave.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound177,979)
call SetSoundChannel(udg_sound177,5)
call SetSoundVolume(udg_sound177,127)
call SetSoundPitch(udg_sound177,1.)
call SetSoundDistances(udg_sound177,600.,10000.)
call SetSoundDistanceCutoff(udg_sound177,3000.)
call SetSoundConeAngles(udg_sound177,.0,.0,127)
call SetSoundConeOrientation(udg_sound177,.0,.0,.0)
set udg_sound178=CreateSound("war3mapImported\\PlasmaWave.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound178,979)
call SetSoundChannel(udg_sound178,5)
call SetSoundVolume(udg_sound178,127)
call SetSoundPitch(udg_sound178,.9)
call SetSoundDistances(udg_sound178,600.,10000.)
call SetSoundDistanceCutoff(udg_sound178,3000.)
call SetSoundConeAngles(udg_sound178,.0,.0,127)
call SetSoundConeOrientation(udg_sound178,.0,.0,.0)
set udg_sound179=CreateSound("war3mapImported\\PlasmaWave.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound179,979)
call SetSoundChannel(udg_sound179,5)
call SetSoundVolume(udg_sound179,127)
call SetSoundPitch(udg_sound179,1.1)
call SetSoundDistances(udg_sound179,600.,10000.)
call SetSoundDistanceCutoff(udg_sound179,3000.)
call SetSoundConeAngles(udg_sound179,.0,.0,127)
call SetSoundConeOrientation(udg_sound179,.0,.0,.0)
set udg_sound180=CreateSound("war3mapImported\\Power.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound180,345)
call SetSoundChannel(udg_sound180,5)
call SetSoundVolume(udg_sound180,127)
call SetSoundPitch(udg_sound180,1.1)
call SetSoundDistances(udg_sound180,600.,10000.)
call SetSoundDistanceCutoff(udg_sound180,3000.)
call SetSoundConeAngles(udg_sound180,.0,.0,127)
call SetSoundConeOrientation(udg_sound180,.0,.0,.0)
set udg_sound181=CreateSound("war3mapImported\\Power.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound181,345)
call SetSoundChannel(udg_sound181,5)
call SetSoundVolume(udg_sound181,127)
call SetSoundPitch(udg_sound181,1.)
call SetSoundDistances(udg_sound181,600.,10000.)
call SetSoundDistanceCutoff(udg_sound181,3000.)
call SetSoundConeAngles(udg_sound181,.0,.0,127)
call SetSoundConeOrientation(udg_sound181,.0,.0,.0)
set udg_sound182=CreateSound("Sound\\Ambient\\DoodadEffects\\Switch.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound182,"Switch")
call SetSoundDuration(udg_sound182,2606)
call SetSoundChannel(udg_sound182,0)
call SetSoundPitch(udg_sound182,1.1)
call SetSoundDistances(udg_sound182,600.,10000.)
call SetSoundDistanceCutoff(udg_sound182,3000.)
set udg_sound183=CreateSound("Sound\\Ambient\\DoodadEffects\\Switch.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound183,"Switch")
call SetSoundDuration(udg_sound183,2606)
call SetSoundChannel(udg_sound183,0)
call SetSoundPitch(udg_sound183,1.1)
call SetSoundDistances(udg_sound183,600.,10000.)
call SetSoundDistanceCutoff(udg_sound183,3000.)
set udg_sound184=CreateSound("Sound\\Ambient\\DoodadEffects\\Switch.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound184,"Switch")
call SetSoundDuration(udg_sound184,2606)
call SetSoundChannel(udg_sound184,0)
call SetSoundPitch(udg_sound184,1.1)
call SetSoundDistances(udg_sound184,600.,10000.)
call SetSoundDistanceCutoff(udg_sound184,3000.)
set udg_sound185=CreateSound("Sound\\Ambient\\DoodadEffects\\Switch.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound185,"Switch")
call SetSoundDuration(udg_sound185,2606)
call SetSoundChannel(udg_sound185,0)
call SetSoundPitch(udg_sound185,1.1)
call SetSoundDistances(udg_sound185,600.,10000.)
call SetSoundDistanceCutoff(udg_sound185,3000.)
set udg_sound186=CreateSound("war3mapImported\\PlasmaWave.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound186,979)
call SetSoundChannel(udg_sound186,0)
call SetSoundVolume(udg_sound186,127)
call SetSoundPitch(udg_sound186,1.1)
call SetSoundDistances(udg_sound186,600.,10000.)
call SetSoundDistanceCutoff(udg_sound186,3000.)
call SetSoundConeAngles(udg_sound186,.0,.0,127)
call SetSoundConeOrientation(udg_sound186,.0,.0,.0)
set udg_sound187=CreateSound("war3mapImported\\PlasmaWave.wav",false,true,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound187,979)
call SetSoundChannel(udg_sound187,0)
call SetSoundVolume(udg_sound187,127)
call SetSoundPitch(udg_sound187,1.)
call SetSoundDistances(udg_sound187,600.,10000.)
call SetSoundDistanceCutoff(udg_sound187,3000.)
call SetSoundConeAngles(udg_sound187,.0,.0,127)
call SetSoundConeOrientation(udg_sound187,.0,.0,.0)
set udg_sound188=CreateSound("Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsDecay1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound188,"EntanglingRootsDecay")
call SetSoundDuration(udg_sound188,798)
call SetSoundPitch(udg_sound188,.9)
set udg_sound189=CreateSound("Abilities\\Spells\\Other\\Submerge\\Submerge1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound189,"SubmergeSound")
call SetSoundDuration(udg_sound189,1524)
call SetSoundChannel(udg_sound189,0)
call SetSoundPitch(udg_sound189,.6)
call SetSoundDistances(udg_sound189,600.,10000.)
call SetSoundDistanceCutoff(udg_sound189,3000.)
set udg_sound190=CreateSound("Sound\\Ambient\\DoodadEffects\\LordaeronSummerCauldronLoop1.wav",true,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound190,"CauldronLoop")
call SetSoundDuration(udg_sound190,2786)
call SetSoundChannel(udg_sound190,0)
call SetSoundVolume(udg_sound190,'x')
call SetSoundPitch(udg_sound190,.9)
set udg_sound191=CreateSound("war3mapImported\\wave.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound191,798)
call SetSoundChannel(udg_sound191,5)
call SetSoundVolume(udg_sound191,127)
call SetSoundPitch(udg_sound191,.9)
call SetSoundDistances(udg_sound191,600.,10000.)
call SetSoundDistanceCutoff(udg_sound191,3000.)
call SetSoundConeAngles(udg_sound191,.0,.0,127)
call SetSoundConeOrientation(udg_sound191,.0,.0,.0)
set udg_sound192=CreateSound("war3mapImported\\wave.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound192,798)
call SetSoundChannel(udg_sound192,5)
call SetSoundVolume(udg_sound192,127)
call SetSoundPitch(udg_sound192,.9)
call SetSoundDistances(udg_sound192,600.,10000.)
call SetSoundDistanceCutoff(udg_sound192,3000.)
call SetSoundConeAngles(udg_sound192,.0,.0,127)
call SetSoundConeOrientation(udg_sound192,.0,.0,.0)
set udg_sound193=CreateSound("war3mapImported\\wave.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound193,798)
call SetSoundChannel(udg_sound193,5)
call SetSoundVolume(udg_sound193,127)
call SetSoundPitch(udg_sound193,1.)
call SetSoundDistances(udg_sound193,600.,10000.)
call SetSoundDistanceCutoff(udg_sound193,3000.)
call SetSoundConeAngles(udg_sound193,.0,.0,127)
call SetSoundConeOrientation(udg_sound193,.0,.0,.0)
set udg_sound194=CreateSound("Abilities\\Spells\\Human\\Feedback\\Feedback.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound194,"Feedback")
call SetSoundDuration(udg_sound194,1222)
call SetSoundVolume(udg_sound194,'d')
call SetSoundPitch(udg_sound194,.6)
set udg_sound195=CreateSound("Abilities\\Spells\\Human\\SpellSteal\\SpellStealTarget.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound195,"SpellStealTarget")
call SetSoundDuration(udg_sound195,984)
call SetSoundVolume(udg_sound195,80)
call SetSoundPitch(udg_sound195,.7)
set udg_rect06=Rect(8576.,-8448.,8960.,-7552.)
set udg_rect07=Rect(7808.,-7680.,8576.,-7552.)
set udg_rect08=Rect(8576.,-8832.,8704.,-8448.)
set udg_rect09=Rect(7680.,-8320.,8192.,-8192.)
set udg_rect10=Rect(7808.,-8192.,8576.,-8064.)
set udg_rect11=Rect(7808.,-8832.,8192.,-8320.)
set udg_rect12=Rect(7808.,-8064.,8064.,-7680.)
set udg_rect13=Rect(8192.,-8832.,8576.,-8704.)
set udg_rect14=Rect(4736.,-7936.,4992.,-7808.)
set udg_rect15=Rect(5888.,-6528.,6144.,-6272.)
set udg_rect16=Rect(5376.,-6656.,5888.,-5888.)
set udg_rect17=Rect(5760.,-7808.,6144.,-7168.)
set udg_rect18=Rect(5376.,-7424.,5760.,-7296.)
set udg_rect19=Rect(5632.,-7296.,5760.,-6656.)
set udg_rect20=Rect(5376.,-6784.,5632.,-6656.)
set udg_rect21=Rect(4480.,-7936.,4736.,-7424.)
set udg_rect22=Rect(6912.,7680.,7552.,7936.)
set udg_rect23=Rect(7040.,7936.,7552.,8320.)
set udg_rect24=Rect(7040.,8320.,7296.,8832.)
set udg_rect25=Rect(-3328.,-9088.,-2432.,-8960.)
set udg_rect26=Rect(-3072.,-9472.,-2944.,-9088.)
set udg_rect27=Rect(-2560.,-9216.,-2432.,-9088.)
set udg_rect28=Rect(-2560.,-9472.,-2048.,-9216.)
set udg_rect29=Rect(10304.,-11840.,11584.,-10944.)
set we=AddWeatherEffect(udg_rect29,'FDwl')
call EnableWeatherEffect(we,true)
set udg_rect30=Rect(-1888.,-5856.,-1440.,-5504.)
set udg_rect31=Rect(7616.,-7040.,8128.,-6592.)
set udg_rect32=Rect(1984.,-5600.,2336.,-4832.)
set udg_rect33=Rect(5568.,-8288.,6304.,-7808.)
set udg_rect34=Rect(5760.,6848.,6144.,7392.)
set udg_rect35=Rect(-64.,2016.,448.,2912.)
set udg_rect36=Rect(8640.,-10944.,9536.,-10432.)
set udg_rect37=Rect(1568.,2048.,2144.,2400.)
set udg_rect38=Rect(2048.,6496.,2944.,7296.)
set udg_rect39=Rect(8064.,-3424.,8416.,-2848.)
set udg_rect40=Rect(-5728.,-3936.,-5056.,-3584.)
set udg_rect41=Rect(3296.,-2912.,3616.,-2432.)
set udg_rect42=Rect(-1728.,1184.,-1472.,1504.)
set udg_rect43=Rect(7616.,-10944.,8512.,-10432.)
set udg_rect44=Rect(6912.,4704.,7616.,5376.)
set udg_rect45=Rect(7104.,4864.,7488.,5248.)
set udg_rect46=Rect(7168.,4864.,7456.,5152.)
set udg_rect47=Rect(5376.,3968.,9472.,6016.)
set udg_rect48=Rect(7744.,4480.,8000.,4736.)
set udg_rect49=Rect(7424.,5568.,7680.,5824.)
set udg_rect50=Rect(7104.,4160.,7360.,4416.)
set udg_rect51=Rect(6592.,5248.,6848.,5504.)
set udg_rect52=Rect(-4224.,-11776.,-2432.,-10752.)
set udg_rect53=Rect(-5760.,-11648.,-4352.,-10496.)
set udg_rect54=Rect(3456.,-11392.,4608.,-10240.)
set udg_rect55=Rect(-5056.,-11072.,-4800.,-10816.)
set udg_rect56=Rect(64.,-11520.,672.,-11392.)
set udg_rect57=Rect(2688.,-11840.,5376.,-9664.)
set udg_rect58=Rect(4000.,-11008.,4416.,-10528.)
set udg_rect59=Rect(4160.,-11008.,4512.,-10528.)
set udg_rect60=Rect(-4416.,-11712.,2624.,-10816.)
set udg_rect61=Rect(-4736.,-11264.,-4608.,-11136.)
set udg_rect62=Rect(2016.,-6272.,2304.,-6208.)
set udg_rect63=Rect(-4576.,-5632.,-3968.,-5568.)
set udg_rect64=Rect(10368.,-3456.,10432.,-2304.)
set udg_rect65=Rect(-4608.,-5600.,-4544.,-4480.)
set udg_rect66=Rect(7552.,-6528.,7616.,-5888.)
set udg_rect67=Rect(7552.,7808.,7616.,8192.)
set udg_rect68=Rect(1984.,-6784.,2048.,-6240.)
set udg_rect69=Rect(7488.,-1408.,7552.,-768.)
set udg_rect70=Rect(-6848.,6400.,-6784.,6784.)
set udg_rect71=Rect(6976.,8320.,7040.,8832.)
set udg_rect72=Rect(6656.,-7616.,7040.,-7552.)
set udg_rect73=Rect(-768.,-8000.,-384.,-7936.)
set udg_rect74=Rect(-1664.,-960.,-1056.,-384.)
set udg_rect75=Rect(2240.,480.,2784.,928.)
set udg_rect76=Rect(8896.,-11584.,9536.,-11072.)
set udg_rect77=Rect(4928.,-5568.,5472.,-5056.)
set udg_rect78=Rect(9504.,-1280.,10048.,-640.)
set udg_rect79=Rect(3744.,-7008.,4288.,-6432.)
set udg_rect80=Rect(8128.,-11584.,8768.,-11072.)
set udg_rect81=Rect(10176.,3008.,10656.,3584.)
set udg_rect82=Rect(5568.,8768.,6112.,9280.)
set udg_rect83=Rect(1440.,8128.,2016.,8672.)
set udg_rect84=Rect(5792.,2560.,6336.,3200.)
set udg_rect85=Rect(7360.,-11584.,8000.,-11072.)
set udg_rect86=Rect(1248.,-4512.,1760.,-3968.)
set udg_rect87=Rect(-3008.,-6336.,-2464.,-5696.)
set udg_rect88=Rect(-2240.,-7872.,-1728.,-7360.)
set udg_rect89=Rect(1216.,2624.,1696.,3136.)
set udg_rect90=Rect(6592.,-11584.,7232.,-11072.)
set udg_rect91=Rect(-4832.,352.,-4704.,480.)
set udg_rect92=Rect(-5184.,512.,-5056.,896.)
set udg_rect93=Rect(-5184.,192.,-5056.,320.)
set udg_rect94=Rect(-3904.,8800.,-3776.,8928.)
set udg_rect95=Rect(-4128.,8384.,-3392.,9376.)
set udg_rect96=Rect(-4384.,8640.,-3904.,9120.)
set udg_rect97=Rect(-4192.,8800.,-4064.,8928.)
set udg_rect98=Rect(-5056.,7360.,-3200.,10080.)
set udg_rect99=Rect(-5600.,-480.,-4640.,2272.)
set we=AddWeatherEffect(udg_rect99,'FDwl')
call EnableWeatherEffect(we,true)
set udg_rect100=Rect(128.,2688.,1152.,3360.)
set we=AddWeatherEffect(udg_rect100,'FDwl')
call EnableWeatherEffect(we,true)
set udg_rect101=Rect(2720.,1088.,4352.,1984.)
set we=AddWeatherEffect(udg_rect101,'FDwl')
call EnableWeatherEffect(we,true)
set udg_rect102=Rect(6688.,-1888.,9440.,-160.)
set we=AddWeatherEffect(udg_rect102,'FDrl')
call EnableWeatherEffect(we,true)
set udg_rect103=Rect(10880.,-11520.,11008.,-11392.)
set udg_rect104=Rect(-8832.,-11136.,-8320.,-10624.)
set udg_rect105=Rect(-8320.,-11136.,-7808.,-10624.)
set udg_rect106=Rect(-7808.,-11136.,-7296.,-10624.)
set udg_rect107=Rect(-7296.,-11136.,-6784.,-10624.)
set udg_rect108=Rect(8064.,-4096.,8320.,-3840.)
set udg_rect109=Rect(7680.,-4352.,8064.,-3840.)
set udg_rect110=Rect(7424.,-4352.,7680.,-3968.)
set udg_rect111=Rect(7552.,-896.,8448.,-640.)
set udg_rect112=Rect(8448.,-1024.,8832.,-640.)
set udg_rect113=Rect(8576.,-1536.,8832.,-1024.)
set udg_rect114=Rect(7552.,-1536.,7936.,-896.)
set udg_rect115=Rect(7936.,-1536.,8576.,-1408.)
set udg_rect116=Rect(8192.,384.,8448.,1280.)
set udg_rect117=Rect(8448.,896.,8576.,1280.)
set udg_rect118=Rect(-384.,6784.,128.,6912.)
set udg_rect119=Rect(-2944.,6784.,-2304.,6912.)
set udg_rect120=Rect(-6144.,9472.,-6016.,9600.)
set udg_rect121=Rect(-6528.,7680.,-6400.,7808.)
set udg_rect122=Rect(-4608.,7424.,-4480.,7552.)
set udg_rect123=Rect(-736.,-7008.,-416.,-6304.)
set udg_rect124=Rect(1696.,-7264.,1888.,-5920.)
set udg_rect125=Rect(4704.,-7264.,4960.,-6560.)
set udg_rect126=Rect(8192.,-7136.,9056.,-6688.)
set udg_rect127=Rect(-4448.,-5088.,-3616.,-4512.)
set udg_rect128=Rect(2080.,-4576.,3424.,-4128.)
set udg_rect129=Rect(10016.,-3552.,10336.,-2240.)
set udg_rect130=Rect(8480.,-4192.,9440.,-3488.)
set udg_rect131=Rect(6560.,-1376.,7392.,-544.)
set udg_rect132=Rect(10016.,4896.,10592.,5344.)
set udg_rect133=Rect(2976.,8480.,3296.,9312.)
set udg_rect134=Rect(7968.,8992.,9184.,9440.)
set udg_rect135=Rect(2944.,2560.,6016.,3584.)
set udg_rect136=Rect(6144.,2176.,7040.,3584.)
set udg_rect137=Rect(5120.,3712.,9728.,6272.)
set udg_rect138=Rect(9856.,4608.,10752.,7424.)
set udg_rect139=Rect(9856.,3328.,10752.,4480.)
set udg_rect140=Rect(5888.,7552.,10752.,9600.)
set udg_rect141=Rect(8832.,6400.,9728.,7424.)
set udg_rect142=Rect(1792.,6400.,8704.,7424.)
set udg_rect143=Rect(1792.,7552.,5760.,9600.)
set udg_rect144=Rect(4736.,9728.,6272.,10624.)
set udg_rect145=Rect(128.,7808.,1664.,8832.)
set udg_rect146=Rect(7168.,2176.,7808.,2944.)
set udg_rect147=Rect(5248.,-8960.,6272.,-3456.)
set udg_rect148=Rect(4096.,-8064.,5120.,-4864.)
set udg_rect149=Rect(2944.,-7136.,4000.,-6272.)
set udg_rect150=Rect(2944.,-8832.,3968.,-7296.)
set udg_rect151=Rect(6400.,-8960.,9728.,-5632.)
set udg_rect152=Rect(9856.,-7424.,10880.,-6656.)
set udg_rect153=Rect(9856.,-6528.,10880.,128.)
set udg_rect154=Rect(6400.,-4448.,9728.,-2272.)
set udg_rect155=Rect(6400.,-2176.,9728.,128.)
set udg_rect156=Rect(6016.,256.,9728.,1408.)
set udg_rect157=Rect(9856.,256.,10880.,1408.)
set udg_rect158=Rect(-128.,512.,1408.,1536.)
set udg_rect159=Rect(4608.,-768.,5504.,384.)
set udg_rect160=Rect(512.,-6144.,1408.,-4864.)
set udg_rect161=Rect(9856.,-8960.,10880.,-7552.)
set udg_rect162=Rect(4096.,-8960.,5120.,-8192.)
set udg_rect163=Rect(-4736.,-8960.,-3584.,-8064.)
set udg_rect164=Rect(-3584.,128.,-1920.,1280.)
set udg_rect165=Rect(3712.,-4352.,4736.,-3072.)
set udg_rect166=Rect(-5760.,-7936.,-4224.,-6656.)
set udg_rect167=Rect(6400.,-5504.,8064.,-4608.)
set udg_rect168=Rect(8704.,9728.,10752.,10880.)
set udg_rect169=Rect(4608.,512.,5632.,2304.)
set udg_rect170=Rect(2048.,5248.,3840.,6272.)
set udg_rect171=Rect(8320.,1536.,9600.,3072.)
set udg_rect172=Rect(3968.,3712.,4992.,5504.)
set udg_rect173=Rect(-2816.,7936.,-896.,9216.)
set udg_rect174=Rect(9728.,1664.,10880.,3200.)
set udg_rect175=Rect(-1792.,3072.,-256.,4096.)
set udg_rect176=Rect(-1280.,-1280.,1408.,384.)
set udg_rect177=Rect(1536.,-2944.,2432.,5120.)
set udg_rect178=Rect(2560.,-2944.,5888.,-896.)
set udg_rect179=Rect(2560.,-768.,4480.,1152.)
set udg_rect180=Rect(2560.,4224.,3456.,5120.)
set udg_rect181=Rect(2560.,1280.,4480.,2304.)
set udg_rect182=Rect(-1280.,-4736.,1408.,-1408.)
set udg_rect183=Rect(-2688.,-7552.,-1408.,-1408.)
set udg_rect184=Rect(-5760.,-6528.,-2816.,-2944.)
set udg_rect185=Rect(-4096.,-7552.,-2816.,-6656.)
set udg_rect186=Rect(-3840.,-2816.,-2816.,-1920.)
set udg_rect187=Rect(-1248.,-8576.,416.,-4864.)
set udg_rect188=Rect(512.,-8576.,1408.,-6784.)
set udg_rect189=Rect(1536.,-8576.,2432.,-4864.)
set udg_rect190=Rect(1536.,-4736.,3584.,-3072.)
set udg_rect191=Rect(2560.,-5760.,3584.,-4864.)
set udg_rect192=Rect(-1280.,-9600.,1664.,-8704.)
set udg_rect193=Rect(-3456.,-9600.,-1408.,-7680.)
set udg_rect194=Rect(-4352.,-1280.,-1408.,.0)
set udg_rect195=Rect(-5760.,-2816.,-4480.,2432.)
set udg_rect196=Rect(-6912.,2560.,-1920.,3712.)
set udg_rect197=Rect(-1792.,512.,-256.,2944.)
set udg_rect198=Rect(-128.,1664.,1408.,3584.)
set udg_rect199=Rect(-3328.,5120.,768.,6272.)
set udg_rect200=Rect(-4736.,5120.,-3456.,6272.)
set udg_rect201=Rect(-5248.,6400.,768.,7296.)
set udg_rect202=Rect(-5888.,7424.,-2944.,10496.)
set udg_rect203=Rect(-6912.,7936.,-6016.,10112.)
set udg_rect204=Rect(-7552.,5120.,-6016.,7808.)
set udg_rect205=Rect(-1792.,9344.,896.,10240.)
set udg_rect206=Rect(-5888.,3008.,-5760.,3072.)
set udg_rect207=Rect(-6784.,6784.,-6144.,6880.)
set udg_rect208=Rect(-6656.,6112.,-6112.,6240.)
set udg_rect209=Rect(-5632.,2912.,-5408.,3168.)
set udg_rect210=Rect(-6528.,6976.,-6368.,7104.)
set udg_rect211=Rect(-6432.,6272.,-6304.,6400.)
set udg_rect212=Rect(-6464.,5824.,-6336.,5952.)
set udg_rect213=Rect(-6272.,5760.,-6144.,5888.)
set udg_rect214=Rect(-5056.,3008.,-4896.,3200.)
set udg_rect215=Rect(-6464.,7808.,-6304.,7936.)
set udg_rect216=Rect(-6592.,7072.,-6496.,7168.)
set udg_rect217=Rect(-6784.,6720.,-6144.,6848.)
set udg_rect218=Rect(-6656.,6144.,-6144.,6304.)
set udg_rect219=Rect(-6784.,5824.,-6144.,5888.)
set udg_rect220=Rect(-5568.,2688.,-5504.,3328.)
set udg_rect221=Rect(-6688.,6848.,-6400.,7296.)
set udg_rect222=Rect(-6784.,7424.,-6592.,7488.)
set udg_rect223=Rect(-6656.,7104.,-6400.,7488.)
set udg_rect224=Rect(-4544.,2880.,-4096.,3520.)
set udg_rect225=Rect(-5632.,2432.,-3712.,3712.)
set udg_rect226=Rect(3200.,1280.,3328.,1344.)
set udg_rect227=Rect(-4736.,-1920.,-4608.,-1280.)
set udg_rect228=Rect(-5184.,2688.,-4768.,3584.)
set udg_rect229=Rect(3040.,1696.,3808.,2048.)
set udg_rect230=Rect(2848.,1504.,3808.,1632.)
set udg_rect231=Rect(.0,-576.,128.,-448.)
set udg_rect232=Rect(-128.,-640.,256.,-320.)
set udg_rect233=Rect(.0,-448.,128.,-320.)
set udg_rect234=Rect(-4096.,-11648.,-2688.,-11008.)
set we=AddWeatherEffect(udg_rect234,'FDwl')
call EnableWeatherEffect(we,true)
set udg_rect235=Rect(-3040.,-11168.,-1632.,-10816.)
set we=AddWeatherEffect(udg_rect235,'FDbh')
call EnableWeatherEffect(we,true)
set udg_rect236=Rect(-11008.,-10720.,-10496.,-10304.)
set udg_rect237=Rect(-10240.,-10720.,-9728.,-10304.)
set udg_rect238=Rect(-9472.,-10720.,-8960.,-10304.)
set udg_rect239=Rect(-11008.,-11488.,-10496.,-11072.)
set udg_rect240=Rect(-10240.,-11488.,-9728.,-11072.)
set udg_rect241=Rect(-9472.,-11488.,-8960.,-11072.)
set udg_rect242=Rect(-8320.,-11648.,-7808.,-11136.)
set udg_rect243=Rect(-7808.,-11648.,-7296.,-11136.)
set udg_rect244=Rect(-7296.,-11648.,-6784.,-11136.)
set udg_rect245=Rect(-6784.,-11648.,-6272.,-11136.)
set udg_rect246=Rect(-6272.,-11648.,-5760.,-11136.)
set udg_rect247=Rect(-5760.,-11648.,-5248.,-11136.)
set udg_rect248=Rect(-8704.,-11520.,-8448.,-11264.)
set udg_rect249=Rect(-1152.,-5888.,-640.,-5632.)
set udg_rect250=Rect(-128.,-6400.,256.,-5632.)
set udg_rect251=Rect(-256.,-6400.,-128.,-6144.)
set udg_rect252=Rect(-384.,-6144.,-128.,-5760.)
set udg_rect253=Rect(-640.,-6016.,-384.,-5760.)
set udg_rect254=Rect(1024.,-5120.,1280.,-4992.)
set udg_rect255=Rect(1152.,-5248.,1280.,-5120.)
set udg_rect256=Rect(640.,-6016.,768.,-5760.)
set udg_rect257=Rect(-5632.,-5248.,-4864.,-4864.)
set udg_rect258=Rect(-5376.,-5376.,-4992.,-5248.)
set udg_rect259=Rect(3456.,8448.,4736.,8960.)
set udg_rect260=Rect(3456.,8064.,4480.,8448.)
set udg_rect261=Rect(7552.,-640.,8320.,-576.)
set udg_rect262=Rect(8448.,384.,8512.,768.)
set udg_rect263=Rect(7104.,-3456.,7168.,-3072.)
set udg_rect264=Rect(10496.,-2112.,10752.,-2048.)
set udg_rect265=Rect(-384.,-9216.,-128.,-9152.)
set udg_rect266=Rect(896.,-640.,1280.,128.)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ANGLE_OF_ATTACK,272.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_TARGET_DISTANCE,880.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FIELD_OF_VIEW,72.,.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup02,10943.3,-11456.6,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ANGLE_OF_ATTACK,272.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_TARGET_DISTANCE,880.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_FIELD_OF_VIEW,20.,.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup03,10943.3,-11485.,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ANGLE_OF_ATTACK,324.,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_TARGET_DISTANCE,1100.,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_FIELD_OF_VIEW,55.,.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_FARZ,2500.,.0)
call CameraSetupSetDestPosition(udg_camerasetup04,321.5,-853.1,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ANGLE_OF_ATTACK,295.,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_TARGET_DISTANCE,1550.,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_FIELD_OF_VIEW,78.,.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_FARZ,3000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup05,382.1,-894.1,.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ANGLE_OF_ATTACK,304.,.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_TARGET_DISTANCE,1450.,.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_FIELD_OF_VIEW,80.,.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_FARZ,3000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup06,386.4,-883.4,.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_ANGLE_OF_ATTACK,312.,.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_TARGET_DISTANCE,1450.,.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_FIELD_OF_VIEW,78.,.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_FARZ,3000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup07,388.6,-873.8,.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_ANGLE_OF_ATTACK,320.,.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_TARGET_DISTANCE,1250.,.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_FIELD_OF_VIEW,80.,.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_FARZ,4000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup08,388.8,-869.1,.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_ROTATION,349.3,.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_ANGLE_OF_ATTACK,293.,.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_TARGET_DISTANCE,2550.,.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_FIELD_OF_VIEW,50.,.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup09,3658.6,-10721.3,.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_ROTATION,10.1,.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_ANGLE_OF_ATTACK,319.1,.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_TARGET_DISTANCE,1550.,.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_FIELD_OF_VIEW,50.,.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup10,4311.,-10799.6,.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_ROTATION,359.,.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_ANGLE_OF_ATTACK,.4,.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_TARGET_DISTANCE,300.,.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_ROLL,355.,.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_FIELD_OF_VIEW,45.,.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_FARZ,7000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup11,-3988.7,-11446.3,.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_ROTATION,358.,.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_ANGLE_OF_ATTACK,.5,.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_TARGET_DISTANCE,300.,.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_ROLL,345.,.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_FIELD_OF_VIEW,40.,.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_FARZ,6200.,.0)
call CameraSetupSetDestPosition(udg_camerasetup12,-3262.1,-11289.4,.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_ZOFFSET,87.,.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_ROTATION,169.,.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_ANGLE_OF_ATTACK,347.,.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_TARGET_DISTANCE,600.,.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_FIELD_OF_VIEW,60.,.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_FARZ,700.,.0)
call CameraSetupSetDestPosition(udg_camerasetup13,-4930.8,-11044.8,.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_ZOFFSET,87.,.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_ROTATION,131.9,.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_ANGLE_OF_ATTACK,344.3,.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_TARGET_DISTANCE,550.,.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_FIELD_OF_VIEW,60.,.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_FARZ,700.,.0)
call CameraSetupSetDestPosition(udg_camerasetup14,-4856.7,-11100.9,.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_ZOFFSET,20.,.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_ROTATION,277.1,.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_ANGLE_OF_ATTACK,309.6,.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_TARGET_DISTANCE,1900.,.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_FIELD_OF_VIEW,80.,.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_FARZ,4132.2,.0)
call CameraSetupSetDestPosition(udg_camerasetup15,94.,-693.5,.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_ZOFFSET,30.,.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_ROTATION,23.1,.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_ANGLE_OF_ATTACK,337.4,.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_TARGET_DISTANCE,1750.,.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup16,424.3,-328.,.0)
call CameraSetupSetField(udg_camerasetup17,CAMERA_FIELD_ZOFFSET,50.,.0)
call CameraSetupSetField(udg_camerasetup17,CAMERA_FIELD_ROTATION,81.8,.0)
call CameraSetupSetField(udg_camerasetup17,CAMERA_FIELD_ANGLE_OF_ATTACK,348.1,.0)
call CameraSetupSetField(udg_camerasetup17,CAMERA_FIELD_TARGET_DISTANCE,1350.,.0)
call CameraSetupSetField(udg_camerasetup17,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup17,CAMERA_FIELD_FIELD_OF_VIEW,80.,.0)
call CameraSetupSetField(udg_camerasetup17,CAMERA_FIELD_FARZ,3104.6,.0)
call CameraSetupSetDestPosition(udg_camerasetup17,166.8,292.2,.0)
call CameraSetupSetField(udg_camerasetup18,CAMERA_FIELD_ZOFFSET,80.,.0)
call CameraSetupSetField(udg_camerasetup18,CAMERA_FIELD_ROTATION,115.7,.0)
call CameraSetupSetField(udg_camerasetup18,CAMERA_FIELD_ANGLE_OF_ATTACK,345.8,.0)
call CameraSetupSetField(udg_camerasetup18,CAMERA_FIELD_TARGET_DISTANCE,1300.,.0)
call CameraSetupSetField(udg_camerasetup18,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup18,CAMERA_FIELD_FIELD_OF_VIEW,80.,.0)
call CameraSetupSetField(udg_camerasetup18,CAMERA_FIELD_FARZ,2120.5,.0)
call CameraSetupSetDestPosition(udg_camerasetup18,-302.8,387.4,.0)
call CameraSetupSetField(udg_camerasetup19,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup19,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup19,CAMERA_FIELD_ANGLE_OF_ATTACK,325.,.0)
call CameraSetupSetField(udg_camerasetup19,CAMERA_FIELD_TARGET_DISTANCE,450.,.0)
call CameraSetupSetField(udg_camerasetup19,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup19,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(udg_camerasetup19,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup19,-10751.9,-11263.3,.0)
call CameraSetupSetField(udg_camerasetup20,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup20,CAMERA_FIELD_ROTATION,134.4,.0)
call CameraSetupSetField(udg_camerasetup20,CAMERA_FIELD_ANGLE_OF_ATTACK,334.7,.0)
call CameraSetupSetField(udg_camerasetup20,CAMERA_FIELD_TARGET_DISTANCE,850.,.0)
call CameraSetupSetField(udg_camerasetup20,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup20,CAMERA_FIELD_FIELD_OF_VIEW,105.,.0)
call CameraSetupSetField(udg_camerasetup20,CAMERA_FIELD_FARZ,931.7,.0)
call CameraSetupSetDestPosition(udg_camerasetup20,-5116.4,-10664.8,.0)
call CameraSetupSetField(udg_camerasetup21,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup21,CAMERA_FIELD_ROTATION,188.6,.0)
call CameraSetupSetField(udg_camerasetup21,CAMERA_FIELD_ANGLE_OF_ATTACK,333.8,.0)
call CameraSetupSetField(udg_camerasetup21,CAMERA_FIELD_TARGET_DISTANCE,798.6,.0)
call CameraSetupSetField(udg_camerasetup21,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup21,CAMERA_FIELD_FIELD_OF_VIEW,85.,.0)
call CameraSetupSetField(udg_camerasetup21,CAMERA_FIELD_FARZ,770.,.0)
call CameraSetupSetDestPosition(udg_camerasetup21,-5298.5,-10969.7,.0)
call CameraSetupSetField(udg_camerasetup22,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup22,CAMERA_FIELD_ROTATION,208.7,.0)
call CameraSetupSetField(udg_camerasetup22,CAMERA_FIELD_ANGLE_OF_ATTACK,346.6,.0)
call CameraSetupSetField(udg_camerasetup22,CAMERA_FIELD_TARGET_DISTANCE,1100.,.0)
call CameraSetupSetField(udg_camerasetup22,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup22,CAMERA_FIELD_FIELD_OF_VIEW,120.,.0)
call CameraSetupSetField(udg_camerasetup22,CAMERA_FIELD_FARZ,636.4,.0)
call CameraSetupSetDestPosition(udg_camerasetup22,-5642.,-11376.4,.0)
call CameraSetupSetField(udg_camerasetup23,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup23,CAMERA_FIELD_ROTATION,202.1,.0)
call CameraSetupSetField(udg_camerasetup23,CAMERA_FIELD_ANGLE_OF_ATTACK,345.1,.0)
call CameraSetupSetField(udg_camerasetup23,CAMERA_FIELD_TARGET_DISTANCE,434.5,.0)
call CameraSetupSetField(udg_camerasetup23,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup23,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(udg_camerasetup23,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup23,-2908.4,3279.6,.0)
call CameraSetupSetField(udg_camerasetup24,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup24,CAMERA_FIELD_ROTATION,343.5,.0)
call CameraSetupSetField(udg_camerasetup24,CAMERA_FIELD_ANGLE_OF_ATTACK,318.,.0)
call CameraSetupSetField(udg_camerasetup24,CAMERA_FIELD_TARGET_DISTANCE,1500.,.0)
call CameraSetupSetField(udg_camerasetup24,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup24,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(udg_camerasetup24,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup24,-4843.8,3000.1,.0)
call CameraSetupSetField(udg_camerasetup25,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup25,CAMERA_FIELD_ROTATION,287.5,.0)
call CameraSetupSetField(udg_camerasetup25,CAMERA_FIELD_ANGLE_OF_ATTACK,323.,.0)
call CameraSetupSetField(udg_camerasetup25,CAMERA_FIELD_TARGET_DISTANCE,931.4,.0)
call CameraSetupSetField(udg_camerasetup25,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup25,CAMERA_FIELD_FIELD_OF_VIEW,70.,.0)
call CameraSetupSetField(udg_camerasetup25,CAMERA_FIELD_FARZ,5000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup25,-4823.6,3088.8,.0)
call CameraSetupSetField(udg_camerasetup26,CAMERA_FIELD_ZOFFSET,.0,.0)
call CameraSetupSetField(udg_camerasetup26,CAMERA_FIELD_ROTATION,90.,.0)
call CameraSetupSetField(udg_camerasetup26,CAMERA_FIELD_ANGLE_OF_ATTACK,270.,.0)
call CameraSetupSetField(udg_camerasetup26,CAMERA_FIELD_TARGET_DISTANCE,9000.,.0)
call CameraSetupSetField(udg_camerasetup26,CAMERA_FIELD_ROLL,.0,.0)
call CameraSetupSetField(udg_camerasetup26,CAMERA_FIELD_FIELD_OF_VIEW,20.,.0)
call CameraSetupSetField(udg_camerasetup26,CAMERA_FIELD_FARZ,10000.,.0)
call CameraSetupSetDestPosition(udg_camerasetup26,56.5,-486.3,.0)
set udg_destructable05=CreateDestructableZ('B00H',64.,-384.,1011.2,270.,.5,0)
set udg_destructable06=CreateDestructable('B00I',64.,-512.,270.,1.53,0)
set udg_destructable07=CreateDestructableZ('B00W',32.,-288.,1036.8,243.,.3,0)
set udg_destructable04=CreateDestructableZ('B00W',96.,-288.,1036.8,240.,.3,0)
set udg_destructable12=CreateDestructableZ('B00X',-5120.,672.,595.2,270.,6.5,0)
set udg_destructable13=CreateDestructableZ('B00X',-5120.,736.,595.2,270.,6.5,0)
set udg_destructable10=CreateDestructableZ('B00X',-5120.,800.,595.2,270.,6.5,0)
set udg_destructable11=CreateDestructableZ('B00X',-5120.,608.,595.2,270.,6.5,0)
set udg_destructable25=CreateDestructable('B01R',-3808.,8800.,245.,1.55,0)
set udg_destructable26=CreateDestructable('B01R',-3872.,8864.,133.54,1.64,0)
set udg_destructable24=CreateDestructable('B01R',-3808.,8864.,208.19,1.3,0)
set udg_destructable27=CreateDestructable('B01R',-3808.,8928.,190.03,1.45,0)
set udg_destructable15=CreateDestructable('B01V',7040.,5184.,18.623,.8,0)
set udg_destructable17=CreateDestructable('B01V',7168.,5120.,192.512,.8,0)
set udg_destructable18=CreateDestructable('B01V',7424.,4928.,329.145,.8,0)
set udg_destructable19=CreateDestructable('B01V',7232.,4928.,269.231,.8,0)
set udg_destructable20=CreateDestructable('B01V',7104.,4800.,74.451,.8,0)
set udg_destructable21=CreateDestructable('B01V',7360.,5312.,318.841,.8,0)
set udg_destructable22=CreateDestructable('B01V',7424.,5184.,132.994,.8,0)
set udg_destructable16=CreateDestructable('B01V',7552.,4800.,184.269,.8,0)
set udg_destructable14=CreateDestructable('B01W',7328.,5024.,105.915,1.6,0)
set udg_destructable08=CreateDestructable('B01X',-5120.,256.,270.,.4,0)
set udg_destructable09=CreateDestructable('B01X',-5120.,1152.,270.,.4,0)
set udg_destructable23=CreateDestructableZ('B01Y',4480.,-10752.,691.2,270.,1.75,0)
call CreateItem('I000',-6614.3,-11426.7)
call CreateItem('I000',-8127.6,-11352.8)
call CreateItem('I000',-7130.9,-11438.5)
call CreateItem('I000',-8094.4,-11468.2)
call CreateItem('I000',-6616.5,-11484.3)
call CreateItem('I000',-7636.3,-11487.2)
call CreateItem('I000',-7121.1,-11489.3)
call CreateItem('I000',-8153.9,-11478.3)
call CreateItem('I000',-8157.5,-11424.8)
call CreateItem('I000',-8095.4,-11415.4)
call CreateItem('I000',-7130.1,-11396.6)
call CreateItem('I000',-7577.2,-11478.6)
call CreateItem('I006',-7637.1,-10859.6)
call CreateItem('I006',-7979.,-10954.7)
call CreateItem('I008',-7559.1,-10853.8)
call CreateItem('I009',-8509.5,-10961.8)
call CreateItem('I009',-8156.7,-10853.)
call CreateItem('I00A',-8660.6,-10838.8)
call CreateItem('I00B',-8150.7,-10957.6)
call CreateItem('I00C',-8032.,-10871.)
call CreateItem('I00C',-8092.,-10874.6)
call CreateItem('I00D',-7485.2,-10867.3)
call CreateItem('I00M',-8588.1,-10895.3)
call CreateItem('I00M',-8585.2,-10965.3)
call CreateItem('I00M',-8586.3,-10838.8)
call CreateItem('I00N',-8513.4,-10841.1)
call CreateItem('I00N',-8091.8,-10956.8)
call CreateItem('I00O',-7648.8,-10954.4)
call CreateItem('I00Q',-7569.5,-10954.7)
call CreateItem('I00Q',-7973.8,-10857.6)
call CreateItem('I00R',-6546.7,-11482.7)
call CreateItem('I00R',-7011.2,-11378.9)
call CreateItem('I00R',-7012.3,-11421.7)
call CreateItem('I00R',-7457.1,-11421.7)
call CreateItem('I00R',-7018.5,-11480.2)
call CreateItem('I00R',-8012.8,-11466.7)
call CreateItem('I00R',-7456.,-11484.2)
call CreateItem('I00R',-7964.4,-11418.8)
call CreateItem('I00R',-7991.8,-11311.6)
call CreateItem('I00R',-7963.7,-11466.6)
call CreateItem('I00R',-7512.,-11484.3)
call CreateItem('I00R',-7503.9,-11396.7)
call CreateItem('I00R',-8011.2,-11414.1)
call CreateItem('I00R',-7513.,-11435.3)
call CreateItem('I00R',-7982.7,-11353.8)
call CreateItem('I00S',-6942.2,-11401.4)
call CreateItem('I00S',-6481.,-11384.6)
call CreateItem('I00S',-6944.9,-11433.7)
call CreateItem('I00S',-6940.2,-11471.9)
call CreateItem('I00S',-6492.2,-11474.4)
call CreateItem('I00S',-6493.2,-11435.2)
call CreateItem('I00T',-6432.2,-11369.8)
call CreateItem('I00T',-6437.7,-11473.7)
call CreateItem('I00T',-6438.2,-11424.8)
call CreateItem('I011',-7065.3,-11428.)
call CreateItem('I011',-6555.6,-11402.6)
call CreateItem('I011',-7581.2,-11408.1)
call CreateItem('I011',-7641.5,-11400.8)
set p=Player(15)
set u=CreateUnit(p,'n000',-4160.,5696.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01S',960.,-4416.,270.)
set udg_unit05=CreateUnit(p,'n000',-320.,-192.,270.)
call SetUnitColor(udg_unit05,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01S',4608.,-2688.,270.)
set u=CreateUnit(p,'n01S',2048.,4800.,270.)
set udg_unit06=CreateUnit(p,'n00H',10944.,-11456.,270.)
call SetUnitColor(udg_unit06,ConvertPlayerColor(12))
set udg_unit17=CreateUnit(p,'n00C',5696.,-2496.,270.)
call SetUnitColor(udg_unit17,ConvertPlayerColor(8))
set udg_unit18=CreateUnit(p,'n00C',6080.,-3904.,270.)
call SetUnitColor(udg_unit18,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01S',-2112.,-448.,270.)
set u=CreateUnit(p,'n01S',4224.,7104.,270.)
set u=CreateUnit(p,'n01S',768.,-7168.,270.)
set udg_unit22=CreateUnit(p,'n01T',-3936.,7776.,270.)
set u=CreateUnit(p,'n01T',-3040.,-8032.,270.)
set udg_unit21=CreateUnit(p,'n01T',-3488.,8096.,270.)
set u=CreateUnit(p,'n009',-7488.,-11328.,270.)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n007',-7616.,-11328.,270.)
call SetUnitState(u,UNIT_STATE_MANA,0)
call SetUnitColor(u,ConvertPlayerColor(4))
set udg_unit28=CreateUnit(p,'n00C',3392.,-5312.,270.)
call SetUnitColor(udg_unit28,ConvertPlayerColor(8))
set udg_unit16=CreateUnit(p,'n00C',3648.,-6720.,270.)
call SetUnitColor(udg_unit16,ConvertPlayerColor(8))
set udg_unit10=CreateUnit(p,'n01S',-1920.,5504.,270.)
set udg_unit39=CreateUnit(p,'n01S',256.,5952.,270.)
set u=CreateUnit(p,'n01S',-5376.,-896.,270.)
set u=CreateUnit(p,'n01S',-3264.,-4992.,270.)
set udg_unit09=CreateUnit(p,'n00S',-4128.,6112.,270.)
set udg_unit34=CreateUnit(p,'n00C',6720.,832.,270.)
call SetUnitColor(udg_unit34,ConvertPlayerColor(8))
set udg_unit35=CreateUnit(p,'n00C',6848.,2624.,270.)
call SetUnitColor(udg_unit35,ConvertPlayerColor(8))
set u=CreateUnit(p,'n009',-6464.,-11328.,270.)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n007',-6592.,-11328.,270.)
call SetUnitState(u,UNIT_STATE_MANA,0)
call SetUnitColor(u,ConvertPlayerColor(4))
set udg_unit36=CreateUnit(p,'n00C',3392.,704.,270.)
call SetUnitColor(udg_unit36,ConvertPlayerColor(8))
set udg_unit37=CreateUnit(p,'n00C',3648.,3008.,270.)
call SetUnitColor(udg_unit37,ConvertPlayerColor(8))
set udg_unit38=CreateUnit(p,'n00C',3264.,4672.,270.)
call SetUnitColor(udg_unit38,ConvertPlayerColor(8))
set udg_unit33=CreateUnit(p,'n00C',3520.,7104.,270.)
call SetUnitColor(udg_unit33,ConvertPlayerColor(8))
set udg_unit32=CreateUnit(p,'n00C',-2368.,5696.,270.)
call SetUnitColor(udg_unit32,ConvertPlayerColor(8))
set udg_unit25=CreateUnit(p,'n00C',-6208.,5568.,270.)
call SetUnitColor(udg_unit25,ConvertPlayerColor(8))
set udg_unit15=CreateUnit(p,'n00C',-6080.,3136.,270.)
call SetUnitColor(udg_unit15,ConvertPlayerColor(8))
set udg_unit26=CreateUnit(p,'n00C',-2240.,3136.,270.)
call SetUnitColor(udg_unit26,ConvertPlayerColor(8))
set udg_unit24=CreateUnit(p,'n00C',704.,9792.,270.)
call SetUnitColor(udg_unit24,ConvertPlayerColor(8))
set udg_unit14=CreateUnit(p,'n00C',832.,8256.,270.)
call SetUnitColor(udg_unit14,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01S',9280.,-3648.,270.)
set u=CreateUnit(p,'n01S',4800.,2880.,270.)
set u=CreateUnit(p,'n01S',3328.,-4352.,270.)
set u=CreateUnit(p,'n01S',6656.,-1728.,270.)
set u=CreateUnit(p,'n01S',7360.,-6016.,270.)
set u=CreateUnit(p,'n01S',5376.,8640.,270.)
set u=CreateUnit(p,'n01S',7680.,1088.,270.)
set u=CreateUnit(p,'n01S',9728.,9088.,270.)
set u=CreateUnit(p,'n01S',3456.,512.,270.)
set u=CreateUnit(p,'n01T',5664.,-8736.,270.)
set u=CreateUnit(p,'n01S',9088.,5312.,270.)
set u=CreateUnit(p,'n01T',9184.,-96.,270.)
set u=CreateUnit(p,'n01T',-2144.,-3424.,270.)
set udg_unit41=CreateUnit(p,'n01T',-4768.,416.,270.)
set u=CreateUnit(p,'n000',7488.,2496.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01T',-736.,10016.,270.)
set u=CreateUnit(p,'n01T',5984.,4128.,270.)
set udg_unit40=CreateUnit(p,'n01T',-4768.,992.,270.)
set p=Player(0)
set u=CreateUnit(p,'n005',-10880.,-10304.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'n004',-10688.,-10560.,270.)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'n003',-10816.,-10560.,270.)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n002',-10880.,-10432.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'n008',-10624.,-10368.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set p=Player(1)
set u=CreateUnit(p,'n005',-10112.,-10304.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'n004',-9920.,-10560.,270.)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'n003',-10048.,-10560.,270.)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n002',-10112.,-10432.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'n008',-9856.,-10368.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set p=Player(2)
set u=CreateUnit(p,'n005',-9344.,-10304.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'n004',-9152.,-10560.,270.)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'n003',-9280.,-10560.,270.)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n002',-9344.,-10432.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'n008',-9088.,-10368.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set p=Player(3)
set u=CreateUnit(p,'n002',-10880.,-11200.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'n004',-10688.,-11328.,270.)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'n003',-10816.,-11328.,270.)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n005',-10880.,-11072.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'n008',-10624.,-11136.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set p=Player(4)
set u=CreateUnit(p,'n005',-10112.,-11072.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'n004',-9920.,-11328.,270.)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'n003',-10048.,-11328.,270.)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n002',-10112.,-11200.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'n008',-9856.,-11136.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set p=Player(5)
set u=CreateUnit(p,'n005',-9344.,-11072.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'n004',-9152.,-11328.,270.)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'n003',-9280.,-11328.,270.)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n002',-9344.,-11200.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'n008',-9088.,-11136.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set p=Player(8)
set u=CreateUnit(p,'n01P',96.,-3808.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',992.,-3808.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',-672.,-6432.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',-416.,-5280.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',2016.,-7968.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',2016.,-5856.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',-3488.,-4128.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',-5344.,-5792.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',-2592.,-480.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',-2272.,-736.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',3168.,-4192.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',2400.,-4320.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',4448.,-6944.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',4896.,-5792.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',8672.,-6880.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',7072.,-7008.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',8864.,-4000.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',10400.,-1632.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',10208.,-4000.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',8672.,-3168.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',6944.,-1056.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',9184.,-736.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',4128.,8672.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',2848.,8032.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',6688.,8544.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01P',8800.,8032.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set p=Player(9)
set u=CreateUnit(p,'h03W',-448.,-7616.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03Y',4416.,-1856.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n00Z',-2496.,-3008.,270.)
set u=CreateUnit(p,'h03Y',5184.,8000.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',2368.,-3392.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03W',-576.,-7616.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03W',-192.,-7616.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03Y',4672.,-2112.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h04M',64.,-2752.,270.)
set u=CreateUnit(p,'h03W',-64.,-7616.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h047',64.,-2880.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',192.,-2880.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03W',4544.,-5440.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n018',-2112.,-8256.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03W',4288.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n01K',-2752.,-8384.,270.)
set u=CreateUnit(p,'h047',-2496.,-8128.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h048',-2496.,-8512.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01K',-2752.,-7872.,270.)
set u=CreateUnit(p,'n018',4672.,-1984.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03Y',4416.,-2112.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h047',4160.,-1984.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',-2368.,-8128.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4416.,-1984.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4160.,-1856.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4288.,-1856.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h04M',4544.,-1728.,270.)
set u=CreateUnit(p,'h04M',4288.,-2240.,270.)
set u=CreateUnit(p,'h03Y',-2112.,-8128.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4416.,-5568.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',-4544.,-3648.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03Y',4416.,-5312.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h047',-192.,-2752.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',-64.,-2816.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'n012',-704.,2496.,270.)
set u=CreateUnit(p,'n012',-576.,2496.,270.)
set u=CreateUnit(p,'n01J',-1600.,-2496.,270.)
set u=CreateUnit(p,'n00Z',-2496.,-3136.,270.)
set u=CreateUnit(p,'h03Y',-2368.,-8256.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',-2368.,-8384.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',-2240.,-8128.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',-2368.,-8512.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h047',8896.,-5824.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',10176.,-704.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h048',8768.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',10560.,-640.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',10688.,-704.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03U',10176.,-576.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'h03Y',10176.,-832.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01Q',-2624.,-8768.,270.)
set u=CreateUnit(p,'n01Q',-2880.,-8768.,270.)
set u=CreateUnit(p,'h03W',10176.,-960.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03W',-320.,-7616.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h04C',-2752.,-8768.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03U',-704.,-7232.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'h03W',-704.,-7360.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h04C',8512.,8192.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',-704.,-7488.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03W',-704.,-7616.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n01L',192.,-7680.,270.)
set u=CreateUnit(p,'n01L',192.,-7808.,270.)
set u=CreateUnit(p,'h03Y',5056.,7744.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',10688.,-832.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h04M',10048.,-1088.,270.)
set u=CreateUnit(p,'h03W',10176.,-320.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h04M',10176.,-1088.,270.)
set u=CreateUnit(p,'n012',6208.,6080.,270.)
set u=CreateUnit(p,'h03Y',2368.,-3520.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h048',2368.,-3904.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',2112.,-3648.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h048',2112.,-3904.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4544.,-2112.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',2240.,-3648.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03W',2496.,-3648.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03Y',1856.,-3520.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',1984.,-3648.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h047',1856.,-3904.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h048',2624.,-3904.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',1856.,-3648.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',1856.,-3776.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',2112.,-3776.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',1856.,-3392.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03Y',2624.,-3776.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',2624.,-3648.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03Y',2368.,-3776.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',2368.,-3648.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n012',6208.,5824.,270.)
set u=CreateUnit(p,'n012',5824.,5824.,270.)
set u=CreateUnit(p,'h04M',1984.,-3776.,270.)
set u=CreateUnit(p,'h04M',1728.,-3776.,270.)
set u=CreateUnit(p,'h04M',1728.,-3648.,270.)
set u=CreateUnit(p,'h03W',5056.,8384.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h04M',1728.,-3520.,270.)
set u=CreateUnit(p,'h04M',1728.,-3392.,270.)
set u=CreateUnit(p,'h04M',2240.,-3776.,270.)
set u=CreateUnit(p,'h04M',2496.,-3776.,270.)
set u=CreateUnit(p,'n01Q',8640.,8192.,270.)
set u=CreateUnit(p,'h04M',4160.,-2112.,270.)
set u=CreateUnit(p,'h04M',4544.,-1856.,270.)
set u=CreateUnit(p,'h04M',4288.,-2112.,270.)
set u=CreateUnit(p,'h04M',-64.,-2688.,270.)
set u=CreateUnit(p,'h04M',-192.,-2624.,270.)
set u=CreateUnit(p,'h04M',-192.,-2880.,270.)
set u=CreateUnit(p,'h04M',-320.,-2624.,270.)
set u=CreateUnit(p,'n01K',576.,2112.,270.)
set u=CreateUnit(p,'h03W',1088.,2112.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03Y',1088.,2240.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',10304.,-384.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',1088.,1984.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h048',960.,2112.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',-4672.,-3520.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',-4544.,-3520.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',-4416.,-3520.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',-4928.,-3520.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n018',-4800.,-3392.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03Y',-4288.,-3520.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',-4288.,-3648.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03W',-4288.,-3776.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03W',-4800.,-3520.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03W',-4288.,-3904.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n018',5056.,8512.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03Y',832.,2240.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',704.,2240.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',3520.,-320.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',576.,2240.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',1216.,2240.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h048',1088.,1856.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h048',832.,2368.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03U',576.,2368.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'h03W',832.,2112.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n01L',-3776.,-1088.,270.)
set u=CreateUnit(p,'n01K',-3648.,-1088.,270.)
set u=CreateUnit(p,'n01B',-3328.,-192.,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h04M',960.,2240.,270.)
set u=CreateUnit(p,'h04M',1216.,1984.,270.)
set u=CreateUnit(p,'n012',-960.,2496.,270.)
set u=CreateUnit(p,'n012',-1088.,2496.,270.)
set u=CreateUnit(p,'n01J',10048.,-1856.,270.)
set u=CreateUnit(p,'h03Y',4416.,-5440.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',10560.,-384.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03Y',10432.,-576.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4480.,-5696.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',10432.,-448.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4544.,-5824.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4544.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4544.,-5952.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',4672.,-5440.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03W',4416.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h048',8128.,-5824.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h04M',8512.,-6208.,270.)
set u=CreateUnit(p,'n01B',4800.,-5056.,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'n018',4416.,-5184.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h04M',8128.,-6208.,270.)
set u=CreateUnit(p,'h04M',8896.,-6208.,270.)
set u=CreateUnit(p,'h04M',8896.,-6336.,270.)
set u=CreateUnit(p,'n00Z',-2496.,-2752.,270.)
set u=CreateUnit(p,'n00Z',-2496.,-2880.,270.)
set u=CreateUnit(p,'h03Y',3904.,-320.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4032.,-320.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',4032.,-448.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',4160.,-448.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'n01L',2752.,64.,270.)
set u=CreateUnit(p,'h03W',3776.,-320.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03Y',3648.,-320.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',3520.,-320.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h048',3392.,-320.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h047',3776.,-192.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h04M',4032.,-192.,270.)
set u=CreateUnit(p,'h04M',3904.,-192.,270.)
set u=CreateUnit(p,'h04M',4160.,-192.,270.)
set u=CreateUnit(p,'n019',2944.,-576.,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'n01Q',8384.,8192.,270.)
set u=CreateUnit(p,'n018',9024.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03W',8896.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03Y',8896.,-5952.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',8512.,-5952.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',8512.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n018',8640.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03Y',8128.,-5952.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h048',8000.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h047',8512.,-5824.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',8128.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h047',8384.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',8256.,-6080.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'n01J',9280.,-5952.,270.)
set u=CreateUnit(p,'h04M',9152.,-6080.,270.)
set u=CreateUnit(p,'h04M',9152.,-5952.,270.)
set u=CreateUnit(p,'h04M',9024.,-5952.,270.)
set u=CreateUnit(p,'h04M',8768.,-5952.,270.)
set u=CreateUnit(p,'h04M',8640.,-5952.,270.)
set u=CreateUnit(p,'h04M',8640.,-6208.,270.)
set u=CreateUnit(p,'h04M',8768.,-6208.,270.)
set u=CreateUnit(p,'h04M',8384.,-6208.,270.)
set u=CreateUnit(p,'h04M',8256.,-6208.,270.)
set u=CreateUnit(p,'h04M',8256.,-5952.,270.)
set u=CreateUnit(p,'h04M',8384.,-5952.,270.)
set u=CreateUnit(p,'h04M',8000.,-6208.,270.)
set u=CreateUnit(p,'n018',9664.,8640.,270.)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h03Y',9792.,8640.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h047',10048.,8704.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03Y',9920.,8704.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h04C',7360.,-3520.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n012',6080.,6080.,270.)
set u=CreateUnit(p,'n012',6208.,5952.,270.)
set u=CreateUnit(p,'n012',5952.,6080.,270.)
set u=CreateUnit(p,'n012',6080.,5824.,270.)
set u=CreateUnit(p,'n012',5952.,5824.,270.)
set u=CreateUnit(p,'n00Z',5824.,5696.,270.)
set u=CreateUnit(p,'n00Z',5824.,5568.,270.)
set u=CreateUnit(p,'h04C',2624.,8384.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01Q',2624.,8256.,270.)
set u=CreateUnit(p,'n01Q',2624.,8512.,270.)
set u=CreateUnit(p,'h03U',4928.,7744.,270.)
call SetUnitColor(u,ConvertPlayerColor(5))
set u=CreateUnit(p,'h03Y',5120.,7872.,270.)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h03W',5312.,8000.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h03W',5056.,8256.,270.)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'n01Q',7360.,-3648.,270.)
set u=CreateUnit(p,'n01Q',7360.,-3392.,270.)
set u=CreateUnit(p,'n012',1344.,-9408.,270.)
set u=CreateUnit(p,'n00Z',1472.,-9408.,270.)
set u=CreateUnit(p,'n01K',576.,-8896.,270.)
set p=Player(11)
set u=CreateUnit(p,'n00O',320.,1088.,270.)
set u=CreateUnit(p,'n00O',5056.,-64.,270.)
set u=CreateUnit(p,'n00O',4544.,-8576.,270.)
set u=CreateUnit(p,'n00O',960.,-5696.,270.)
set u=CreateUnit(p,'n01E',960.,-7360.,270.)
set u=CreateUnit(p,'n01E',-3648.,-7104.,270.)
set u=CreateUnit(p,'n01E',-3456.,-2304.,270.)
set u=CreateUnit(p,'n00P',-3136.,704.,270.)
set u=CreateUnit(p,'n00P',7488.,-5056.,270.)
set u=CreateUnit(p,'n00P',4288.,-3904.,270.)
set u=CreateUnit(p,'n01F',10560.,-7040.,270.)
set u=CreateUnit(p,'n01F',3328.,-8576.,270.)
set u=CreateUnit(p,'n01F',10496.,576.,270.)
set u=CreateUnit(p,'n00Q',4480.,4288.,270.)
set u=CreateUnit(p,'n00Q',10304.,2240.,270.)
set u=CreateUnit(p,'n00Q',-1984.,8576.,270.)
set u=CreateUnit(p,'n013',-2112.,8576.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n00J',5696.,-1344.,270.)
set u=CreateUnit(p,'n01M',8960.,2688.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n01N',4480.,4160.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n01M',10368.,-8000.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n01O',7616.,-5056.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n013',-3264.,704.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n01N',4288.,-4032.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n013',4416.,-8576.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n01N',960.,-5824.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n013',192.,1088.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n01O',-4608.,-7296.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n01M',5056.,64.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n01R',5824.,10176.,270.)
set u=CreateUnit(p,'n01R',10496.,3840.,270.)
set u=CreateUnit(p,'n01R',9152.,7104.,270.)
set u=CreateUnit(p,'n00L',-3136.,-1088.,270.)
set u=CreateUnit(p,'n00M',-4544.,-3264.,270.)
set u=CreateUnit(p,'n00J',5440.,-7040.,270.)
set u=CreateUnit(p,'n00J',-2240.,-5184.,270.)
set u=CreateUnit(p,'n00M',-576.,-8256.,270.)
set u=CreateUnit(p,'n00J',.0,-6720.,270.)
set u=CreateUnit(p,'n00M',2880.,-1152.,270.)
set u=CreateUnit(p,'n00J',-5568.,-1792.,270.)
set u=CreateUnit(p,'n00M',1728.,3712.,270.)
set u=CreateUnit(p,'n00L',1728.,-3904.,270.)
set u=CreateUnit(p,'n00J',-320.,-2880.,270.)
set u=CreateUnit(p,'n00J',7424.,-6272.,270.)
set u=CreateUnit(p,'n00M',9408.,-1472.,270.)
set u=CreateUnit(p,'n00L',10560.,-192.,270.)
set u=CreateUnit(p,'n00J',10624.,-2304.,270.)
set u=CreateUnit(p,'n00K',8448.,-256.,270.)
set u=CreateUnit(p,'n00L',2944.,-128.,270.)
set u=CreateUnit(p,'n00L',-1984.,-2240.,270.)
set u=CreateUnit(p,'n00K',-896.,-4352.,270.)
set u=CreateUnit(p,'n00K',4352.,-5888.,270.)
set u=CreateUnit(p,'n00M',5504.,7872.,270.)
set u=CreateUnit(p,'n00K',2176.,-6464.,270.)
set u=CreateUnit(p,'n00K',8832.,-7360.,270.)
set u=CreateUnit(p,'n00M',10432.,8704.,270.)
set u=CreateUnit(p,'n00M',5440.,5952.,270.)
set u=CreateUnit(p,'n00L',7872.,7936.,270.)
set u=CreateUnit(p,'n00K',4864.,3392.,270.)
set u=CreateUnit(p,'n00L',9152.,-5824.,270.)
set u=CreateUnit(p,'n00K',6848.,7232.,270.)
set u=CreateUnit(p,'n00L',-4352.,-5376.,270.)
set u=CreateUnit(p,'n00K',8640.,3968.,270.)
set u=CreateUnit(p,'n00K',10560.,7168.,270.)
set u=CreateUnit(p,'n00M',6720.,-3264.,270.)
set u=CreateUnit(p,'n00J',4288.,-1984.,270.)
set u=CreateUnit(p,'h03Z',5344.,-1504.,270.)
set u=CreateUnit(p,'n00I',-576.,2752.,270.)
set u=CreateUnit(p,'n01C',-2368.,-1600.,270.)
set u=CreateUnit(p,'n01C',-2240.,-1600.,270.)
set u=CreateUnit(p,'n00I',-2112.,-4672.,270.)
set u=CreateUnit(p,'n00I',-2112.,-4544.,270.)
set u=CreateUnit(p,'n00I',-704.,-9152.,270.)
set u=CreateUnit(p,'n00I',-832.,-9024.,270.)
set u=CreateUnit(p,'n00I',-704.,-9024.,270.)
set u=CreateUnit(p,'n00L',9280.,-4288.,270.)
set u=CreateUnit(p,'n01C',2112.,-6720.,270.)
set u=CreateUnit(p,'n01C',2240.,-6720.,270.)
set u=CreateUnit(p,'n01C',2112.,-6848.,270.)
set u=CreateUnit(p,'n01C',2240.,-6848.,270.)
set u=CreateUnit(p,'n01C',2112.,-6976.,270.)
set u=CreateUnit(p,'n01C',2240.,-6976.,270.)
set u=CreateUnit(p,'h03Z',3488.,1888.,270.)
set u=CreateUnit(p,'h03Z',3232.,2016.,270.)
set u=CreateUnit(p,'n013',3904.,1792.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n00K',1472.,-9152.,270.)
set u=CreateUnit(p,'n01C',-1856.,-1600.,270.)
set u=CreateUnit(p,'n01C',-1984.,-1600.,270.)
set u=CreateUnit(p,'n00K',1216.,1856.,270.)
set u=CreateUnit(p,'h03Z',6752.,-8608.,270.)
set u=CreateUnit(p,'h03Z',8544.,-2720.,270.)
set u=CreateUnit(p,'h03Z',8672.,-2656.,270.)
set u=CreateUnit(p,'h03Z',8288.,-1824.,270.)
set u=CreateUnit(p,'h03Z',8224.,-1952.,270.)
set u=CreateUnit(p,'n00P',-4736.,-7296.,270.)
set u=CreateUnit(p,'n00O',10368.,-8128.,270.)
set u=CreateUnit(p,'n00I',7616.,-7552.,270.)
set u=CreateUnit(p,'n00I',7616.,-7680.,270.)
set u=CreateUnit(p,'n00I',-448.,2624.,270.)
set u=CreateUnit(p,'n00I',-576.,2624.,270.)
set u=CreateUnit(p,'n00I',-704.,2624.,270.)
set u=CreateUnit(p,'n01N',10304.,2112.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n00Q',8960.,2560.,270.)
set u=CreateUnit(p,'n00L',2240.,-5056.,270.)
set u=CreateUnit(p,'n00J',-4160.,-3200.,270.)
set u=CreateUnit(p,'n01C',-3648.,-3264.,270.)
set u=CreateUnit(p,'n00M',2368.,6592.,270.)
set u=CreateUnit(p,'n01M',5120.,1792.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n00P',5120.,1664.,270.)
set u=CreateUnit(p,'n01C',-3776.,-3136.,270.)
set u=CreateUnit(p,'n01C',-3648.,-3136.,270.)
set u=CreateUnit(p,'n01C',-3776.,-3264.,270.)
set u=CreateUnit(p,'n00I',10688.,-3008.,270.)
set u=CreateUnit(p,'n00I',10688.,-2880.,270.)
set u=CreateUnit(p,'n00I',10560.,-2880.,270.)
set u=CreateUnit(p,'n00P',2432.,5760.,270.)
set u=CreateUnit(p,'n01C',-2112.,-1600.,270.)
set u=CreateUnit(p,'n01C',-3904.,-3264.,270.)
set u=CreateUnit(p,'n01C',-3904.,-3136.,270.)
set u=CreateUnit(p,'n013',2304.,5760.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'h03Z',7968.,-1952.,270.)
set u=CreateUnit(p,'h03Z',6432.,3104.,270.)
set u=CreateUnit(p,'h03Z',6368.,2976.,270.)
set u=CreateUnit(p,'n00I',7872.,4864.,270.)
set u=CreateUnit(p,'n00I',7872.,4992.,270.)
set u=CreateUnit(p,'n00P',9280.,10304.,270.)
set u=CreateUnit(p,'n00I',7104.,-7360.,270.)
set u=CreateUnit(p,'n00I',7232.,-7296.,270.)
set u=CreateUnit(p,'n00I',7488.,-7360.,270.)
set u=CreateUnit(p,'n00I',7488.,-7808.,270.)
set u=CreateUnit(p,'n00I',7616.,-7424.,270.)
set u=CreateUnit(p,'n00I',7488.,-7680.,270.)
set u=CreateUnit(p,'h03Z',6752.,-8736.,270.)
set u=CreateUnit(p,'h03Z',6688.,-8416.,270.)
set u=CreateUnit(p,'n00I',7744.,-7104.,270.)
set u=CreateUnit(p,'h03Z',6560.,-8544.,270.)
set u=CreateUnit(p,'h03Z',-928.,-7840.,270.)
set u=CreateUnit(p,'h03Z',-1056.,-7776.,270.)
set u=CreateUnit(p,'h03Z',-2400.,-6240.,270.)
set u=CreateUnit(p,'h03Z',-2336.,-6048.,270.)
set u=CreateUnit(p,'h03Z',-2272.,-6176.,270.)
set u=CreateUnit(p,'h03Z',-4960.,-4576.,270.)
set u=CreateUnit(p,'h03Z',-4768.,-4704.,270.)
set u=CreateUnit(p,'h03Z',5408.,-1696.,270.)
set u=CreateUnit(p,'h03Z',3104.,-5600.,270.)
set u=CreateUnit(p,'h03Z',2912.,-5536.,270.)
set u=CreateUnit(p,'n013',9152.,10304.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'h03Z',10464.,-4448.,270.)
set u=CreateUnit(p,'h03Z',10592.,-4384.,270.)
set u=CreateUnit(p,'h03Z',10656.,-4576.,270.)
set u=CreateUnit(p,'n01C',9024.,8512.,270.)
set u=CreateUnit(p,'n01C',8896.,8640.,270.)
set u=CreateUnit(p,'n01C',9024.,8640.,270.)
set u=CreateUnit(p,'n01C',8896.,8512.,270.)
set u=CreateUnit(p,'h03Z',10336.,6368.,270.)
set u=CreateUnit(p,'h03Z',10464.,6304.,270.)
set u=CreateUnit(p,'h03Z',6112.,8480.,270.)
set u=CreateUnit(p,'h03Z',5472.,7072.,270.)
set u=CreateUnit(p,'h03Z',6240.,8416.,270.)
set u=CreateUnit(p,'h03Z',5344.,7200.,270.)
set u=CreateUnit(p,'n00I',7872.,5120.,270.)
set u=CreateUnit(p,'n01C',10176.,5952.,270.)
set u=CreateUnit(p,'n01C',10048.,5952.,270.)
set u=CreateUnit(p,'n01C',10432.,5952.,270.)
set u=CreateUnit(p,'n01C',10304.,5952.,270.)
set u=CreateUnit(p,'n01C',10560.,5952.,270.)
set u=CreateUnit(p,'n01C',10432.,5696.,270.)
set u=CreateUnit(p,'n01C',10048.,6208.,270.)
set u=CreateUnit(p,'h03Z',4128.,2784.,270.)
set u=CreateUnit(p,'h03Z',4064.,2912.,270.)
set u=CreateUnit(p,'n00I',6720.,5120.,270.)
set u=CreateUnit(p,'n00I',6720.,4992.,270.)
set u=CreateUnit(p,'n00I',6720.,4864.,270.)
set u=CreateUnit(p,'n00I',9536.,4288.,270.)
set u=CreateUnit(p,'n00I',9536.,4416.,270.)
set u=CreateUnit(p,'n00I',9536.,4160.,270.)
set u=CreateUnit(p,'n00I',9536.,4032.,270.)
set u=CreateUnit(p,'n00I',9280.,4032.,270.)
set u=CreateUnit(p,'n00I',9280.,3904.,270.)
set u=CreateUnit(p,'n00I',9152.,3904.,270.)
set u=CreateUnit(p,'n00I',9024.,4032.,270.)
set u=CreateUnit(p,'n00I',9024.,3904.,270.)
set u=CreateUnit(p,'n00M',-2496.,-7872.,270.)
set u=CreateUnit(p,'n00O',-4288.,-8512.,270.)
set u=CreateUnit(p,'h03Z',9440.,5600.,270.)
set u=CreateUnit(p,'h03Z',9312.,5664.,270.)
set u=CreateUnit(p,'h03Z',5472.,4192.,270.)
set u=CreateUnit(p,'h03Z',5344.,4384.,270.)
set u=CreateUnit(p,'h03Z',5856.,5280.,270.)
set u=CreateUnit(p,'h03Z',5728.,5152.,270.)
set u=CreateUnit(p,'n013',-4416.,-8512.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n01O',-512.,3584.,270.)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'n00Q',-640.,3584.,270.)
set u=CreateUnit(p,'n00M',-448.,1728.,270.)
set u=CreateUnit(p,'n00J',10688.,-6336.,270.)
set u=CreateUnit(p,'n00I',-1920.,-9024.,270.)
set u=CreateUnit(p,'n00I',-1792.,-9024.,270.)
set u=CreateUnit(p,'n00I',-1792.,-9344.,270.)
set u=CreateUnit(p,'n00I',-2752.,-9408.,270.)
set p=Player(15)
set u=CreateUnit(p,'h039',9152.,-11456.,270.)
set u=CreateUnit(p,'h039',8384.,-11456.,270.)
set udg_unit07=CreateUnit(p,'h00J',450.7,69.8,270.)
set u=CreateUnit(p,'h034',7872.,-11456.,270.)
set u=CreateUnit(p,'h034',7872.,-11328.,270.)
set u=CreateUnit(p,'h034',8640.,-11456.,270.)
set u=CreateUnit(p,'h034',8640.,-11328.,270.)
set u=CreateUnit(p,'h036',8896.,-10816.,270.)
set u=CreateUnit(p,'h037',9152.,-10816.,270.)
set u=CreateUnit(p,'h035',8128.,-10816.,270.)
set u=CreateUnit(p,'h034',7872.,-10816.,270.)
set u=CreateUnit(p,'h038',9408.,-10816.,270.)
set u=CreateUnit(p,'h036',8384.,-10816.,270.)
set u=CreateUnit(p,'h038',9408.,-10688.,270.)
set udg_unit08=CreateUnit(p,'o00B',-8573.6,-11389.,83.89)
set udg_unit29=CreateUnit(p,'h04L',667.8,3239.,327.463)
call SetUnitColor(udg_unit29,ConvertPlayerColor(12))
set u=CreateUnit(p,'h01U',227.6,2517.9,231.376)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h034',9408.,-11456.,270.)
set u=CreateUnit(p,'h034',7104.,-11456.,270.)
set u=CreateUnit(p,'h039',7616.,-11456.,270.)
set u=CreateUnit(p,'h039',6848.,-11456.,270.)
set u=CreateUnit(p,'h037',9152.,-10688.,270.)
set u=CreateUnit(p,'h036',8896.,-10688.,270.)
set u=CreateUnit(p,'h034',7872.,-10688.,270.)
set u=CreateUnit(p,'h035',8128.,-10688.,270.)
set u=CreateUnit(p,'h039',6848.,-11328.,270.)
set u=CreateUnit(p,'h034',7104.,-11328.,270.)
set u=CreateUnit(p,'h039',7616.,-11328.,270.)
set u=CreateUnit(p,'h037',8384.,-10688.,270.)
set p=Player(6)
set udg_unit42=CreateUnit(p,'h04P',7255.7,5056.2,178.46)
set udg_unit43=CreateUnit(p,'h04P',7323.7,4957.8,311.194)
set udg_unit44=CreateUnit(p,'h04P',7375.,5058.,56.395)
set p=Player(7)
set udg_unit31=CreateUnit(p,'h055',-6570.7,6968.3,90.578)
call SetUnitColor(udg_unit31,ConvertPlayerColor(12))
set p=Player(9)
set u=CreateUnit(p,'h037',-1984.,-3264.,270.)
set u=CreateUnit(p,'h038',-1728.,-2880.,270.)
set u=CreateUnit(p,'h037',-1856.,-3264.,270.)
set u=CreateUnit(p,'h037',-1728.,-3264.,270.)
set u=CreateUnit(p,'h038',-2368.,-3008.,270.)
set u=CreateUnit(p,'h038',-2368.,-3136.,270.)
set u=CreateUnit(p,'h038',-2368.,-2496.,270.)
set u=CreateUnit(p,'h045',1856.,2176.,270.)
set u=CreateUnit(p,'h045',1984.,2240.,270.)
set u=CreateUnit(p,'h045',1728.,2240.,270.)
set u=CreateUnit(p,'h038',-2240.,-5568.,270.)
set u=CreateUnit(p,'h038',-2112.,-5568.,270.)
set u=CreateUnit(p,'h037',-2240.,-8896.,270.)
set u=CreateUnit(p,'h035',-2624.,-8128.,270.)
set u=CreateUnit(p,'h036',-192.,-4416.,270.)
set u=CreateUnit(p,'h036',-320.,-4160.,270.)
set u=CreateUnit(p,'h036',-320.,-4032.,270.)
set u=CreateUnit(p,'h036',-576.,-3904.,270.)
set u=CreateUnit(p,'h036',-960.,-4032.,270.)
set u=CreateUnit(p,'h038',-2496.,-2496.,270.)
set u=CreateUnit(p,'h034',3328.,-1216.,270.)
set u=CreateUnit(p,'h034',3328.,-1088.,270.)
set u=CreateUnit(p,'h034',3200.,-1088.,270.)
set u=CreateUnit(p,'h034',3200.,-1216.,270.)
set u=CreateUnit(p,'h045',3456.,-2752.,270.)
set u=CreateUnit(p,'h037',2752.,-3520.,270.)
set u=CreateUnit(p,'h037',2752.,-3392.,270.)
set u=CreateUnit(p,'h038',4928.,-384.,270.)
set u=CreateUnit(p,'h038',-2240.,-4544.,270.)
set u=CreateUnit(p,'h038',-2240.,-4672.,270.)
set u=CreateUnit(p,'h045',-1728.,-5696.,270.)
set u=CreateUnit(p,'h045',-1600.,-5696.,270.)
set u=CreateUnit(p,'h038',10560.,-3904.,270.)
set u=CreateUnit(p,'h038',352.,-8896.,270.)
set u=CreateUnit(p,'h036',8768.,-1600.,270.)
set u=CreateUnit(p,'h034',7616.,-3136.,270.)
set udg_unit23=CreateUnit(p,'h03L',4021.5,1794.3,180.)
call SetUnitColor(udg_unit23,ConvertPlayerColor(12))
set u=CreateUnit(p,'h036',9216.,-4160.,270.)
set u=CreateUnit(p,'h045',8256.,-3008.,270.)
set u=CreateUnit(p,'h034',7616.,-3264.,270.)
set u=CreateUnit(p,'h037',7360.,-2496.,270.)
set u=CreateUnit(p,'h045',8256.,-3264.,270.)
set u=CreateUnit(p,'h045',8256.,-3136.,270.)
set u=CreateUnit(p,'h036',9344.,-4160.,270.)
set u=CreateUnit(p,'h036',9152.,-4288.,270.)
set u=CreateUnit(p,'h036',5696.,5568.,270.)
set u=CreateUnit(p,'h045',3456.,-2624.,270.)
set u=CreateUnit(p,'h045',192.,2752.,270.)
set u=CreateUnit(p,'h045',64.,2752.,270.)
set u=CreateUnit(p,'h045',320.,2368.,270.)
set u=CreateUnit(p,'h037',7360.,-2624.,270.)
set u=CreateUnit(p,'h036',8640.,-1600.,270.)
set u=CreateUnit(p,'h036',8512.,-1600.,270.)
set u=CreateUnit(p,'h036',7488.,-192.,270.)
set u=CreateUnit(p,'h036',7488.,-320.,270.)
set u=CreateUnit(p,'h045',-5184.,-3776.,270.)
set u=CreateUnit(p,'h045',-5312.,-3776.,270.)
set u=CreateUnit(p,'h045',-5440.,-3776.,270.)
set u=CreateUnit(p,'h045',-5568.,-3776.,270.)
set u=CreateUnit(p,'h037',-5440.,-1344.,270.)
set u=CreateUnit(p,'h037',-5440.,-1472.,270.)
set u=CreateUnit(p,'h035',-1344.,2624.,270.)
set u=CreateUnit(p,'h035',-1472.,2624.,270.)
set u=CreateUnit(p,'h034',-3392.,-832.,270.)
set u=CreateUnit(p,'h034',-3264.,-832.,270.)
set u=CreateUnit(p,'h034',-3264.,-448.,270.)
set u=CreateUnit(p,'h034',-3392.,-448.,270.)
set u=CreateUnit(p,'h038',-3904.,-320.,270.)
set u=CreateUnit(p,'h038',-3776.,-320.,270.)
set u=CreateUnit(p,'h038',-3776.,-192.,270.)
set u=CreateUnit(p,'h038',-3648.,-192.,270.)
set u=CreateUnit(p,'h038',-3776.,-832.,270.)
set u=CreateUnit(p,'h038',-3520.,-960.,270.)
set u=CreateUnit(p,'h038',-3520.,-1088.,270.)
set u=CreateUnit(p,'h045',2112.,-5440.,270.)
set u=CreateUnit(p,'h045',2112.,-5312.,270.)
set u=CreateUnit(p,'h045',2240.,-5184.,270.)
set u=CreateUnit(p,'o01E',-4010.9,9085.7,327.908)
set u=CreateUnit(p,'o01E',-3894.8,9211.8,356.297)
set u=CreateUnit(p,'o01E',-3749.8,9153.3,260.834)
set u=CreateUnit(p,'o01E',-3604.7,8661.8,270.503)
set u=CreateUnit(p,'h038',1728.,1344.,270.)
set u=CreateUnit(p,'h038',1728.,1472.,270.)
set u=CreateUnit(p,'o01E',-3838.8,8564.5,341.509)
set u=CreateUnit(p,'o01E',-3660.5,8470.1,222.678)
set u=CreateUnit(p,'h034',-7360.,6592.,270.)
set u=CreateUnit(p,'h034',-7488.,6592.,270.)
set u=CreateUnit(p,'h038',4032.,832.,270.)
set u=CreateUnit(p,'h035',-1600.,2624.,270.)
set u=CreateUnit(p,'h045',6080.,-8128.,270.)
set u=CreateUnit(p,'h045',5952.,-8128.,270.)
set u=CreateUnit(p,'h045',5824.,-8128.,270.)
set u=CreateUnit(p,'h045',5696.,-8128.,270.)
set u=CreateUnit(p,'h045',2240.,6592.,270.)
set u=CreateUnit(p,'h045',5696.,-8000.,270.)
set u=CreateUnit(p,'h038',-1472.,1728.,270.)
set u=CreateUnit(p,'h038',-832.,1344.,270.)
set u=CreateUnit(p,'h038',-704.,832.,270.)
set u=CreateUnit(p,'h038',-448.,1344.,270.)
set u=CreateUnit(p,'h045',-1600.,1344.,270.)
set u=CreateUnit(p,'h036',-3904.,-5184.,270.)
set u=CreateUnit(p,'h038',5568.,6720.,270.)
set u=CreateUnit(p,'h038',5568.,6592.,270.)
set u=CreateUnit(p,'h045',2240.,6720.,270.)
set u=CreateUnit(p,'h038',4544.,8128.,270.)
set u=CreateUnit(p,'h036',-4032.,-5184.,270.)
set u=CreateUnit(p,'h035',-1984.,-2496.,270.)
set u=CreateUnit(p,'h035',-2112.,-2496.,270.)
set u=CreateUnit(p,'h035',-2112.,-2368.,270.)
set u=CreateUnit(p,'h035',-2112.,-2240.,270.)
set u=CreateUnit(p,'h038',1728.,1600.,270.)
set u=CreateUnit(p,'h038',704.,-9408.,270.)
set u=CreateUnit(p,'h038',4800.,-7360.,270.)
set u=CreateUnit(p,'h038',4928.,-7360.,270.)
set u=CreateUnit(p,'h034',4672.,-6336.,270.)
set u=CreateUnit(p,'h034',4672.,-6208.,270.)
set u=CreateUnit(p,'h034',4672.,-6080.,270.)
set u=CreateUnit(p,'h038',4800.,-5184.,270.)
set u=CreateUnit(p,'h038',4928.,-5184.,270.)
set u=CreateUnit(p,'h037',-1856.,-2752.,270.)
set u=CreateUnit(p,'h038',-1600.,-2240.,270.)
set u=CreateUnit(p,'h037',8896.,-6464.,270.)
set u=CreateUnit(p,'h037',4160.,704.,270.)
set u=CreateUnit(p,'h037',4288.,704.,270.)
set u=CreateUnit(p,'h038',4032.,576.,270.)
set u=CreateUnit(p,'h038',4032.,704.,270.)
set u=CreateUnit(p,'h037',3648.,832.,270.)
set u=CreateUnit(p,'h037',3648.,960.,270.)
set u=CreateUnit(p,'h038',4160.,320.,270.)
set u=CreateUnit(p,'h038',4032.,-64.,270.)
set u=CreateUnit(p,'h038',4032.,64.,270.)
set u=CreateUnit(p,'h038',4032.,192.,270.)
set u=CreateUnit(p,'h038',4288.,-192.,270.)
set u=CreateUnit(p,'h034',4032.,-576.,270.)
set u=CreateUnit(p,'h038',3136.,-448.,270.)
set u=CreateUnit(p,'h038',3136.,-576.,270.)
set u=CreateUnit(p,'h037',1856.,4096.,270.)
set u=CreateUnit(p,'h035',1728.,4608.,270.)
set u=CreateUnit(p,'h035',1728.,4480.,270.)
set u=CreateUnit(p,'h035',1728.,4352.,270.)
set u=CreateUnit(p,'h035',1728.,4224.,270.)
set u=CreateUnit(p,'h035',1728.,4096.,270.)
set u=CreateUnit(p,'h035',1728.,3968.,270.)
set u=CreateUnit(p,'h039',-5440.,3008.,270.)
set u=CreateUnit(p,'h039',-5440.,3136.,270.)
set u=CreateUnit(p,'h039',-5440.,2880.,270.)
set u=CreateUnit(p,'h036',8256.,-7488.,270.)
set u=CreateUnit(p,'h036',8384.,-7488.,270.)
set u=CreateUnit(p,'h039',-5440.,3264.,270.)
set u=CreateUnit(p,'h039',-5440.,3392.,270.)
set u=CreateUnit(p,'h045',2752.,6848.,270.)
set u=CreateUnit(p,'h037',9024.,-6336.,270.)
set u=CreateUnit(p,'h038',5568.,8384.,270.)
set u=CreateUnit(p,'h045',2752.,7104.,270.)
set u=CreateUnit(p,'h045',2752.,6976.,270.)
set u=CreateUnit(p,'h045',8000.,-6848.,270.)
set u=CreateUnit(p,'h038',10560.,-4288.,270.)
set u=CreateUnit(p,'h038',10432.,-4288.,270.)
set u=CreateUnit(p,'h038',10560.,-4672.,270.)
set u=CreateUnit(p,'h038',10688.,-4672.,270.)
set u=CreateUnit(p,'h045',7872.,-6784.,270.)
set u=CreateUnit(p,'h045',7744.,-6720.,270.)
set u=CreateUnit(p,'h038',5824.,6848.,270.)
set u=CreateUnit(p,'h045',5952.,6976.,270.)
set u=CreateUnit(p,'h045',5952.,7104.,270.)
set u=CreateUnit(p,'h045',5952.,7232.,270.)
set u=CreateUnit(p,'h037',2752.,-3264.,270.)
set u=CreateUnit(p,'h038',6592.,8896.,270.)
set u=CreateUnit(p,'h038',6720.,8896.,270.)
set u=CreateUnit(p,'h038',10048.,8896.,270.)
set u=CreateUnit(p,'h038',10432.,8512.,270.)
set u=CreateUnit(p,'h038',10048.,8512.,270.)
set u=CreateUnit(p,'h037',8320.,7936.,270.)
set u=CreateUnit(p,'h038',10560.,8512.,270.)
set u=CreateUnit(p,'h037',8320.,7744.,270.)
set u=CreateUnit(p,'h037',8128.,7744.,270.)
set u=CreateUnit(p,'h038',7040.,7232.,270.)
set u=CreateUnit(p,'h036',8768.,8512.,270.)
set u=CreateUnit(p,'h036',8768.,8640.,270.)
set u=CreateUnit(p,'h038',5696.,-1984.,270.)
set u=CreateUnit(p,'h038',5824.,4416.,270.)
set u=CreateUnit(p,'h038',5824.,4544.,270.)
set u=CreateUnit(p,'h038',9152.,4672.,270.)
set u=CreateUnit(p,'h038',9152.,4800.,270.)
set u=CreateUnit(p,'h036',2240.,8896.,270.)
set u=CreateUnit(p,'h036',2112.,8896.,270.)
set u=CreateUnit(p,'h036',1984.,8896.,270.)
set u=CreateUnit(p,'h038',4160.,9024.,270.)
set u=CreateUnit(p,'h038',4288.,9024.,270.)
set u=CreateUnit(p,'h038',320.,-9280.,270.)
set u=CreateUnit(p,'h038',320.,-9408.,270.)
set u=CreateUnit(p,'h038',1088.,-8896.,270.)
set u=CreateUnit(p,'h038',832.,-8896.,270.)
set u=CreateUnit(p,'h038',1088.,-9408.,270.)
set u=CreateUnit(p,'h038',1472.,-9024.,270.)
set u=CreateUnit(p,'h038',960.,-8896.,270.)
set u=CreateUnit(p,'h038',-3264.,-8896.,270.)
set u=CreateUnit(p,'h038',1088.,8512.,270.)
set u=CreateUnit(p,'h038',-3136.,-8896.,270.)
set u=CreateUnit(p,'h038',9536.,8384.,270.)
set p=Player(10)
set u=CreateUnit(p,'h01S',-2491.9,-1594.9,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01Q',1985.5,7107.1,345.102)
call SetUnitColor(u,ConvertPlayerColor(7))
set u=CreateUnit(p,'h01P',1980.1,1473.2,42.683)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h006',1727.7,-1726.9,258.033)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h006',1216.5,-2883.1,262.845)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h006',-1088.2,-2241.6,262.845)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h00S',448.,-1608.1,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01Q',-1089.7,-4543.1,172.381)
call SetUnitColor(u,ConvertPlayerColor(7))
set u=CreateUnit(p,'h00S',-960.9,-3893.3,162.537)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01P',838.6,-4536.8,42.683)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01P',-62.6,-4028.4,120.315)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00S',-320.9,-4533.3,162.537)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h006',4411.4,-1736.7,262.845)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h006',4029.2,-2745.2,262.845)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h02O',10561.8,-6087.,129.884)
set u=CreateUnit(p,'h00S',-2233.8,-2875.9,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01P',-2499.9,-3774.8,42.683)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00F',-2114.8,-6713.7,184.071)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00F',-1985.1,-6985.5,184.071)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00F',-1733.4,-6847.9,184.071)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01S',-1604.7,-8511.9,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01S',-1858.,-4804.3,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02J',8385.2,957.8,315.724)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h01S',-326.3,-6072.9,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01S',186.8,-6845.7,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00S',-3265.2,-9406.2,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h029',-1087.9,-6593.1,123.468)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h029',-58.8,-7108.8,123.468)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h031',10172.5,-3896.1,119.403)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h016',6585.9,-7360.9,274.867)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h016',7746.4,-1974.7,39.684)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01S',-705.2,-7867.4,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02S',1857.2,-5953.6,232.094)
set u=CreateUnit(p,'h01S',2235.,-8379.6,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02S',-58.7,-8137.4,232.094)
set u=CreateUnit(p,'h02U',1853.3,-6976.2,121.051)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'h02U',-835.7,-5064.8,121.051)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'h006',2879.5,-3647.,262.845)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h00S',2236.3,-4161.3,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00Z',2751.6,-4548.1,172.271)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h00Z',3396.2,-4035.7,266.365)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h01N',-958.1,-1732.8,118.964)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'h016',8387.2,-3643.4,39.684)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02H',7866.1,-4152.6,163.753)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h013',9158.8,-2505.9,219.206)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h013',6719.6,-3653.8,219.206)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h02M',7354.9,-575.9,118.667)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h01R',7486.1,-2876.7,63.107)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h01U',7741.,-3122.1,155.461)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h02H',8644.,-834.1,346.283)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h01S',3521.8,8138.1,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01Q',3849.8,8892.,345.102)
call SetUnitColor(u,ConvertPlayerColor(7))
set u=CreateUnit(p,'h01S',4411.1,8878.7,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00S',-5573.1,-4667.7,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00Z',-4671.5,-6202.8,172.271)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h00C',-5584.9,-4161.4,254.078)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h00F',-3645.4,-5829.2,184.071)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00C',-3009.6,-4670.7,254.078)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h00F',-3390.5,-6081.2,184.071)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02U',-4295.4,-5044.2,121.051)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'h00C',-5056.6,-5691.1,254.078)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h00F',2109.9,3139.,184.071)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00F',1978.5,3397.6,184.071)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00F',1853.9,3267.,184.071)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02J',7872.,-826.3,315.724)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h01N',961.2,-8383.5,118.964)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'h00S',-3650.,-3518.7,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h006',-3644.,-5055.6,262.845)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h00S',3516.3,-1986.,267.64)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h032',9535.7,-3901.4,318.383)
call SetUnitColor(u,ConvertPlayerColor(9))
set u=CreateUnit(p,'h02J',8384.,-8122.3,315.724)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h01Q',4227.9,8252.7,345.102)
call SetUnitColor(u,ConvertPlayerColor(7))
set u=CreateUnit(p,'h02Z',7869.7,-191.7,71.622)
set u=CreateUnit(p,'h01Q',2238.6,-6337.4,172.381)
call SetUnitColor(u,ConvertPlayerColor(7))
set u=CreateUnit(p,'h02Z',6723.2,-6332.7,71.622)
set u=CreateUnit(p,'h02M',7616.6,446.8,118.667)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h013',8126.9,-74.,219.206)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h013',6589.8,-1338.5,219.206)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h031',9404.1,832.2,119.403)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h01R',-447.8,708.9,78.906)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h00Z',-1085.3,705.,299.683)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h01R',8257.8,449.2,63.107)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h00S',-830.3,2238.,290.125)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02H',7741.6,-1214.9,7.169)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h029',-698.,1478.2,291.377)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h02M',5181.3,8901.4,118.667)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h02R',-1353.6,1991.6,351.397)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h02R',-1589.1,2364.9,351.397)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h02Z',-1357.5,2250.1,89.783)
set u=CreateUnit(p,'h01Z',573.9,7104.3,270.186)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h00S',-1086.5,1085.7,5.691)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h013',6591.1,-5306.4,219.206)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h02R',9024.8,10552.3,351.397)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h006',955.,-9274.6,262.845)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h013',6078.6,-4675.6,219.206)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h013',5438.5,-5569.,219.206)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h013',4786.7,-6848.8,219.206)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h013',4543.9,-6464.2,219.206)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h031',5948.1,-8520.4,119.403)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h01S',-1995.5,-2374.2,210.087)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h031',5817.,-8637.,119.403)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h031',5690.1,-8381.3,119.403)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h01R',3133.2,-8256.1,63.107)
call SetUnitColor(u,ConvertPlayerColor(3))
set u=CreateUnit(p,'h031',9276.8,965.1,119.403)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h02M',10045.3,-4927.2,118.667)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h00C',6719.6,-5816.9,126.325)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h00C',7488.,-8766.4,126.325)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h01O',9280.8,-8642.2,258.143)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h031',10047.9,-3387.3,119.403)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h031',10302.4,-3272.2,119.403)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h01Q',6582.2,-8253.2,345.102)
call SetUnitColor(u,ConvertPlayerColor(7))
set u=CreateUnit(p,'h01Q',7108.,-5826.3,345.102)
call SetUnitColor(u,ConvertPlayerColor(7))
set u=CreateUnit(p,'h016',9022.3,-7100.6,39.684)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h01O',10433.7,-1347.3,258.143)
call SetUnitColor(u,ConvertPlayerColor(11))
set u=CreateUnit(p,'h02M',10048.7,-2234.2,157.185)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h01P',5052.2,6977.1,18.908)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02R',8256.2,7102.3,351.397)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h02R',4410.3,6724.4,351.397)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h02R',5823.5,6592.9,351.397)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h02R',6593.8,6839.7,351.397)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h02R',6594.4,8387.8,351.397)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h024',10304.6,8124.6,271.184)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h024',8379.8,9401.2,157.228)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h029',7749.6,6850.2,123.468)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h01P',8002.6,8643.2,18.908)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h029',4411.9,7228.3,123.468)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h00C',9025.9,8906.,254.078)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h00C',6847.,8130.,254.078)
call SetUnitColor(u,ConvertPlayerColor(6))
set u=CreateUnit(p,'h011',7742.,8380.4,74.896)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h011',9149.6,8254.7,74.896)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'h01U',7227.7,6592.2,254.472)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h024',10174.,5694.3,271.184)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h024',10048.9,6719.7,271.184)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h02R',10552.5,6582.2,351.397)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h02O',3133.5,7875.7,129.884)
set u=CreateUnit(p,'h02O',4664.2,3140.,129.884)
set u=CreateUnit(p,'h02G',5439.7,2757.2,326.645)
call SetUnitColor(u,ConvertPlayerColor(2))
set u=CreateUnit(p,'h02G',4799.7,2757.2,326.645)
call SetUnitColor(u,ConvertPlayerColor(2))
set u=CreateUnit(p,'h01U',6334.5,5833.,155.461)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'h02G',2241.6,8131.,326.645)
call SetUnitColor(u,ConvertPlayerColor(2))
set u=CreateUnit(p,'h02G',3646.5,5441.4,326.645)
call SetUnitColor(u,ConvertPlayerColor(2))
set u=CreateUnit(p,'h02G',2357.7,9399.2,326.645)
call SetUnitColor(u,ConvertPlayerColor(2))
set u=CreateUnit(p,'h02G',4541.7,9405.7,326.645)
call SetUnitColor(u,ConvertPlayerColor(2))
set u=CreateUnit(p,'h02V',4671.8,8254.1,250.419)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02V',3133.1,8904.9,250.419)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02V',8898.6,4412.5,250.419)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02O',10561.4,-4924.4,129.884)
set u=CreateUnit(p,'h00S',960.2,-9026.2,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h00S',1214.2,-9413.,270.)
call SetUnitColor(u,ConvertPlayerColor(4))
set u=CreateUnit(p,'h02U',-962.1,-9405.7,121.051)
call SetUnitColor(u,ConvertPlayerColor(10))
set u=CreateUnit(p,'h01Z',-1730.1,6080.3,270.186)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h01Z',-1216.1,5312.,270.186)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h01Z',-578.1,5696.3,270.186)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h01Z',-67.8,5316.8,270.186)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h04W',-704.1,7104.3,70.985)
set u=CreateUnit(p,'h04W',-1984.1,6592.3,70.985)
set u=CreateUnit(p,'h04W',-1472.5,7095.5,70.985)
set u=CreateUnit(p,'h01Z',-1212.7,6587.,270.186)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h01Z',-2370.1,7104.3,270.186)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h01Z',-3266.1,6592.3,270.186)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h01Z',-4538.6,6595.5,270.186)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'h04W',-4165.5,6592.1,70.985)
set u=CreateUnit(p,'h04W',-4026.5,7111.,70.985)
set u=CreateUnit(p,'h04W',-4928.1,7104.3,70.985)
set u=CreateUnit(p,'h04W',-4928.1,-1599.7,70.985)
set u=CreateUnit(p,'h029',-2364.1,-9399.8,123.468)
call SetUnitColor(u,ConvertPlayerColor(6))
set p=Player(11)
set udg_unit27=CreateUnit(p,'h04Z',-3839.4,8862.6,180.)
call SetUnitColor(udg_unit27,ConvertPlayerColor(12))
set udg_unit11=CreateUnit(p,'h04A',3341.7,-10872.1,4.231)
set udg_unit13=CreateUnit(p,'h049',-4257.7,-11454.,.0)
set udg_unit20=CreateUnit(p,'h050',-3862.4,8868.6,10.539)
set aHA=GetUnitState(udg_unit20,UNIT_STATE_LIFE)
call SetUnitState(udg_unit20,UNIT_STATE_LIFE,.18*aHA)
call SetUnitColor(udg_unit20,ConvertPlayerColor(9))
set udg_unit30=CreateUnit(p,'h051',-3234.4,8572.5,181.32)
call SetUnitColor(udg_unit30,ConvertPlayerColor(9))
set u=CreateUnit(p,'o01C',-4475.8,9336.4,85.608)
call SetUnitColor(u,ConvertPlayerColor(1))
set u=CreateUnit(p,'o01C',-3715.3,8508.,17.623)
call SetUnitColor(u,ConvertPlayerColor(1))
set u=CreateUnit(p,'o01C',-3929.8,9195.8,17.623)
call SetUnitColor(u,ConvertPlayerColor(1))
set u=CreateUnit(p,'o01C',-4128.4,8022.8,26.753)
call SetUnitColor(u,ConvertPlayerColor(1))
set udg_unit19=CreateUnit(p,'h053',-4930.3,-10942.3,355.22)
call SetUnitColor(udg_unit19,ConvertPlayerColor(8))
set udg_unit12=CreateUnit(p,'h04R',-4670.5,-11199.1,330.924)
call ConfigureNeutralVictim()
set filterIssueHauntOrderAtLocBJ=Filter(function IssueHauntOrderAtLocBJFilter)
set filterEnumDestructablesInCircleBJ=Filter(function K0)
set filterGetUnitsInRectOfPlayer=Filter(function GetUnitsInRectOfPlayerFilter)
set filterGetUnitsOfTypeIdAll=Filter(function GetUnitsOfTypeIdAllFilter)
set filterGetUnitsOfPlayerAndTypeId=Filter(function GetUnitsOfPlayerAndTypeIdFilter)
set filterMeleeTrainedUnitIsHeroBJ=Filter(function MeleeTrainedUnitIsHeroBJFilter)
set filterLivingPlayerUnitsOfTypeId=Filter(function lP)
set Km=0
loop
exitwhen Km==16
set bj_FORCE_PLAYER[Km]=CreateForce()
call ForceAddPlayer(bj_FORCE_PLAYER[Km],Player(Km))
set Km=Km+1
endloop
set bj_FORCE_ALL_PLAYERS=CreateForce()
call ForceEnumPlayers(bj_FORCE_ALL_PLAYERS,null)
set bj_cineModePriorSpeed=GetGameSpeed()
set bj_cineModePriorFogSetting=IsFogEnabled()
set bj_cineModePriorMaskSetting=IsFogMaskEnabled()
set Km=0
loop
exitwhen Km>=bj_MAX_QUEUED_TRIGGERS
set bj_queuedExecTriggers[Km]=null
set bj_queuedExecUseConds[Km]=false
set Km=Km+1
endloop
set bj_isSinglePlayer=false
set aHb=0
set Km=0
loop
exitwhen Km>=12
if(GetPlayerController(Player(Km))==MAP_CONTROL_USER and GetPlayerSlotState(Player(Km))==PLAYER_SLOT_STATE_PLAYING)then
set aHb=aHb+1
endif
set Km=Km+1
endloop
set bj_isSinglePlayer=(aHb==1)
set bj_rescueSound=CreateSoundFromLabel("Rescue",false,false,false,10000,10000)
set bj_questDiscoveredSound=CreateSoundFromLabel("QuestNew",false,false,false,10000,10000)
set bj_questUpdatedSound=CreateSoundFromLabel("QuestUpdate",false,false,false,10000,10000)
set bj_questCompletedSound=CreateSoundFromLabel("QuestCompleted",false,false,false,10000,10000)
set bj_questFailedSound=CreateSoundFromLabel("QuestFailed",false,false,false,10000,10000)
set bj_questHintSound=CreateSoundFromLabel("Hint",false,false,false,10000,10000)
set bj_questSecretSound=CreateSoundFromLabel("SecretFound",false,false,false,10000,10000)
set bj_questItemAcquiredSound=CreateSoundFromLabel("ItemReward",false,false,false,10000,10000)
set bj_questWarningSound=CreateSoundFromLabel("Warning",false,false,false,10000,10000)
set bj_victoryDialogSound=CreateSoundFromLabel("QuestCompleted",false,false,false,10000,10000)
set bj_defeatDialogSound=CreateSoundFromLabel("QuestFailed",false,false,false,10000,10000)
set bj_delayedSuspendDecayTrig=CreateTrigger()
call TriggerRegisterTimerExpireEvent(bj_delayedSuspendDecayTrig,bj_delayedSuspendDecayTimer)
call TriggerAddAction(bj_delayedSuspendDecayTrig,function Ks)
set v=VersionGet()
if(v==VERSION_REIGN_OF_CHAOS)then
set bj_MELEE_MAX_TWINKED_HEROES=bj_MELEE_MAX_TWINKED_HEROES_V0
else
set bj_MELEE_MAX_TWINKED_HEROES=bj_MELEE_MAX_TWINKED_HEROES_V1
endif
call InitQueuedTriggers()
call Lc()
call InitDNCSounds()
call InitMapRects()
call InitSummonableCaps()
set LG=0
loop
set bj_stockAllowedPermanent[LG]=false
set bj_stockAllowedCharged[LG]=false
set bj_stockAllowedArtifact[LG]=false
set LG=LG+1
exitwhen LG>10
endloop
call SetAllItemTypeSlots(11)
call SetAllUnitTypeSlots(11)
set bj_stockUpdateTimer=CreateTimer()
call TimerStart(bj_stockUpdateTimer,bj_STOCK_RESTOCK_INITIAL_DELAY,false,function Lj)
set bj_stockItemPurchased=CreateTrigger()
call TriggerRegisterPlayerUnitEvent(bj_stockItemPurchased,Player(15),EVENT_PLAYER_UNIT_SELL_ITEM,null)
call TriggerAddAction(bj_stockItemPurchased,function RemovePurchasedItem)
call DetectGameStarted()
set i=0
set i=0
loop
exitwhen(i>6)
set udg_integers02[i]=0
set udg_integers51[i]=0
set udg_integers52[i]=0
set udg_booleans20[i]=true
set udg_timers02[i]=CreateTimer()
set udg_integers55[i]=0
set udg_integers56[i]=0
set udg_integers57[i]=1
set udg_integers58[i]=0
set udg_integers59[i]=1
set udg_integers60[i]=2
set udg_units25[i]=null
set udg_booleans21[i]=true
set udg_integers61[i]=0
set udg_booleans22[i]=false
set udg_reals17[i]=90.
set udg_booleans23[i]=false
set udg_booleans24[i]=false
set udg_integers62[i]=0
set udg_booleans25[i]=false
set udg_booleans26[i]=false
set udg_booleans27[i]=false
set udg_booleans28[i]=false
set udg_booleans29[i]=false
set udg_booleans30[i]=false
set udg_booleans31[i]=false
set udg_integers63[i]=0
set udg_booleans32[i]=false
set udg_integers65[i]=0
set udg_booleans33[i]=false
set udg_booleans34[i]=false
set udg_booleans35[i]=false
set udg_integers66[i]=0
set udg_timers03[i]=CreateTimer()
set udg_integers67[i]=0
set udg_reals19[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>30)
set udg_sounds01[i]=null
set i=i+1
endloop
set i=0
loop
exitwhen(i>80)
set udg_integers03[i]=0
set udg_rects01[i]=null
set udg_integers49[i]=0
set udg_integers53[i]=0
set udg_regions01[i]=CreateRegion()
set i=i+1
endloop
set i=0
loop
exitwhen(i>7)
set udg_reals01[i]=0
set udg_integers54[i]=0
set udg_reals18[i]=0
set udg_integers68[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_strings01[i]=""
set udg_dialogs01[i]=DialogCreate()
set udg_strings02[i]=""
set udg_integers04[i]=0
set udg_triggers01[i]=CreateTrigger()
set udg_integers05[i]=0
set udg_integers06[i]=0
set udg_integers07[i]=0
set udg_integers08[i]=0
set udg_integers09[i]=0
set udg_integers10[i]=0
set udg_integers11[i]=0
set udg_integers12[i]=0
set udg_integers13[i]=0
set udg_booleans01[i]=false
set udg_integers14[i]=0
set udg_reals02[i]=0
set udg_integers15[i]=0
set udg_strings03[i]=""
set udg_integers16[i]=0
set udg_reals03[i]=0
set udg_reals04[i]=0
set udg_strings04[i]=""
set udg_timers01[i]=CreateTimer()
set udg_strings05[i]=""
set udg_strings06[i]=""
set udg_integers17[i]=0
set udg_booleans02[i]=false
set udg_booleans03[i]=false
set udg_groups01[i]=CreateGroup()
set udg_booleans04[i]=false
set udg_integers18[i]=0
set udg_triggers02[i]=CreateTrigger()
set udg_triggers03[i]=CreateTrigger()
set udg_reals05[i]=0
set udg_booleans05[i]=false
set udg_integers19[i]=0
set udg_integers20[i]=0
set udg_booleans06[i]=false
set udg_booleans07[i]=false
set udg_booleans08[i]=false
set udg_integers21[i]=0
set udg_reals06[i]=0
set udg_reals07[i]=0
set udg_reals08[i]=0
set udg_reals09[i]=0
set udg_reals10[i]=0
set udg_reals11[i]=0
set udg_booleans09[i]=false
set udg_booleans10[i]=false
set udg_booleans11[i]=false
set udg_booleans12[i]=false
set udg_booleans13[i]=false
set udg_booleans14[i]=false
set udg_triggers04[i]=CreateTrigger()
set udg_reals12[i]=0
set udg_reals13[i]=0
set udg_reals14[i]=0
set udg_integers22[i]=0
set udg_reals15[i]=0
set udg_integers23[i]=0
set udg_strings07[i]=""
set udg_booleans15[i]=false
set udg_booleans16[i]=false
set udg_integers24[i]=0
set udg_booleans17[i]=false
set udg_integers25[i]=0
set udg_strings08[i]=""
set udg_strings09[i]=""
set udg_strings10[i]=""
set udg_strings11[i]=""
set udg_integers26[i]=0
set udg_strings12[i]=""
set udg_reals16[i]=0
set udg_booleans18[i]=false
set udg_integers27[i]=0
set udg_integers28[i]=0
set udg_integers29[i]=0
set udg_integers30[i]=0
set udg_integers31[i]=0
set udg_integers32[i]=0
set udg_integers33[i]=0
set udg_integers34[i]=0
set udg_integers35[i]=0
set udg_integers36[i]=0
set udg_integers37[i]=0
set udg_strings13[i]=""
set udg_strings14[i]=""
set udg_strings15[i]=""
set udg_strings16[i]=""
set udg_integers38[i]=0
set udg_strings17[i]=""
set udg_integers39[i]=0
set udg_strings18[i]=""
set udg_integers40[i]=0
set udg_strings19[i]=""
set udg_strings20[i]=""
set udg_integers41[i]=0
set udg_dialogs02[i]=DialogCreate()
set udg_integers42[i]=0
set udg_integers43[i]=0
set udg_dialogs03[i]=DialogCreate()
set udg_strings21[i]=""
set udg_triggers05[i]=CreateTrigger()
set udg_triggers06[i]=CreateTrigger()
set udg_booleans19[i]=false
set udg_integers44[i]=0
set udg_integers45[i]=0
set udg_integers46[i]=0
set udg_integers47[i]=0
set udg_integers48[i]=0
set i=i+1
endloop
set udg_dialog01=DialogCreate()
set udg_dialog02=DialogCreate()
set udg_dialog03=DialogCreate()
set udg_dialog04=DialogCreate()
set udg_dialog05=DialogCreate()
set udg_dialog06=DialogCreate()
set udg_dialog07=DialogCreate()
set udg_dialog08=DialogCreate()
set udg_dialog09=DialogCreate()
set udg_dialog10=DialogCreate()
set udg_dialog11=DialogCreate()
set i=0
loop
exitwhen(i>25)
set udg_forces01[i]=CreateForce()
set i=i+1
endloop
set udg_multiboard01=CreateMultiboard()
set i=0
loop
exitwhen(i>10)
set udg_strings22[i]=""
set i=i+1
endloop
set udg_dialog12=DialogCreate()
set udg_dialog13=DialogCreate()
set i=0
loop
exitwhen(i>35)
set udg_rects07[i]=null
set i=i+1
endloop
set udg_dialog14=DialogCreate()
set i=0
loop
exitwhen(i>4)
set udg_integers64[i]=0
set udg_groups02[i]=CreateGroup()
set i=i+1
endloop
call TriggerAddAction(udg_trigger42,function Q3)
call TriggerAddAction(udg_trigger43,function Q4)
call TriggerAddAction(udg_trigger44,function Q5)
call TriggerAddAction(udg_trigger45,function Q6)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger46,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger46,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger46,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger46,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger46,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger46,Player(5),true)
call TriggerAddAction(udg_trigger46,function Q7)
call DisableTrigger(udg_trigger47)
call TriggerRegisterTimerEventPeriodic(udg_trigger47,1.)
call TriggerAddAction(udg_trigger47,function rb)
call TriggerAddAction(udg_trigger48,function rc)
call TriggerRegisterDialogEvent(udg_trigger49,udg_dialog11)
call TriggerAddAction(udg_trigger49,function ri)
call TriggerRegisterUnitEvent(udg_trigger50,udg_unit06,EVENT_UNIT_SELL)
call TriggerAddAction(udg_trigger50,function rN)
call TriggerRegisterPlayerEventLeave(udg_trigger51,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger51,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger51,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger51,Player(3))
call TriggerRegisterPlayerEventLeave(udg_trigger51,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger51,Player(5))
call TriggerAddAction(udg_trigger51,function rU)
call TriggerAddAction(udg_trigger52,function rx)
call TriggerRegisterDialogEvent(udg_trigger53,udg_dialog13)
call TriggerAddAction(udg_trigger53,function rZ)
call TriggerAddAction(udg_trigger54,function RE)
call TriggerAddAction(udg_trigger55,function Rm)
call TriggerAddAction(udg_trigger56,function Rv)
call TriggerAddAction(udg_trigger57,function Rx)
call TriggerAddAction(udg_trigger58,function sb)
call TriggerAddAction(udg_trigger59,function sB)
call TriggerAddAction(udg_trigger60,function sc)
call TriggerAddAction(udg_trigger61,function sd)
call TriggerAddAction(udg_trigger62,function sf)
call TriggerAddAction(udg_trigger63,function sg)
call TriggerAddAction(udg_trigger64,function sh)
call KI(udg_trigger65,udg_rect58)
call TriggerAddCondition(udg_trigger65,Condition(function sH))
call TriggerAddAction(udg_trigger65,function si)
call KI(udg_trigger66,udg_rect59)
call TriggerAddCondition(udg_trigger66,Condition(function sI))
call TriggerAddAction(udg_trigger66,function sj)
call TriggerAddAction(udg_trigger67,function sr)
call TriggerAddAction(udg_trigger68,function s0)
call TriggerAddAction(udg_trigger69,function SL)
call TriggerAddAction(udg_trigger70,function SR)
call TriggerAddAction(udg_trigger71,function Su)
call TriggerAddAction(udg_trigger72,function Sx)
call TriggerAddAction(udg_trigger73,function SZ)
call TriggerAddAction(udg_trigger74,function S4)
call TriggerAddAction(udg_trigger75,function S5)
call TriggerAddAction(udg_trigger76,function tT)
call TriggerAddAction(udg_trigger77,function tu)
call TriggerAddAction(udg_trigger78,function tW)
call TriggerAddAction(udg_trigger79,function t4)
call TriggerAddAction(udg_trigger80,function t7)
call TriggerAddAction(udg_trigger81,function TM)
call TriggerAddAction(udg_trigger82,function T6)
call TriggerAddCondition(udg_trigger83,Condition(function T7))
call TriggerAddAction(udg_trigger83,function uA)
call TriggerRegisterGameStateEventTimeOfDay(udg_trigger84,EQUAL,5.9)
call TriggerAddAction(udg_trigger84,function ub)
call TriggerAddAction(udg_trigger85,function uY)
call TriggerRegisterAnyUnitEventBJ(udg_trigger86,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger86,Condition(function uZ))
call TriggerAddAction(udg_trigger86,function Uc)
call DisableTrigger(udg_trigger87)
call TriggerRegisterTimerEventPeriodic(udg_trigger87,.2)
call TriggerAddCondition(udg_trigger87,Condition(function UC))
call TriggerAddAction(udg_trigger87,function Ui)
call TriggerRegisterAnyUnitEventBJ(udg_trigger88,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger88,Condition(function Uj))
call TriggerAddAction(udg_trigger88,function UJ)
call TriggerRegisterAnyUnitEventBJ(udg_trigger89,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger89,Condition(function UK))
call TriggerAddAction(udg_trigger89,function Uu)
call TriggerRegisterAnyUnitEventBJ(udg_trigger90,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger90,Condition(function UU))
call TriggerAddAction(udg_trigger90,function UV)
call TriggerRegisterTimerExpireEvent(udg_trigger91,udg_timers03[1])
call TriggerAddAction(udg_trigger91,function Uw)
call TriggerRegisterTimerExpireEvent(udg_trigger92,udg_timers03[2])
call TriggerAddAction(udg_trigger92,function UW)
call TriggerRegisterTimerExpireEvent(udg_trigger93,udg_timers03[3])
call TriggerAddAction(udg_trigger93,function Ux)
call TriggerRegisterTimerExpireEvent(udg_trigger94,udg_timers03[4])
call TriggerAddAction(udg_trigger94,function UX)
call TriggerRegisterTimerExpireEvent(udg_trigger95,udg_timers03[5])
call TriggerAddAction(udg_trigger95,function Uy)
call TriggerRegisterTimerExpireEvent(udg_trigger96,udg_timers03[6])
call TriggerAddAction(udg_trigger96,function UY)
call TriggerAddCondition(udg_trigger97,Condition(function Uz))
call TriggerAddAction(udg_trigger97,function U2)
call TriggerRegisterAnyUnitEventBJ(udg_trigger98,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger98,Condition(function U3))
call TriggerAddAction(udg_trigger98,function U4)
call TriggerRegisterAnyUnitEventBJ(udg_trigger99,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger99,Condition(function U5))
call TriggerAddAction(udg_trigger99,function U6)
call TriggerRegisterAnyUnitEventBJ(udg_trigger100,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger100,Condition(function U7))
call TriggerAddAction(udg_trigger100,function U8)
call TriggerRegisterAnyUnitEventBJ(udg_trigger101,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterAnyUnitEventBJ(udg_trigger101,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(udg_trigger101,Condition(function va))
call TriggerAddAction(udg_trigger101,function vA)
call DisableTrigger(udg_trigger102)
call TriggerRegisterTimerEventPeriodic(udg_trigger102,.4)
call TriggerAddCondition(udg_trigger102,Condition(function vb))
call TriggerAddAction(udg_trigger102,function vF)
call TriggerRegisterAnyUnitEventBJ(udg_trigger103,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger103,Condition(function vg))
call TriggerAddAction(udg_trigger103,function vj)
call TriggerRegisterAnyUnitEventBJ(udg_trigger104,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger104,Condition(function vJ))
call TriggerAddAction(udg_trigger104,function vK)
call DisableTrigger(udg_trigger105)
call TriggerRegisterTimerEventPeriodic(udg_trigger105,.07)
call TriggerAddCondition(udg_trigger105,Condition(function vl))
call TriggerAddAction(udg_trigger105,function vO)
call TriggerRegisterAnyUnitEventBJ(udg_trigger106,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger106,Condition(function vp))
call TriggerAddAction(udg_trigger106,function vP)
call TriggerRegisterAnyUnitEventBJ(udg_trigger107,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger107,Condition(function vq))
call TriggerAddAction(udg_trigger107,function vQ)
call TriggerRegisterAnyUnitEventBJ(udg_trigger108,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger108,Condition(function vr))
call TriggerAddAction(udg_trigger108,function vT)
call TriggerRegisterAnyUnitEventBJ(udg_trigger109,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger109,Condition(function vu))
call TriggerAddAction(udg_trigger109,function vU)
call TriggerAddAction(udg_trigger110,function vv)
call TriggerRegisterAnyUnitEventBJ(udg_trigger111,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger111,Condition(function vw))
call TriggerAddAction(udg_trigger111,function v2)
call TriggerRegisterAnyUnitEventBJ(udg_trigger112,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger112,Condition(function v3))
call TriggerAddAction(udg_trigger112,function VG)
call TriggerRegisterAnyUnitEventBJ(udg_trigger113,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(udg_trigger113,Condition(function Vh))
call TriggerAddAction(udg_trigger113,function VH)
call TriggerRegisterAnyUnitEventBJ(udg_trigger114,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger114,Condition(function Vi))
call TriggerAddAction(udg_trigger114,function VI)
call TriggerRegisterAnyUnitEventBJ(udg_trigger115,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger115,Condition(function VJ))
call TriggerAddAction(udg_trigger115,function Vk)
call TriggerRegisterAnyUnitEventBJ(udg_trigger116,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(udg_trigger116,Condition(function VL))
call TriggerAddAction(udg_trigger116,function Vm)
call DisableTrigger(udg_trigger117)
call TriggerAddCondition(udg_trigger117,Condition(function Vn))
call TriggerAddAction(udg_trigger117,function Vw)
call DisableTrigger(udg_trigger118)
call TriggerAddCondition(udg_trigger118,Condition(function Vx))
call TriggerAddAction(udg_trigger118,function wa)
call TriggerAddAction(udg_trigger119,function wK)
call TriggerAddAction(udg_trigger120,function wy)
call DisableTrigger(udg_trigger121)
call TriggerAddCondition(udg_trigger121,Condition(function wz))
call TriggerAddAction(udg_trigger121,function wZ)
call TriggerAddCondition(udg_trigger122,Condition(function w1))
call TriggerAddAction(udg_trigger122,function Wd)
call TriggerAddCondition(udg_trigger123,Condition(function WD))
call TriggerAddAction(udg_trigger123,function WI)
call TriggerAddCondition(udg_trigger124,Condition(function Wj))
call TriggerAddAction(udg_trigger124,function Wo)
call TriggerRegisterAnyUnitEventBJ(udg_trigger125,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger125,Condition(function WO))
call TriggerAddAction(udg_trigger125,function Wt)
call TriggerRegisterAnyUnitEventBJ(udg_trigger126,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger126,Condition(function WT))
call TriggerAddAction(udg_trigger126,function WW)
call TriggerRegisterAnyUnitEventBJ(udg_trigger127,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger127,Condition(function WX))
call TriggerAddAction(udg_trigger127,function W6)
call TriggerRegisterAnyUnitEventBJ(udg_trigger128,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger128,Condition(function W7))
call TriggerAddAction(udg_trigger128,function xb)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger129,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger129,Condition(function xB))
call TriggerAddAction(udg_trigger129,function xc)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger130,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger130,Condition(function xC))
call TriggerAddAction(udg_trigger130,function xe)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger131,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger131,Condition(function xE))
call TriggerAddAction(udg_trigger131,function xg)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger132,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger132,Condition(function xG))
call TriggerAddAction(udg_trigger132,function xi)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger133,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger133,Condition(function xI))
call TriggerAddAction(udg_trigger133,function xJ)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger134,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger134,Condition(function xk))
call TriggerAddAction(udg_trigger134,function xL)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger135,Player(9),EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger135,Condition(function xm))
call TriggerAddAction(udg_trigger135,function xq)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger136,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger136,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger136,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger136,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger136,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger136,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger136,Condition(function xr))
call TriggerAddAction(udg_trigger136,function xT)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger137,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger137,Condition(function xu))
call TriggerAddAction(udg_trigger137,function xV)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger138,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger138,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger138,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger138,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger138,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger138,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger138,Condition(function xw))
call TriggerAddAction(udg_trigger138,function xW)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger139,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger139,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger139,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger139,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger139,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger139,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger139,Condition(function xX))
call TriggerAddAction(udg_trigger139,function x0)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger140,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger140,Condition(function x3))
call TriggerAddAction(udg_trigger140,function x4)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger141,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger141,Condition(function x5))
call TriggerAddAction(udg_trigger141,function x8)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger142,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger142,Condition(function x9))
call TriggerAddAction(udg_trigger142,function XB)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger143,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger143,Condition(function Xc))
call TriggerAddAction(udg_trigger143,function Xe)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger144,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger144,Condition(function XE))
call TriggerAddAction(udg_trigger144,function XG)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger145,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger145,Condition(function Xh))
call TriggerAddAction(udg_trigger145,function Xj)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger146,Player(9),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger146,Condition(function XJ))
call TriggerAddAction(udg_trigger146,function Xl)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger147,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger147,Condition(function Xm))
call TriggerAddAction(udg_trigger147,function Xn)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger148,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger148,Condition(function XN))
call TriggerAddAction(udg_trigger148,function Xs)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger149,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger149,Condition(function XS))
call TriggerAddAction(udg_trigger149,function Xt)
call TriggerAddCondition(udg_trigger150,Condition(function XT))
call TriggerAddAction(udg_trigger150,function Xu)
call TriggerAddCondition(udg_trigger151,Condition(function XU))
call TriggerAddAction(udg_trigger151,function Xv)
call TriggerAddCondition(udg_trigger152,Condition(function XV))
call TriggerAddAction(udg_trigger152,function Xw)
call TriggerAddCondition(udg_trigger153,Condition(function XW))
call TriggerAddAction(udg_trigger153,function Xx)
call TriggerAddCondition(udg_trigger154,Condition(function XX))
call TriggerAddAction(udg_trigger154,function Xy)
call TriggerAddCondition(udg_trigger155,Condition(function XY))
call TriggerAddAction(udg_trigger155,function Xz)
call TriggerAddCondition(udg_trigger156,Condition(function XZ))
call TriggerAddAction(udg_trigger156,function X4)
call TriggerAddCondition(udg_trigger157,Condition(function X5))
call TriggerAddAction(udg_trigger157,function X6)
call TriggerAddCondition(udg_trigger158,Condition(function X7))
call TriggerAddAction(udg_trigger158,function X8)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger159,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger159,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger159,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger159,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger159,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger159,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger159,Condition(function X9))
call TriggerAddAction(udg_trigger159,function yA)
call TriggerAddCondition(udg_trigger160,Condition(function yb))
call TriggerAddAction(udg_trigger160,function yf)
call TriggerAddCondition(udg_trigger161,Condition(function yF))
call TriggerAddAction(udg_trigger161,function yG)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger162,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger162,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger162,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger162,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger162,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger162,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger162,Condition(function yH))
call TriggerAddAction(udg_trigger162,function yj)
call TriggerAddCondition(udg_trigger163,Condition(function yJ))
call TriggerAddAction(udg_trigger163,function yr)
call TriggerAddCondition(udg_trigger164,Condition(function yR))
call TriggerAddAction(udg_trigger164,function yS)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger165,Player(0),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger165,Player(1),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger165,Player(2),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger165,Player(3),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger165,Player(4),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger165,Player(5),EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger165,Condition(function yT))
call TriggerAddAction(udg_trigger165,function yU)
call TriggerAddCondition(udg_trigger166,Condition(function yv))
call TriggerAddAction(udg_trigger166,function y7)
call TriggerAddAction(udg_trigger167,function Yb)
call DisableTrigger(udg_trigger168)
call Kk(udg_trigger168,udg_rect232)
call TriggerAddCondition(udg_trigger168,Condition(function YB))
call TriggerAddAction(udg_trigger168,function Yc)
call KI(udg_trigger169,udg_rect266)
call TriggerAddCondition(udg_trigger169,Condition(function YC))
call TriggerAddAction(udg_trigger169,function Yd)
call TriggerRegisterAnyUnitEventBJ(udg_trigger170,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(udg_trigger170,Condition(function Ye))
call TriggerAddAction(udg_trigger170,function YE)
call TriggerAddCondition(udg_trigger171,Condition(function Yf))
call TriggerAddAction(udg_trigger171,function YF)
call TriggerAddCondition(udg_trigger172,Condition(function Yg))
call TriggerAddAction(udg_trigger172,function YG)
call TriggerAddCondition(udg_trigger173,Condition(function Yh))
call TriggerAddAction(udg_trigger173,function YH)
call TriggerAddCondition(udg_trigger174,Condition(function Yi))
call TriggerAddAction(udg_trigger174,function YI)
call TriggerRegisterAnyUnitEventBJ(udg_trigger175,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(udg_trigger175,Condition(function YJ))
call TriggerAddAction(udg_trigger175,function Yk)
call TriggerAddCondition(udg_trigger176,Condition(function YK))
call TriggerAddAction(udg_trigger176,function Yl)
call TriggerAddCondition(udg_trigger177,Condition(function YL))
call TriggerAddAction(udg_trigger177,function Ym)
call TriggerAddCondition(udg_trigger178,Condition(function YM))
call TriggerAddAction(udg_trigger178,function Yn)
call TriggerAddCondition(udg_trigger179,Condition(function YN))
call TriggerAddAction(udg_trigger179,function Yo)
call TriggerAddCondition(udg_trigger180,Condition(function YO))
call TriggerAddAction(udg_trigger180,function Yp)
call TriggerAddCondition(udg_trigger181,Condition(function YP))
call TriggerAddAction(udg_trigger181,function Yq)
call TriggerAddCondition(udg_trigger182,Condition(function YQ))
call TriggerAddAction(udg_trigger182,function Yr)
call TriggerRegisterAnyUnitEventBJ(udg_trigger183,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(udg_trigger183,Condition(function Ys))
call TriggerAddAction(udg_trigger183,function YS)
call TriggerRegisterAnyUnitEventBJ(udg_trigger184,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger184,Condition(function YT))
call TriggerAddAction(udg_trigger184,function Yu)
call TriggerAddCondition(udg_trigger185,Condition(function YU))
call TriggerAddAction(udg_trigger185,function Yv)
call TriggerAddCondition(udg_trigger186,Condition(function YV))
call TriggerAddAction(udg_trigger186,function Yw)
call TriggerAddCondition(udg_trigger187,Condition(function YW))
call TriggerAddAction(udg_trigger187,function Yx)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger188,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger188,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger188,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger188,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger188,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger188,Player(5),true)
call TriggerAddCondition(udg_trigger188,Condition(function Yy))
call TriggerAddAction(udg_trigger188,function ze)
call TriggerAddAction(udg_trigger189,function zV)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger190,Player(0),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger190,Player(1),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger190,Player(2),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger190,Player(3),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger190,Player(4),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger190,Player(5),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerAddCondition(udg_trigger190,Condition(function zw))
call TriggerAddAction(udg_trigger190,function zx)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger191,Player(0),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger191,Player(1),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger191,Player(2),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger191,Player(3),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger191,Player(4),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger191,Player(5),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(udg_trigger191,Condition(function zX))
call TriggerAddAction(udg_trigger191,function ZA)
call DisableTrigger(udg_trigger192)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger192,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger192,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger192,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger192,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger192,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger192,Player(5),true)
call TriggerAddCondition(udg_trigger192,Condition(function ZB))
call TriggerAddAction(udg_trigger192,function ZZ)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger193,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger193,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger193,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger193,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger193,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger193,Player(5),true)
call TriggerAddCondition(udg_trigger193,Condition(function Z1))
call TriggerAddAction(udg_trigger193,function aao)
call TriggerRegisterAnyUnitEventBJ(udg_trigger194,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger194,Condition(function aaO))
call TriggerAddAction(udg_trigger194,function aaV)
call DisableTrigger(udg_trigger195)
call TriggerRegisterTimerEventPeriodic(udg_trigger195,.4)
call TriggerAddAction(udg_trigger195,function aAa)
call TriggerAddAction(udg_trigger196,function aAd)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger197,Player(0),0,3)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger197,Player(1),0,3)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger197,Player(2),0,3)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger197,Player(3),0,3)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger197,Player(4),0,3)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger197,Player(5),0,3)
call TriggerAddCondition(udg_trigger197,Condition(function aAD))
call TriggerAddAction(udg_trigger197,function aAf)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger198,Player(0),0,2)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger198,Player(1),0,2)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger198,Player(2),0,2)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger198,Player(3),0,2)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger198,Player(4),0,2)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger198,Player(5),0,2)
call TriggerAddCondition(udg_trigger198,Condition(function aAF))
call TriggerAddAction(udg_trigger198,function aAG)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger199,Player(0),0,1)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger199,Player(1),0,1)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger199,Player(2),0,1)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger199,Player(3),0,1)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger199,Player(4),0,1)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger199,Player(5),0,1)
call TriggerAddCondition(udg_trigger199,Condition(function aAh))
call TriggerAddAction(udg_trigger199,function aAI)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger200,Player(0),0,0)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger200,Player(1),0,0)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger200,Player(2),0,0)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger200,Player(3),0,0)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger200,Player(4),0,0)
call TriggerRegisterPlayerKeyEventBJ(udg_trigger200,Player(5),0,0)
call TriggerAddCondition(udg_trigger200,Condition(function aAj))
call TriggerAddAction(udg_trigger200,function aAK)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger201,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger201,Condition(function aAl))
call TriggerAddAction(udg_trigger201,function abc)
call KI(udg_trigger202,bj_mapInitialPlayableArea)
call TriggerAddCondition(udg_trigger202,Condition(function abC))
call TriggerAddAction(udg_trigger202,function abg)
call DisableTrigger(udg_trigger203)
call TriggerRegisterUnitEvent(udg_trigger203,udg_unit08,EVENT_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddAction(udg_trigger203,function abh)
call TriggerRegisterAnyUnitEventBJ(udg_trigger204,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger204,Condition(function abH))
call TriggerAddAction(udg_trigger204,function abI)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger205,Player(10),EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddAction(udg_trigger205,function abJ)
call TriggerAddCondition(udg_trigger206,Condition(function abK))
call TriggerAddAction(udg_trigger206,function abo)
call DisableTrigger(udg_trigger207)
call TriggerRegisterTimerEventPeriodic(udg_trigger207,5.)
call TriggerAddAction(udg_trigger207,function abR)
call DisableTrigger(udg_trigger208)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger208,Player(10),EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger208,Condition(function abs))
call TriggerAddAction(udg_trigger208,function abZ)
call TriggerRegisterAnyUnitEventBJ(udg_trigger209,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger209,Condition(function ab1))
call TriggerAddAction(udg_trigger209,function aBa)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger210,Player(10),EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger210,Condition(function aBb))
call TriggerAddAction(udg_trigger210,function aBD)
call TriggerRegisterAnyUnitEventBJ(udg_trigger211,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger211,Condition(function aBE))
call TriggerAddAction(udg_trigger211,function aBH)
call TriggerRegisterAnyUnitEventBJ(udg_trigger212,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger212,Condition(function aBI))
call TriggerAddAction(udg_trigger212,function aBk)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger213,Player(10),EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger213,Condition(function aBl))
call TriggerAddAction(udg_trigger213,function aBL)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger214,Player(10),EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger214,Condition(function aBM))
call TriggerAddAction(udg_trigger214,function aBo)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger215,Player(10),EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger215,Condition(function aBp))
call TriggerAddAction(udg_trigger215,function aBX)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger216,Player(10),EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger216,Condition(function aBY))
call TriggerAddAction(udg_trigger216,function aB8)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger217,Player(10),EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger217,Condition(function aca))
call TriggerAddAction(udg_trigger217,function acg)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger218,Player(10),EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger218,Condition(function ach))
call TriggerAddAction(udg_trigger218,function acJ)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger219,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger219,Condition(function acK))
call TriggerAddAction(udg_trigger219,function acN)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger220,Player(8),EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger220,Condition(function aco))
call TriggerAddAction(udg_trigger220,function acO)
call TriggerRegisterAnyUnitEventBJ(udg_trigger221,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger221,Condition(function acp))
call TriggerAddAction(udg_trigger221,function acy)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger222,Player(8),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger222,Condition(function acY))
call TriggerAddAction(udg_trigger222,function aCa)
call TriggerAddAction(udg_trigger223,function aCd)
call TriggerRegisterAnyUnitEventBJ(udg_trigger224,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger224,Condition(function aCe))
call TriggerAddAction(udg_trigger224,function aCG)
call TriggerRegisterAnyUnitEventBJ(udg_trigger225,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger225,Condition(function aCH))
call TriggerAddAction(udg_trigger225,function aCm)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger226,Player(6),EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger226,Condition(function aCn))
call TriggerAddAction(udg_trigger226,function aCN)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger227,Player(6),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger227,Condition(function aCO))
call TriggerAddAction(udg_trigger227,function aCp)
call TriggerAddCondition(udg_trigger228,Condition(function aCP))
call TriggerAddAction(udg_trigger228,function aCs)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger229,Player(6),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger229,Condition(function aCS))
call TriggerAddAction(udg_trigger229,function aC2)
call TriggerAddAction(udg_trigger230,function aC6)
call DisableTrigger(udg_trigger231)
call TriggerAddCondition(udg_trigger231,Condition(function aC8))
call TriggerAddAction(udg_trigger231,function aC9)
call DisableTrigger(udg_trigger232)
call TriggerAddCondition(udg_trigger232,Condition(function ada))
call TriggerAddAction(udg_trigger232,function adA)
call DisableTrigger(udg_trigger233)
call TriggerAddCondition(udg_trigger233,Condition(function adb))
call TriggerAddAction(udg_trigger233,function adG)
call TriggerRegisterAnyUnitEventBJ(udg_trigger234,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger234,Condition(function adh))
call TriggerAddAction(udg_trigger234,function adq)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger235,Player(15),EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger235,Condition(function adQ))
call TriggerAddAction(udg_trigger235,function adr)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger236,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger236,Condition(function ads))
call TriggerAddAction(udg_trigger236,function adu)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger237,Player(10),EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger237,Condition(function adV))
call TriggerAddAction(udg_trigger237,function adz)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger238,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger238,Condition(function adZ))
call TriggerAddAction(udg_trigger238,function ad0)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger239,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger239,Condition(function ad1))
call TriggerAddAction(udg_trigger239,function ad2)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger240,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger240,Condition(function ad4))
call TriggerAddAction(udg_trigger240,function ad5)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger241,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger241,Condition(function ad6))
call TriggerAddAction(udg_trigger241,function ad7)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger242,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger242,Condition(function ad8))
call TriggerAddAction(udg_trigger242,function ad9)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger243,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger243,Condition(function aDa))
call TriggerAddAction(udg_trigger243,function aDA)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger244,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger244,Condition(function aDb))
call TriggerAddAction(udg_trigger244,function aDN)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger245,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger245,Condition(function aDo))
call TriggerAddAction(udg_trigger245,function aDS)
call TriggerAddAction(udg_trigger246,function aDY)
call TriggerAddAction(udg_trigger247,function aD8)
call TriggerAddAction(udg_trigger248,function aD9)
call TriggerRegisterUnitLifeEvent(udg_trigger249,udg_unit20,LESS_THAN,490.)
call TriggerAddAction(udg_trigger249,function aea)
call TriggerRegisterUnitLifeEvent(udg_trigger250,udg_unit20,LESS_THAN,340.)
call TriggerAddAction(udg_trigger250,function aeA)
call TriggerRegisterUnitLifeEvent(udg_trigger251,udg_unit20,LESS_THAN,190.)
call TriggerAddAction(udg_trigger251,function aeb)
call TriggerRegisterUnitLifeEvent(udg_trigger252,udg_unit20,LESS_THAN,80.)
call TriggerAddAction(udg_trigger252,function aeB)
call TriggerRegisterUnitEvent(udg_trigger253,udg_unit20,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger253,function aeF)
call DisableTrigger(udg_trigger254)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger254,Player(11),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger254,Condition(function aeg))
call TriggerAddAction(udg_trigger254,function aej)
call DisableTrigger(udg_trigger255)
call TriggerRegisterUnitLifeEvent(udg_trigger255,udg_unit30,LESS_THAN,1600.)
call TriggerAddAction(udg_trigger255,function aen)
call DisableTrigger(udg_trigger256)
call TriggerRegisterUnitLifeEvent(udg_trigger256,udg_unit30,LESS_THAN,1100.)
call TriggerAddCondition(udg_trigger256,Condition(function aeN))
call TriggerAddAction(udg_trigger256,function aeo)
call DisableTrigger(udg_trigger257)
call TriggerRegisterTimerEventPeriodic(udg_trigger257,6.)
call TriggerAddAction(udg_trigger257,function aeP)
call DisableTrigger(udg_trigger258)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger258,Player(10),EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger258,Condition(function aeq))
call TriggerAddAction(udg_trigger258,function aeS)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger259,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger259,Condition(function aet))
call TriggerAddAction(udg_trigger259,function aeT)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger260,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger260,Condition(function aeu))
call TriggerAddAction(udg_trigger260,function aeU)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger261,Player(10),EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger261,Condition(function aev))
call TriggerAddAction(udg_trigger261,function aeV)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger262,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger262,Condition(function aew))
call TriggerAddAction(udg_trigger262,function aeW)
call DisableTrigger(udg_trigger263)
call TriggerRegisterUnitLifeEvent(udg_trigger263,udg_unit30,LESS_THAN,400.)
call TriggerAddAction(udg_trigger263,function aex)
call DisableTrigger(udg_trigger264)
call TriggerRegisterUnitLifeEvent(udg_trigger264,udg_unit30,LESS_THAN,220.)
call TriggerAddAction(udg_trigger264,function aeY)
call KI(udg_trigger265,udg_rect230)
call TriggerAddCondition(udg_trigger265,Condition(function aez))
call TriggerAddAction(udg_trigger265,function ae0)
call KI(udg_trigger266,udg_rect226)
call TriggerAddCondition(udg_trigger266,Condition(function ae1))
call TriggerAddAction(udg_trigger266,function ae2)
call TriggerAddCondition(udg_trigger267,Condition(function ae3))
call TriggerAddAction(udg_trigger267,function ae4)
call TriggerAddCondition(udg_trigger268,Condition(function ae5))
call TriggerAddAction(udg_trigger268,function ae6)
call TriggerAddCondition(udg_trigger269,Condition(function ae7))
call TriggerAddAction(udg_trigger269,function ae8)
call DisableTrigger(udg_trigger270)
call KI(udg_trigger270,udg_rect93)
call TriggerAddCondition(udg_trigger270,Condition(function ae9))
call TriggerAddAction(udg_trigger270,function aEb)
call TriggerAddAction(udg_trigger271,function aEd)
call DisableTrigger(udg_trigger272)
call KI(udg_trigger272,udg_rect222)
call TriggerAddCondition(udg_trigger272,Condition(function aED))
call TriggerAddAction(udg_trigger272,function aEE)
call TriggerAddAction(udg_trigger273,function aEf)
call DisableTrigger(udg_trigger274)
call KI(udg_trigger274,udg_rect221)
call TriggerAddCondition(udg_trigger274,Condition(function aEF))
call TriggerAddAction(udg_trigger274,function aEg)
call DisableTrigger(udg_trigger275)
call KI(udg_trigger275,udg_rect217)
call TriggerAddCondition(udg_trigger275,Condition(function aEG))
call TriggerAddAction(udg_trigger275,function aEh)
call DisableTrigger(udg_trigger276)
call KI(udg_trigger276,udg_rect218)
call TriggerAddCondition(udg_trigger276,Condition(function aEH))
call TriggerAddAction(udg_trigger276,function aEi)
call DisableTrigger(udg_trigger277)
call KI(udg_trigger277,udg_rect207)
call TriggerAddCondition(udg_trigger277,Condition(function aEI))
call TriggerAddAction(udg_trigger277,function aEj)
call DisableTrigger(udg_trigger278)
call KI(udg_trigger278,udg_rect219)
call TriggerAddCondition(udg_trigger278,Condition(function aEJ))
call TriggerAddAction(udg_trigger278,function aEk)
call DisableTrigger(udg_trigger279)
call KI(udg_trigger279,udg_rect208)
call TriggerAddCondition(udg_trigger279,Condition(function aEK))
call TriggerAddAction(udg_trigger279,function aEl)
call DisableTrigger(udg_trigger280)
call KI(udg_trigger280,udg_rect213)
call TriggerAddCondition(udg_trigger280,Condition(function aEL))
call TriggerAddAction(udg_trigger280,function aEm)
call DisableTrigger(udg_trigger281)
call KI(udg_trigger281,udg_rect220)
call TriggerAddCondition(udg_trigger281,Condition(function aEM))
call TriggerAddAction(udg_trigger281,function aEn)
call DisableTrigger(udg_trigger282)
call KI(udg_trigger282,udg_rect209)
call TriggerAddCondition(udg_trigger282,Condition(function aEN))
call TriggerAddAction(udg_trigger282,function aEo)
call DisableTrigger(udg_trigger283)
call TriggerRegisterAnyUnitEventBJ(udg_trigger283,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger283,Condition(function aEO))
call TriggerAddAction(udg_trigger283,function aEp)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger284,Player(7),EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger284,Condition(function aEP))
call TriggerAddAction(udg_trigger284,function aEs)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger285,Player(7),EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger285,Condition(function aES))
call TriggerAddAction(udg_trigger285,function aEt)
call DisableTrigger(udg_trigger286)
call KI(udg_trigger286,udg_rect228)
call TriggerAddCondition(udg_trigger286,Condition(function aET))
call TriggerAddAction(udg_trigger286,function aE6)
call TriggerRegisterAnyUnitEventBJ(udg_trigger287,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(udg_trigger287,Condition(function aE7))
call TriggerAddAction(udg_trigger287,function afB)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger288,Player(0),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger288,Player(1),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger288,Player(2),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger288,Player(3),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger288,Player(4),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger288,Player(5),EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger288,Condition(function afc))
call TriggerAddAction(udg_trigger288,function af1)
call TriggerRegisterAnyUnitEventBJ(udg_trigger289,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger289,Condition(function af2))
call TriggerAddAction(udg_trigger289,function af6)
call TriggerAddAction(udg_trigger290,function aFc)
call TriggerRegisterAnyUnitEventBJ(udg_trigger291,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger291,Condition(function aFC))
call TriggerAddAction(udg_trigger291,function aFE)
call TriggerRegisterAnyUnitEventBJ(udg_trigger292,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger292,Condition(function aFf))
call TriggerAddAction(udg_trigger292,function aFh)
call TriggerRegisterAnyUnitEventBJ(udg_trigger293,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger293,Condition(function aFH))
call TriggerAddAction(udg_trigger293,function aFj)
call TriggerRegisterAnyUnitEventBJ(udg_trigger294,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger294,Condition(function aFJ))
call TriggerAddAction(udg_trigger294,function aFN)
call TriggerRegisterAnyUnitEventBJ(udg_trigger295,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger295,Condition(function aFo))
call TriggerAddAction(udg_trigger295,function aFs)
call TriggerRegisterAnyUnitEventBJ(udg_trigger296,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger296,Condition(function aFS))
call TriggerAddAction(udg_trigger296,function aFw)
call TriggerRegisterAnyUnitEventBJ(udg_trigger297,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(udg_trigger297,Condition(function aFx))
call TriggerAddAction(udg_trigger297,function aFX)
call TriggerRegisterAnyUnitEventBJ(udg_trigger298,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger298,Condition(function aFY))
call TriggerAddAction(udg_trigger298,function aF2)
call TriggerRegisterAnyUnitEventBJ(udg_trigger299,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger299,Condition(function aF4))
call TriggerAddAction(udg_trigger299,function aF9)
call TriggerRegisterAnyUnitEventBJ(udg_trigger300,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger300,Condition(function aga))
call TriggerAddAction(udg_trigger300,function agB)
call TriggerRegisterAnyUnitEventBJ(udg_trigger301,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger301,Condition(function agc))
call TriggerAddAction(udg_trigger301,function agi)
call TriggerRegisterAnyUnitEventBJ(udg_trigger302,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger302,Condition(function agj))
call TriggerAddAction(udg_trigger302,function agP)
call TriggerRegisterAnyUnitEventBJ(udg_trigger303,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger303,Condition(function agQ))
call TriggerAddAction(udg_trigger303,function agU)
call TriggerRegisterAnyUnitEventBJ(udg_trigger304,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger304,Condition(function agv))
call TriggerAddAction(udg_trigger304,function agY)
call TriggerRegisterAnyUnitEventBJ(udg_trigger305,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger305,Condition(function agz))
call TriggerAddAction(udg_trigger305,function ag0)
call TriggerRegisterAnyUnitEventBJ(udg_trigger306,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger306,Condition(function ag1))
call TriggerAddAction(udg_trigger306,function ag8)
call TriggerRegisterAnyUnitEventBJ(udg_trigger307,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger307,Condition(function ag9))
call TriggerAddAction(udg_trigger307,function aGC)
call DisableTrigger(udg_trigger308)
call TriggerRegisterTimerEventPeriodic(udg_trigger308,2.)
call TriggerAddAction(udg_trigger308,function aGH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger309,Player(0),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger309,Player(1),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger309,Player(2),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger309,Player(3),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger309,Player(4),EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger309,Player(5),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger309,Condition(function aGi))
call TriggerAddAction(udg_trigger309,function aGz)
call TriggerRegisterTimerExpireEvent(udg_trigger310,udg_timer01)
call TriggerAddAction(udg_trigger310,function aG3)
call DisableTrigger(udg_trigger311)
call TriggerRegisterGameStateEventTimeOfDay(udg_trigger311,EQUAL,5.75)
call TriggerAddAction(udg_trigger311,function aG4)
call DisableTrigger(udg_trigger312)
call TriggerRegisterTimerEventPeriodic(udg_trigger312,10.)
call TriggerAddAction(udg_trigger312,function aG8)
call TriggerAddAction(udg_trigger313,function ahA)
call TriggerAddAction(udg_trigger314,function ahF)
call DisableTrigger(udg_trigger315)
call TriggerRegisterTimerEventPeriodic(udg_trigger315,8.)
call TriggerAddAction(udg_trigger315,function ahK)
call DisableTrigger(udg_trigger316)
call TriggerAddAction(udg_trigger316,function ahp)
call DisableTrigger(udg_trigger317)
call TriggerRegisterTimerEventPeriodic(udg_trigger317,.4)
call TriggerAddAction(udg_trigger317,function ahr)
call DisableTrigger(udg_trigger318)
call TriggerRegisterPlayerEventEndCinematic(udg_trigger318,Player(0))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger318,Player(1))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger318,Player(2))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger318,Player(3))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger318,Player(4))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger318,Player(5))
call TriggerAddAction(udg_trigger318,function ahS)
call TriggerRegisterDialogEvent(udg_trigger319,udg_dialog08)
call TriggerAddAction(udg_trigger319,function ahW)
call TriggerRegisterDialogEvent(udg_trigger320,udg_dialog14)
call TriggerAddAction(udg_trigger320,function ah2)
call TriggerRegisterDialogEvent(udg_trigger321,udg_dialog13)
call TriggerAddAction(udg_trigger321,function ah7)
call TriggerRegisterDialogEvent(udg_trigger322,udg_dialog10)
call TriggerAddAction(udg_trigger322,function aHa)
call ConditionalTriggerExecute(udg_trigger42)
call ConditionalTriggerExecute(udg_trigger43)
call ConditionalTriggerExecute(udg_trigger44)
endfunction
function InitTrig_init takes nothing returns nothing
set udg_trigger01 = CreateTrigger()
set udg_trigger02 = CreateTrigger()
set udg_trigger03 = CreateTrigger()
set udg_trigger04 = CreateTrigger()
set udg_trigger05 = CreateTrigger()
set udg_trigger06 = CreateTrigger()
set udg_trigger07 = CreateTrigger()
set udg_trigger08 = CreateTrigger()
set udg_trigger09 = CreateTrigger()
set udg_trigger10 = CreateTrigger()
set udg_trigger11 = CreateTrigger()
set udg_trigger12 = CreateTrigger()
set udg_trigger13 = CreateTrigger()
set udg_trigger14 = CreateTrigger()
set udg_trigger15 = CreateTrigger()
set udg_trigger16 = CreateTrigger()
set udg_trigger17 = CreateTrigger()
set udg_trigger18 = CreateTrigger()
set udg_trigger19 = CreateTrigger()
set udg_trigger20 = CreateTrigger()
set udg_trigger21 = CreateTrigger()
set udg_trigger22 = CreateTrigger()
set udg_trigger23 = CreateTrigger()
set udg_trigger24 = CreateTrigger()
set udg_trigger25 = CreateTrigger()
set udg_trigger26 = CreateTrigger()
set udg_trigger27 = CreateTrigger()
set udg_trigger28 = CreateTrigger()
set udg_trigger29 = CreateTrigger()
set udg_trigger30 = CreateTrigger()
set udg_trigger31 = CreateTrigger()
set udg_trigger32 = CreateTrigger()
set udg_trigger33 = CreateTrigger()
set udg_trigger34 = CreateTrigger()
set udg_trigger35 = CreateTrigger()
set udg_trigger36 = CreateTrigger()
set udg_trigger37 = CreateTrigger()
set udg_trigger38 = CreateTrigger()
set udg_trigger39 = CreateTrigger()
set udg_trigger40 = CreateTrigger()
set udg_trigger41 = CreateTrigger()
set udg_camerasetup02 = CreateCameraSetup()
set udg_camerasetup03 = CreateCameraSetup()
set udg_camerasetup04 = CreateCameraSetup()
set udg_camerasetup05 = CreateCameraSetup()
set udg_camerasetup06 = CreateCameraSetup()
set udg_camerasetup07 = CreateCameraSetup()
set udg_camerasetup08 = CreateCameraSetup()
set udg_camerasetup09 = CreateCameraSetup()
set udg_camerasetup10 = CreateCameraSetup()
set udg_camerasetup11 = CreateCameraSetup()
set udg_camerasetup12 = CreateCameraSetup()
set udg_camerasetup13 = CreateCameraSetup()
set udg_camerasetup14 = CreateCameraSetup()
set udg_camerasetup15 = CreateCameraSetup()
set udg_camerasetup16 = CreateCameraSetup()
set udg_camerasetup17 = CreateCameraSetup()
set udg_camerasetup18 = CreateCameraSetup()
set udg_camerasetup19 = CreateCameraSetup()
set udg_camerasetup20 = CreateCameraSetup()
set udg_camerasetup21 = CreateCameraSetup()
set udg_camerasetup22 = CreateCameraSetup()
set udg_camerasetup23 = CreateCameraSetup()
set udg_camerasetup24 = CreateCameraSetup()
set udg_camerasetup25 = CreateCameraSetup()
set udg_camerasetup26 = CreateCameraSetup()
set udg_trigger42 = CreateTrigger()
set udg_trigger43 = CreateTrigger()
set udg_trigger44 = CreateTrigger()
set udg_trigger45 = CreateTrigger()
set udg_trigger46 = CreateTrigger()
set udg_trigger47 = CreateTrigger()
set udg_trigger48 = CreateTrigger()
set udg_trigger49 = CreateTrigger()
set udg_trigger50 = CreateTrigger()
set udg_trigger51 = CreateTrigger()
set udg_trigger52 = CreateTrigger()
set udg_trigger53 = CreateTrigger()
set udg_trigger54 = CreateTrigger()
set udg_trigger55 = CreateTrigger()
set udg_trigger56 = CreateTrigger()
set udg_trigger57 = CreateTrigger()
set udg_trigger58 = CreateTrigger()
set udg_trigger59 = CreateTrigger()
set udg_trigger60 = CreateTrigger()
set udg_trigger61 = CreateTrigger()
set udg_trigger62 = CreateTrigger()
set udg_trigger63 = CreateTrigger()
set udg_trigger64 = CreateTrigger()
set udg_trigger65 = CreateTrigger()
set udg_trigger66 = CreateTrigger()
set udg_trigger67 = CreateTrigger()
set udg_trigger68 = CreateTrigger()
set udg_trigger69 = CreateTrigger()
set udg_trigger70 = CreateTrigger()
set udg_trigger71 = CreateTrigger()
set udg_trigger72 = CreateTrigger()
set udg_trigger73 = CreateTrigger()
set udg_trigger74 = CreateTrigger()
set udg_trigger75 = CreateTrigger()
set udg_trigger76 = CreateTrigger()
set udg_trigger77 = CreateTrigger()
set udg_trigger78 = CreateTrigger()
set udg_trigger79 = CreateTrigger()
set udg_trigger80 = CreateTrigger()
set udg_trigger81 = CreateTrigger()
set udg_trigger82 = CreateTrigger()
set udg_trigger83 = CreateTrigger()
set udg_trigger84 = CreateTrigger()
set udg_trigger85 = CreateTrigger()
set udg_trigger86 = CreateTrigger()
set udg_trigger87 = CreateTrigger()
set udg_trigger88 = CreateTrigger()
set udg_trigger89 = CreateTrigger()
set udg_trigger90 = CreateTrigger()
set udg_trigger91 = CreateTrigger()
set udg_trigger92 = CreateTrigger()
set udg_trigger93 = CreateTrigger()
set udg_trigger94 = CreateTrigger()
set udg_trigger95 = CreateTrigger()
set udg_trigger96 = CreateTrigger()
set udg_trigger97 = CreateTrigger()
set udg_trigger98 = CreateTrigger()
set udg_trigger99 = CreateTrigger()
set udg_trigger100 = CreateTrigger()
set udg_trigger101 = CreateTrigger()
set udg_trigger102 = CreateTrigger()
set udg_trigger103 = CreateTrigger()
set udg_trigger104 = CreateTrigger()
set udg_trigger105 = CreateTrigger()
set udg_trigger106 = CreateTrigger()
set udg_trigger107 = CreateTrigger()
set udg_trigger108 = CreateTrigger()
set udg_trigger109 = CreateTrigger()
set udg_trigger110 = CreateTrigger()
set udg_trigger111 = CreateTrigger()
set udg_trigger112 = CreateTrigger()
set udg_trigger113 = CreateTrigger()
set udg_trigger114 = CreateTrigger()
set udg_trigger115 = CreateTrigger()
set udg_trigger116 = CreateTrigger()
set udg_trigger117 = CreateTrigger()
set udg_trigger118 = CreateTrigger()
set udg_trigger119 = CreateTrigger()
set udg_trigger120 = CreateTrigger()
set udg_trigger121 = CreateTrigger()
set udg_trigger122 = CreateTrigger()
set udg_trigger123 = CreateTrigger()
set udg_trigger124 = CreateTrigger()
set udg_trigger125 = CreateTrigger()
set udg_trigger126 = CreateTrigger()
set udg_trigger127 = CreateTrigger()
set udg_trigger128 = CreateTrigger()
set udg_trigger129 = CreateTrigger()
set udg_trigger130 = CreateTrigger()
set udg_trigger131 = CreateTrigger()
set udg_trigger132 = CreateTrigger()
set udg_trigger133 = CreateTrigger()
set udg_trigger134 = CreateTrigger()
set udg_trigger135 = CreateTrigger()
set udg_trigger136 = CreateTrigger()
set udg_trigger137 = CreateTrigger()
set udg_trigger138 = CreateTrigger()
set udg_trigger139 = CreateTrigger()
set udg_trigger140 = CreateTrigger()
set udg_trigger141 = CreateTrigger()
set udg_trigger142 = CreateTrigger()
set udg_trigger143 = CreateTrigger()
set udg_trigger144 = CreateTrigger()
set udg_trigger145 = CreateTrigger()
set udg_trigger146 = CreateTrigger()
set udg_trigger147 = CreateTrigger()
set udg_trigger148 = CreateTrigger()
set udg_trigger149 = CreateTrigger()
set udg_trigger150 = CreateTrigger()
set udg_trigger151 = CreateTrigger()
set udg_trigger152 = CreateTrigger()
set udg_trigger153 = CreateTrigger()
set udg_trigger154 = CreateTrigger()
set udg_trigger155 = CreateTrigger()
set udg_trigger156 = CreateTrigger()
set udg_trigger157 = CreateTrigger()
set udg_trigger158 = CreateTrigger()
set udg_trigger159 = CreateTrigger()
set udg_trigger160 = CreateTrigger()
set udg_trigger161 = CreateTrigger()
set udg_trigger162 = CreateTrigger()
set udg_trigger163 = CreateTrigger()
set udg_trigger164 = CreateTrigger()
set udg_trigger165 = CreateTrigger()
set udg_trigger166 = CreateTrigger()
set udg_trigger167 = CreateTrigger()
set udg_trigger168 = CreateTrigger()
set udg_trigger169 = CreateTrigger()
set udg_trigger170 = CreateTrigger()
set udg_trigger171 = CreateTrigger()
set udg_trigger172 = CreateTrigger()
set udg_trigger173 = CreateTrigger()
set udg_trigger174 = CreateTrigger()
set udg_trigger175 = CreateTrigger()
set udg_trigger176 = CreateTrigger()
set udg_trigger177 = CreateTrigger()
set udg_trigger178 = CreateTrigger()
set udg_trigger179 = CreateTrigger()
set udg_trigger180 = CreateTrigger()
set udg_trigger181 = CreateTrigger()
set udg_trigger182 = CreateTrigger()
set udg_trigger183 = CreateTrigger()
set udg_trigger184 = CreateTrigger()
set udg_trigger185 = CreateTrigger()
set udg_trigger186 = CreateTrigger()
set udg_trigger187 = CreateTrigger()
set udg_trigger188 = CreateTrigger()
set udg_trigger189 = CreateTrigger()
set udg_trigger190 = CreateTrigger()
set udg_trigger191 = CreateTrigger()
set udg_trigger192 = CreateTrigger()
set udg_trigger193 = CreateTrigger()
set udg_trigger194 = CreateTrigger()
set udg_trigger195 = CreateTrigger()
set udg_trigger196 = CreateTrigger()
set udg_trigger197 = CreateTrigger()
set udg_trigger198 = CreateTrigger()
set udg_trigger199 = CreateTrigger()
set udg_trigger200 = CreateTrigger()
set udg_trigger201 = CreateTrigger()
set udg_trigger202 = CreateTrigger()
set udg_trigger203 = CreateTrigger()
set udg_trigger204 = CreateTrigger()
set udg_trigger205 = CreateTrigger()
set udg_trigger206 = CreateTrigger()
set udg_trigger207 = CreateTrigger()
set udg_trigger208 = CreateTrigger()
set udg_trigger209 = CreateTrigger()
set udg_trigger210 = CreateTrigger()
set udg_trigger211 = CreateTrigger()
set udg_trigger212 = CreateTrigger()
set udg_trigger213 = CreateTrigger()
set udg_trigger214 = CreateTrigger()
set udg_trigger215 = CreateTrigger()
set udg_trigger216 = CreateTrigger()
set udg_trigger217 = CreateTrigger()
set udg_trigger218 = CreateTrigger()
set udg_trigger219 = CreateTrigger()
set udg_trigger220 = CreateTrigger()
set udg_trigger221 = CreateTrigger()
set udg_trigger222 = CreateTrigger()
set udg_trigger223 = CreateTrigger()
set udg_trigger224 = CreateTrigger()
set udg_trigger225 = CreateTrigger()
set udg_trigger226 = CreateTrigger()
set udg_trigger227 = CreateTrigger()
set udg_trigger228 = CreateTrigger()
set udg_trigger229 = CreateTrigger()
set udg_trigger230 = CreateTrigger()
set udg_trigger231 = CreateTrigger()
set udg_trigger232 = CreateTrigger()
set udg_trigger233 = CreateTrigger()
set udg_trigger234 = CreateTrigger()
set udg_trigger235 = CreateTrigger()
set udg_trigger236 = CreateTrigger()
set udg_trigger237 = CreateTrigger()
set udg_trigger238 = CreateTrigger()
set udg_trigger239 = CreateTrigger()
set udg_trigger240 = CreateTrigger()
set udg_trigger241 = CreateTrigger()
set udg_trigger242 = CreateTrigger()
set udg_trigger243 = CreateTrigger()
set udg_trigger244 = CreateTrigger()
set udg_trigger245 = CreateTrigger()
set udg_trigger246 = CreateTrigger()
set udg_trigger247 = CreateTrigger()
set udg_trigger248 = CreateTrigger()
set udg_trigger249 = CreateTrigger()
set udg_trigger250 = CreateTrigger()
set udg_trigger251 = CreateTrigger()
set udg_trigger252 = CreateTrigger()
set udg_trigger253 = CreateTrigger()
set udg_trigger254 = CreateTrigger()
set udg_trigger255 = CreateTrigger()
set udg_trigger256 = CreateTrigger()
set udg_trigger257 = CreateTrigger()
set udg_trigger258 = CreateTrigger()
set udg_trigger259 = CreateTrigger()
set udg_trigger260 = CreateTrigger()
set udg_trigger261 = CreateTrigger()
set udg_trigger262 = CreateTrigger()
set udg_trigger263 = CreateTrigger()
set udg_trigger264 = CreateTrigger()
set udg_trigger265 = CreateTrigger()
set udg_trigger266 = CreateTrigger()
set udg_trigger267 = CreateTrigger()
set udg_trigger268 = CreateTrigger()
set udg_trigger269 = CreateTrigger()
set udg_trigger270 = CreateTrigger()
set udg_trigger271 = CreateTrigger()
set udg_trigger272 = CreateTrigger()
set udg_trigger273 = CreateTrigger()
set udg_trigger274 = CreateTrigger()
set udg_trigger275 = CreateTrigger()
set udg_trigger276 = CreateTrigger()
set udg_trigger277 = CreateTrigger()
set udg_trigger278 = CreateTrigger()
set udg_trigger279 = CreateTrigger()
set udg_trigger280 = CreateTrigger()
set udg_trigger281 = CreateTrigger()
set udg_trigger282 = CreateTrigger()
set udg_trigger283 = CreateTrigger()
set udg_trigger284 = CreateTrigger()
set udg_trigger285 = CreateTrigger()
set udg_trigger286 = CreateTrigger()
set udg_trigger287 = CreateTrigger()
set udg_trigger288 = CreateTrigger()
set udg_trigger289 = CreateTrigger()
set udg_trigger290 = CreateTrigger()
set udg_trigger291 = CreateTrigger()
set udg_trigger292 = CreateTrigger()
set udg_trigger293 = CreateTrigger()
set udg_trigger294 = CreateTrigger()
set udg_trigger295 = CreateTrigger()
set udg_trigger296 = CreateTrigger()
set udg_trigger297 = CreateTrigger()
set udg_trigger298 = CreateTrigger()
set udg_trigger299 = CreateTrigger()
set udg_trigger300 = CreateTrigger()
set udg_trigger301 = CreateTrigger()
set udg_trigger302 = CreateTrigger()
set udg_trigger303 = CreateTrigger()
set udg_trigger304 = CreateTrigger()
set udg_trigger305 = CreateTrigger()
set udg_trigger306 = CreateTrigger()
set udg_trigger307 = CreateTrigger()
set udg_trigger308 = CreateTrigger()
set udg_trigger309 = CreateTrigger()
set udg_trigger310 = CreateTrigger()
set udg_trigger311 = CreateTrigger()
set udg_trigger312 = CreateTrigger()
set udg_trigger313 = CreateTrigger()
set udg_trigger314 = CreateTrigger()
set udg_trigger315 = CreateTrigger()
set udg_trigger316 = CreateTrigger()
set udg_trigger317 = CreateTrigger()
set udg_trigger318 = CreateTrigger()
set udg_trigger319 = CreateTrigger()
set udg_trigger320 = CreateTrigger()
set udg_trigger321 = CreateTrigger()
set udg_trigger322 = CreateTrigger()
call ExecuteFunc("main2")
endfunction