// 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 | |
booleans01 | boolean | Yes | |
booleans02 | boolean | Yes | |
booleans03 | boolean | Yes | |
booleans04 | boolean | Yes | |
booleans05 | boolean | Yes | |
booleans06 | boolean | Yes | |
booleans07 | boolean | Yes | |
boolexpr01 | boolexpr | No | |
buttons01 | button | Yes | |
destructables01 | destructable | Yes | |
destructables02 | destructable | Yes | |
destructables03 | destructable | Yes | |
destructables04 | destructable | Yes | |
destructables05 | destructable | Yes | |
destructables06 | destructable | Yes | |
destructables07 | destructable | Yes | |
destructables08 | destructable | Yes | |
dialog01 | dialog | No | |
effects01 | effect | Yes | |
force01 | force | No | |
force02 | force | No | |
force03 | force | No | |
gamecache01 | gamecache | No | |
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 | |
group17 | group | No | |
group18 | group | No | |
group19 | group | 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 | |
integer51 | integer | No | |
integer52 | integer | No | |
integer53 | integer | No | |
integers01 | integer | Yes | |
integers02 | integer | Yes | |
integers03 | integer | Yes | |
integers04 | integer | Yes | |
integers05 | integer | Yes | |
integers06 | integer | Yes | |
item01 | item | No | |
item02 | item | No | |
item03 | item | No | |
lightning01 | lightning | No | |
lightning02 | lightning | No | |
lightning03 | lightning | No | |
lightnings01 | lightning | Yes | |
lightnings02 | lightning | Yes | |
lightnings03 | lightning | Yes | |
lightnings04 | lightning | Yes | |
lightnings05 | lightning | Yes | |
lightnings06 | lightning | Yes | |
locations01 | location | Yes | |
locations02 | location | Yes | |
multiboard01 | multiboard | No | |
multiboard02 | multiboard | No | |
player01 | player | No | |
player02 | player | No | |
player03 | player | No | |
player04 | player | No | |
quests01 | quest | Yes | |
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 | |
real18 | real | No | |
real19 | real | No | |
real20 | real | No | |
real21 | real | No | |
real22 | real | No | |
real23 | real | No | |
real24 | real | No | |
real25 | real | No | |
real26 | real | No | |
real27 | real | No | |
real28 | real | No | |
real29 | real | No | |
real30 | real | No | .0 |
real31 | real | No | .0 |
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 | |
rect11 | rect | No | |
rect12 | rect | No | |
sound01 | sound | No | |
sound02 | sound | No | |
string01 | string | No | |
string02 | string | No | war3mapImported\\\\fight.mp3 |
strings01 | string | Yes | |
strings02 | string | Yes | |
strings03 | string | Yes | |
texttag01 | texttag | No | |
timer01 | timer | No | |
timerdialogs01 | timerdialog | Yes | |
timers01 | 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 | |
trigger323 | trigger | No | |
trigger324 | trigger | No | |
trigger325 | trigger | No | |
trigger326 | trigger | No | |
trigger327 | trigger | No | |
trigger328 | trigger | No | |
trigger329 | trigger | No | |
trigger33 | trigger | No | |
trigger330 | trigger | No | |
trigger331 | trigger | No | |
trigger332 | trigger | No | |
trigger333 | trigger | No | |
trigger334 | trigger | No | |
trigger335 | trigger | No | |
trigger336 | trigger | No | |
trigger337 | trigger | No | |
trigger338 | trigger | No | |
trigger339 | trigger | No | |
trigger34 | trigger | No | |
trigger340 | trigger | No | |
trigger341 | trigger | No | |
trigger342 | trigger | No | |
trigger343 | trigger | No | |
trigger344 | trigger | No | |
trigger345 | trigger | No | |
trigger346 | trigger | No | |
trigger347 | trigger | No | |
trigger348 | trigger | No | |
trigger349 | trigger | No | |
trigger35 | trigger | No | |
trigger350 | trigger | No | |
trigger351 | trigger | No | |
trigger352 | trigger | No | |
trigger353 | trigger | No | |
trigger354 | trigger | No | |
trigger355 | trigger | No | |
trigger356 | trigger | No | |
trigger357 | trigger | No | |
trigger358 | trigger | No | |
trigger359 | trigger | No | |
trigger36 | trigger | No | |
trigger360 | trigger | No | |
trigger361 | trigger | No | |
trigger362 | trigger | No | |
trigger363 | trigger | No | |
trigger364 | trigger | No | |
trigger365 | trigger | No | |
trigger366 | trigger | No | |
trigger367 | trigger | No | |
trigger368 | trigger | No | |
trigger369 | trigger | No | |
trigger37 | trigger | No | |
trigger370 | trigger | No | |
trigger371 | trigger | No | |
trigger372 | trigger | No | |
trigger373 | trigger | No | |
trigger374 | trigger | No | |
trigger375 | trigger | No | |
trigger376 | trigger | No | |
trigger377 | trigger | No | |
trigger378 | trigger | No | |
trigger379 | trigger | No | |
trigger38 | trigger | No | |
trigger380 | trigger | No | |
trigger381 | trigger | No | |
trigger382 | trigger | No | |
trigger383 | trigger | No | |
trigger384 | trigger | No | |
trigger385 | trigger | No | |
trigger386 | trigger | No | |
trigger387 | trigger | No | |
trigger388 | trigger | No | |
trigger389 | trigger | No | |
trigger39 | trigger | No | |
trigger390 | trigger | No | |
trigger391 | trigger | No | |
trigger392 | trigger | No | |
trigger393 | trigger | No | |
trigger394 | trigger | No | |
trigger395 | trigger | No | |
trigger396 | trigger | No | |
trigger397 | trigger | No | |
trigger398 | trigger | No | |
trigger399 | trigger | No | |
trigger40 | trigger | No | |
trigger400 | trigger | No | |
trigger401 | trigger | No | |
trigger402 | trigger | No | |
trigger403 | trigger | No | |
trigger404 | trigger | No | |
trigger405 | trigger | No | |
trigger406 | trigger | No | |
trigger407 | trigger | No | |
trigger408 | trigger | No | |
trigger409 | trigger | No | |
trigger41 | trigger | No | |
trigger410 | trigger | No | |
trigger411 | trigger | No | |
trigger412 | trigger | No | |
trigger413 | trigger | No | |
trigger414 | trigger | No | |
trigger415 | trigger | No | |
trigger416 | trigger | No | |
trigger417 | trigger | No | |
trigger418 | trigger | No | |
trigger419 | trigger | No | |
trigger42 | trigger | No | |
trigger420 | trigger | No | |
trigger421 | trigger | No | |
trigger422 | trigger | No | |
trigger423 | trigger | No | |
trigger424 | trigger | No | |
trigger425 | trigger | No | |
trigger426 | trigger | No | |
trigger427 | 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 | |
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 | |
unit100 | unit | No | |
unit101 | unit | No | |
unit102 | unit | No | |
unit103 | unit | No | |
unit104 | unit | No | |
unit105 | unit | No | |
unit106 | unit | No | |
unit107 | unit | No | |
unit108 | unit | No | |
unit109 | unit | No | |
unit11 | unit | No | |
unit110 | unit | No | |
unit111 | unit | No | |
unit112 | unit | No | |
unit113 | unit | No | |
unit114 | unit | No | |
unit115 | unit | No | |
unit116 | unit | No | |
unit117 | unit | No | |
unit118 | unit | No | |
unit119 | unit | No | |
unit12 | unit | No | |
unit120 | unit | No | |
unit121 | unit | No | |
unit122 | unit | No | |
unit123 | unit | No | |
unit124 | unit | No | |
unit125 | unit | No | |
unit126 | unit | No | |
unit127 | unit | No | |
unit128 | unit | No | |
unit129 | unit | No | |
unit13 | unit | No | |
unit130 | unit | No | |
unit131 | unit | No | |
unit132 | unit | No | |
unit133 | unit | No | |
unit134 | unit | No | |
unit135 | unit | No | |
unit136 | unit | No | |
unit137 | unit | No | |
unit138 | unit | No | |
unit139 | unit | No | |
unit14 | unit | No | |
unit140 | unit | No | |
unit141 | unit | No | |
unit142 | unit | No | |
unit143 | unit | No | |
unit144 | unit | No | |
unit145 | unit | No | |
unit146 | unit | No | |
unit147 | unit | No | |
unit148 | unit | No | |
unit149 | unit | No | |
unit15 | unit | No | |
unit150 | unit | No | |
unit151 | unit | No | |
unit152 | unit | No | |
unit153 | unit | No | |
unit154 | unit | No | |
unit155 | unit | No | |
unit156 | unit | No | |
unit157 | unit | No | |
unit158 | unit | No | |
unit159 | unit | No | |
unit16 | unit | No | |
unit160 | unit | No | |
unit161 | unit | No | |
unit162 | unit | No | |
unit163 | unit | No | |
unit164 | unit | No | |
unit165 | unit | No | |
unit166 | unit | No | |
unit167 | unit | No | |
unit168 | unit | No | |
unit169 | unit | No | |
unit17 | unit | No | |
unit170 | unit | No | |
unit171 | unit | No | |
unit172 | unit | No | |
unit173 | unit | No | |
unit174 | unit | No | |
unit175 | unit | No | |
unit176 | unit | No | |
unit177 | unit | No | |
unit178 | unit | No | |
unit179 | unit | No | |
unit18 | unit | No | |
unit180 | unit | No | |
unit181 | unit | No | |
unit182 | unit | No | |
unit183 | unit | No | |
unit184 | unit | No | |
unit185 | unit | No | |
unit186 | unit | No | |
unit187 | unit | No | |
unit188 | unit | No | |
unit189 | unit | No | |
unit19 | unit | No | |
unit190 | unit | No | |
unit191 | unit | No | |
unit192 | unit | No | |
unit193 | unit | No | |
unit194 | unit | No | |
unit195 | unit | No | |
unit196 | unit | No | |
unit197 | unit | No | |
unit198 | unit | No | |
unit199 | unit | No | |
unit20 | unit | No | |
unit200 | unit | No | |
unit201 | unit | No | |
unit202 | unit | No | |
unit203 | unit | No | |
unit204 | unit | No | |
unit205 | unit | No | |
unit206 | unit | No | |
unit207 | unit | No | |
unit208 | unit | No | |
unit209 | unit | No | |
unit21 | unit | No | |
unit210 | unit | No | |
unit211 | unit | No | |
unit212 | unit | No | |
unit213 | unit | No | |
unit214 | unit | No | |
unit215 | unit | No | |
unit216 | unit | No | |
unit217 | unit | No | |
unit218 | unit | No | |
unit219 | unit | No | |
unit22 | unit | No | |
unit220 | unit | No | |
unit221 | unit | No | |
unit222 | unit | No | |
unit223 | unit | No | |
unit224 | unit | No | |
unit225 | unit | No | |
unit226 | unit | No | |
unit227 | unit | No | |
unit228 | unit | No | |
unit229 | unit | No | |
unit23 | unit | No | |
unit230 | unit | No | |
unit231 | unit | No | |
unit232 | unit | No | |
unit233 | unit | No | |
unit234 | unit | No | |
unit235 | unit | No | |
unit236 | unit | No | |
unit237 | unit | No | |
unit238 | unit | No | |
unit239 | unit | No | |
unit24 | unit | No | |
unit240 | unit | No | |
unit241 | unit | No | |
unit242 | unit | No | |
unit243 | unit | No | |
unit244 | unit | No | |
unit245 | unit | No | |
unit246 | unit | No | |
unit247 | unit | No | |
unit248 | unit | No | |
unit249 | unit | No | |
unit25 | unit | No | |
unit250 | unit | No | |
unit251 | unit | No | |
unit252 | unit | No | |
unit253 | unit | No | |
unit254 | unit | No | |
unit255 | unit | No | |
unit256 | unit | No | |
unit257 | unit | No | |
unit258 | unit | No | |
unit259 | unit | No | |
unit26 | unit | No | |
unit260 | unit | No | |
unit261 | unit | No | |
unit262 | unit | No | |
unit263 | unit | No | |
unit264 | unit | No | |
unit265 | unit | No | |
unit266 | unit | No | |
unit267 | unit | No | |
unit268 | unit | No | |
unit269 | unit | No | |
unit27 | unit | No | |
unit270 | unit | No | |
unit271 | unit | No | |
unit272 | unit | No | |
unit273 | unit | No | |
unit274 | unit | No | |
unit275 | unit | No | |
unit276 | unit | No | |
unit277 | unit | No | |
unit278 | unit | No | |
unit279 | unit | No | |
unit28 | unit | No | |
unit280 | unit | No | |
unit281 | unit | No | |
unit282 | unit | No | |
unit283 | unit | No | |
unit284 | unit | No | |
unit285 | unit | No | |
unit286 | unit | No | |
unit287 | unit | No | |
unit288 | unit | No | |
unit289 | unit | No | |
unit29 | unit | No | |
unit290 | unit | No | |
unit291 | unit | No | |
unit292 | unit | No | |
unit293 | 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 | |
unit45 | unit | No | |
unit46 | unit | No | |
unit47 | unit | No | |
unit48 | unit | No | |
unit49 | unit | No | |
unit50 | unit | No | |
unit51 | unit | No | |
unit52 | unit | No | |
unit53 | unit | No | |
unit54 | unit | No | |
unit55 | unit | No | |
unit56 | unit | No | |
unit57 | unit | No | |
unit58 | unit | No | |
unit59 | unit | No | |
unit60 | unit | No | |
unit61 | unit | No | |
unit62 | unit | No | |
unit63 | unit | No | |
unit64 | unit | No | |
unit65 | unit | No | |
unit66 | unit | No | |
unit67 | unit | No | |
unit68 | unit | No | |
unit69 | unit | No | |
unit70 | unit | No | |
unit71 | unit | No | |
unit72 | unit | No | |
unit73 | unit | No | |
unit74 | unit | No | |
unit75 | unit | No | |
unit76 | unit | No | |
unit77 | unit | No | |
unit78 | unit | No | |
unit79 | unit | No | |
unit80 | unit | No | |
unit81 | unit | No | |
unit82 | unit | No | |
unit83 | unit | No | |
unit84 | unit | No | |
unit85 | unit | No | |
unit86 | unit | No | |
unit87 | unit | No | |
unit88 | unit | No | |
unit89 | unit | No | |
unit90 | unit | No | |
unit91 | unit | No | |
unit92 | unit | No | |
unit93 | unit | No | |
unit94 | unit | No | |
unit95 | unit | No | |
unit96 | unit | No | |
unit97 | unit | No | |
unit98 | unit | No | |
unit99 | 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 | |
weathereffect01 | weathereffect | No | |
weathereffect02 | weathereffect | No | |
weathereffect03 | weathereffect | No | |
weathereffect04 | weathereffect | No | |
weathereffect05 | weathereffect | No | |
weathereffect06 | weathereffect | No |
// 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 xB takes location oB,real rB,real iB returns location
return Location(GetLocationX(oB)+rB*Cos(iB*bj_DEGTORAD),GetLocationY(oB)+rB*Sin(iB*bj_DEGTORAD))
endfunction
function aB takes nothing returns boolean
local real dx=GetDestructableX(GetFilterDestructable())-udg_real30
local real dy=GetDestructableY(GetFilterDestructable())-udg_real31
return(dx*dx+dy*dy<=bj_enumDestructableRadius)
endfunction
function nB takes rect r,boolexpr VB returns group
set udg_group19=CreateGroup()
call GroupEnumUnitsInRect(udg_group19,r,VB)
call DestroyBoolExpr(VB)
return udg_group19
endfunction
function EB takes rect r returns group
set udg_group19=CreateGroup()
call GroupEnumUnitsInRect(udg_group19,r,udg_boolexpr01)
return udg_group19
endfunction
function XB takes real OB,location RB,boolexpr VB returns group
set udg_group19=CreateGroup()
call GroupEnumUnitsInRangeOfLoc(udg_group19,RB,OB,VB)
return udg_group19
endfunction
function IB takes real OB,location RB returns group
set udg_group19=CreateGroup()
call GroupEnumUnitsInRangeOfLoc(udg_group19,RB,OB,udg_boolexpr01)
return udg_group19
endfunction
function AB takes integer NB returns group
set udg_group19=CreateGroup()
call GroupEnumUnitsOfType(udg_group19,UnitId2String(NB),udg_boolexpr01)
return udg_group19
endfunction
function bB takes player BB returns group
set udg_group19=CreateGroup()
call GroupEnumUnitsOfPlayer(udg_group19,BB,udg_boolexpr01)
return udg_group19
endfunction
function cB takes player BB,integer NB returns group
set udg_group19=CreateGroup()
set bj_groupEnumTypeId=NB
call GroupEnumUnitsOfPlayer(udg_group19,BB,filterGetUnitsOfPlayerAndTypeId)
return udg_group19
endfunction
function CB takes player BB returns force
set udg_force03=CreateForce()
call ForceAddPlayer(udg_force03,BB)
return udg_force03
endfunction
function dB takes mapcontrol DB returns force
local integer fB
local player FB
set udg_force03=CreateForce()
set fB=0
loop
set FB=Player(fB)
if GetPlayerController(FB)==DB then
call ForceAddPlayer(udg_force03,FB)
endif
set fB=fB+1
exitwhen fB==16
endloop
return udg_force03
endfunction
function gB takes boolexpr VB returns force
set udg_force03=CreateForce()
call ForceEnumPlayers(udg_force03,VB)
call DestroyBoolExpr(VB)
return udg_force03
endfunction
function GB takes integer hB,group HB returns group
set bj_randomSubGroupGroup=CreateGroup()
set bj_randomSubGroupWant=hB
set bj_randomSubGroupTotal=CountUnitsInGroup(HB)
if(bj_randomSubGroupWant<=0 or bj_randomSubGroupTotal<=0)then
return bj_randomSubGroupGroup
endif
set bj_randomSubGroupChance=I2R(bj_randomSubGroupWant)/I2R(bj_randomSubGroupTotal)
call ForGroup(HB,function GetRandomSubGroupEnum)
return bj_randomSubGroupGroup
endfunction
function jB takes itemtype JB,integer kB returns nothing
local group g
set bj_stockPickedItemType=JB
set bj_stockPickedItemLevel=kB
set g=CreateGroup()
call GroupEnumUnitsOfType(g,"marketplace",udg_boolexpr01)
call ForGroup(g,function UpdateEachStockBuildingEnum)
call DestroyGroup(g)
set g=null
endfunction
function KB takes nothing returns nothing
local integer pickedItemId
local itemtype lB
local integer LB=0
local integer mB=0
local integer kB
set kB=1
loop
if(bj_stockAllowedPermanent[kB])then
set mB=mB+1
if(GetRandomInt(1,mB)==1)then
set lB=ITEM_TYPE_PERMANENT
set LB=kB
endif
endif
if(bj_stockAllowedCharged[kB])then
set mB=mB+1
if(GetRandomInt(1,mB)==1)then
set lB=ITEM_TYPE_CHARGED
set LB=kB
endif
endif
if(bj_stockAllowedArtifact[kB])then
set mB=mB+1
if(GetRandomInt(1,mB)==1)then
set lB=ITEM_TYPE_ARTIFACT
set LB=kB
endif
endif
set kB=kB+1
exitwhen kB>10
endloop
if(mB==0)then
set lB=null
return
endif
call jB(lB,LB)
set lB=null
endfunction
function MB takes nothing returns nothing
call KB()
call TimerStart(bj_stockUpdateTimer,bj_STOCK_RESTOCK_INTERVAL,true,function KB)
endfunction
function PB takes nothing returns boolean
return true
endfunction
function SB takes unit tB,integer TB returns item
if(TB==-1)then
return null
endif
set udg_item03=CreateItem(TB,GetUnitX(tB)+GetRandomReal(-32,32),GetUnitY(tB)+GetRandomReal(-32,32))
call SetItemDropID(udg_item03,GetUnitTypeId(tB))
call UpdateStockAvailability(udg_item03)
return udg_item03
endfunction
function uB takes nothing returns boolean
return(GetSpellAbilityId()=='A05V')
endfunction
function UB takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function wB takes nothing returns nothing
call ForGroupBJ(cB(GetOwningPlayer(GetSpellAbilityUnit()),'o00S'),function UB)
endfunction
function yB takes nothing returns nothing
local widget YB=null
local unit zB=null
local integer ZB=0
local boolean vc=true
set YB=bj_lastDyingWidget
if(YB==null)then
set zB=GetTriggerUnit()
endif
if(zB!=null)then
set vc=not IsUnitHidden(zB)
if(vc and GetChangingUnit()!=null)then
set vc=(GetChangingUnitPrevOwner()==Player(12))
endif
endif
if(vc)then
call RandomDistReset()
call RandomDistAddItem('I01W','d')
set ZB=RandomDistChoose()
if(zB!=null)then
call SB(zB,ZB)
else
call WidgetDropItem(YB,ZB)
endif
call RandomDistReset()
call RandomDistAddItem('I01X','d')
set ZB=RandomDistChoose()
if(zB!=null)then
call SB(zB,ZB)
else
call WidgetDropItem(YB,ZB)
endif
call RandomDistReset()
call RandomDistAddItem('I01Y','d')
set ZB=RandomDistChoose()
if(zB!=null)then
call SB(zB,ZB)
else
call WidgetDropItem(YB,ZB)
endif
call RandomDistReset()
call RandomDistAddItem('I01Z','d')
set ZB=RandomDistChoose()
if(zB!=null)then
call SB(zB,ZB)
else
call WidgetDropItem(YB,ZB)
endif
call RandomDistReset()
call RandomDistAddItem('I020','d')
set ZB=RandomDistChoose()
if(zB!=null)then
call SB(zB,ZB)
else
call WidgetDropItem(YB,ZB)
endif
call RandomDistReset()
call RandomDistAddItem('I021','d')
set ZB=RandomDistChoose()
if(zB!=null)then
call SB(zB,ZB)
else
call WidgetDropItem(YB,ZB)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ec takes handle h returns integer
return h
return 0
endfunction
function xc takes integer i returns trigger
return i
return null
endfunction
function oc takes integer i returns triggercondition
return i
return null
endfunction
function rc takes nothing returns boolean
local texttag tt
if GetEventDamage()>0 then
set tt=CreateTextTag()
if udg_booleans01[GetPlayerId(GetLocalPlayer())]then
call SetTextTagText(tt,I2S(R2I(GetEventDamage()))+"!",.023)
call SetTextTagPos(tt,GetUnitX(GetTriggerUnit()),GetUnitY(GetTriggerUnit()),50)
call SetTextTagColor(tt,255,202,149,255)
call SetTextTagVelocity(tt,0,TextTagSpeed2Velocity(50))
call SetTextTagFadepoint(tt,.2)
endif
call SetTextTagPermanent(tt,false)
call SetTextTagLifespan(tt,1)
endif
set tt=null
return false
endfunction
function ic takes unit u,boolean ac returns nothing
local trigger t
local triggercondition c
local integer i
if ac then
if not HaveStoredInteger(udg_gamecache01,I2S(ec(u)),"DamShowTrigger")then
set t=CreateTrigger()
set c=TriggerAddCondition(t,Condition(function rc))
call TriggerRegisterUnitEvent(t,u,EVENT_UNIT_DAMAGED)
call StoreInteger(udg_gamecache01,I2S(ec(u)),"DamShowTrigger",ec(t))
call StoreInteger(udg_gamecache01,I2S(ec(t)),"TriggerCondition",ec(c))
endif
if udg_boolean03 then
if HaveStoredInteger(udg_gamecache01,I2S(ec(u)),"DamShowNum")then
set i=GetStoredInteger(udg_gamecache01,I2S(ec(u)),"DamShowNum")
call FlushStoredInteger(udg_gamecache01,I2S(ec(u)),"DamShowNum")
set udg_integer47=udg_integer47-1
set udg_units12[i]=udg_units12[udg_integer47]
call StoreInteger(udg_gamecache01,I2S(ec(udg_units12[i])),"DamShowNum",i)
endif
set udg_boolean03=false
else
if not HaveStoredInteger(udg_gamecache01,I2S(ec(u)),"DamShowNum")then
set udg_units12[udg_integer47]=u
call StoreInteger(udg_gamecache01,I2S(ec(u)),"DamShowNum",udg_integer47)
set udg_integer47=udg_integer47+1
endif
endif
else
set t=xc(GetStoredInteger(udg_gamecache01,I2S(ec(u)),"DamShowTrigger"))
set c=oc(GetStoredInteger(udg_gamecache01,I2S(ec(t)),"TriggerCondition"))
set i=GetStoredInteger(udg_gamecache01,I2S(ec(u)),"DamShowNum")
set udg_integer47=udg_integer47-1
set udg_units12[i]=udg_units12[udg_integer47]
call StoreInteger(udg_gamecache01,I2S(ec(udg_units12[i])),"DamShowNum",i)
call FlushStoredInteger(udg_gamecache01,I2S(ec(u)),"DamShowNum")
call FlushStoredInteger(udg_gamecache01,I2S(ec(u)),"DamShowTrigger")
call FlushStoredMission(udg_gamecache01,I2S(ec(t)))
call TriggerRemoveCondition(t,c)
call DestroyTrigger(t)
endif
set t=null
set c=null
endfunction
function nc takes nothing returns nothing
local integer i=0
loop
exitwhen i>=udg_integer47
if GetUnitState(udg_units12[i],UNIT_STATE_MAX_LIFE)<=0 then
call ic(udg_units12[i],false)
endif
set i=i+1
endloop
endfunction
function ShowDamageOff takes nothing returns nothing
call ic(udg_unit233,false)
endfunction
function Vc takes nothing returns nothing
call ic(GetEnumUnit(),true)
endfunction
function Ec takes nothing returns boolean
return(GetPlayerSlotState(GetEnumPlayer())!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_USER)
endfunction
function Xc takes nothing returns nothing
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetEnumPlayer())
call SetPlayerAbilityAvailableBJ(false,'A0C2',GetEnumPlayer())
call SetPlayerAbilityAvailableBJ(false,'A036',GetEnumPlayer())
call SetPlayerAbilityAvailableBJ(false,'Amrf',GetEnumPlayer())
if(Ec())then
set udg_integer43=(udg_integer43+1)
endif
endfunction
function Oc takes nothing returns boolean
return(udg_integer43>1)
endfunction
function Rc takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function Ic takes nothing returns nothing
call SetPlayerStateBJ(GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD,'d')
endfunction
function Ac takes nothing returns boolean
return(udg_integer43>1)
endfunction
function Nc takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog01,GetEnumPlayer())
endfunction
function bc takes nothing returns nothing
set udg_gamecache01=InitGameCache("game.w3v")
call TimerStart(CreateTimer(),60.,true,function nc)
set bj_wantDestroyGroup=true
call ForGroupBJ(EB(bj_mapInitialPlayableArea),function Vc)
call CreateQuestBJ(2,"Find Missing Pet","Find a missing pet in the arena, after you find it,bring it back here.","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call CreateQuestBJ(2,"Find Items","Find some items for me: exploding note, Kunai, moon rock, wand of neutralization, wand of negation, and lighting orb. Bring them back to me for reward.","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call CreateQuestBJ(2,"Destroy the Bandit Lord","There's a small group of bandits in the arena, kill their boss, then come back here.","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call CreateQuestBJ(2,"Find wood","I need 1 wood, if you find it for me, I will give you something.","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call CreateQuestBJ(2,"Assassination","This is a secret assassination mission. You must kill a random enemy within the next 120 seconds. You will get a reward after your mission.","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call CreateQuestBJ(2,"Kill A rank Missing-Nin","When you are ready, stand in front of me and type 'go',and I will send you to some dangerous place to kill A Rank Missing-Nin. After you kill them, be sure to take their badge as proof, then come back to me with it for reward. (Note: Do Not take other rank badge, or you may not be able to take mission again.)","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call CreateQuestBJ(2,"Protection","This mission requires you to protect a rich business man to the other side of arena. He has a lot of money with him and many ninja are trying to kill him. Your mission is to ensure his safety, and if he dies, you will lose money. If he lives, you will be come a very rich man as well.......He will start after one minute.","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call CreateQuestBJ(2,"Kill S Rank Missing-Nin","We found some S Rank Missing-Nin at the cave, when you are ready, type in 'go' in front of me and I will send you there. After you kill them, be sure to get their badge as proof, then come back to me with it for reward. (Note: Do Not take other rank badge, or you may not be able to take mission again.)","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call CreateQuestBJ(2,"Kill Above S Missing-Nin","There's an above S rank missing-nin in the cave, kill him and bring his badge to me. (Note: Do Not take other rank badge, or you may not be able to take mission again.)","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call CreateQuestBJ(2,"Challenge the Sage of the Six Path","The Sage of Six Path visit the arena....can you kill him?","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call ForForce(bj_FORCE_ALL_PLAYERS,function Xc)
if(Oc())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[491]=GetRandomLocInRect(udg_rect09)
call CreateNUnitsAtLoc(1,'nskf',Player(12),udg_locations02[491],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[491])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[491]=GetRandomLocInRect(udg_rect10)
call CreateNUnitsAtLoc(1,'nubw',Player(12),udg_locations02[491],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[491])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[491]=GetRandomLocInRect(udg_rect11)
call CreateNUnitsAtLoc(1,'nbal',Player(12),udg_locations02[491],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[491])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations02[491]=GetRandomLocInRect(udg_rect12)
call CreateNUnitsAtLoc(1,'nsrw',Player(12),udg_locations02[491],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[491])
call EnableTrigger(udg_trigger37)
endif
call StopMusic(false)
call EndThematicMusic()
call PlayMusicBJ(udg_string02)
call FogEnableOff()
call FogMaskEnableOff()
call SetSkyModel("Environment\\Sky\\Sky\\SkyLight.mdl")
call SetMusicVolume(127)
call CreateQuestBJ(0,"Reward of Honorable Kill","TRIGSTR_6733","BTNWarcraft3 Ico 1dai.blp")
set udg_quests01[1]=bj_lastCreatedQuest
call CreateQuestBJ(0,"Thanks to","TRIGSTR_8821","ReplaceableTextures\\CommandButtons\\BTNNecromancer.blp")
set udg_quests01[2]=bj_lastCreatedQuest
call CreateQuestBJ(0,"NBR Forum","TRIGSTR_6735","BTNIcon23.blp")
set udg_quests01[3]=bj_lastCreatedQuest
call CreateQuestBJ(0,"Moral System","TRIGSTR_6737","BTNIcon01.blp")
set udg_quests01[4]=bj_lastCreatedQuest
call CreateQuestBJ(0,"Chakra System","TRIGSTR_7743","BTNPE.blp")
set udg_quests01[5]=bj_lastCreatedQuest
call CreateQuestBJ(0,"Message Control","TRIGSTR_6739","btnmr.blp")
set udg_quests01[6]=bj_lastCreatedQuest
call CreateQuestBJ(0,"Item Combination","TRIGSTR_6741","BTNIcon07.blp")
set udg_quests01[7]=bj_lastCreatedQuest
call ForGroupBJ(EB(udg_rect03),function Rc)
call ForForce(bj_FORCE_ALL_PLAYERS,function Ic)
call ForceAddPlayer(udg_force01,Player(0))
call ForceAddPlayer(udg_force01,Player(1))
call ForceAddPlayer(udg_force01,Player(2))
call ForceAddPlayer(udg_force01,Player(3))
call ForceAddPlayer(udg_force01,Player(4))
call ForceAddPlayer(udg_force01,Player(5))
call ForceAddPlayer(udg_force02,Player(6))
call ForceAddPlayer(udg_force02,Player(7))
call ForceAddPlayer(udg_force02,Player(8))
call ForceAddPlayer(udg_force02,Player(9))
call ForceAddPlayer(udg_force02,Player(10))
call ForceAddPlayer(udg_force02,Player(11))
call EnableTrigger(udg_trigger07)
call EnableTrigger(udg_trigger08)
call EnableTrigger(udg_trigger10)
call EnableTrigger(udg_trigger02)
call EnableTrigger(udg_trigger38)
call EnableTrigger(udg_trigger39)
call EnableTrigger(udg_trigger414)
call GroupAddUnit(udg_group01,udg_unit255)
call GroupAddUnit(udg_group01,udg_unit253)
call GroupAddUnit(udg_group01,udg_unit254)
call GroupAddUnit(udg_group01,udg_unit258)
call GroupAddUnit(udg_group01,udg_unit274)
call GroupAddUnit(udg_group01,udg_unit276)
call GroupAddUnit(udg_group01,udg_unit270)
call GroupAddUnit(udg_group01,udg_unit277)
call GroupAddUnit(udg_group01,udg_unit261)
call GroupAddUnit(udg_group01,udg_unit256)
call GroupAddUnit(udg_group01,udg_unit273)
call GroupAddUnit(udg_group01,udg_unit284)
call GroupAddUnit(udg_group01,udg_unit259)
call GroupAddUnit(udg_group01,udg_unit275)
call GroupAddUnit(udg_group01,udg_unit262)
call GroupAddUnit(udg_group01,udg_unit282)
call GroupAddUnit(udg_group01,udg_unit257)
call GroupAddUnit(udg_group01,udg_unit283)
call GroupAddUnit(udg_group01,udg_unit287)
call GroupAddUnit(udg_group01,udg_unit290)
call GroupAddUnit(udg_group01,udg_unit271)
call GroupAddUnit(udg_group01,udg_unit272)
call GroupAddUnit(udg_group01,udg_unit250)
call GroupAddUnit(udg_group01,udg_unit260)
call GroupAddUnit(udg_group01,udg_unit286)
call GroupAddUnit(udg_group01,udg_unit268)
call GroupAddUnit(udg_group01,udg_unit264)
call GroupAddUnit(udg_group01,udg_unit280)
call GroupAddUnit(udg_group01,udg_unit251)
call GroupAddUnit(udg_group01,udg_unit269)
call GroupAddUnit(udg_group01,udg_unit265)
call GroupAddUnit(udg_group01,udg_unit267)
call GroupAddUnit(udg_group01,udg_unit249)
call GroupAddUnit(udg_group01,udg_unit285)
call GroupAddUnit(udg_group01,udg_unit266)
call GroupAddUnit(udg_group01,udg_unit278)
call GroupAddUnit(udg_group01,udg_unit281)
call GroupAddUnit(udg_group01,udg_unit279)
call GroupAddUnit(udg_group01,udg_unit263)
call GroupAddUnit(udg_group01,udg_unit252)
call GroupAddUnit(udg_group01,udg_unit291)
call GroupAddUnit(udg_group01,udg_unit288)
call GroupAddUnit(udg_group01,udg_unit289)
call GroupAddUnit(udg_group01,udg_unit293)
call TriggerRegisterUnitEvent(udg_trigger120,udg_unit264,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger118,udg_unit293,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger108,udg_unit272,EVENT_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterUnitEvent(udg_trigger110,udg_unit272,EVENT_UNIT_ISSUED_ORDER)
call TriggerRegisterUnitEvent(udg_trigger111,udg_unit277,EVENT_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterUnitEvent(udg_trigger113,udg_unit277,EVENT_UNIT_ISSUED_ORDER)
call TriggerRegisterUnitEvent(udg_trigger371,udg_unit249,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger133,udg_unit284,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger128,udg_unit256,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger126,udg_unit256,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger135,udg_unit264,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger125,udg_unit264,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger131,udg_unit264,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger130,udg_unit264,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger160,udg_unit274,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger158,udg_unit274,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger156,udg_unit274,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger412,udg_unit287,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger412,udg_unit285,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger412,udg_unit258,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger403,udg_unit258,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger401,udg_unit285,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger399,udg_unit285,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger390,udg_unit263,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger362,udg_unit263,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger389,udg_unit266,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger387,udg_unit266,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger383,udg_unit266,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger376,udg_unit266,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger380,udg_unit273,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger377,udg_unit271,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger373,udg_unit249,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger372,udg_unit249,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger369,udg_unit249,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger367,udg_unit280,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger365,udg_unit254,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger364,udg_unit263,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger363,udg_unit263,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger359,udg_unit263,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger356,udg_unit287,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger355,udg_unit287,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger349,udg_unit290,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger347,udg_unit290,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger344,udg_unit267,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger341,udg_unit271,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger339,udg_unit281,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger337,udg_unit275,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger335,udg_unit261,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger330,udg_unit252,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger328,udg_unit252,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger326,udg_unit284,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger324,udg_unit284,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger322,udg_unit250,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger320,udg_unit250,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger318,udg_unit250,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger316,udg_unit250,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger315,udg_unit250,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger306,udg_unit260,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger304,udg_unit256,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger303,udg_unit286,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger294,udg_unit286,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger201,udg_unit271,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger297,udg_unit271,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger299,udg_unit267,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger301,udg_unit268,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger293,udg_unit249,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger289,udg_unit270,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger287,udg_unit275,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger285,udg_unit270,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger282,udg_unit270,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger283,udg_unit277,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger281,udg_unit257,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger280,udg_unit266,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger275,udg_unit268,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger274,udg_unit268,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger272,udg_unit267,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger266,udg_unit265,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger263,udg_unit256,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger261,udg_unit273,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger220,udg_unit273,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger260,udg_unit273,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger199,udg_unit273,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger256,udg_unit253,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger253,udg_unit253,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger252,udg_unit253,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger251,udg_unit276,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger250,udg_unit276,EVENT_UNIT_SPELL_CHANNEL)
call TriggerRegisterUnitEvent(udg_trigger240,udg_unit269,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger244,udg_unit269,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger83,udg_unit269,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger243,udg_unit269,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger246,udg_unit269,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger248,udg_unit269,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger232,udg_unit251,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger233,udg_unit251,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger234,udg_unit251,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger236,udg_unit251,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger229,udg_unit289,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger228,udg_unit270,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger228,udg_unit275,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger226,udg_unit290,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger223,udg_unit290,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger225,udg_unit290,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger217,udg_unit265,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger189,udg_unit265,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger203,udg_unit265,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger207,udg_unit265,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger213,udg_unit291,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger208,udg_unit291,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger205,udg_unit291,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger186,udg_unit291,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger197,udg_unit291,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger194,udg_unit252,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger185,udg_unit254,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger180,udg_unit277,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger178,udg_unit272,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger162,udg_unit272,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger170,udg_unit288,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger171,udg_unit288,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger166,udg_unit288,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger167,udg_unit288,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger165,udg_unit288,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger155,udg_unit276,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger154,udg_unit286,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger153,udg_unit254,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger151,udg_unit250,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger149,udg_unit252,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger147,udg_unit261,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger146,udg_unit259,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger143,udg_unit259,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger141,udg_unit272,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger137,udg_unit270,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger139,udg_unit270,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger123,udg_unit281,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger121,udg_unit280,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger115,udg_unit280,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger117,udg_unit255,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger106,udg_unit272,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger107,udg_unit277,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger105,udg_unit277,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger104,udg_unit253,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger103,udg_unit282,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger101,udg_unit265,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger97,udg_unit272,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger99,udg_unit277,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger90,udg_unit255,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger88,udg_unit281,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger86,udg_unit281,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger85,udg_unit271,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger114,udg_unit280,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger82,udg_unit266,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger80,udg_unit282,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger76,udg_unit282,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger77,udg_unit283,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger78,udg_unit257,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger79,udg_unit262,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger74,udg_unit283,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger73,udg_unit283,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger75,udg_unit283,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger72,udg_unit262,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger70,udg_unit262,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger68,udg_unit262,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger65,udg_unit257,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger66,udg_unit257,EVENT_UNIT_SPELL_EFFECT)
set udg_strings02[0]="Player Rank: Genin"
set udg_strings02[1]="Player Rank:|cFF00FF00Chunin|r"
set udg_strings02[2]="Player Rank:|cFF0000FFJounin|r"
set udg_strings02[3]="Player Rank:|cFF9000FFAnbu|r"
set udg_strings02[4]="Player Rank:|cFF0088FFSpecial Jounin|r"
set udg_strings02[5]="Player Rank:|cFFFF00FFElite Jounin|r"
set udg_strings02[6]="Player Rank:|cFFFF8000Akatsuki|r"
set udg_strings02[7]="Player Rank:|cFFFF0000Kage|r"
set udg_strings03[1]=GetPlayerName(Player(0))
set udg_strings03[2]=GetPlayerName(Player(1))
set udg_strings03[3]=GetPlayerName(Player(2))
set udg_strings03[4]=GetPlayerName(Player(3))
set udg_strings03[5]=GetPlayerName(Player(4))
set udg_strings03[6]=GetPlayerName(Player(5))
set udg_strings03[7]=GetPlayerName(Player(6))
set udg_strings03[8]=GetPlayerName(Player(7))
set udg_strings03[9]=GetPlayerName(Player(8))
set udg_strings03[10]=GetPlayerName(Player(9))
set udg_strings03[11]=GetPlayerName(Player(10))
set udg_strings03[12]=GetPlayerName(Player(11))
set udg_locations02[20]=GetRectCenter(udg_rect03)
set udg_locations02[21]=GetRectCenter(udg_rect01)
set udg_locations02[22]=GetRectCenter(udg_rect02)
set udg_locations02[391]=GetRectCenter(udg_rect04)
set udg_locations02[489]=GetRectCenter(udg_rect07)
set udg_integer06=1
set udg_integer29=1
call TriggerSleepAction(.5)
call CinematicModeBJ(true,bj_FORCE_ALL_PLAYERS)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_unit252,GetHeroProperName(udg_unit252),null,"Welcome to Naruto Battle Royal, the battle is about to start, all players please chose the mode......|cFFFF000010|r more seconds and voting will end.",0,2.,true)
call CinematicModeBJ(false,bj_FORCE_ALL_PLAYERS)
call DialogSetMessage(udg_dialog01,"Voting for main game mode")
call DialogAddButtonBJ(udg_dialog01,"Battle Royal Mode")
set udg_buttons01[1]=bj_lastCreatedButton
if(Ac())then
call DialogAddButtonBJ(udg_dialog01,"Capture the Flag mode")
else
call DialogAddButtonBJ(udg_dialog01,"Challenge mode")
endif
set udg_buttons01[2]=bj_lastCreatedButton
call ForForce(bj_FORCE_ALL_PLAYERS,function Nc)
call EnableTrigger(udg_trigger06)
call TriggerExecute(udg_trigger06)
endfunction
function Bc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function cc takes nothing returns nothing
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"|cffff0000Other players are voting, please wait...|r")
if(Bc())then
set udg_integers04[1]=(udg_integers04[1]+1)
else
set udg_integers04[2]=(udg_integers04[2]+1)
endif
endfunction
function Cc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function dc takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog01,GetEnumPlayer())
endfunction
function Dc takes nothing returns nothing
if(Cc())then
set udg_boolean02=false
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetTriggerPlayer())+" has chosen to choose hero."))
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetTriggerPlayer())+" has chosen to random hero."))
call DestroyTrigger(udg_trigger419)
endif
call TriggerSleepAction(.1)
call DialogClear(udg_dialog01)
call EnableTrigger(udg_trigger04)
call DialogSetMessage(udg_dialog01,"Use stronger AI?")
call DialogAddButtonBJ(udg_dialog01,"Yes")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"No")
set udg_buttons01[2]=bj_lastCreatedButton
call ForForce(bj_FORCE_ALL_PLAYERS,function dc)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function fc takes nothing returns nothing
call TriggerRegisterUnitInRangeSimple(udg_trigger421,800.,GetEnumUnit())
call TriggerRegisterUnitEvent(udg_trigger423,GetEnumUnit(),EVENT_UNIT_DAMAGED)
endfunction
function Fc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function gc takes nothing returns nothing
if(Fc())then
call ForGroupBJ(EB(udg_rect03),function fc)
call DestroyGroup(GetLastCreatedGroup())
call EnableTrigger(udg_trigger421)
call EnableTrigger(udg_trigger422)
call EnableTrigger(udg_trigger423)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Stronger AI activated.")
endif
call DialogClear(udg_dialog01)
call EnableTrigger(udg_trigger09)
call TriggerExecute(udg_trigger09)
call EnableUserControl(true)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Gc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[8])
endfunction
function hc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[7])
endfunction
function Hc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[6])
endfunction
function jc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[5])
endfunction
function Jc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[4])
endfunction
function kc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[3])
endfunction
function Kc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function lc takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function Lc takes nothing returns nothing
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"|cffff0000Other players are voting, please wait...|r")
if(lc())then
set udg_integers04[1]=(udg_integers04[1]+1)
else
if(Kc())then
set udg_integers04[2]=(udg_integers04[2]+1)
else
if(kc())then
set udg_integers04[3]=(udg_integers04[3]+1)
else
if(Jc())then
set udg_integers04[4]=(udg_integers04[4]+1)
else
if(jc())then
set udg_integers04[5]=(udg_integers04[5]+1)
else
if(Hc())then
set udg_integers04[6]=(udg_integers04[6]+1)
else
if(hc())then
set udg_integers04[7]=(udg_integers04[7]+1)
else
if(Gc())then
set udg_integers04[8]=(udg_integers04[8]+1)
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function mc takes nothing returns boolean
return(udg_integer43!=1)
endfunction
function Mc takes nothing returns boolean
return(udg_integers04[1]>udg_integers04[2])
endfunction
function pc takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog01,GetEnumPlayer())
endfunction
function Pc takes nothing returns boolean
return(udg_integers04[1]==udg_integers04[2])or(udg_integers04[1]==udg_integers04[3])or(udg_integers04[1]==udg_integers04[4])or(udg_integers04[1]==udg_integers04[5])or(udg_integers04[1]==udg_integers04[6])or(udg_integers04[1]==udg_integers04[7])or(udg_integers04[1]==udg_integers04[8])
endfunction
function qc takes nothing returns boolean
return(Pc())
endfunction
function Qc takes nothing returns boolean
return(udg_integers04[1]<udg_integers04[2])or(udg_integers04[1]<udg_integers04[3])or(udg_integers04[1]<udg_integers04[4])or(udg_integers04[1]<udg_integers04[5])or(udg_integers04[1]<udg_integers04[6])or(udg_integers04[1]<udg_integers04[7])or(udg_integers04[1]<udg_integers04[8])
endfunction
function sc takes nothing returns boolean
return(Qc())
endfunction
function Sc takes nothing returns boolean
return(udg_integers04[2]==udg_integers04[1])or(udg_integers04[2]==udg_integers04[3])or(udg_integers04[2]==udg_integers04[4])or(udg_integers04[2]==udg_integers04[5])or(udg_integers04[2]==udg_integers04[6])or(udg_integers04[2]==udg_integers04[7])or(udg_integers04[2]==udg_integers04[8])
endfunction
function tc takes nothing returns boolean
return(Sc())
endfunction
function Tc takes nothing returns boolean
return(udg_integers04[2]<udg_integers04[1])or(udg_integers04[2]<udg_integers04[3])or(udg_integers04[2]<udg_integers04[4])or(udg_integers04[2]<udg_integers04[5])or(udg_integers04[2]<udg_integers04[6])or(udg_integers04[2]<udg_integers04[7])or(udg_integers04[2]<udg_integers04[8])
endfunction
function uc takes nothing returns boolean
return(Tc())
endfunction
function Uc takes nothing returns boolean
return(udg_integers04[3]==udg_integers04[1])or(udg_integers04[3]==udg_integers04[2])or(udg_integers04[3]==udg_integers04[4])or(udg_integers04[3]==udg_integers04[5])or(udg_integers04[3]==udg_integers04[6])or(udg_integers04[3]==udg_integers04[7])or(udg_integers04[3]==udg_integers04[8])
endfunction
function wc takes nothing returns boolean
return(Uc())
endfunction
function Wc takes nothing returns boolean
return(udg_integers04[3]<udg_integers04[1])or(udg_integers04[3]<udg_integers04[2])or(udg_integers04[3]<udg_integers04[4])or(udg_integers04[3]<udg_integers04[5])or(udg_integers04[3]<udg_integers04[6])or(udg_integers04[3]<udg_integers04[7])or(udg_integers04[3]<udg_integers04[8])
endfunction
function yc takes nothing returns boolean
return(Wc())
endfunction
function Yc takes nothing returns boolean
return(udg_integers04[4]==udg_integers04[1])or(udg_integers04[4]==udg_integers04[2])or(udg_integers04[4]==udg_integers04[3])or(udg_integers04[4]==udg_integers04[5])or(udg_integers04[4]==udg_integers04[6])or(udg_integers04[4]==udg_integers04[7])or(udg_integers04[4]==udg_integers04[8])
endfunction
function zc takes nothing returns boolean
return(Yc())
endfunction
function Zc takes nothing returns boolean
return(udg_integers04[4]<udg_integers04[1])or(udg_integers04[4]<udg_integers04[2])or(udg_integers04[4]<udg_integers04[3])or(udg_integers04[4]<udg_integers04[5])or(udg_integers04[4]<udg_integers04[6])or(udg_integers04[4]<udg_integers04[7])or(udg_integers04[4]<udg_integers04[8])
endfunction
function vC takes nothing returns boolean
return(Zc())
endfunction
function eC takes nothing returns boolean
return(udg_integers04[5]==udg_integers04[1])or(udg_integers04[5]==udg_integers04[2])or(udg_integers04[5]==udg_integers04[3])or(udg_integers04[5]==udg_integers04[4])or(udg_integers04[5]==udg_integers04[6])or(udg_integers04[5]==udg_integers04[7])or(udg_integers04[5]==udg_integers04[8])
endfunction
function xC takes nothing returns boolean
return(eC())
endfunction
function oC takes nothing returns boolean
return(udg_integers04[5]<udg_integers04[1])or(udg_integers04[5]<udg_integers04[2])or(udg_integers04[5]<udg_integers04[3])or(udg_integers04[5]<udg_integers04[4])or(udg_integers04[5]<udg_integers04[6])or(udg_integers04[5]<udg_integers04[7])or(udg_integers04[5]<udg_integers04[8])
endfunction
function rC takes nothing returns boolean
return(oC())
endfunction
function iC takes nothing returns boolean
return(udg_integers04[6]==udg_integers04[1])or(udg_integers04[6]==udg_integers04[2])or(udg_integers04[6]==udg_integers04[3])or(udg_integers04[6]==udg_integers04[4])or(udg_integers04[6]==udg_integers04[5])or(udg_integers04[6]==udg_integers04[7])or(udg_integers04[6]==udg_integers04[8])
endfunction
function aC takes nothing returns boolean
return(iC())
endfunction
function nC takes nothing returns boolean
return(udg_integers04[6]<udg_integers04[1])or(udg_integers04[6]<udg_integers04[2])or(udg_integers04[6]<udg_integers04[3])or(udg_integers04[6]<udg_integers04[4])or(udg_integers04[6]<udg_integers04[5])or(udg_integers04[6]<udg_integers04[7])or(udg_integers04[6]<udg_integers04[8])
endfunction
function VC takes nothing returns boolean
return(nC())
endfunction
function EC takes nothing returns boolean
return(udg_integers04[7]==udg_integers04[1])or(udg_integers04[7]==udg_integers04[2])or(udg_integers04[7]==udg_integers04[3])or(udg_integers04[7]==udg_integers04[4])or(udg_integers04[7]==udg_integers04[5])or(udg_integers04[7]==udg_integers04[6])or(udg_integers04[7]==udg_integers04[8])
endfunction
function XC takes nothing returns boolean
return(EC())
endfunction
function OC takes nothing returns boolean
return(udg_integers04[7]<udg_integers04[1])or(udg_integers04[7]<udg_integers04[2])or(udg_integers04[7]<udg_integers04[3])or(udg_integers04[7]<udg_integers04[4])or(udg_integers04[7]<udg_integers04[5])or(udg_integers04[7]<udg_integers04[6])or(udg_integers04[7]<udg_integers04[8])
endfunction
function RC takes nothing returns boolean
return(OC())
endfunction
function IC takes nothing returns boolean
return(udg_integers04[8]==udg_integers04[1])or(udg_integers04[8]==udg_integers04[2])or(udg_integers04[8]==udg_integers04[3])or(udg_integers04[8]==udg_integers04[4])or(udg_integers04[8]==udg_integers04[5])or(udg_integers04[8]==udg_integers04[6])or(udg_integers04[8]==udg_integers04[7])
endfunction
function AC takes nothing returns boolean
return(IC())
endfunction
function NC takes nothing returns boolean
return(udg_integers04[8]<udg_integers04[1])or(udg_integers04[8]<udg_integers04[2])or(udg_integers04[8]<udg_integers04[3])or(udg_integers04[8]<udg_integers04[4])or(udg_integers04[8]<udg_integers04[5])or(udg_integers04[8]<udg_integers04[6])or(udg_integers04[8]<udg_integers04[7])
endfunction
function bC takes nothing returns boolean
return(NC())
endfunction
function BC takes nothing returns boolean
return(udg_integers04[8]>udg_integers04[1])and(udg_integers04[8]>udg_integers04[2])and(udg_integers04[8]>udg_integers04[3])and(udg_integers04[8]>udg_integers04[4])and(udg_integers04[8]>udg_integers04[5])and(udg_integers04[8]>udg_integers04[6])and(udg_integers04[8]>udg_integers04[7])
endfunction
function cC takes nothing returns boolean
return(udg_integers04[7]>udg_integers04[1])and(udg_integers04[7]>udg_integers04[2])and(udg_integers04[7]>udg_integers04[3])and(udg_integers04[7]>udg_integers04[4])and(udg_integers04[7]>udg_integers04[5])and(udg_integers04[7]>udg_integers04[6])and(udg_integers04[7]>udg_integers04[8])
endfunction
function CC takes nothing returns boolean
return(udg_integers04[6]>udg_integers04[1])and(udg_integers04[6]>udg_integers04[2])and(udg_integers04[6]>udg_integers04[3])and(udg_integers04[6]>udg_integers04[4])and(udg_integers04[6]>udg_integers04[5])and(udg_integers04[6]>udg_integers04[7])and(udg_integers04[6]>udg_integers04[8])
endfunction
function dC takes nothing returns boolean
return(udg_integers04[5]>udg_integers04[1])and(udg_integers04[5]>udg_integers04[2])and(udg_integers04[5]>udg_integers04[3])and(udg_integers04[5]>udg_integers04[4])and(udg_integers04[5]>udg_integers04[6])and(udg_integers04[5]>udg_integers04[7])and(udg_integers04[5]>udg_integers04[8])
endfunction
function DC takes nothing returns boolean
return(udg_integers04[4]>udg_integers04[1])and(udg_integers04[4]>udg_integers04[2])and(udg_integers04[4]>udg_integers04[3])and(udg_integers04[4]>udg_integers04[5])and(udg_integers04[4]>udg_integers04[6])and(udg_integers04[4]>udg_integers04[7])and(udg_integers04[4]>udg_integers04[8])
endfunction
function fC takes nothing returns boolean
return(udg_integers04[3]>udg_integers04[1])and(udg_integers04[3]>udg_integers04[2])and(udg_integers04[3]>udg_integers04[4])and(udg_integers04[3]>udg_integers04[5])and(udg_integers04[3]>udg_integers04[6])and(udg_integers04[3]>udg_integers04[7])and(udg_integers04[3]>udg_integers04[8])
endfunction
function FC takes nothing returns boolean
return(udg_integers04[2]>udg_integers04[1])and(udg_integers04[2]>udg_integers04[3])and(udg_integers04[2]>udg_integers04[4])and(udg_integers04[2]>udg_integers04[5])and(udg_integers04[2]>udg_integers04[6])and(udg_integers04[2]>udg_integers04[7])and(udg_integers04[2]>udg_integers04[8])
endfunction
function gC takes nothing returns boolean
return(udg_integers04[1]>udg_integers04[2])and(udg_integers04[1]>udg_integers04[3])and(udg_integers04[1]>udg_integers04[4])and(udg_integers04[1]>udg_integers04[5])and(udg_integers04[1]>udg_integers04[6])and(udg_integers04[1]>udg_integers04[7])and(udg_integers04[1]>udg_integers04[8])
endfunction
function GC takes nothing returns boolean
return(udg_integer43>1)
endfunction
function hC takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog01,GetEnumPlayer())
endfunction
function HC takes nothing returns boolean
return(udg_integers04[1]==udg_integers04[2])or(udg_integers04[1]==udg_integers04[3])or(udg_integers04[1]==udg_integers04[4])or(udg_integers04[1]==udg_integers04[5])or(udg_integers04[1]==udg_integers04[6])or(udg_integers04[1]==udg_integers04[7])or(udg_integers04[1]==udg_integers04[8])
endfunction
function jC takes nothing returns boolean
return(HC())
endfunction
function JC takes nothing returns boolean
return(udg_integers04[1]<udg_integers04[2])or(udg_integers04[1]<udg_integers04[3])or(udg_integers04[1]<udg_integers04[4])or(udg_integers04[1]<udg_integers04[5])or(udg_integers04[1]<udg_integers04[6])or(udg_integers04[1]<udg_integers04[7])or(udg_integers04[1]<udg_integers04[8])
endfunction
function kC takes nothing returns boolean
return(JC())
endfunction
function KC takes nothing returns boolean
return(udg_integers04[2]==udg_integers04[1])or(udg_integers04[2]==udg_integers04[3])or(udg_integers04[2]==udg_integers04[4])or(udg_integers04[2]==udg_integers04[5])or(udg_integers04[2]==udg_integers04[6])or(udg_integers04[2]==udg_integers04[7])or(udg_integers04[2]==udg_integers04[8])
endfunction
function lC takes nothing returns boolean
return(KC())
endfunction
function LC takes nothing returns boolean
return(udg_integers04[2]<udg_integers04[1])or(udg_integers04[2]<udg_integers04[3])or(udg_integers04[2]<udg_integers04[4])or(udg_integers04[2]<udg_integers04[5])or(udg_integers04[2]<udg_integers04[6])or(udg_integers04[2]<udg_integers04[7])or(udg_integers04[2]<udg_integers04[8])
endfunction
function mC takes nothing returns boolean
return(LC())
endfunction
function MC takes nothing returns boolean
return(udg_integers04[3]==udg_integers04[1])or(udg_integers04[3]==udg_integers04[2])or(udg_integers04[3]==udg_integers04[4])or(udg_integers04[3]==udg_integers04[5])or(udg_integers04[3]==udg_integers04[6])or(udg_integers04[3]==udg_integers04[7])or(udg_integers04[3]==udg_integers04[8])
endfunction
function pC takes nothing returns boolean
return(MC())
endfunction
function PC takes nothing returns boolean
return(udg_integers04[3]<udg_integers04[1])or(udg_integers04[3]<udg_integers04[2])or(udg_integers04[3]<udg_integers04[4])or(udg_integers04[3]<udg_integers04[5])or(udg_integers04[3]<udg_integers04[6])or(udg_integers04[3]<udg_integers04[7])or(udg_integers04[3]<udg_integers04[8])
endfunction
function qC takes nothing returns boolean
return(PC())
endfunction
function QC takes nothing returns boolean
return(udg_integers04[4]==udg_integers04[1])or(udg_integers04[4]==udg_integers04[2])or(udg_integers04[4]==udg_integers04[3])or(udg_integers04[4]==udg_integers04[5])or(udg_integers04[4]==udg_integers04[6])or(udg_integers04[4]==udg_integers04[7])or(udg_integers04[4]==udg_integers04[8])
endfunction
function sC takes nothing returns boolean
return(QC())
endfunction
function SC takes nothing returns boolean
return(udg_integers04[4]<udg_integers04[1])or(udg_integers04[4]<udg_integers04[2])or(udg_integers04[4]<udg_integers04[3])or(udg_integers04[4]<udg_integers04[5])or(udg_integers04[4]<udg_integers04[6])or(udg_integers04[4]<udg_integers04[7])or(udg_integers04[4]<udg_integers04[8])
endfunction
function tC takes nothing returns boolean
return(SC())
endfunction
function TC takes nothing returns boolean
return(udg_integers04[5]==udg_integers04[1])or(udg_integers04[5]==udg_integers04[2])or(udg_integers04[5]==udg_integers04[3])or(udg_integers04[5]==udg_integers04[4])or(udg_integers04[5]==udg_integers04[6])or(udg_integers04[5]==udg_integers04[7])or(udg_integers04[5]==udg_integers04[8])
endfunction
function uC takes nothing returns boolean
return(TC())
endfunction
function UC takes nothing returns boolean
return(udg_integers04[5]<udg_integers04[1])or(udg_integers04[5]<udg_integers04[2])or(udg_integers04[5]<udg_integers04[3])or(udg_integers04[5]<udg_integers04[4])or(udg_integers04[5]<udg_integers04[6])or(udg_integers04[5]<udg_integers04[7])or(udg_integers04[5]<udg_integers04[8])
endfunction
function wC takes nothing returns boolean
return(UC())
endfunction
function WC takes nothing returns boolean
return(udg_integers04[6]==udg_integers04[1])or(udg_integers04[6]==udg_integers04[2])or(udg_integers04[6]==udg_integers04[3])or(udg_integers04[6]==udg_integers04[4])or(udg_integers04[6]==udg_integers04[5])or(udg_integers04[6]==udg_integers04[7])or(udg_integers04[6]==udg_integers04[8])
endfunction
function yC takes nothing returns boolean
return(WC())
endfunction
function YC takes nothing returns boolean
return(udg_integers04[6]<udg_integers04[1])or(udg_integers04[6]<udg_integers04[2])or(udg_integers04[6]<udg_integers04[3])or(udg_integers04[6]<udg_integers04[4])or(udg_integers04[6]<udg_integers04[5])or(udg_integers04[6]<udg_integers04[7])or(udg_integers04[6]<udg_integers04[8])
endfunction
function zC takes nothing returns boolean
return(YC())
endfunction
function ZC takes nothing returns boolean
return(udg_integers04[7]==udg_integers04[1])or(udg_integers04[7]==udg_integers04[2])or(udg_integers04[7]==udg_integers04[3])or(udg_integers04[7]==udg_integers04[4])or(udg_integers04[7]==udg_integers04[5])or(udg_integers04[7]==udg_integers04[6])or(udg_integers04[7]==udg_integers04[8])
endfunction
function vd takes nothing returns boolean
return(ZC())
endfunction
function ed takes nothing returns boolean
return(udg_integers04[7]<udg_integers04[1])or(udg_integers04[7]<udg_integers04[2])or(udg_integers04[7]<udg_integers04[3])or(udg_integers04[7]<udg_integers04[4])or(udg_integers04[7]<udg_integers04[5])or(udg_integers04[7]<udg_integers04[6])or(udg_integers04[7]<udg_integers04[8])
endfunction
function xd takes nothing returns boolean
return(ed())
endfunction
function od takes nothing returns boolean
return(udg_integers04[8]==udg_integers04[1])or(udg_integers04[8]==udg_integers04[2])or(udg_integers04[8]==udg_integers04[3])or(udg_integers04[8]==udg_integers04[4])or(udg_integers04[8]==udg_integers04[5])or(udg_integers04[8]==udg_integers04[6])or(udg_integers04[8]==udg_integers04[7])
endfunction
function rd takes nothing returns boolean
return(od())
endfunction
function id takes nothing returns boolean
return(udg_integers04[8]<udg_integers04[1])or(udg_integers04[8]<udg_integers04[2])or(udg_integers04[8]<udg_integers04[3])or(udg_integers04[8]<udg_integers04[4])or(udg_integers04[8]<udg_integers04[5])or(udg_integers04[8]<udg_integers04[6])or(udg_integers04[8]<udg_integers04[7])
endfunction
function ad takes nothing returns boolean
return(id())
endfunction
function nd takes nothing returns boolean
return(udg_integers04[8]>udg_integers04[1])and(udg_integers04[8]>udg_integers04[2])and(udg_integers04[8]>udg_integers04[3])and(udg_integers04[8]>udg_integers04[4])and(udg_integers04[8]>udg_integers04[5])and(udg_integers04[8]>udg_integers04[6])and(udg_integers04[8]>udg_integers04[7])
endfunction
function Vd takes nothing returns boolean
return(udg_integers04[7]>udg_integers04[1])and(udg_integers04[7]>udg_integers04[2])and(udg_integers04[7]>udg_integers04[3])and(udg_integers04[7]>udg_integers04[4])and(udg_integers04[7]>udg_integers04[5])and(udg_integers04[7]>udg_integers04[6])and(udg_integers04[7]>udg_integers04[8])
endfunction
function Ed takes nothing returns boolean
return(udg_integers04[6]>udg_integers04[1])and(udg_integers04[6]>udg_integers04[2])and(udg_integers04[6]>udg_integers04[3])and(udg_integers04[6]>udg_integers04[4])and(udg_integers04[6]>udg_integers04[5])and(udg_integers04[6]>udg_integers04[7])and(udg_integers04[6]>udg_integers04[8])
endfunction
function Xd takes nothing returns boolean
return(udg_integers04[5]>udg_integers04[1])and(udg_integers04[5]>udg_integers04[2])and(udg_integers04[5]>udg_integers04[3])and(udg_integers04[5]>udg_integers04[4])and(udg_integers04[5]>udg_integers04[6])and(udg_integers04[5]>udg_integers04[7])and(udg_integers04[5]>udg_integers04[8])
endfunction
function Od takes nothing returns boolean
return(udg_integers04[4]>udg_integers04[1])and(udg_integers04[4]>udg_integers04[2])and(udg_integers04[4]>udg_integers04[3])and(udg_integers04[4]>udg_integers04[5])and(udg_integers04[4]>udg_integers04[6])and(udg_integers04[4]>udg_integers04[7])and(udg_integers04[4]>udg_integers04[8])
endfunction
function Rd takes nothing returns boolean
return(udg_integers04[3]>udg_integers04[1])and(udg_integers04[3]>udg_integers04[2])and(udg_integers04[3]>udg_integers04[4])and(udg_integers04[3]>udg_integers04[5])and(udg_integers04[3]>udg_integers04[6])and(udg_integers04[3]>udg_integers04[7])and(udg_integers04[3]>udg_integers04[8])
endfunction
function Id takes nothing returns boolean
return(udg_integers04[2]>udg_integers04[1])and(udg_integers04[2]>udg_integers04[3])and(udg_integers04[2]>udg_integers04[4])and(udg_integers04[2]>udg_integers04[5])and(udg_integers04[2]>udg_integers04[6])and(udg_integers04[2]>udg_integers04[7])and(udg_integers04[2]>udg_integers04[8])
endfunction
function Ad takes nothing returns boolean
return(udg_integers04[1]>udg_integers04[2])and(udg_integers04[1]>udg_integers04[3])and(udg_integers04[1]>udg_integers04[4])and(udg_integers04[1]>udg_integers04[5])and(udg_integers04[1]>udg_integers04[6])and(udg_integers04[1]>udg_integers04[7])and(udg_integers04[1]>udg_integers04[8])
endfunction
function Nd takes nothing returns boolean
return(udg_boolean01)
endfunction
function bd takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog01,GetEnumPlayer())
endfunction
function Bd takes nothing returns boolean
return(udg_integer43==1)and(udg_boolean04==false)
endfunction
function cd takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog01,GetEnumPlayer())
endfunction
function Cd takes nothing returns boolean
return(udg_integer43==1)and(udg_boolean04)
endfunction
function dd takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog01,GetEnumPlayer())
endfunction
function Dd takes nothing returns boolean
return(udg_integers04[1]>=udg_integers04[2])
endfunction
function fd takes nothing returns nothing
call TriggerRegisterUnitInRangeSimple(udg_trigger421,800.,GetEnumUnit())
call TriggerRegisterUnitEvent(udg_trigger423,GetEnumUnit(),EVENT_UNIT_DAMAGED)
endfunction
function Fd takes nothing returns boolean
return(udg_integer43>1)
endfunction
function gd takes nothing returns nothing
call TriggerSleepAction(10.)
call DialogClear(udg_dialog01)
if(Mc())then
set udg_boolean01=true
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Battle Royale mode")
else
set udg_boolean01=false
if(mc())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Capture the Flag mode")
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Game mode will be: challenge mode")
set udg_boolean04=true
call DestroyTrigger(udg_trigger43)
call DestroyTrigger(udg_trigger44)
call DestroyTrigger(udg_trigger45)
call DestroyTrigger(udg_trigger46)
call DestroyTrigger(udg_trigger47)
call DestroyTrigger(udg_trigger48)
call DestroyTrigger(udg_trigger49)
call DestroyTrigger(udg_trigger50)
call DestroyTrigger(udg_trigger51)
call DestroyTrigger(udg_trigger52)
call DestroyTrigger(udg_trigger53)
call DestroyTrigger(udg_trigger54)
endif
endif
set udg_integers04[1]=0
set udg_integers04[2]=0
call DestroyTrigger(udg_trigger02)
call EnableTrigger(udg_trigger05)
if(Nd())then
call DialogSetMessage(udg_dialog01,"Please decide the number of kills")
call DialogAddButtonBJ(udg_dialog01,"Genin level (10 kills)")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Chunin level (20 kills)")
set udg_buttons01[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Jounin level (30 kills)")
set udg_buttons01[3]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Anbu level (40 kills)")
set udg_buttons01[4]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Special Jounin level (50 kills)")
set udg_buttons01[5]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Elite Jounin level (60 kills)")
set udg_buttons01[6]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Akatsuki level (70 kills)")
set udg_buttons01[7]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Kage level (80 kills)")
set udg_buttons01[8]=bj_lastCreatedButton
call ForForce(bj_FORCE_ALL_PLAYERS,function hC)
call TriggerSleepAction(10.)
if(kC())then
set udg_integers04[1]=0
else
if(jC())then
set udg_integers04[1]=(udg_integers04[1]+1)
endif
endif
if(mC())then
set udg_integers04[2]=0
else
if(lC())then
set udg_integers04[2]=(udg_integers04[2]+1)
endif
endif
if(qC())then
set udg_integers04[3]=0
else
if(pC())then
set udg_integers04[3]=(udg_integers04[3]+1)
endif
endif
if(tC())then
set udg_integers04[4]=0
else
if(sC())then
set udg_integers04[4]=(udg_integers04[4]+1)
endif
endif
if(wC())then
set udg_integers04[5]=0
else
if(uC())then
set udg_integers04[5]=(udg_integers04[5]+1)
endif
endif
if(zC())then
set udg_integers04[6]=0
else
if(yC())then
set udg_integers04[6]=(udg_integers04[6]+1)
endif
endif
if(xd())then
set udg_integers04[7]=0
else
if(vd())then
set udg_integers04[7]=(udg_integers04[7]+1)
endif
endif
if(ad())then
set udg_integers04[8]=0
else
if(rd())then
set udg_integers04[8]=(udg_integers04[8]+1)
endif
endif
if(Ad())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Genin level (10 kills)")
set udg_integer04=10
else
if(Id())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Chunin level (20 kills)")
set udg_integer04=20
else
if(Rd())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Jounin level (30 kills)")
set udg_integer04=30
else
if(Od())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Anbu level (40 kills)")
set udg_integer04=40
else
if(Xd())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Special Jounin level (50 kills)")
set udg_integer04=50
else
if(Ed())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Elite Jounin level (60 kills)")
set udg_integer04=60
else
if(Vd())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Akatuski level (70 kills)")
set udg_integer04=70
else
if(nd())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Kage level (80 kills)")
set udg_integer04=80
endif
endif
endif
endif
endif
endif
endif
endif
else
if(GC())then
call DialogSetMessage(udg_dialog01,"Please decide the number of flags")
call DialogAddButtonBJ(udg_dialog01,"Genin level (5 times)")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Chunin level (10 times)")
set udg_buttons01[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Jounin level (15 times)")
set udg_buttons01[3]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Anbu level (20 times)")
set udg_buttons01[4]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Special Jounin level (25 times)")
set udg_buttons01[5]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Elite Jounin level (30 times)")
set udg_buttons01[6]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Akatsuki level (35 times)")
set udg_buttons01[7]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Kage level (40 times)")
set udg_buttons01[8]=bj_lastCreatedButton
call ForForce(bj_FORCE_ALL_PLAYERS,function pc)
call TriggerSleepAction(10.)
if(sc())then
set udg_integers04[1]=0
else
if(qc())then
set udg_integers04[1]=(udg_integers04[1]+1)
endif
endif
if(uc())then
set udg_integers04[2]=0
else
if(tc())then
set udg_integers04[2]=(udg_integers04[2]+1)
endif
endif
if(yc())then
set udg_integers04[3]=0
else
if(wc())then
set udg_integers04[3]=(udg_integers04[3]+1)
endif
endif
if(vC())then
set udg_integers04[4]=0
else
if(zc())then
set udg_integers04[4]=(udg_integers04[4]+1)
endif
endif
if(rC())then
set udg_integers04[5]=0
else
if(xC())then
set udg_integers04[5]=(udg_integers04[5]+1)
endif
endif
if(VC())then
set udg_integers04[6]=0
else
if(aC())then
set udg_integers04[6]=(udg_integers04[6]+1)
endif
endif
if(RC())then
set udg_integers04[7]=0
else
if(XC())then
set udg_integers04[7]=(udg_integers04[7]+1)
endif
endif
if(bC())then
set udg_integers04[8]=0
else
if(AC())then
set udg_integers04[8]=(udg_integers04[8]+1)
endif
endif
if(gC())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Genin level (5 times)")
set udg_integer04=5
else
if(FC())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Chunin level (10 times)")
set udg_integer04=10
else
if(fC())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Jounin level (15 times)")
set udg_integer04=15
else
if(DC())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Anbu level (20 times)")
set udg_integer04=20
else
if(dC())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Special Jounin level (25 times)")
set udg_integer04=25
else
if(CC())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Elite Jounin level (30 times)")
set udg_integer04=30
else
if(cC())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Akatsuki level (35 times)")
set udg_integer04=35
else
if(BC())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Voting result: Kage level (40 times)")
set udg_integer04=40
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call DialogClear(udg_dialog01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers04[bj_forLoopAIndex]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Bd())then
call EnableTrigger(udg_trigger03)
call DialogSetMessage(udg_dialog01,"Computer Hero Chosen mode")
call DialogAddButtonBJ(udg_dialog01,"Random computer hero")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Manually choose computer hero")
set udg_buttons01[2]=bj_lastCreatedButton
call ForForce(bj_FORCE_ALL_PLAYERS,function bd)
else
call DestroyTrigger(udg_trigger03)
call DestroyTrigger(udg_trigger419)
endif
if(Cd())then
call EnableTrigger(udg_trigger04)
call DialogSetMessage(udg_dialog01,"Use stronger AI?")
call DialogAddButtonBJ(udg_dialog01,"Yes")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"No")
set udg_buttons01[2]=bj_lastCreatedButton
call ForForce(bj_FORCE_ALL_PLAYERS,function cd)
endif
if(Fd())then
call DialogSetMessage(udg_dialog01,"Voting for hero chosen mode")
call DialogAddButtonBJ(udg_dialog01,"All pick")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"All Random")
set udg_buttons01[2]=bj_lastCreatedButton
call ForForce(bj_FORCE_ALL_PLAYERS,function dd)
call EnableTrigger(udg_trigger02)
call TriggerSleepAction(10.)
call DisableTrigger(udg_trigger02)
call DialogClear(udg_dialog01)
if(Dd())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," chosen hero mode is |cffffcc00All Pick|r")
else
set udg_boolean05=true
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS," chosen hero mode is |cffffcc00All Random|r")
endif
call ForGroupBJ(EB(udg_rect03),function fd)
call DestroyGroup(GetLastCreatedGroup())
call EnableTrigger(udg_trigger421)
call EnableTrigger(udg_trigger422)
call EnableTrigger(udg_trigger423)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Stronger AI activated.")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Mission activated")
call SetUnitInvulnerable(udg_unit292,true)
call EnableTrigger(udg_trigger37)
call EnableTrigger(udg_trigger21)
call EnableTrigger(udg_trigger26)
call EnableTrigger(udg_trigger27)
call EnableTrigger(udg_trigger24)
call EnableTrigger(udg_trigger25)
call EnableTrigger(udg_trigger19)
call EnableTrigger(udg_trigger18)
call EnableTrigger(udg_trigger09)
call TriggerExecute(udg_trigger09)
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,12,"|cFFFF0000Note: If you already have a mission taken, please do not repick into another character.|r")
call EnableUserControl(true)
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Mission closed")
endif
call DestroyTrigger(udg_trigger01)
call DestroyTrigger(udg_trigger05)
call EnableTrigger(udg_trigger60)
call EnableTrigger(udg_trigger61)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Gd takes nothing returns boolean
return(GetUnitUserData(GetTriggerUnit())!=10)
endfunction
function hd takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!='u00B')or(GetUnitTypeId(GetTriggerUnit())!='u007')or(GetUnitTypeId(GetTriggerUnit())!='u00A')or(GetUnitTypeId(GetTriggerUnit())!='u009')
endfunction
function Hd takes nothing returns boolean
return(hd())
endfunction
function jd takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_SUMMONED))or(IsUnitType(GetTriggerUnit(),UNIT_TYPE_MECHANICAL))or(IsUnitType(GetTriggerUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Jd takes nothing returns boolean
return(jd())
endfunction
function kd takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Kd takes nothing returns nothing
if(kd())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetHeroProperName(GetTriggerUnit())+(" went outside the arena, |cFFFF0000jiwalv|r brought "+(GetHeroProperName(GetTriggerUnit())+" back."))))
call SetUnitPositionLoc(GetTriggerUnit(),GetRandomLocInRect(udg_rect04))
else
if(Jd())then
call SetUnitPositionLoc(GetTriggerUnit(),GetRandomLocInRect(udg_rect04))
else
if(Hd())then
call KillUnit(GetTriggerUnit())
call RemoveUnit(GetTriggerUnit())
endif
endif
endif
endfunction
function ld takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Ld takes nothing returns boolean
return(GetSpellAbilityId()!='A0BX')and(GetSpellAbilityId()!='A0AF')and(GetSpellAbilityId()!='A061')and(GetSpellAbilityId()!='A0BY')and(GetSpellAbilityId()!='A01C')and(GetSpellAbilityId()!='A0BZ')and(GetSpellAbilityId()!='A02Q')
endfunction
function md takes nothing returns nothing
set udg_integer02=GetSpellAbilityId()
set udg_unit36=GetTriggerUnit()
if(Ld())then
set udg_locations02[75]=GetUnitLoc(udg_unit36)
call CreateTextTagLocBJ(GetObjectName(GetSpellAbilityId()),udg_locations02[75],0,15.,100.,100.,100.,.0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call RemoveLocation(udg_locations02[75])
endif
set udg_integers03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
endfunction
function Md takes nothing returns boolean
return(udg_boolean05==false)
endfunction
function pd takes nothing returns boolean
return(udg_boolean01==false)and(udg_integer43>1)
endfunction
function Pd takes nothing returns boolean
return(udg_integers04[1]!=0)
endfunction
function qd takes nothing returns boolean
return(udg_integers04[2]!=0)
endfunction
function Qd takes nothing returns boolean
return(udg_boolean04==false)and(udg_boolean02==false)and(GetBooleanOr(Pd(),qd()))
endfunction
function sd takes nothing returns boolean
return(udg_boolean04)
endfunction
function Sd takes nothing returns boolean
return(bj_forLoopAIndex<=6)
endfunction
function td takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
call SetUnitOwner(GetEnumUnit(),Player(-1+(bj_forLoopAIndex)),true)
if(Sd())then
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[21])
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),udg_locations02[21],1.)
else
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[22])
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),udg_locations02[22],1.)
endif
call UnitAddItemByIdSwapped('I00D',GetEnumUnit())
call UnitAddItemByIdSwapped('I006',GetEnumUnit())
call UnitAddItemByIdSwapped('I009',GetEnumUnit())
call SetPlayerStateBJ(Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call SetUnitUserData(GetEnumUnit(),0)
call GroupRemoveUnit(udg_group01,GetEnumUnit())
set udg_units13[bj_forLoopAIndex]=GetEnumUnit()
call SetPlayerName(Player(-1+(bj_forLoopAIndex)),(udg_strings03[bj_forLoopAIndex]+("("+(udg_strings02[0]+")"))))
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|cFFFF0000 has chosen to be |r"+GetHeroProperName(GetEnumUnit()))))
endfunction
function Td takes nothing returns boolean
return(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerController(Player(-1+(bj_forLoopAIndex)))==MAP_CONTROL_USER)
endfunction
function ud takes nothing returns boolean
return(udg_boolean05==false)
endfunction
function Ud takes nothing returns boolean
return(udg_boolean01==false)and(udg_boolean04==false)
endfunction
function wd takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(udg_units02[0]),udg_force01))
endfunction
function Wd takes nothing returns boolean
return(GetPlayerController(Player(5))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function yd takes nothing returns boolean
return(GetPlayerController(Player(4))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Yd takes nothing returns boolean
return(GetPlayerController(Player(3))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function zd takes nothing returns boolean
return(GetPlayerController(Player(2))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Zd takes nothing returns boolean
return(GetPlayerController(Player(1))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function vD takes nothing returns boolean
return(GetPlayerController(Player(0))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function eD takes nothing returns boolean
return(GetPlayerController(Player(11))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(11))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function xD takes nothing returns boolean
return(GetPlayerController(Player(10))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(10))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function oD takes nothing returns boolean
return(GetPlayerController(Player(9))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(9))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function rD takes nothing returns boolean
return(GetPlayerController(Player(8))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(8))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function iD takes nothing returns boolean
return(GetPlayerController(Player(7))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(7))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function aD takes nothing returns boolean
return(GetPlayerController(Player(6))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(6))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function nD takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(udg_units02[0]),udg_force01))
endfunction
function VD takes nothing returns boolean
return(udg_boolean04==false)
endfunction
function ED takes nothing returns nothing
call DialogClear(udg_dialog01)
call SetUserControlForceOn(bj_FORCE_ALL_PLAYERS)
call SetTimeOfDay(12.)
call PanCameraToTimed(50.,4200.,0)
call TriggerSleepAction(.5)
if(Md())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFFFF00Battle Begins! Players choose your shinobi.|r")
call TriggerSleepAction(.5)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFFFF00Single click to see the shinobi, double click to choose the shinobi.|r")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000Note: You cannot choose a shinobi after 60 seconds.|r")
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFFFF00Battle Begins! Players will random a shinobi.|r")
endif
if(pd())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,0,"|cFFFF000060 seconds until flags are deployed.|r")
endif
if(Qd())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000Player has not chosen computer's shinobi, computer will random its shinobi.|r")
endif
if(sd())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,"|cFF00FF00Please choose your shinobi carefully, under challenge mode your shinobi cannot be switched or revived.|r")
endif
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,"|cFF00FF00Click F9 to see informations about the the game.|r")
call FlashQuestDialogButton()
if(ud())then
call EnableTrigger(udg_trigger62)
call EnableTrigger(udg_trigger63)
call EnableTrigger(udg_trigger55)
call TriggerExecute(udg_trigger55)
call TriggerSleepAction(50.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF000010|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF00009|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF00008|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF00007|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF00006|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF00005|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF00004|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF00003|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF00002|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF00001|r")
call TriggerSleepAction(1.)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000You can no longer choose a shinobi.|r")
else
call DestroyTrigger(udg_trigger62)
call DestroyTrigger(udg_trigger63)
call GroupRemoveUnit(udg_group01,udg_unit255)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Td())then
call ForGroupBJ(GB(1,udg_group01),function td)
call DestroyGroup(GetLastCreatedGroup())
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
if(Ud())then
call EnableTrigger(udg_trigger415)
call EnableTrigger(udg_trigger417)
call EnableTrigger(udg_trigger418)
call EnableTrigger(udg_trigger416)
call TriggerSleepAction(2)
call CreateItemLoc('I00Y',udg_locations02[21])
set udg_item01=bj_lastCreatedItem
call SetItemInvulnerable(bj_lastCreatedItem,true)
call CreateItemLoc('I00H',udg_locations02[22])
set udg_item02=bj_lastCreatedItem
call SetItemInvulnerable(bj_lastCreatedItem,true)
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,0,"|cFFFF0000Flags are deployed!|r")
else
call DestroyTrigger(udg_trigger415)
call DestroyTrigger(udg_trigger417)
call DestroyTrigger(udg_trigger418)
call DestroyTrigger(udg_trigger416)
endif
call DestroyTrigger(udg_trigger419)
call DestroyTrigger(udg_trigger62)
call DestroyTrigger(udg_trigger63)
if(VD())then
call EnableTrigger(udg_trigger420)
call TriggerExecute(udg_trigger420)
call EnableTrigger(udg_trigger40)
call EnableTrigger(udg_trigger41)
else
set udg_integer43=0
call DestroyTrigger(udg_trigger420)
if(wd())then
set udg_locations02[482]=udg_locations02[22]
else
set udg_locations02[482]=udg_locations02[21]
endif
if(nD())then
if(aD())then
set udg_player03=Player(6)
else
if(iD())then
set udg_player03=Player(7)
else
if(rD())then
set udg_player03=Player(8)
else
if(oD())then
set udg_player03=Player(9)
else
if(xD())then
set udg_player03=Player(10)
else
if(eD())then
set udg_player03=Player(11)
endif
endif
endif
endif
endif
endif
else
if(vD())then
set udg_player03=Player(0)
else
if(Zd())then
set udg_player03=Player(1)
else
if(zd())then
set udg_player03=Player(2)
else
if(Yd())then
set udg_player03=Player(3)
else
if(yd())then
set udg_player03=Player(4)
else
if(Wd())then
set udg_player03=Player(5)
endif
endif
endif
endif
endif
endif
endif
call EnableTrigger(udg_trigger13)
call EnableTrigger(udg_trigger15)
call EnableTrigger(udg_trigger16)
call EnableTrigger(udg_trigger14)
call TriggerExecute(udg_trigger14)
call DestroyTrigger(udg_trigger59)
call DestroyTrigger(udg_trigger60)
call DestroyTrigger(udg_trigger61)
call DestroyTrigger(udg_trigger10)
call DestroyTrigger(udg_trigger39)
call DestroyTrigger(udg_trigger38)
endif
call DestroyTrigger(udg_trigger03)
call DestroyTrigger(udg_trigger09)
endfunction
function XD takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
call KillUnit(GetEnumUnit())
endfunction
function OD takes nothing returns boolean
return(udg_integers05[1]==udg_integer04)
endfunction
function RD takes nothing returns boolean
return(udg_integers05[2]==udg_integer04)
endfunction
function ID takes nothing returns boolean
return(IsPlayerInForce(GetTriggerPlayer(),udg_force01))
endfunction
function AD takes nothing returns nothing
call ForGroupBJ(bB(GetTriggerPlayer()),function XD)
call DestroyGroup(GetLastCreatedGroup())
if(ID())then
set udg_integers05[2]=(udg_integers05[2]+1)
call MultiboardSetItemValueBJ(udg_multiboard02,3,3,I2S(udg_integers05[2]))
if(RD())then
call TriggerExecute(udg_trigger61)
endif
else
set udg_integers05[1]=(udg_integers05[1]+1)
call MultiboardSetItemValueBJ(udg_multiboard02,3,2,I2S(udg_integers05[1]))
if(OD())then
call TriggerExecute(udg_trigger60)
endif
endif
endfunction
function ND takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="-showdamoff")
endfunction
function bD takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="-showdamon")
endfunction
function BD takes nothing returns nothing
if(bD())then
set udg_booleans01[((1+GetPlayerId(GetTriggerPlayer()))-1)]=true
else
if(ND())then
set udg_booleans01[((1+GetPlayerId(GetTriggerPlayer()))-1)]=false
endif
endif
endfunction
function cD takes nothing returns nothing
set udg_boolean03=true
set udg_unit233=GetTriggerUnit()
call ic(udg_unit233,true)
endfunction
function CD takes nothing returns nothing
set udg_integer46=(udg_integer46+1)
endfunction
function dD takes nothing returns nothing
set udg_units02[1]=GetEnumUnit()
call GroupRemoveUnit(udg_group01,udg_units02[1])
endfunction
function DD takes nothing returns nothing
call ForGroupBJ(GB(1,udg_group01),function dD)
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,0,("In |cFFFF000025|r seconds, your ally <<"+(GetHeroProperName(udg_units02[1])+">> will step into the arena!")))
call TriggerSleepAction(25.)
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,0,("Your ally <<"+(GetHeroProperName(udg_units02[1])+">> is inside the arena!")))
call SetUnitOwner(udg_units02[1],udg_player03,true)
call SetUnitPositionLoc(udg_units02[1],udg_locations02[482])
call SetUnitAcquireRange(udg_units02[1],8000.)
call IssueTargetOrderById(udg_units02[1],851971,udg_units02[0])
call UnitAddItemByIdSwapped('I00D',udg_units02[1])
call UnitAddItemByIdSwapped('I006',udg_units02[1])
call UnitAddItemByIdSwapped('I009',udg_units02[1])
call SetUnitUserData(udg_units02[1],0)
call SetUnitInvulnerable(udg_units02[1],false)
endfunction
function fD takes nothing returns boolean
return(GetTriggerUnit()==udg_units02[1])
endfunction
function FD takes nothing returns boolean
return(udg_integer43==42)
endfunction
function gD takes nothing returns nothing
call SetUnitLifePercentBJ(udg_units02[0],(GetUnitLifePercent(udg_units02[0])+33.))
call SetUnitManaPercentBJ(udg_units02[0],(GetUnitManaPercent(udg_units02[0])+33.))
set udg_integer43=(udg_integer43+1)
if(FD())then
call EnableTrigger(udg_trigger17)
call TriggerExecute(udg_trigger17)
return
endif
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(("Your enemy "+GetHeroProperName(udg_units02[1]))+(" has been killed by "+(GetPlayerName(GetOwningPlayer(udg_units02[0]))+". This player will heal 33% of his hp and chakra, and receive a reward of 500 gold."))))
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,"To evade bugs or uncalled reasons, we suggest the player press F6 and save.")
call TriggerSleepAction(2.5)
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,7,(((" has killed <<|cFFFF0000"+(I2S(udg_integer43)+"|r>> enemies, "))+"there are <<|cFFFF0000")+(I2S((43-udg_integer43))+"|r>> enemies left.")))
call AdjustPlayerStateBJ(500,GetOwningPlayer(udg_units02[0]),PLAYER_STATE_RESOURCE_GOLD)
set udg_units02[1]=null
call TriggerSleepAction(2.5)
call TriggerExecute(udg_trigger14)
endfunction
function GD takes nothing returns boolean
return(GetTriggerUnit()==udg_units02[0])
endfunction
function hD takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger421))
endfunction
function HD takes nothing returns boolean
return(udg_real01>87.5)
endfunction
function jD takes nothing returns boolean
return(udg_real01>75.)
endfunction
function JD takes nothing returns boolean
return(udg_real01<=87.5)
endfunction
function kD takes nothing returns boolean
return(GetBooleanAnd(jD(),JD()))
endfunction
function KD takes nothing returns boolean
return(udg_real01>62.5)
endfunction
function lD takes nothing returns boolean
return(udg_real01<=75.)
endfunction
function LD takes nothing returns boolean
return(GetBooleanAnd(KD(),lD()))
endfunction
function mD takes nothing returns boolean
return(udg_real01>50.)
endfunction
function MD takes nothing returns boolean
return(udg_real01<=62.5)
endfunction
function pD takes nothing returns boolean
return(GetBooleanAnd(mD(),MD()))
endfunction
function PD takes nothing returns boolean
return(udg_real01>37.5)
endfunction
function qD takes nothing returns boolean
return(udg_real01<=50.)
endfunction
function QD takes nothing returns boolean
return(GetBooleanAnd(PD(),qD()))
endfunction
function sD takes nothing returns boolean
return(udg_real01>25.)
endfunction
function SD takes nothing returns boolean
return(udg_real01<=37.5)
endfunction
function tD takes nothing returns boolean
return(GetBooleanAnd(sD(),SD()))
endfunction
function TD takes nothing returns boolean
return(udg_real01>12.5)
endfunction
function uD takes nothing returns boolean
return(udg_real01<=25.)
endfunction
function UD takes nothing returns boolean
return(GetBooleanAnd(TD(),uD()))
endfunction
function wD takes nothing returns boolean
return(udg_real01<=12.5)
endfunction
function WD takes nothing returns nothing
call PauseAllUnitsBJ(true)
call CinematicModeBJ(true,bj_FORCE_ALL_PLAYERS)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,"Challenge Failed!",0,3.,true)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Enemies killed: |cFFFF0000"+(I2S(udg_integer43)+"|r")),0,1.,true)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Numbers of ninjutsu/genjutsu/taijutsu used: |cFFFF0000"+(I2S(udg_integers03[(1+GetPlayerId(GetOwningPlayer(udg_units02[0])))])+"|r")),0,1.,true)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Numbers of items used: |cFFFF0000"+(I2S(udg_integers02[(1+GetPlayerId(GetOwningPlayer(udg_units02[0])))])+"|r")),0,1.,true)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Game time (min): |cFFFF0000"+(I2S(udg_integer46)+"|r")),0,1.,true)
set udg_real01=((I2R(udg_integer43)*2.)*((I2R(udg_integer43)/I2R(udg_integer46))+.2))
if(hD())then
set udg_real01=(udg_real01+10.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,"You activated stronger AI, therefore your rank will be 10% higher.",0,1.,true)
endif
if(wD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[0]),0,3.,true)
else
if(UD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[1]),0,3.,true)
else
if(tD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[2]),0,3.,true)
else
if(QD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[3]),0,3.,true)
else
if(pD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[4]),0,3.,true)
else
if(LD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[5]),0,3.,true)
else
if(kD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[6]),0,3.,true)
else
if(HD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[7]),0,3.,true)
endif
endif
endif
endif
endif
endif
endif
endif
call CustomDefeatBJ(GetOwningPlayer(udg_units02[0]),"Fail!")
endfunction
function yD takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger421))
endfunction
function YD takes nothing returns boolean
return(udg_real01>87.5)
endfunction
function zD takes nothing returns boolean
return(udg_real01>75.)
endfunction
function ZD takes nothing returns boolean
return(udg_real01<=87.5)
endfunction
function vf takes nothing returns boolean
return(GetBooleanAnd(zD(),ZD()))
endfunction
function ef takes nothing returns boolean
return(udg_real01>62.5)
endfunction
function xf takes nothing returns boolean
return(udg_real01<=75.)
endfunction
function of takes nothing returns boolean
return(GetBooleanAnd(ef(),xf()))
endfunction
function rf takes nothing returns boolean
return(udg_real01>50.)
endfunction
function af takes nothing returns boolean
return(udg_real01<=62.5)
endfunction
function nf takes nothing returns boolean
return(GetBooleanAnd(rf(),af()))
endfunction
function Vf takes nothing returns boolean
return(udg_real01>37.5)
endfunction
function Ef takes nothing returns boolean
return(udg_real01<=50.)
endfunction
function Xf takes nothing returns boolean
return(GetBooleanAnd(Vf(),Ef()))
endfunction
function Of takes nothing returns boolean
return(udg_real01>25.)
endfunction
function Rf takes nothing returns boolean
return(udg_real01<=37.5)
endfunction
function If takes nothing returns boolean
return(GetBooleanAnd(Of(),Rf()))
endfunction
function Af takes nothing returns boolean
return(udg_real01>12.5)
endfunction
function Nf takes nothing returns boolean
return(udg_real01<=25.)
endfunction
function bf takes nothing returns boolean
return(GetBooleanAnd(Af(),Nf()))
endfunction
function Bf takes nothing returns boolean
return(udg_real01<=12.5)
endfunction
function cf takes nothing returns nothing
call PauseAllUnitsBJ(true)
call CinematicModeBJ(true,bj_FORCE_ALL_PLAYERS)
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_units02[0]),udg_units02[0],0,0,false)
call RotateCameraAroundLocBJ(720.,GetUnitLoc(udg_units02[0]),GetOwningPlayer(udg_units02[0]),15.)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_units02[0]),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-1000.),15.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,"All enemies have been killed!",0,3.,true)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Enemies killed: |cFFFF0000"+(I2S(udg_integer43)+"|r")),0,1.,true)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Number of ninjutsu/genjutsu/taijutsu used: |cFFFF0000"+(I2S(udg_integers03[(1+GetPlayerId(GetOwningPlayer(udg_units02[0])))])+"|r")),0,1.,true)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Number of items used: |cFFFF0000"+(I2S(udg_integers02[(1+GetPlayerId(GetOwningPlayer(udg_units02[0])))])+"|r")),0,1.,true)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Game time (min): |cFFFF0000"+(I2S(udg_integer46)+"|r")),0,1.,true)
set udg_real01=((I2R(udg_integer43)*2.)*((I2R(udg_integer43)/I2R(udg_integer46))+.2))
if(yD())then
set udg_real01=(udg_real01+10.)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,"You activated stronger AI, therefore your rank will be 10% higher.",0,1.,true)
endif
if(Bf())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[0]),0,3.,true)
else
if(bf())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[1]),0,3.,true)
else
if(If())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[2]),0,3.,true)
else
if(Xf())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[3]),0,3.,true)
else
if(nf())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[4]),0,3.,true)
else
if(of())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[5]),0,3.,true)
else
if(vf())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[6]),0,3.,true)
else
if(YD())then
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,udg_units02[0],GetPlayerName(GetOwningPlayer(udg_units02[0])),null,("Final Rank"+udg_strings02[7]),0,3.,true)
endif
endif
endif
endif
endif
endif
endif
endif
call CustomVictoryBJ(GetOwningPlayer(udg_units02[0]),true,true)
endfunction
function Cf takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function df takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01V'))=='I01V')and(udg_booleans07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Df takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01S'))=='I01S')and(udg_booleans06[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function ff takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01R'))=='I01R')and(udg_booleans05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Ff takes nothing returns boolean
return(udg_integer49==2)
endfunction
function gf takes nothing returns boolean
return(GetUnitUserData(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])==7)
endfunction
function Gf takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01P'))=='I01P')and(udg_booleans03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function hf takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)>=1)and(udg_booleans04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function Hf takes nothing returns boolean
return(IsUnitDeadBJ(udg_units15[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))and(udg_units15[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]!=null)
endfunction
function jf takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00B'))=='I00B')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Z'))=='I00Z')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00C'))=='I00C')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00V'))=='I00V')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))=='I01C')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00T'))=='I00T')
endfunction
function Jf takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))=='I01G')
endfunction
function kf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=56)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]-1)<56)
endfunction
function Kf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=48)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]-1)<48)
endfunction
function lf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=40)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]-1)<40)
endfunction
function Lf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=32)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]-1)<32)
endfunction
function mf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=24)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]-1)<24)
endfunction
function Mf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=16)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]-1)<16)
endfunction
function pf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=8)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]-1)<8)
endfunction
function Pf takes nothing returns nothing
if(Jf())then
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"<D mission: find a missing pet> has been completed, reward is 10 strength.")
call ModifyHeroStat(0,GetTriggerUnit(),0,10)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
if(jf())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00V'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Z'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00C'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00T'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00B'))
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"<D mission: find items> has been completed, reward is an ore and 500 gold.")
call UnitAddItemByIdSwapped('I01B',GetTriggerUnit())
call AdjustPlayerStateBJ(500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
if(Hf())then
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"<C mission: Destroy Bandit lord> has been completed! Good job you have finished off the bandits, reward is 500 gold and 5 Strength agility and intelligence.")
call ModifyHeroStat(0,GetTriggerUnit(),0,5)
call ModifyHeroStat(1,GetTriggerUnit(),0,5)
call ModifyHeroStat(2,GetTriggerUnit(),0,5)
call AdjustPlayerStateBJ(500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
set udg_units15[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
if(hf())then
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"<C Mission: Find wood> completed. Thank you, award is 500 gold and 15 Strength.")
call ModifyHeroStat(0,GetTriggerUnit(),0,15)
call AdjustPlayerStateBJ(500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(-1,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_booleans04[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
if(Gf())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01P'))
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"<B mission: Kill B level Missing-Nin> Completed! You are brave, award 2000 gold, a Jounin Uniform, and All three stats plus 15.")
call AdjustPlayerStateBJ(2000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call ModifyHeroStat(0,GetTriggerUnit(),0,15)
call ModifyHeroStat(1,GetTriggerUnit(),0,15)
call ModifyHeroStat(2,GetTriggerUnit(),0,15)
call UnitAddItemByIdSwapped('I01J',GetTriggerUnit())
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_booleans03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
if(gf())then
if(Ff())then
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"<A mission: Assassination> Completed! You can really take the job, award 3000 gold, and all stats add 20.")
call AdjustPlayerStateBJ(3000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call ModifyHeroStat(0,GetTriggerUnit(),0,20)
call ModifyHeroStat(1,GetTriggerUnit(),0,20)
call ModifyHeroStat(2,GetTriggerUnit(),0,20)
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integer49=0
call SetUnitUserData(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],0)
call DisableTrigger(udg_trigger30)
call DisableTrigger(udg_trigger29)
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),3,"<A mission: Assassination> failed! time's up, lose 3000 gold.")
call AdjustPlayerStateBJ(-3000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call SetUnitUserData(udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],0)
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integer49=0
call DisableTrigger(udg_trigger30)
call DisableTrigger(udg_trigger29)
endif
else
if(ff())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01R'))
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"<A mission: Kill A Rank Missing-Nin> Completed, you are brave, award is 3000 gold, and an armor, and add 20 to all stats.")
call AdjustPlayerStateBJ(3000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call ModifyHeroStat(0,GetTriggerUnit(),0,20)
call ModifyHeroStat(1,GetTriggerUnit(),0,20)
call ModifyHeroStat(2,GetTriggerUnit(),0,20)
call UnitAddItemByIdSwapped('I01K',GetTriggerUnit())
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_booleans05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
if(Df())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01S'))
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"<S mission: Kill S Rank Missing-Nin> You are brave, award is 5000 gold, an armor, and add 30 to all stats.")
call AdjustPlayerStateBJ(5000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call ModifyHeroStat(0,GetTriggerUnit(),0,30)
call ModifyHeroStat(1,GetTriggerUnit(),0,30)
call ModifyHeroStat(2,GetTriggerUnit(),0,30)
call UnitAddItemByIdSwapped('I01L',GetTriggerUnit())
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_booleans06[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
if(df())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01V'))
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"<S mission: Kill S Rank Missing-Nin> Completed! You are brave, award is 10000 gold, an armor, and add 50 to all stats.")
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call ModifyHeroStat(0,GetTriggerUnit(),0,50)
call ModifyHeroStat(1,GetTriggerUnit(),0,50)
call ModifyHeroStat(2,GetTriggerUnit(),0,50)
call UnitAddItemByIdSwapped('I01M',GetTriggerUnit())
set udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_booleans07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=false
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Did you finish your mission?")
endif
endif
endif
endif
endif
endif
endif
endif
endif
if(pf())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+" has been promoted to |cFF00FF00Chunin|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("("+(udg_strings02[1]+")"))))
else
if(Mf())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+" has been promoted to |cFF0000FFJounin|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("("+(udg_strings02[2]+")"))))
else
if(mf())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+" has been promoted to |cFF9000FFAnbu|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("("+(udg_strings02[3]+")"))))
else
if(Lf())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+" has been promoted to |cFF0088FFSpecial Jounin|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("("+(udg_strings02[4]+")"))))
else
if(lf())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+" has been promoted to |cFFFF00FFElite Jounin|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("("+(udg_strings02[5]+")"))))
else
if(Kf())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+" has been promoted to |cFFFF8000Akatsuki|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("("+(udg_strings02[6]+")"))))
else
if(kf())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+" has been promoted to |cFFFF0000Kage|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("("+(udg_strings02[7]+")"))))
endif
endif
endif
endif
endif
endif
endif
endfunction
function qf takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_booleans02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)
endfunction
function Qf takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit292))
endfunction
function sf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=36)
endfunction
function Sf takes nothing returns boolean
return(udg_integer50==0)
endfunction
function tf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=30)and(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<36)
endfunction
function Tf takes nothing returns boolean
return(udg_integer49==0)
endfunction
function uf takes nothing returns boolean
return(udg_integer50==0)
endfunction
function Uf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=24)and(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<30)
endfunction
function wf takes nothing returns boolean
return(udg_integer49==0)
endfunction
function Wf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=18)and(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<24)
endfunction
function yf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=12)and(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<18)
endfunction
function Yf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=6)and(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<12)
endfunction
function zf takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]<6)
endfunction
function Zf takes nothing returns nothing
if(zf())then
call DisableTrigger(udg_trigger19)
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"D mission")
call DialogAddButtonBJ(udg_dialog01,"Find missing pet")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Find items")
set udg_buttons01[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"cancel")
set udg_buttons01[3]=bj_lastCreatedButton
call EnableTrigger(udg_trigger20)
call DialogDisplayBJ(true,udg_dialog01,GetOwningPlayer(GetTriggerUnit()))
else
if(Yf())then
call DisableTrigger(udg_trigger19)
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"C mission")
call DialogAddButtonBJ(udg_dialog01,"Kill Bandit Lord")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Find wood")
set udg_buttons01[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Cancel")
set udg_buttons01[3]=bj_lastCreatedButton
call EnableTrigger(udg_trigger22)
call DialogDisplayBJ(true,udg_dialog01,GetOwningPlayer(GetTriggerUnit()))
else
if(yf())then
call DisableTrigger(udg_trigger19)
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"B/C Mission")
call DialogAddButtonBJ(udg_dialog01,"Kill Bandit Lord")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Find wood")
set udg_buttons01[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Kill B Rank Missing-Nin")
set udg_buttons01[3]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Cancel")
set udg_buttons01[4]=bj_lastCreatedButton
call EnableTrigger(udg_trigger23)
call DialogDisplayBJ(true,udg_dialog01,GetOwningPlayer(GetTriggerUnit()))
else
if(Wf())then
call DisableTrigger(udg_trigger19)
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"A/B Mission")
call DialogAddButtonBJ(udg_dialog01,"Kill B Rank Missing-Nin")
set udg_buttons01[1]=bj_lastCreatedButton
if(wf())then
call DialogAddButtonBJ(udg_dialog01,"Assassination")
set udg_buttons01[2]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Cancel")
set udg_buttons01[3]=bj_lastCreatedButton
else
call DialogAddButtonBJ(udg_dialog01,"Cancel")
set udg_buttons01[3]=bj_lastCreatedButton
endif
call EnableTrigger(udg_trigger28)
call DialogDisplayBJ(true,udg_dialog01,GetOwningPlayer(GetTriggerUnit()))
else
if(Uf())then
call DisableTrigger(udg_trigger19)
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"A/B Misson")
call DialogAddButtonBJ(udg_dialog01,"Kill Rank A Missing-Nin")
set udg_buttons01[1]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog01,"Kill Rank B Missing-Nin")
set udg_buttons01[2]=bj_lastCreatedButton
if(Tf())then
call DialogAddButtonBJ(udg_dialog01,"Assassination")
set udg_buttons01[3]=bj_lastCreatedButton
endif
if(uf())then
call DialogAddButtonBJ(udg_dialog01,"Protection")
set udg_buttons01[4]=bj_lastCreatedButton
endif
call DialogAddButtonBJ(udg_dialog01,"Cancel")
call EnableTrigger(udg_trigger31)
call DialogDisplayBJ(true,udg_dialog01,GetOwningPlayer(GetTriggerUnit()))
else
if(tf())then
call DisableTrigger(udg_trigger19)
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"S/A Mission")
call DialogAddButtonBJ(udg_dialog01,"Kill S Rank Missing-Nin")
set udg_buttons01[1]=bj_lastCreatedButton
if(Sf())then
call DialogAddButtonBJ(udg_dialog01,"Protection")
set udg_buttons01[2]=bj_lastCreatedButton
endif
call EnableTrigger(udg_trigger35)
call DialogAddButtonBJ(udg_dialog01,"Cancel")
call DialogDisplayBJ(true,udg_dialog01,GetOwningPlayer(GetTriggerUnit()))
else
if(sf())then
call DisableTrigger(udg_trigger19)
call DialogClear(udg_dialog01)
call DialogSetMessage(udg_dialog01,"S Level Mission")
call DialogAddButtonBJ(udg_dialog01,"Kill Above S Missing-Nin")
set udg_buttons01[1]=bj_lastCreatedButton
if(Qf())then
call DialogAddButtonBJ(udg_dialog01,"Challenge The Sage of Six Path")
set udg_buttons01[2]=bj_lastCreatedButton
endif
call DialogAddButtonBJ(udg_dialog01,"Cancel")
call EnableTrigger(udg_trigger36)
call DialogDisplayBJ(true,udg_dialog01,GetOwningPlayer(GetTriggerUnit()))
endif
endif
endif
endif
endif
endif
endif
endfunction
function vF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function eF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function xF takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(eF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"Find a missing pet in the arena, after you find it, bring it back here.")
set udg_locations02[52]=GetRandomLocInRect(udg_rect04)
call CreateNUnitsAtLoc(1,'nrac',Player(15),udg_locations02[52],bj_UNIT_FACING)
set udg_units14[(1+GetPlayerId(GetTriggerPlayer()))]=bj_lastCreatedUnit
call TriggerRegisterUnitInRangeSimple(udg_trigger21,50.,bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[52])
call UnitAddItemByIdSwapped('I00X',udg_units13[(1+GetPlayerId(GetTriggerPlayer()))])
else
if(vF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"Find some items for me: exploding note, Kunai, moon rock, wand of neutralization, wand of negation, and lighting orb. Bring them back to me for reward.")
call AdjustPlayerStateBJ(2200,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endif
endif
call EnableTrigger(udg_trigger19)
endfunction
function oF takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00X'))=='I00X')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER)
endfunction
function rF takes nothing returns nothing
call RemoveUnit(udg_units14[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00X'))
call UnitAddItemByIdSwapped('I01G',GetTriggerUnit())
set udg_units14[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=null
call QuestMessageBJ(CB(GetOwningPlayer(GetTriggerUnit())),2,"TRIGSTR_8028")
endfunction
function iF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function aF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function nF takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(aF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"There's a small group of bandits in the arena, kill their boss, then come back here.")
set udg_locations02[52]=GetRandomLocInRect(udg_rect04)
call CreateNUnitsAtLoc(4,'nenf',Player(12),udg_locations02[52],bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nbld',Player(12),udg_locations02[52],bj_UNIT_FACING)
set udg_units15[(1+GetPlayerId(GetTriggerPlayer()))]=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[52])
else
if(iF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_booleans04[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"I need 1 wood, if you find it for me, i will give you something.")
endif
endif
call EnableTrigger(udg_trigger19)
endfunction
function VF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[3])
endfunction
function EF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function XF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function OF takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(XF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"____________,___________,____________")
set udg_locations02[52]=GetRandomLocInRect(udg_rect04)
call CreateNUnitsAtLoc(4,'nenf',Player(12),udg_locations02[52],bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'nbld',Player(12),udg_locations02[52],bj_UNIT_FACING)
set udg_units15[(1+GetPlayerId(GetTriggerPlayer()))]=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[52])
else
if(EF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_booleans04[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"I need 1 wood, if you find it for me, i will give you something.")
else
if(VF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_booleans03[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"When you are ready, stand in front of me and type 'go', and I will send you to some dangerous place to kill B Rank Missing-Nin. After you kill them, be sure to take their badge as proof, then come back to me with it for reward. (Note: Do Not take other rank badge, or you may not be able to take mission again.)")
endif
endif
endif
call EnableTrigger(udg_trigger19)
endfunction
function RF takes nothing returns boolean
return(udg_booleans05[(1+GetPlayerId(GetTriggerPlayer()))])or(udg_booleans03[(1+GetPlayerId(GetTriggerPlayer()))])or(udg_booleans06[(1+GetPlayerId(GetTriggerPlayer()))])or(udg_booleans07[(1+GetPlayerId(GetTriggerPlayer()))])
endfunction
function IF takes nothing returns boolean
return(RectContainsUnit(udg_rect06,udg_units13[(1+GetPlayerId(GetTriggerPlayer()))]))and(udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))])and(RF())
endfunction
function AF takes nothing returns nothing
call SetUnitUserData(udg_units13[(1+GetPlayerId(GetTriggerPlayer()))],10)
call SetUnitPositionLoc(udg_units13[(1+GetPlayerId(GetTriggerPlayer()))],udg_locations02[489])
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),udg_locations02[489],.5)
endfunction
function NF takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function bF takes nothing returns boolean
return(GetUnitUserData(GetTriggerUnit())==10)
endfunction
function BF takes nothing returns nothing
if(bF())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations02[489],1.)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations02[489])
else
if(NF())then
call SetUnitPositionLoc(GetTriggerUnit(),GetRandomLocInRect(udg_rect04))
else
call KillUnit(GetTriggerUnit())
endif
endif
endfunction
function cF takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='nsrw')and(GetRandomInt(1,10)<=8)
endfunction
function CF takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='nbal')and(GetRandomInt(1,10)<=6)
endfunction
function dF takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='nubw')and(GetRandomInt(1,10)<=4)
endfunction
function DF takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='nskf')and(GetRandomInt(1,10)<=2)
endfunction
function fF takes nothing returns nothing
if(DF())then
set udg_locations02[490]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc('I01P',udg_locations02[490])
call RemoveLocation(udg_locations02[490])
else
if(dF())then
set udg_locations02[490]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc('I01R',udg_locations02[490])
call RemoveLocation(udg_locations02[490])
else
if(CF())then
set udg_locations02[490]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc('I01S',udg_locations02[490])
call RemoveLocation(udg_locations02[490])
else
if(cF())then
set udg_locations02[490]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc('I01V',udg_locations02[490])
call RemoveLocation(udg_locations02[490])
endif
endif
endif
endif
endfunction
function FF takes nothing returns boolean
return(udg_booleans07[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])or(udg_booleans06[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])or(udg_booleans05[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])or(udg_booleans03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endfunction
function gF takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I01V')or(GetItemTypeId(GetManipulatedItem())=='I01S')or(GetItemTypeId(GetManipulatedItem())=='I01R')or(GetItemTypeId(GetManipulatedItem())=='I01P')
endfunction
function GF takes nothing returns boolean
return(GetUnitUserData(GetTriggerUnit())==10)and(FF())and(gF())
endfunction
function hF takes nothing returns nothing
call SetUnitUserData(GetTriggerUnit(),0)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations02[391])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations02[391],2.)
endfunction
function HF takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_force01))
endfunction
function jF takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function JF takes nothing returns boolean
return GetBooleanAnd(HF(),jF())
endfunction
function kF takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_force02))
endfunction
function KF takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function lF takes nothing returns boolean
return GetBooleanAnd(kF(),KF())
endfunction
function LF takes nothing returns boolean
return(IsPlayerInForce(GetTriggerPlayer(),udg_force01))
endfunction
function mF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function MF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function pF takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(MF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_booleans03[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"When you are ready, stand in front of me and type 'go', and I will send you to some dangerous place to kill B Rank Missing-Nin. After you kill them, be sure to take their badge as proof, then come back to me with it for reward. (Note: Do Not take other rank badge, or you may not be able to take mission again.)")
else
if(mF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
if(LF())then
set udg_player03=ForcePickRandomPlayer(gB(Condition(function lF)))
else
set udg_player03=ForcePickRandomPlayer(gB(Condition(function JF)))
endif
call QuestMessageBJ(CB(GetTriggerPlayer()),0,("This is a secret Assassination Mission, you must kill "+(GetPlayerName(udg_player03)+" within the next 120 seconds£¬report to me when you are done.")))
call StartTimerBJ(udg_timer01,false,120.)
set udg_integer49=1
call SetUnitUserData(udg_units13[(1+GetPlayerId(GetTriggerPlayer()))],7)
call EnableTrigger(udg_trigger29)
call EnableTrigger(udg_trigger30)
endif
endif
call EnableTrigger(udg_trigger19)
endfunction
function PF takes nothing returns nothing
set udg_integer49=1
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger30)
endfunction
function qF takes nothing returns boolean
return(GetTriggerUnit()==udg_units13[(1+GetPlayerId(udg_player03))])
endfunction
function QF takes nothing returns nothing
set udg_integer49=2
call PauseTimerBJ(true,udg_timer01)
call DisableTrigger(udg_trigger29)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function sF takes nothing returns boolean
return(IsPlayerInForce(GetTriggerPlayer(),udg_force01))
endfunction
function SF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[4])
endfunction
function tF takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_force01))
endfunction
function TF takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function uF takes nothing returns boolean
return GetBooleanAnd(tF(),TF())
endfunction
function UF takes nothing returns boolean
return(IsPlayerInForce(GetFilterPlayer(),udg_force02))
endfunction
function wF takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function WF takes nothing returns boolean
return GetBooleanAnd(UF(),wF())
endfunction
function yF takes nothing returns boolean
return(IsPlayerInForce(GetTriggerPlayer(),udg_force01))
endfunction
function YF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[3])
endfunction
function zF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function ZF takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function vg takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(ZF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_booleans05[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"When you are ready, stand in front of me and type 'go', and I will send you to some dangerous place to kill A Rank Missing-Nin. After you kill them, be sure to take their badge as proof, then come back to me with it for reward. (Note: Do Not take other rank badge, or you may not be able to take mission again.)")
else
if(zF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_booleans03[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"When you are ready, stand in front of me and type 'go', and I will send you to some dangerous place to kill B Rank Missing-Nin. After you kill them, be sure to take their badge as proof, then come back to me with it for reward. (Note: Do Not take other rank badge, or you may not be able to take mission again.)")
else
if(YF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
if(yF())then
set udg_player03=ForcePickRandomPlayer(gB(Condition(function WF)))
else
set udg_player03=ForcePickRandomPlayer(gB(Condition(function uF)))
endif
call QuestMessageBJ(CB(GetTriggerPlayer()),0,("This is a secret Assassination Mission, you must kill "+(GetPlayerName(udg_player03)+" within the next 120 seconds. Report to me when you are done.")))
call StartTimerBJ(udg_timer01,false,120.)
set udg_integer49=1
call SetUnitUserData(udg_units13[(1+GetPlayerId(GetTriggerPlayer()))],7)
call EnableTrigger(udg_trigger29)
call EnableTrigger(udg_trigger30)
else
if(SF())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"This mission requires you to protect a rich business man to the other side of arena. He has a lot of money with him and many ninja are trying to kill him. Your mission is to ensure his safety, and if he dies, you will lose money. If he lives, you will be come a very rich man as well.......He will start after one minute.")
if(sF())then
set udg_integer50=1
else
set udg_integer50=2
endif
set udg_player04=GetTriggerPlayer()
call EnableTrigger(udg_trigger32)
call TriggerExecute(udg_trigger32)
endif
endif
endif
endif
call EnableTrigger(udg_trigger19)
endfunction
function eg takes nothing returns boolean
return(udg_integer50==1)
endfunction
function xg takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(60.)
if(eg())then
call CreateNUnitsAtLoc(1,'nvil',Player(15),udg_locations02[21],.0)
set udg_unit238=bj_lastCreatedUnit
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,udg_locations02[22])
call TriggerRegisterEnterRectSimple(udg_trigger34,udg_rect02)
else
call CreateNUnitsAtLoc(1,'nvil',Player(15),udg_locations02[22],.0)
set udg_unit238=bj_lastCreatedUnit
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,udg_locations02[21])
call TriggerRegisterEnterRectSimple(udg_trigger34,udg_rect01)
endif
call TriggerRegisterUnitEvent(udg_trigger33,udg_unit238,EVENT_UNIT_DEATH)
call EnableTrigger(udg_trigger33)
call EnableTrigger(udg_trigger34)
endfunction
function og takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer50=0
call QuestMessageBJ(CB(udg_player04),3,"The Business man is dead, mission failed!!! You lose all your money!!")
call SetPlayerStateBJ(udg_player04,PLAYER_STATE_RESOURCE_GOLD,0)
set udg_booleans02[(1+GetPlayerId(udg_player04))]=false
set udg_unit238=null
endfunction
function rg takes nothing returns boolean
return(GetTriggerUnit()==udg_unit238)
endfunction
function ig takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call RemoveUnit(GetTriggerUnit())
set udg_integer50=0
call QuestMessageBJ(CB(udg_player04),2,"A mission: Protection Complete! Award is 20000 gold!")
call AdjustPlayerStateBJ(20000,udg_player04,PLAYER_STATE_RESOURCE_GOLD)
set udg_booleans02[(1+GetPlayerId(udg_player04))]=false
set udg_unit238=null
endfunction
function ag takes nothing returns boolean
return(IsPlayerInForce(GetTriggerPlayer(),udg_force01))
endfunction
function ng takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function Vg takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function Eg takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Vg())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_booleans06[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"We found some S Rank Missing-Nin at the cave, when you are ready, type in 'go' in front of me and I will send you there. After you kill them, be sure to get their badge as proof, then come back to me with it for reward. (Note: Do Not take other rank badge, or you may not be able to take mission again.)")
else
if(ng())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"This mission requires you to protect a rich business man to the other side of arena. He has a lot of money with him and many ninja are trying to kill him. Your mission is to ensure his safety, and if he dies, you will lose money. If he lives, you will be come a very rich man as well.......He will start after one minute.")
if(ag())then
set udg_integer50=1
else
set udg_integer50=2
endif
set udg_player04=GetTriggerPlayer()
call EnableTrigger(udg_trigger32)
call TriggerExecute(udg_trigger32)
endif
endif
call EnableTrigger(udg_trigger19)
endfunction
function Xg takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[2])
endfunction
function Og takes nothing returns boolean
return(GetClickedButton()==udg_buttons01[1])
endfunction
function Rg takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Og())then
set udg_booleans02[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_booleans07[(1+GetPlayerId(GetTriggerPlayer()))]=true
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"There's an above S rank missing-nin in the cave, kill him and bring his badge to me. (Note: Do Not take other rank badge, or you may not be able to take mission again.)")
else
if(Xg())then
call QuestMessageBJ(CB(GetTriggerPlayer()),0,"The Sage of Six Path visit the arena....can you kill him?")
call SetUnitPositionLoc(udg_unit292,udg_locations02[391])
call SetUnitOwner(udg_unit292,Player(12),true)
call SetUnitInvulnerable(udg_unit292,false)
endif
endif
call EnableTrigger(udg_trigger19)
endfunction
function Ig takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Ag takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='nskf')
endfunction
function Ng takes nothing returns nothing
if(Ag())then
set udg_integer48=(udg_integer48+1)
endif
endfunction
function bg takes nothing returns boolean
return(udg_integer48<7)
endfunction
function Bg takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function cg takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='nubw')
endfunction
function Cg takes nothing returns nothing
if(cg())then
set udg_integer48=(udg_integer48+1)
endif
endfunction
function dg takes nothing returns boolean
return(udg_integer48<5)
endfunction
function Dg takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function fg takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='nbal')
endfunction
function Fg takes nothing returns nothing
if(fg())then
set udg_integer48=(udg_integer48+1)
endif
endfunction
function gg takes nothing returns boolean
return(udg_integer48<3)
endfunction
function Gg takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function hg takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='nsrw')
endfunction
function Hg takes nothing returns nothing
if(hg())then
set udg_integer48=(udg_integer48+1)
endif
endfunction
function jg takes nothing returns boolean
return(udg_integer48==0)
endfunction
function Jg takes nothing returns nothing
call ForGroupBJ(nB(udg_rect08,Condition(function Ig)),function Ng)
call DestroyGroup(GetLastCreatedGroup())
if(bg())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(7-udg_integer48)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[491]=GetRandomLocInRect(udg_rect09)
call CreateNUnitsAtLoc(1,'nskf',Player(12),udg_locations02[491],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[491])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
set udg_integer48=0
call ForGroupBJ(nB(udg_rect08,Condition(function Bg)),function Cg)
call DestroyGroup(GetLastCreatedGroup())
if(dg())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(5-udg_integer48)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[491]=GetRandomLocInRect(udg_rect10)
call CreateNUnitsAtLoc(1,'nubw',Player(12),udg_locations02[491],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[491])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
set udg_integer48=0
call ForGroupBJ(nB(udg_rect08,Condition(function Dg)),function Fg)
call DestroyGroup(GetLastCreatedGroup())
if(gg())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=(3-udg_integer48)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[491]=GetRandomLocInRect(udg_rect11)
call CreateNUnitsAtLoc(1,'nbal',Player(12),udg_locations02[491],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[491])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
set udg_integer48=0
call ForGroupBJ(nB(udg_rect08,Condition(function Gg)),function Hg)
call DestroyGroup(GetLastCreatedGroup())
if(jg())then
set udg_locations02[491]=GetRandomLocInRect(udg_rect12)
call CreateNUnitsAtLoc(1,'nsrw',Player(12),udg_locations02[491],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[491])
endif
set udg_integer48=0
endfunction
function kg takes nothing returns boolean
return(GetOwningPlayer(GetEnumUnit())==GetTriggerPlayer())
endfunction
function Kg takes nothing returns nothing
if(kg())then
call RemoveUnit(GetEnumUnit())
endif
endfunction
function lg takes nothing returns nothing
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetTriggerPlayer())+"|cFFFF0000 has given up on the match......|r"))
call ForGroupBJ(EB(GetWorldBounds()),function Kg)
endfunction
function Lg takes nothing returns boolean
return(IsUnitEnemy(GetKillingUnit(),GetOwningPlayer(GetTriggerUnit())))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetTriggerUnit())!=Player(12))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])
endfunction
function mg takes nothing returns boolean
return(udg_integer29>=5)
endfunction
function Mg takes nothing returns boolean
return(udg_integer29<=1)
endfunction
function pg takes nothing returns boolean
return(udg_integer06>=5)
endfunction
function Pg takes nothing returns boolean
return(udg_integer06<=1)
endfunction
function qg takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetEnumUnit())==Player(6))and(GetOwningPlayer(GetEnumUnit())==Player(7))and(GetOwningPlayer(GetEnumUnit())==Player(8))and(GetOwningPlayer(GetEnumUnit())==Player(9))and(GetOwningPlayer(GetEnumUnit())==Player(10))and(GetOwningPlayer(GetEnumUnit())==Player(11))
endfunction
function Qg takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetEnumUnit())==Player(0))and(GetOwningPlayer(GetEnumUnit())==Player(1))and(GetOwningPlayer(GetEnumUnit())==Player(2))and(GetOwningPlayer(GetEnumUnit())==Player(3))and(GetOwningPlayer(GetEnumUnit())==Player(4))and(GetOwningPlayer(GetEnumUnit())==Player(5))
endfunction
function sg takes nothing returns nothing
if(Qg())then
call SetUnitAbilityLevelSwapped('A079',GetEnumUnit(),udg_integer06)
else
if(qg())then
call SetUnitAbilityLevelSwapped('A079',GetEnumUnit(),udg_integer29)
endif
endif
endfunction
function Sg takes nothing returns boolean
return(udg_integer29>=5)
endfunction
function tg takes nothing returns boolean
return(udg_integer29<=1)
endfunction
function Tg takes nothing returns boolean
return(udg_integer06>=5)
endfunction
function ug takes nothing returns boolean
return(udg_integer06<=1)
endfunction
function Ug takes nothing returns boolean
return(GetOwningPlayer(GetEnumUnit())==Player(6))and(GetOwningPlayer(GetEnumUnit())==Player(7))and(GetOwningPlayer(GetEnumUnit())==Player(8))and(GetOwningPlayer(GetEnumUnit())==Player(9))and(GetOwningPlayer(GetEnumUnit())==Player(10))and(GetOwningPlayer(GetEnumUnit())==Player(11))
endfunction
function wg takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO))and(Ug())
endfunction
function Wg takes nothing returns boolean
return(GetOwningPlayer(GetEnumUnit())==Player(0))and(GetOwningPlayer(GetEnumUnit())==Player(1))and(GetOwningPlayer(GetEnumUnit())==Player(2))and(GetOwningPlayer(GetEnumUnit())==Player(3))and(GetOwningPlayer(GetEnumUnit())==Player(4))and(GetOwningPlayer(GetEnumUnit())==Player(5))
endfunction
function yg takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO))and(Wg())
endfunction
function Yg takes nothing returns nothing
if(yg())then
call SetUnitAbilityLevelSwapped('A079',GetEnumUnit(),udg_integer06)
else
if(wg())then
call SetUnitAbilityLevelSwapped('A079',GetEnumUnit(),udg_integer29)
endif
endif
endfunction
function zg 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 Zg takes nothing returns boolean
return(zg())
endfunction
function vG takes nothing returns nothing
call TriggerSleepAction(.01)
if(Zg())then
set udg_integer29=(udg_integer29+1)
set udg_integer06=(udg_integer06-1)
if(Sg())then
set udg_integer29=5
endif
if(tg())then
set udg_integer29=1
endif
if(Tg())then
set udg_integer06=5
endif
if(ug())then
set udg_integer06=1
endif
call MultiboardSetItemValueBJ(udg_multiboard02,2,2,I2S(udg_integer06))
call MultiboardSetItemValueBJ(udg_multiboard02,2,3,I2S(udg_integer29))
call ForGroupBJ(EB(udg_rect04),function Yg)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000Team A lose 1 Moral|r")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000Team B gain 1 Moral|r")
else
set udg_integer29=(udg_integer29-1)
set udg_integer06=(udg_integer06+1)
if(mg())then
set udg_integer29=5
endif
if(Mg())then
set udg_integer29=1
endif
if(pg())then
set udg_integer06=5
endif
if(Pg())then
set udg_integer06=1
endif
call ForGroupBJ(EB(udg_rect04),function sg)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000Team A gain 1 Moral|r")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000Team B lose 1 Moral|r")
endif
endfunction
function eG takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetItemTypeId(GetManipulatedItem())=='I010')
endfunction
function xG takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function oG takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations02[20],1.)
call SetPlayerStateBJ(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_FOOD_USED,0)
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function xG)
call DestroyGroup(GetLastCreatedGroup())
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+"|cFF00FF00 has repicked his shinobi.|r"))
endfunction
function rG takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(15))and(GetTriggerUnit()!=udg_unit292)and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))
endfunction
function iG takes nothing returns boolean
return((1+GetPlayerId(GetTriggerPlayer()))==GetUnitUserData(GetTriggerUnit()))
endfunction
function aG takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function nG takes nothing returns nothing
if(aG())then
if(iG())then
call SetUnitInvulnerable(GetTriggerUnit(),false)
call SetUnitOwner(GetTriggerUnit(),GetTriggerPlayer(),true)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations02[391])
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),udg_locations02[391],1.)
call UnitAddItemByIdSwapped('I00D',GetTriggerUnit())
call UnitAddItemByIdSwapped('I006',GetTriggerUnit())
call UnitAddItemByIdSwapped('I009',GetTriggerUnit())
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call SetUnitUserData(GetTriggerUnit(),0)
set udg_units13[(1+GetPlayerId(GetTriggerPlayer()))]=GetTriggerUnit()
call SetPlayerName(Player(-1+((1+GetPlayerId(GetTriggerPlayer())))),(udg_strings03[(1+GetPlayerId(GetTriggerPlayer()))]+("<<"+(udg_strings02[0]+">>"))))
else
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,(GetHeroProperName(GetTriggerUnit())+":Are you sure?"))
call SetUnitUserData(GetTriggerUnit(),(1+GetPlayerId(GetTriggerPlayer())))
call TriggerSleepAction(.05)
call SetUnitUserData(GetTriggerUnit(),0)
endif
endif
endfunction
function VG takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I011')
endfunction
function EG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I006'))=='I006')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I005'))=='I005')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I003'))=='I003')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I001'))=='I001')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I007'))=='I007')
endfunction
function XG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I009'))=='I009')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I008'))=='I008')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I004'))=='I004')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I002'))=='I002')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00A'))=='I00A')
endfunction
function OG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I012'))=='I012')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))=='I01B')
endfunction
function RG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I013'))=='I013')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))=='I01B')
endfunction
function IG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))=='I01B')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I015'))=='I015')
endfunction
function AG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I016'))=='I016')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))=='I01B')
endfunction
function NG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'))=='I018')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))=='I01B')
endfunction
function bG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'))=='I019')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))=='I01B')
endfunction
function BG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I014'))=='I014')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I017'))=='I017')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))=='I01A')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))=='I01C')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))=='I01B')
endfunction
function cG takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I014'))=='I014')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I017'))=='I017')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))=='I01A')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))=='I01D')and(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))=='I01B')
endfunction
function CG takes nothing returns nothing
if(EG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combine into Ultimate Healing Bottle!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I006'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I005'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I003'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I001'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I007'))
call UnitAddItemByIdSwapped('I01E',GetTriggerUnit())
return
endif
if(XG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combine into Ultimate Mana Bottle!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I009'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I008'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I004'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I002'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00A'))
call UnitAddItemByIdSwapped('I01F',GetTriggerUnit())
return
endif
if(OG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combie into Iron Sword!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I012'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('I013',GetTriggerUnit())
return
endif
if(RG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combie into Hokage Sword!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I013'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('I014',GetTriggerUnit())
return
endif
if(IG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combine into Iron Spear!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I015'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('I016',GetTriggerUnit())
return
endif
if(AG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combine into Hokage Spear!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I016'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('I017',GetTriggerUnit())
return
endif
if(NG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combine into Iron Axe!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I018'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('I019',GetTriggerUnit())
return
endif
if(bG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combine into Hokage Axe!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I019'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('I01A',GetTriggerUnit())
return
endif
if(BG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combine into Nidaime's Renji!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I014'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I017'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('I00F',GetTriggerUnit())
return
endif
if(cG())then
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"Combine into Orochimaru's Kusanagi!")
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I014'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I017'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01A'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('I00G',GetTriggerUnit())
return
endif
endfunction
function dG takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function DG takes nothing returns boolean
return(GetPlayerController(Player(0))==MAP_CONTROL_COMPUTER)
endfunction
function fG takes nothing returns boolean
return(IsUnitPaused(udg_units01[1])==false)
endfunction
function FG takes nothing returns nothing
set udg_units01[1]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[1],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time")
set udg_timerdialogs01[1]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[1],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[1],Player(0))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[1])
call PanCameraToTimedLocForPlayer(Player(0),udg_locations02[21],2.)
call ReviveHeroLoc(udg_units01[1],udg_locations02[21],true)
if(DG())then
call IssuePointOrderByIdLoc(udg_units01[1],851983,udg_locations02[22])
endif
call SetUnitInvulnerable(udg_units01[1],true)
call SetUnitManaPercentBJ(udg_units01[1],'d')
call TriggerSleepAction(3.)
if(fG())then
call SetUnitInvulnerable(udg_units01[1],false)
endif
set udg_units01[1]=null
endfunction
function gG takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function GG takes nothing returns boolean
return(GetPlayerController(Player(1))==MAP_CONTROL_COMPUTER)
endfunction
function hG takes nothing returns boolean
return(IsUnitPaused(udg_units01[2])==false)
endfunction
function HG takes nothing returns nothing
set udg_units01[2]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[2],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[2]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[2],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[2],Player(1))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[2])
call PanCameraToTimedLocForPlayer(Player(1),udg_locations02[21],2.)
call ReviveHeroLoc(udg_units01[2],udg_locations02[21],true)
if(GG())then
call IssuePointOrderByIdLoc(udg_units01[2],851983,udg_locations02[22])
endif
call SetUnitInvulnerable(udg_units01[2],true)
call SetUnitManaPercentBJ(udg_units01[2],'d')
call TriggerSleepAction(3.)
if(hG())then
call SetUnitInvulnerable(udg_units01[2],false)
endif
set udg_units01[2]=null
endfunction
function jG takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function JG takes nothing returns boolean
return(GetPlayerController(Player(2))==MAP_CONTROL_COMPUTER)
endfunction
function kG takes nothing returns boolean
return(IsUnitPaused(udg_units01[3])==false)
endfunction
function KG takes nothing returns nothing
set udg_units01[3]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[3],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[3]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[3],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[3],Player(2))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[3])
call PanCameraToTimedLocForPlayer(Player(2),udg_locations02[21],2.)
call ReviveHeroLoc(udg_units01[3],udg_locations02[21],true)
if(JG())then
call IssuePointOrderByIdLoc(udg_units01[3],851983,udg_locations02[22])
endif
call SetUnitInvulnerable(udg_units01[3],true)
call SetUnitManaPercentBJ(udg_units01[3],'d')
call TriggerSleepAction(3.)
if(kG())then
call SetUnitInvulnerable(udg_units01[3],false)
endif
set udg_units01[3]=null
endfunction
function lG takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function LG takes nothing returns boolean
return(GetPlayerController(Player(3))==MAP_CONTROL_COMPUTER)
endfunction
function mG takes nothing returns boolean
return(IsUnitPaused(udg_units01[4])==false)
endfunction
function MG takes nothing returns nothing
set udg_units01[4]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[4],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[4]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[4],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[4],Player(3))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[4])
call PanCameraToTimedLocForPlayer(Player(3),udg_locations02[21],2.)
call ReviveHeroLoc(udg_units01[4],udg_locations02[21],true)
if(LG())then
call IssuePointOrderByIdLoc(udg_units01[4],851983,udg_locations02[22])
endif
call SetUnitInvulnerable(udg_units01[4],true)
call SetUnitManaPercentBJ(udg_units01[4],'d')
call TriggerSleepAction(3.)
if(mG())then
call SetUnitInvulnerable(udg_units01[4],false)
endif
set udg_units01[4]=null
endfunction
function pG takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function PG takes nothing returns boolean
return(GetPlayerController(Player(4))==MAP_CONTROL_COMPUTER)
endfunction
function qG takes nothing returns boolean
return(IsUnitPaused(udg_units01[5])==false)
endfunction
function QG takes nothing returns nothing
set udg_units01[5]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[5],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[5]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[5],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[5],Player(4))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[5])
call PanCameraToTimedLocForPlayer(Player(4),udg_locations02[21],2.)
call ReviveHeroLoc(udg_units01[5],udg_locations02[21],true)
if(PG())then
call IssuePointOrderByIdLoc(udg_units01[5],851983,udg_locations02[22])
endif
call SetUnitInvulnerable(udg_units01[5],true)
call SetUnitManaPercentBJ(udg_units01[5],'d')
call TriggerSleepAction(3.)
if(qG())then
call SetUnitInvulnerable(udg_units01[5],false)
endif
set udg_units01[5]=null
endfunction
function sG takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function SG takes nothing returns boolean
return(GetPlayerController(Player(5))==MAP_CONTROL_COMPUTER)
endfunction
function tG takes nothing returns boolean
return(IsUnitPaused(udg_units01[6])==false)
endfunction
function TG takes nothing returns nothing
set udg_units01[6]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[6],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[6]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[6],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[6],Player(5))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[6])
call PanCameraToTimedLocForPlayer(Player(5),udg_locations02[21],2.)
call ReviveHeroLoc(udg_units01[6],udg_locations02[21],true)
if(SG())then
call IssuePointOrderByIdLoc(udg_units01[6],851983,udg_locations02[22])
endif
call SetUnitInvulnerable(udg_units01[6],true)
call SetUnitManaPercentBJ(udg_units01[6],'d')
call TriggerSleepAction(3.)
if(tG())then
call SetUnitInvulnerable(udg_units01[6],false)
endif
set udg_units01[6]=null
endfunction
function uG takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function UG takes nothing returns boolean
return(GetPlayerController(Player(6))==MAP_CONTROL_COMPUTER)
endfunction
function wG takes nothing returns boolean
return(IsUnitPaused(udg_units01[7])==false)
endfunction
function WG takes nothing returns nothing
set udg_units01[7]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[7],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[7]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[7],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[7],Player(6))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[7])
call PanCameraToTimedLocForPlayer(Player(6),udg_locations02[22],2.)
call ReviveHeroLoc(udg_units01[7],udg_locations02[22],true)
if(UG())then
call IssuePointOrderByIdLoc(udg_units01[7],851983,udg_locations02[21])
endif
call SetUnitInvulnerable(udg_units01[7],true)
call SetUnitManaPercentBJ(udg_units01[7],'d')
call TriggerSleepAction(3.)
if(wG())then
call SetUnitInvulnerable(udg_units01[7],false)
endif
set udg_units01[7]=null
endfunction
function yG takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function YG takes nothing returns boolean
return(GetPlayerController(Player(7))==MAP_CONTROL_COMPUTER)
endfunction
function zG takes nothing returns boolean
return(IsUnitPaused(udg_units01[8])==false)
endfunction
function ZG takes nothing returns nothing
set udg_units01[8]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[8],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[8]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[8],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[8],Player(7))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[8])
call PanCameraToTimedLocForPlayer(Player(7),udg_locations02[22],2.)
call ReviveHeroLoc(udg_units01[8],udg_locations02[22],true)
if(YG())then
call IssuePointOrderByIdLoc(udg_units01[8],851983,udg_locations02[21])
endif
call SetUnitInvulnerable(udg_units01[8],true)
call SetUnitManaPercentBJ(udg_units01[8],'d')
call TriggerSleepAction(3.)
if(zG())then
call SetUnitInvulnerable(udg_units01[8],false)
endif
set udg_units01[8]=null
endfunction
function vh takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function eh takes nothing returns boolean
return(GetPlayerController(Player(8))==MAP_CONTROL_COMPUTER)
endfunction
function xh takes nothing returns boolean
return(IsUnitPaused(udg_units01[9])==false)
endfunction
function oh takes nothing returns nothing
set udg_units01[9]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[9],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[9]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[9],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[9],Player(8))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[9])
call PanCameraToTimedLocForPlayer(Player(8),udg_locations02[22],2.)
call ReviveHeroLoc(udg_units01[9],udg_locations02[22],true)
if(eh())then
call IssuePointOrderByIdLoc(udg_units01[9],851983,udg_locations02[21])
endif
call SetUnitInvulnerable(udg_units01[9],true)
call SetUnitManaPercentBJ(udg_units01[9],'d')
call TriggerSleepAction(3.)
if(xh())then
call SetUnitInvulnerable(udg_units01[9],false)
endif
set udg_units01[9]=null
endfunction
function rh takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function ih takes nothing returns boolean
return(GetPlayerController(Player(9))==MAP_CONTROL_COMPUTER)
endfunction
function ah takes nothing returns boolean
return(IsUnitPaused(udg_units01[10])==false)
endfunction
function nh takes nothing returns nothing
set udg_units01[10]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[10],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[10]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[10],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[10],Player(9))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[10])
call PanCameraToTimedLocForPlayer(Player(9),udg_locations02[22],2.)
call ReviveHeroLoc(udg_units01[10],udg_locations02[22],true)
if(ih())then
call IssuePointOrderByIdLoc(udg_units01[10],851983,udg_locations02[21])
endif
call SetUnitInvulnerable(udg_units01[10],true)
call SetUnitManaPercentBJ(udg_units01[10],'d')
call TriggerSleepAction(3.)
if(ah())then
call SetUnitInvulnerable(udg_units01[10],false)
endif
set udg_units01[10]=null
endfunction
function Vh takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function Eh takes nothing returns boolean
return(GetPlayerController(Player(10))==MAP_CONTROL_COMPUTER)
endfunction
function Xh takes nothing returns boolean
return(IsUnitPaused(udg_units01[11])==false)
endfunction
function Oh takes nothing returns nothing
set udg_units01[11]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[11],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[11]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[11],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[11],Player(10))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[11])
call PanCameraToTimedLocForPlayer(Player(10),udg_locations02[22],2.)
call ReviveHeroLoc(udg_units01[11],udg_locations02[22],true)
if(Eh())then
call IssuePointOrderByIdLoc(udg_units01[11],851983,udg_locations02[21])
endif
call SetUnitInvulnerable(udg_units01[11],true)
call SetUnitManaPercentBJ(udg_units01[11],'d')
call TriggerSleepAction(3.)
if(Xh())then
call SetUnitInvulnerable(udg_units01[11],false)
endif
set udg_units01[11]=null
endfunction
function Rh takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function Ih takes nothing returns boolean
return(GetPlayerController(Player(11))==MAP_CONTROL_COMPUTER)
endfunction
function Ah takes nothing returns boolean
return(IsUnitPaused(udg_units01[12])==false)
endfunction
function Nh takes nothing returns nothing
set udg_units01[12]=GetTriggerUnit()
call StartTimerBJ(udg_timers01[12],false,30.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"Wait for 30 seconds revive time.")
set udg_timerdialogs01[12]=bj_lastCreatedTimerDialog
call TimerDialogDisplay(udg_timerdialogs01[12],false)
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialogs01[12],Player(11))
call TriggerSleepAction(30.)
call DestroyTimerDialog(udg_timerdialogs01[12])
call PanCameraToTimedLocForPlayer(Player(11),udg_locations02[22],2.)
call ReviveHeroLoc(udg_units01[12],udg_locations02[22],true)
if(Ih())then
call IssuePointOrderByIdLoc(udg_units01[12],851983,udg_locations02[21])
endif
call SetUnitInvulnerable(udg_units01[12],true)
call SetUnitManaPercentBJ(udg_units01[12],'d')
call TriggerSleepAction(3.)
if(Ah())then
call SetUnitInvulnerable(udg_units01[12],false)
endif
set udg_units01[12]=null
endfunction
function bh takes nothing returns boolean
return(udg_boolean01)
endfunction
function Bh takes nothing returns nothing
call CreateMultiboardBJ(3,3,"|cFFFFFF00NBR Team State|r")
set udg_multiboard02=bj_lastCreatedMultiboard
call MultiboardSetItemValueBJ(udg_multiboard02,1,1,"")
call MultiboardSetItemValueBJ(udg_multiboard02,1,2,"|cFF00FF00A|r")
call MultiboardSetItemValueBJ(udg_multiboard02,1,3,"|cFF00FF00B|r")
call MultiboardSetItemValueBJ(udg_multiboard02,2,1,"|cFFFFA8FFMoral|r")
call MultiboardSetItemValueBJ(udg_multiboard02,2,2,I2S(udg_integer06))
call MultiboardSetItemValueBJ(udg_multiboard02,2,3,I2S(udg_integer29))
if(bh())then
call MultiboardSetItemValueBJ(udg_multiboard02,3,1,"|cFFFFFF00Kills|r")
else
call MultiboardSetItemValueBJ(udg_multiboard02,3,1,"|cFFFFFF00Flags|r")
endif
call MultiboardSetItemValueBJ(udg_multiboard02,3,2,I2S(udg_integers05[1]))
call MultiboardSetItemValueBJ(udg_multiboard02,3,3,I2S(udg_integers05[2]))
call MultiboardSetItemsStyle(udg_multiboard02,true,false)
call MultiboardMinimize(udg_multiboard02,false)
call MultiboardDisplay(udg_multiboard02,true)
endfunction
function ch takes nothing returns nothing
call CreateMultiboardBJ(5,25,"|cFFFFFF00Aftermath Stats|r")
set udg_multiboard01=bj_lastCreatedMultiboard
call MultiboardDisplay(udg_multiboard01,false)
call MultiboardSetItemValueBJ(udg_multiboard01,1,1,"")
call MultiboardSetItemValueBJ(udg_multiboard01,2,1,"|cFF00FF00Number of Kills/Missions completed.|r")
call MultiboardSetItemValueBJ(udg_multiboard01,3,1,"|cFF00FF00Number of Items used.|r")
call MultiboardSetItemValueBJ(udg_multiboard01,4,1,"|cFF00FF00Number of Ninjutsu/Taijutsu/Genjutsu used.|r")
call MultiboardSetItemValueBJ(udg_multiboard01,5,1,"|cFF00FF00Final State|r")
set udg_integer03=2
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemValueBJ(udg_multiboard01,1,(bj_forLoopAIndex+udg_integer03),("Player"+I2S(bj_forLoopAIndex)))
call MultiboardSetItemValueBJ(udg_multiboard01,2,(bj_forLoopAIndex+udg_integer03),I2S(udg_integers01[bj_forLoopAIndex]))
call MultiboardSetItemValueBJ(udg_multiboard01,3,(bj_forLoopAIndex+udg_integer03),I2S(udg_integers02[bj_forLoopAIndex]))
call MultiboardSetItemValueBJ(udg_multiboard01,4,(bj_forLoopAIndex+udg_integer03),I2S(udg_integers03[bj_forLoopAIndex]))
call MultiboardSetItemValueBJ(udg_multiboard01,5,(bj_forLoopAIndex+udg_integer03),udg_strings01[bj_forLoopAIndex])
set udg_integer03=(udg_integer03+1)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call MultiboardSetItemsWidth(udg_multiboard01,.17)
call MultiboardSetItemsStyle(udg_multiboard01,true,false)
call MultiboardMinimize(udg_multiboard01,false)
endfunction
function Ch takes nothing returns boolean
return(udg_integers05[1]<udg_integers05[2])
endfunction
function dh takes nothing returns boolean
return(udg_integers05[1]>udg_integers05[2])
endfunction
function Dh takes nothing returns boolean
return(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function fh takes nothing returns boolean
return(udg_integers05[1]<udg_integers05[2])
endfunction
function Fh takes nothing returns boolean
return(udg_integers05[1]>udg_integers05[2])
endfunction
function gh takes nothing returns boolean
return(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function Gh takes nothing returns boolean
return(udg_integers05[1]<udg_integers05[2])
endfunction
function hh takes nothing returns boolean
return(udg_integers05[1]>udg_integers05[2])
endfunction
function Hh takes nothing returns boolean
return(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function jh takes nothing returns boolean
return(udg_integers05[1]<udg_integers05[2])
endfunction
function Jh takes nothing returns boolean
return(udg_integers05[1]>udg_integers05[2])
endfunction
function kh takes nothing returns boolean
return(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function Kh takes nothing returns boolean
return(udg_integers05[1]<udg_integers05[2])
endfunction
function lh takes nothing returns boolean
return(udg_integers05[1]>udg_integers05[2])
endfunction
function Lh takes nothing returns boolean
return(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function mh takes nothing returns boolean
return(udg_integers05[1]<udg_integers05[2])
endfunction
function Mh takes nothing returns boolean
return(udg_integers05[1]>udg_integers05[2])
endfunction
function ph takes nothing returns boolean
return(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function Ph takes nothing returns boolean
return(udg_integers05[2]<udg_integers05[1])
endfunction
function qh takes nothing returns boolean
return(udg_integers05[2]>udg_integers05[1])
endfunction
function Qh takes nothing returns boolean
return(GetPlayerState(Player(6),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function sh takes nothing returns boolean
return(udg_integers05[2]<udg_integers05[1])
endfunction
function Sh takes nothing returns boolean
return(udg_integers05[2]>udg_integers05[1])
endfunction
function th takes nothing returns boolean
return(GetPlayerState(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function Th takes nothing returns boolean
return(udg_integers05[2]<udg_integers05[1])
endfunction
function uh takes nothing returns boolean
return(udg_integers05[2]>udg_integers05[1])
endfunction
function Uh takes nothing returns boolean
return(GetPlayerState(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function wh takes nothing returns boolean
return(udg_integers05[2]<udg_integers05[1])
endfunction
function Wh takes nothing returns boolean
return(udg_integers05[2]>udg_integers05[1])
endfunction
function yh takes nothing returns boolean
return(GetPlayerState(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function Yh takes nothing returns boolean
return(udg_integers05[2]<udg_integers05[1])
endfunction
function zh takes nothing returns boolean
return(udg_integers05[2]>udg_integers05[1])
endfunction
function Zh takes nothing returns boolean
return(GetPlayerState(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function vH takes nothing returns boolean
return(udg_integers05[2]<udg_integers05[1])
endfunction
function eH takes nothing returns boolean
return(udg_integers05[2]>udg_integers05[1])
endfunction
function xH takes nothing returns boolean
return(GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function oH takes nothing returns nothing
if(Dh())then
set udg_strings01[1]="|cFFFF8000Absent|r"
else
if(dh())then
set udg_strings01[1]="|cFF00FF00Winner!|r"
else
if(Ch())then
set udg_strings01[1]="|cFFFF0000Loser!|r"
else
set udg_strings01[1]="|cFFFF0000Tie!|r"
endif
endif
endif
if(gh())then
set udg_strings01[2]="|cFFFF8000Absent|r"
else
if(Fh())then
set udg_strings01[2]="|cFF00FF00Winner!|r"
else
if(fh())then
set udg_strings01[2]="|cFFFF0000Loser!|r"
else
set udg_strings01[2]="|cFFFF0000Tie!|r"
endif
endif
endif
if(Hh())then
set udg_strings01[3]="|cFFFF8000Absent|r"
else
if(hh())then
set udg_strings01[3]="|cFF00FF00Winner!|r"
else
if(Gh())then
set udg_strings01[3]="|cFFFF0000Loser!|r"
else
set udg_strings01[3]="|cFFFF0000Tie!|r"
endif
endif
endif
if(kh())then
set udg_strings01[4]="|cFFFF8000Absent|r"
else
if(Jh())then
set udg_strings01[4]="|cFF00FF00Winner!|r"
else
if(jh())then
set udg_strings01[4]="|cFFFF0000Loser!|r"
else
set udg_strings01[4]="|cFFFF0000Tie!|r"
endif
endif
endif
if(Lh())then
set udg_strings01[5]="|cFFFF8000Absent|r"
else
if(lh())then
set udg_strings01[5]="|cFF00FF00Winner!|r"
else
if(Kh())then
set udg_strings01[5]="|cFFFF0000Loser!|r"
else
set udg_strings01[5]="|cFFFF0000Tie!|r"
endif
endif
endif
if(ph())then
set udg_strings01[6]="|cFFFF8000Absent|r"
else
if(Mh())then
set udg_strings01[6]="|cFF00FF00Winner!|r"
else
if(mh())then
set udg_strings01[6]="|cFFFF0000Loser!|r"
else
set udg_strings01[6]="|cFFFF0000Tie!|r"
endif
endif
endif
if(Qh())then
set udg_strings01[7]="|cFFFF8000Absent|r"
else
if(qh())then
set udg_strings01[7]="|cFF00FF00Winner!|r"
else
if(Ph())then
set udg_strings01[7]="|cFFFF0000Loser!|r"
else
set udg_strings01[7]="|cFFFF0000Tie!|r"
endif
endif
endif
if(th())then
set udg_strings01[8]="|cFFFF8000Absent|r"
else
if(Sh())then
set udg_strings01[8]="|cFF00FF00Winner!|r"
else
if(sh())then
set udg_strings01[8]="|cFFFF0000Loser!|r"
else
set udg_strings01[8]="|cFFFF0000Tie!|r"
endif
endif
endif
if(Uh())then
set udg_strings01[9]="|cFFFF8000Absent|r"
else
if(uh())then
set udg_strings01[9]="|cFF00FF00Winner!|r"
else
if(Th())then
set udg_strings01[9]="|cFFFF0000Loser!|r"
else
set udg_strings01[9]="|cFFFF0000Tie!|r"
endif
endif
endif
if(yh())then
set udg_strings01[10]="|cFFFF8000Absent|r"
else
if(Wh())then
set udg_strings01[10]="|cFF00FF00Winner!|r"
else
if(wh())then
set udg_strings01[10]="|cFFFF0000Loser!|r"
else
set udg_strings01[10]="|cFFFF0000Tie!|r"
endif
endif
endif
if(Zh())then
set udg_strings01[11]="|cFFFF8000Absent|r"
else
if(zh())then
set udg_strings01[11]="|cFF00FF00Winner!|r"
else
if(Yh())then
set udg_strings01[11]="|cFFFF0000Loser!|r"
else
set udg_strings01[11]="|cFFFF0000Tie!|r"
endif
endif
endif
if(xH())then
set udg_strings01[12]="|cFFFF8000Absent|r"
else
if(eH())then
set udg_strings01[12]="|cFF00FF00Winner!|r"
else
if(vH())then
set udg_strings01[12]="|cFFFF0000Loser!|r"
else
set udg_strings01[12]="|cFFFF0000Tie!|r"
endif
endif
endif
endfunction
function rH takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function iH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(11))
endfunction
function aH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(10))
endfunction
function nH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(9))
endfunction
function VH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(8))
endfunction
function EH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(7))
endfunction
function XH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(6))
endfunction
function OH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(5))
endfunction
function RH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(4))
endfunction
function IH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(3))
endfunction
function AH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(2))
endfunction
function NH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(1))
endfunction
function bH takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(0))
endfunction
function BH takes nothing returns nothing
if(bH())then
set udg_integers02[1]=(udg_integers02[1]+1)
else
if(NH())then
set udg_integers02[2]=(udg_integers02[2]+1)
else
if(AH())then
set udg_integers02[3]=(udg_integers02[3]+1)
else
if(IH())then
set udg_integers02[4]=(udg_integers02[4]+1)
else
if(RH())then
set udg_integers02[5]=(udg_integers02[5]+1)
else
if(OH())then
set udg_integers02[6]=(udg_integers02[6]+1)
else
if(XH())then
set udg_integers02[7]=(udg_integers02[7]+1)
else
if(EH())then
set udg_integers02[8]=(udg_integers02[8]+1)
else
if(VH())then
set udg_integers02[9]=(udg_integers02[9]+1)
else
if(nH())then
set udg_integers02[10]=(udg_integers02[10]+1)
else
if(aH())then
set udg_integers02[11]=(udg_integers02[11]+1)
else
if(iH())then
set udg_integers02[12]=(udg_integers02[12]+1)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function cH takes nothing returns boolean
return(GetUnitUserData(GetTriggerUnit())!=5)and(IsUnitEnemy(GetKillingUnit(),GetOwningPlayer(GetTriggerUnit())))and(GetOwningPlayer(GetKillingUnit())!=Player(12))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit144)and(GetTriggerUnit()!=udg_unit145)and(GetTriggerUnit()!=udg_unit170)and(GetTriggerUnit()!=udg_units09[1])and(GetTriggerUnit()!=udg_units09[2])and(GetTriggerUnit()!=udg_units09[3])and(GetTriggerUnit()!=udg_units09[4])and(GetTriggerUnit()!=udg_units09[5])
endfunction
function CH takes nothing returns boolean
return(udg_integers05[2]==udg_integer04)
endfunction
function dH takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnit()),udg_force02))and(udg_boolean01)
endfunction
function DH takes nothing returns boolean
return(udg_integers05[1]==udg_integer04)
endfunction
function fH takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetKillingUnit()),udg_force01))and(udg_boolean01)
endfunction
function FH takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]>=56)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]-1)<56)
endfunction
function gH takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]>=48)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]-1)<48)
endfunction
function GH takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]>=40)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]-1)<40)
endfunction
function hH takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]>=32)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]-1)<32)
endfunction
function HH takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]>=24)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]-1)<24)
endfunction
function jH takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]>=16)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]-1)<16)
endfunction
function JH takes nothing returns boolean
return(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]>=8)and((udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]-1)<8)
endfunction
function kH takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetKillingUnit()))==MAP_CONTROL_USER)
endfunction
function KH takes nothing returns nothing
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(((GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+" has been killed by ")+GetPlayerName(GetOwningPlayer(GetKillingUnit())))+"!!!"))
call CreateTextTagUnitBJ("|cC8FFFF00Honorable Kill!|r",GetKillingUnit(),0,10,'d','d','d',0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call AdjustPlayerStateBJ(1000,GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(500,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"|cFFFF0000Your Shinobi has died, please wait 30 seconds to be revived.|r")
if(fH())then
set udg_integers05[1]=(udg_integers05[1]+1)
call MultiboardSetItemValueBJ(udg_multiboard02,3,2,I2S(udg_integers05[1]))
if(DH())then
call TriggerExecute(udg_trigger60)
endif
else
if(dH())then
set udg_integers05[2]=(udg_integers05[2]+1)
call MultiboardSetItemValueBJ(udg_multiboard02,3,3,I2S(udg_integers05[2]))
if(CH())then
call TriggerExecute(udg_trigger61)
endif
endif
endif
set udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_integers01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+1)
if(kH())then
if(JH())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" has been promoted to |cFF00FF00Chunin|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetKillingUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("("+(udg_strings02[1]+")"))))
else
if(jH())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" has been promoted to |cFF0000FFJounin|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetKillingUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("("+(udg_strings02[2]+")"))))
else
if(HH())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" has been promoted to |cFF9000FFAnbu|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetKillingUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("("+(udg_strings02[3]+")"))))
else
if(hH())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" has been promoted to |cFF0088FFSpecial Jounin|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetKillingUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("("+(udg_strings02[4]+")"))))
else
if(GH())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" has been promoted to |cFFFF00FFElite Jounin|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetKillingUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("("+(udg_strings02[5]+")"))))
else
if(gH())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" has been promoted to |cFFFF8000Akatsuki|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetKillingUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("("+(udg_strings02[6]+")"))))
else
if(FH())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+" has been promoted to |cFFFF0000Hokage|r"))
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetKillingUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("("+(udg_strings02[7]+")"))))
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function lH takes nothing returns boolean
return(udg_integer10<udg_integers01[bj_forLoopAIndex])
endfunction
function LH takes nothing returns boolean
return(udg_integer11==12)
endfunction
function mH takes nothing returns boolean
return(udg_integer11==11)
endfunction
function MH takes nothing returns boolean
return(udg_integer11==10)
endfunction
function pH takes nothing returns boolean
return(udg_integer11==9)
endfunction
function PH takes nothing returns boolean
return(udg_integer11==8)
endfunction
function qH takes nothing returns boolean
return(udg_integer11==7)
endfunction
function QH takes nothing returns boolean
return(udg_integer11==6)
endfunction
function sH takes nothing returns boolean
return(udg_integer11==5)
endfunction
function SH takes nothing returns boolean
return(udg_integer11==4)
endfunction
function tH takes nothing returns boolean
return(udg_integer11==3)
endfunction
function TH takes nothing returns boolean
return(udg_integer11==2)
endfunction
function uH takes nothing returns boolean
return(udg_integer11==1)
endfunction
function UH takes nothing returns nothing
call PauseAllUnitsBJ(true)
call DisableTrigger(udg_trigger59)
call TriggerExecute(udg_trigger57)
call CinematicModeBJ(true,bj_FORCE_ALL_PLAYERS)
call TransmissionFromUnitTypeWithNameBJ(bj_FORCE_ALL_PLAYERS,Player(15),'E001',"Fith Hokage",GetRectCenter(bj_mapInitialPlayableArea),null,(((((((((("The winner of this Game of Naruto Battle Royal is: "+GetPlayerName(Player(0)))+" ")+GetPlayerName(Player(1)))+" ")+GetPlayerName(Player(2)))+" ")+GetPlayerName(Player(3)))+" ")+GetPlayerName(Player(4)))+""),0,2.,true)
set udg_integer10=udg_integers01[1]
set udg_integer11=1
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(lH())then
set udg_integer10=udg_integers01[bj_forLoopAIndex]
set udg_integer11=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(uH())then
set udg_string01=GetPlayerName(Player(0))
else
if(TH())then
set udg_string01=GetPlayerName(Player(1))
else
if(tH())then
set udg_string01=GetPlayerName(Player(2))
else
if(SH())then
set udg_string01=GetPlayerName(Player(3))
else
if(sH())then
set udg_string01=GetPlayerName(Player(4))
else
if(QH())then
set udg_string01=GetPlayerName(Player(5))
else
if(qH())then
set udg_string01=GetPlayerName(Player(6))
else
if(PH())then
set udg_string01=GetPlayerName(Player(7))
else
if(pH())then
set udg_string01=GetPlayerName(Player(8))
else
if(MH())then
set udg_string01=GetPlayerName(Player(9))
else
if(mH())then
set udg_string01=GetPlayerName(Player(10))
else
if(LH())then
set udg_string01=GetPlayerName(Player(11))
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call TransmissionFromUnitTypeWithNameBJ(bj_FORCE_ALL_PLAYERS,Player(15),'E001',"The fifth Hokage",GetRectCenter(bj_mapInitialPlayableArea),null,("|cFFFF0000The strongest Shinobi in this game is: |r"+((udg_string01+"")+("|cFFFF0000 Kills and Mission completed: |r"+I2S(udg_integer10)))),0,2.,true)
call TransmissionFromUnitTypeWithNameBJ(bj_FORCE_ALL_PLAYERS,Player(15),'E001',"The fifth Hokage",GetRectCenter(bj_mapInitialPlayableArea),null,"Other players keep trying, This game of nbr has ended.",0,2.,true)
call CinematicModeBJ(false,bj_FORCE_ALL_PLAYERS)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000The winning team is team 1!!!|r")
call EnableTrigger(udg_trigger56)
call TriggerExecute(udg_trigger56)
call TriggerSleepAction(.5)
call MultiboardDisplay(udg_multiboard01,true)
call MultiboardMinimize(udg_multiboard01,false)
call TriggerSleepAction(15.)
call CustomVictoryBJ(Player(0),true,true)
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
call CustomVictoryBJ(Player(3),true,true)
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(5),true,true)
call CustomDefeatBJ(Player(6),"Fail!")
call CustomDefeatBJ(Player(7),"Fail!")
call CustomDefeatBJ(Player(8),"Fail!")
call CustomDefeatBJ(Player(9),"Fail!")
call CustomDefeatBJ(Player(10),"Fail!")
call CustomDefeatBJ(Player(11),"Fail!")
endfunction
function wH takes nothing returns boolean
return(udg_integer10<udg_integers01[bj_forLoopAIndex])
endfunction
function WH takes nothing returns boolean
return(udg_integer11==12)
endfunction
function yH takes nothing returns boolean
return(udg_integer11==11)
endfunction
function YH takes nothing returns boolean
return(udg_integer11==10)
endfunction
function zH takes nothing returns boolean
return(udg_integer11==9)
endfunction
function ZH takes nothing returns boolean
return(udg_integer11==8)
endfunction
function vj takes nothing returns boolean
return(udg_integer11==7)
endfunction
function ej takes nothing returns boolean
return(udg_integer11==6)
endfunction
function xj takes nothing returns boolean
return(udg_integer11==5)
endfunction
function oj takes nothing returns boolean
return(udg_integer11==4)
endfunction
function rj takes nothing returns boolean
return(udg_integer11==3)
endfunction
function ij takes nothing returns boolean
return(udg_integer11==2)
endfunction
function aj takes nothing returns boolean
return(udg_integer11==1)
endfunction
function nj takes nothing returns nothing
call PauseAllUnitsBJ(true)
call DisableTrigger(udg_trigger59)
call TriggerExecute(udg_trigger57)
call CinematicModeBJ(true,bj_FORCE_ALL_PLAYERS)
call TransmissionFromUnitTypeWithNameBJ(bj_FORCE_ALL_PLAYERS,Player(15),'E001',"The fifth Hokage",GetRectCenter(bj_mapInitialPlayableArea),null,(((((((((("The winner of this game of Naruto Battle Royal is: "+GetPlayerName(Player(6)))+" ")+GetPlayerName(Player(7)))+" ")+GetPlayerName(Player(8)))+" ")+GetPlayerName(Player(9)))+" ")+GetPlayerName(Player(10)))+""),0,2.,true)
set udg_integer10=udg_integers01[1]
set udg_integer11=1
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(wH())then
set udg_integer10=udg_integers01[bj_forLoopAIndex]
set udg_integer11=bj_forLoopAIndex
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(aj())then
set udg_string01=GetPlayerName(Player(0))
else
if(ij())then
set udg_string01=GetPlayerName(Player(1))
else
if(rj())then
set udg_string01=GetPlayerName(Player(2))
else
if(oj())then
set udg_string01=GetPlayerName(Player(3))
else
if(xj())then
set udg_string01=GetPlayerName(Player(4))
else
if(ej())then
set udg_string01=GetPlayerName(Player(5))
else
if(vj())then
set udg_string01=GetPlayerName(Player(6))
else
if(ZH())then
set udg_string01=GetPlayerName(Player(7))
else
if(zH())then
set udg_string01=GetPlayerName(Player(8))
else
if(YH())then
set udg_string01=GetPlayerName(Player(9))
else
if(yH())then
set udg_string01=GetPlayerName(Player(10))
else
if(WH())then
set udg_string01=GetPlayerName(Player(11))
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call TransmissionFromUnitTypeWithNameBJ(bj_FORCE_ALL_PLAYERS,Player(15),'E001',"The fifth Hokage",GetRectCenter(bj_mapInitialPlayableArea),null,("|cFFFF0000The Strongest person of this game is: |r"+((udg_string01+"")+("|cFFFF0000 kills and missions completed: |r"+I2S(udg_integer10)))),0,2.,true)
call TransmissionFromUnitTypeWithNameBJ(bj_FORCE_ALL_PLAYERS,Player(15),'E001',"The fifth Hokage",GetRectCenter(bj_mapInitialPlayableArea),null,"Other players keep trying, this game of Nbr has ended.",0,2.,true)
call CinematicModeBJ(false,bj_FORCE_ALL_PLAYERS)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000The winning team is team 2!!!|r")
call EnableTrigger(udg_trigger56)
call TriggerExecute(udg_trigger56)
call TriggerSleepAction(.5)
call MultiboardDisplay(udg_multiboard01,true)
call MultiboardMinimize(udg_multiboard01,false)
call TriggerSleepAction(15.)
call CustomVictoryBJ(Player(6),true,true)
call CustomVictoryBJ(Player(7),true,true)
call CustomVictoryBJ(Player(8),true,true)
call CustomVictoryBJ(Player(9),true,true)
call CustomVictoryBJ(Player(10),true,true)
call CustomVictoryBJ(Player(11),true,true)
call CustomDefeatBJ(Player(0),"Fail!")
call CustomDefeatBJ(Player(1),"Fail!")
call CustomDefeatBJ(Player(2),"Fail!")
call CustomDefeatBJ(Player(3),"Fail!")
call CustomDefeatBJ(Player(4),"Fail!")
call CustomDefeatBJ(Player(5),"Fail!")
endfunction
function Vj takes nothing returns boolean
return(GetTriggerUnit()!=udg_unit292)and(GetOwningPlayer(GetTriggerUnit())==Player(15))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))
endfunction
function Ej takes nothing returns boolean
return(IsPlayerInForce(GetEnumPlayer(),udg_force01))
endfunction
function Xj takes nothing returns boolean
return(GetPlayerSlotState(GetEnumPlayer())!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_COMPUTER)
endfunction
function Oj takes nothing returns nothing
if(Xj())then
if(Ej())then
set udg_integers04[1]=(udg_integers04[1]+1)
else
set udg_integers04[2]=(udg_integers04[2]+1)
endif
endif
endfunction
function Rj takes nothing returns boolean
return(udg_integers04[1]==0)and(udg_integers04[2]!=0)
endfunction
function Ij takes nothing returns boolean
return(udg_boolean02==false)
endfunction
function Aj takes nothing returns boolean
return(udg_boolean04)
endfunction
function Nj takes nothing returns boolean
return((1+GetPlayerId(GetTriggerPlayer()))==GetUnitUserData(GetTriggerUnit()))
endfunction
function bj takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function Bj takes nothing returns nothing
if(bj())then
if(Nj())then
call SetUnitInvulnerable(GetTriggerUnit(),false)
call SetUnitOwner(GetTriggerUnit(),GetTriggerPlayer(),true)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations02[21])
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),udg_locations02[21],1.)
call UnitAddItemByIdSwapped('I00D',GetTriggerUnit())
call UnitAddItemByIdSwapped('I006',GetTriggerUnit())
call UnitAddItemByIdSwapped('I009',GetTriggerUnit())
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call SetUnitUserData(GetTriggerUnit(),0)
call GroupRemoveUnit(udg_group01,GetTriggerUnit())
set udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetTriggerUnit()
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("("+(udg_strings02[0]+")"))))
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|cFFFF0000 has chosen |r"+GetHeroProperName(GetTriggerUnit()))))
if(Ij())then
set udg_integer43=1
call ForForce(bj_FORCE_ALL_PLAYERS,function Oj)
call TriggerSleepAction(1.)
if(Rj())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("Please single click "+(("|cFFFF0000"+I2S(udg_integers04[2]))+("|r"+" shinobis for the enemy computers."))))
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("Please single click "+(("|cFFFF0000"+I2S(udg_integers04[1]))+("|r"+" shinobis for ally computers."))))
endif
call EnableTrigger(udg_trigger419)
endif
if(Aj())then
set udg_units02[0]=GetTriggerUnit()
call GroupRemoveUnit(udg_group01,udg_units02[0])
endif
else
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,(GetHeroProperName(GetTriggerUnit())+"Are you sure?"))
call SetUnitUserData(GetTriggerUnit(),(1+GetPlayerId(GetTriggerPlayer())))
call TriggerSleepAction(.05)
call SetUnitUserData(GetTriggerUnit(),0)
endif
endif
endfunction
function cj takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(15))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit292)
endfunction
function Cj takes nothing returns boolean
return(IsPlayerInForce(GetEnumPlayer(),udg_force01))
endfunction
function dj takes nothing returns boolean
return(GetPlayerSlotState(GetEnumPlayer())!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_COMPUTER)
endfunction
function Dj takes nothing returns nothing
if(dj())then
if(Cj())then
set udg_integers04[1]=(udg_integers04[1]+1)
else
set udg_integers04[2]=(udg_integers04[2]+1)
endif
endif
endfunction
function fj takes nothing returns boolean
return(udg_integers04[2]==0)and(udg_integers04[1]!=0)
endfunction
function Fj takes nothing returns boolean
return(udg_boolean02==false)
endfunction
function gj takes nothing returns boolean
return(udg_boolean04)
endfunction
function Gj takes nothing returns boolean
return((1+GetPlayerId(GetTriggerPlayer()))==GetUnitUserData(GetTriggerUnit()))
endfunction
function hj takes nothing returns boolean
return(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function Hj takes nothing returns nothing
if(hj())then
if(Gj())then
call SetUnitInvulnerable(GetTriggerUnit(),false)
call SetUnitOwner(GetTriggerUnit(),GetTriggerPlayer(),true)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations02[22])
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),udg_locations02[22],1.)
call UnitAddItemByIdSwapped('I00D',GetTriggerUnit())
call UnitAddItemByIdSwapped('I006',GetTriggerUnit())
call UnitAddItemByIdSwapped('I009',GetTriggerUnit())
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call SetUnitUserData(GetTriggerUnit(),0)
call GroupRemoveUnit(udg_group01,GetTriggerUnit())
set udg_units13[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetTriggerUnit()
call SetPlayerName(Player(-1+((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),(udg_strings03[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("("+(udg_strings02[0]+")"))))
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|cFFFF0000 has chosen |r"+GetHeroProperName(GetTriggerUnit()))))
if(Fj())then
set udg_integer43=2
call ForForce(bj_FORCE_ALL_PLAYERS,function Dj)
call TriggerSleepAction(1.)
if(fj())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("Please single click "+(("|cFFFF0000"+I2S(udg_integers04[1]))+("|r"+" shinobis for the enemy computers.¡£"))))
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("Please single click "+(("|cFFFF0000"+I2S(udg_integers04[2]))+("|r"+" shinobis for ally computers."))))
endif
call EnableTrigger(udg_trigger419)
endif
if(gj())then
set udg_units02[0]=GetTriggerUnit()
call GroupRemoveUnit(udg_group01,udg_units02[0])
endif
else
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,(GetHeroProperName(GetTriggerUnit())+"Are you sure?"))
call SetUnitUserData(GetTriggerUnit(),(1+GetPlayerId(GetTriggerPlayer())))
call TriggerSleepAction(.05)
call SetUnitUserData(GetTriggerUnit(),0)
endif
endif
endfunction
function jj takes nothing returns boolean
return(GetSpellAbilityId()=='A09C')
endfunction
function Jj takes nothing returns nothing
call SetUnitLifePercentBJ(GetSpellTargetUnit(),'d')
call KillUnit(GetTriggerUnit())
endfunction
function kj takes nothing returns boolean
return(GetSpellAbilityId()=='A09A')
endfunction
function Kj takes nothing returns nothing
set udg_unit131=GetTriggerUnit()
set udg_unit132=GetSpellTargetUnit()
call SetUnitTimeScalePercent(udg_unit130,250.)
call SetUnitTimeScalePercent(udg_unit129,20.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitAnimationWithRarity(udg_unit131,"attack",RARITY_FREQUENT)
call SetUnitAnimation(udg_unit132,"death")
call AddSpecialEffectTargetUnitBJ("overhead",udg_unit132,"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosDone.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_unit131,udg_unit132,(I2R(GetHeroStatBJ(0,udg_unit131,true))*10.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(.3)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_unit130,100.)
call SetUnitTimeScalePercent(udg_unit129,100.)
set udg_unit131=null
set udg_unit132=null
endfunction
function lj takes nothing returns boolean
return(GetSpellAbilityId()=='A09B')
endfunction
function Lj takes nothing returns nothing
set udg_unit130=GetTriggerUnit()
set udg_unit129=GetSpellTargetUnit()
call SetPlayerAbilityAvailableBJ(false,'A09B',GetOwningPlayer(udg_unit130))
call UnitAddAbility(udg_unit129,'A098')
call UnitMakeAbilityPermanent(udg_unit129,true,'A098')
call EnableTrigger(udg_trigger67)
endfunction
function mj takes nothing returns boolean
return(GetTriggerUnit()==udg_unit129)
endfunction
function Mj takes nothing returns boolean
return(GetTriggerUnit()==udg_unit130)
endfunction
function pj takes nothing returns nothing
if(mj())then
call UnitMakeAbilityPermanent(udg_unit129,false,'A098')
call SetPlayerAbilityAvailableBJ(true,'A09B',GetOwningPlayer(udg_unit130))
call UnitRemoveAbility(udg_unit129,'A098')
call DisableTrigger(GetTriggeringTrigger())
endif
if(Mj())then
call UnitMakeAbilityPermanent(udg_unit129,false,'A098')
call UnitRemoveAbility(udg_unit129,'A098')
call UnitRemoveAbility(udg_unit129,'BEsh')
call SetPlayerAbilityAvailableBJ(true,'A09B',GetOwningPlayer(udg_unit130))
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function Pj takes nothing returns boolean
return(GetSpellAbilityId()=='A095')
endfunction
function qj takes nothing returns nothing
set udg_unit126=GetTriggerUnit()
set udg_unit125=GetSpellTargetUnit()
call PauseUnit(udg_unit126,true)
call PauseUnit(udg_unit125,true)
call SetUnitPathing(udg_unit126,false)
call SetUnitPathing(udg_unit125,false)
call SetUnitInvulnerable(udg_unit126,true)
call SetUnitInvulnerable(udg_unit125,true)
call UnitAddAbility(udg_unit126,'Amrf')
call UnitAddAbility(udg_unit125,'Amrf')
call SetUnitTimeScalePercent(udg_unit125,1000.)
call SetUnitTimeScalePercent(udg_unit126,200.)
call TriggerSleepAction(.5)
call SetUnitFlyHeight(udg_unit125,150.,10000.)
call SetUnitAnimation(udg_unit125,"death")
set udg_locations02[56]=GetUnitLoc(udg_unit126)
set udg_locations02[23]=xB(udg_locations02[56],20.,GetUnitFacing(udg_unit126))
call SetUnitPositionLoc(udg_unit125,udg_locations02[23])
call RemoveLocation(udg_locations02[56])
call TriggerSleepAction(.2)
call SetUnitAnimation(udg_unit126,"spell")
call EnableTrigger(udg_trigger69)
call TriggerSleepAction(2.)
call ResetUnitAnimation(udg_unit126)
call SetUnitPathing(udg_unit126,true)
call PauseUnit(udg_unit126,false)
call SetUnitInvulnerable(udg_unit126,false)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger69)
call SetUnitFlyHeight(udg_unit126,.0,10000.)
call SetUnitFlyHeight(udg_unit125,.0,10000.)
call UnitRemoveAbility(udg_unit126,'Amrf')
call UnitRemoveAbility(udg_unit125,'Amrf')
call TriggerSleepAction(1.)
call SetUnitInvulnerable(udg_unit125,false)
call UnitDamageTarget(udg_unit126,udg_unit125,(I2R(GetHeroStatBJ(0,udg_unit126,true))*120.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitPathing(udg_unit125,true)
call PauseUnit(udg_unit125,false)
call ResetUnitAnimation(udg_unit126)
call ResetUnitAnimation(udg_unit125)
call SetUnitTimeScalePercent(udg_unit125,'d')
call SetUnitTimeScalePercent(udg_unit126,'d')
call RemoveLocation(udg_locations02[23])
call RemoveLocation(udg_locations02[56])
call RemoveLocation(udg_locations02[57])
call RemoveLocation(udg_locations02[58])
call RemoveLocation(udg_locations02[59])
call RemoveLocation(udg_locations02[60])
set udg_unit126=null
set udg_unit125=null
set udg_real16=.0
endfunction
function Qj takes nothing returns boolean
return(udg_real16<=50.)
endfunction
function sj takes nothing returns boolean
return(udg_real16>=50.)and(udg_real16<=60.)
endfunction
function Sj takes nothing returns boolean
return(udg_real16>=60.)and(udg_real16<=70.)
endfunction
function tj takes nothing returns boolean
return(udg_real16==71.)
endfunction
function Tj takes nothing returns boolean
return(udg_real16>=80.)and(udg_real16<=95.)
endfunction
function uj takes nothing returns boolean
return(udg_real16==90.)
endfunction
function Uj takes nothing returns boolean
return(udg_real16>50.)and(udg_real16<=100.)
endfunction
function wj takes nothing returns boolean
return(udg_real16>=100.)and(udg_real16<=150.)
endfunction
function Wj takes nothing returns nothing
set udg_real16=(udg_real16+1)
set udg_locations02[56]=GetUnitLoc(udg_unit126)
set udg_locations02[59]=GetUnitLoc(udg_unit125)
set udg_locations02[57]=xB(udg_locations02[56],10.,AngleBetweenPoints(udg_locations02[59],udg_locations02[56]))
set udg_locations02[58]=xB(udg_locations02[56],10.,AngleBetweenPoints(udg_locations02[56],udg_locations02[59]))
set udg_locations02[60]=xB(udg_locations02[59],20.,AngleBetweenPoints(udg_locations02[56],udg_locations02[59]))
if(Qj())then
call SetUnitFacing(udg_unit125,(udg_real16*10.))
call SetUnitFlyHeight(udg_unit125,(GetUnitFlyHeight(udg_unit125)+20.),10000.)
endif
if(sj())then
call SetUnitFlyHeight(udg_unit126,(GetUnitFlyHeight(udg_unit126)+8.),10000.)
call SetUnitPositionLocFacingBJ(udg_unit126,udg_locations02[57],AngleBetweenPoints(udg_locations02[56],udg_locations02[59]))
endif
if(Sj())then
call SetUnitPositionLocFacingBJ(udg_unit126,udg_locations02[57],AngleBetweenPoints(udg_locations02[56],udg_locations02[59]))
call SetUnitFlyHeight(udg_unit126,(GetUnitFlyHeight(udg_unit126)-8.),10000.)
endif
if(tj())then
call ResetUnitAnimation(udg_unit126)
endif
if(Tj())then
call SetUnitPositionLocFacingBJ(udg_unit126,udg_locations02[58],AngleBetweenPoints(udg_locations02[56],udg_locations02[58]))
endif
if(uj())then
call SetUnitAnimation(udg_unit126,"attack")
call AddSpecialEffectLocBJ(udg_locations02[59],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
if(Uj())then
call SetUnitFacing(udg_unit125,(udg_real16*10.))
call SetUnitFlyHeight(udg_unit125,(GetUnitFlyHeight(udg_unit125)-25.),10000.)
endif
if(wj())then
call SetUnitPositionLocFacingLocBJ(udg_unit125,udg_locations02[60],udg_locations02[56])
call AddSpecialEffectLocBJ(udg_locations02[59],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
call RemoveLocation(udg_locations02[56])
call RemoveLocation(udg_locations02[57])
call RemoveLocation(udg_locations02[58])
call RemoveLocation(udg_locations02[59])
call RemoveLocation(udg_locations02[60])
endfunction
function yj takes nothing returns boolean
return(GetSpellAbilityId()=='A092')
endfunction
function Yj takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetEnumPlayer(),6.)
endfunction
function zj takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit10)))
endfunction
function Zj takes nothing returns nothing
call UnitDamageTarget(udg_unit10,GetEnumUnit(),(I2R(GetHeroStatBJ(0,udg_unit10,true))*200.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function vJ takes nothing returns nothing
set udg_unit10=GetTriggerUnit()
set udg_locations02[51]=GetUnitLoc(udg_unit10)
call PauseUnit(udg_unit10,true)
call SetUnitInvulnerable(udg_unit10,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit10,"spell")
call TriggerSleepAction(.5)
call CreateNUnitsAtLoc(1,'h01M',GetOwningPlayer(udg_unit10),udg_locations02[51],bj_UNIT_FACING)
set udg_unit02=bj_lastCreatedUnit
call SetUnitPathing(udg_unit02,false)
call TriggerSleepAction(.5)
call SetUnitAnimation(udg_unit10,"attack")
call EnableTrigger(udg_trigger71)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger71)
call ForForce(bj_FORCE_ALL_PLAYERS,function Yj)
set udg_locations02[54]=GetUnitLoc(udg_unit02)
call SetUnitFlyHeight(udg_unit02,-630.,10000.)
set udg_integer53=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[55]=xB(udg_locations02[54],250.,(I2R(bj_forLoopAIndex)*30.))
call AddSpecialEffectLocBJ(udg_locations02[55],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[55])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.5)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[55]=xB(udg_locations02[54],250.,(I2R(bj_forLoopAIndex)*30.))
call AddSpecialEffectLocBJ(udg_locations02[55],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[55])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(500.,udg_locations02[54],Condition(function zj)),function Zj)
call RemoveUnit(udg_unit02)
call SetUnitInvulnerable(udg_unit10,false)
call PauseUnit(udg_unit10,false)
call TriggerSleepAction(2.5)
call ResetToGameCamera(0)
call RemoveLocation(udg_locations02[51])
call RemoveLocation(udg_locations02[53])
call RemoveLocation(udg_locations02[54])
set udg_unit10=null
set udg_unit02=null
set udg_integer53=0
endfunction
function eJ takes nothing returns boolean
return(udg_integer53>=25)and(udg_integer53<=50)
endfunction
function xJ takes nothing returns boolean
return(udg_integer53<25)
endfunction
function oJ takes nothing returns nothing
set udg_integer53=(udg_integer53+1)
set udg_locations02[54]=GetUnitLoc(udg_unit02)
set udg_locations02[53]=xB(udg_locations02[54],20.,GetUnitFacing(udg_unit10))
call SetUnitPositionLoc(udg_unit02,udg_locations02[53])
if(xJ())then
call SetUnitFlyHeight(udg_unit02,(GetUnitFlyHeight(udg_unit02)+28.),10000.)
else
if(eJ())then
call SetUnitFlyHeight(udg_unit02,(GetUnitFlyHeight(udg_unit02)-30.),10000.)
endif
endif
call RemoveLocation(udg_locations02[53])
call RemoveLocation(udg_locations02[54])
endfunction
function rJ takes nothing returns boolean
return(GetSpellAbilityId()=='A091')
endfunction
function iJ takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit262)))
endfunction
function aJ takes nothing returns nothing
set udg_locations02[50]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations02[50],"Abilities\\Spells\\Other\\Drain\\ManaDrainCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitManaBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetEnumUnit())-1000.))
call RemoveLocation(udg_locations02[50])
endfunction
function nJ takes nothing returns nothing
set udg_locations02[48]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[49]=xB(udg_locations02[48],350.,(30.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h01L',GetOwningPlayer(GetTriggerUnit()),udg_locations02[49],(I2R(bj_forLoopAIndex)+30.))
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call CreateDestructableLoc('YTpc',udg_locations02[49],GetRandomReal(0,360),1,0)
set udg_destructables01[bj_forLoopAIndex]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[49])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers06[31]=1
loop
exitwhen udg_integers06[31]>15
call TriggerSleepAction(1.)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(350.,udg_locations02[48],Condition(function iJ)),function aJ)
set udg_integers06[31]=udg_integers06[31]+1
endloop
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call RemoveDestructable(udg_destructables01[bj_forLoopBIndex])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call RemoveLocation(udg_locations02[48])
endfunction
function VJ takes nothing returns boolean
return(GetSpellAbilityId()=='A093')
endfunction
function EJ takes nothing returns nothing
set udg_locations02[47]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h01P',GetOwningPlayer(udg_unit127),udg_locations02[65],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'ngir',GetOwningPlayer(GetTriggerUnit()),udg_locations02[47],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(120.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'nfod',GetOwningPlayer(GetTriggerUnit()),udg_locations02[47],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(120.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'nlrv',GetOwningPlayer(GetTriggerUnit()),udg_locations02[47],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(120.,'BHwe',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations02[47],"Abilities\\Spells\\Undead\\Unsummon\\UnsummonTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[47])
endfunction
function XJ takes nothing returns boolean
return(GetSpellAbilityId()=='A08Z')
endfunction
function OJ takes nothing returns nothing
set udg_unit123=GetTriggerUnit()
set udg_unit124=GetSpellTargetUnit()
set udg_locations02[45]=GetUnitLoc(udg_unit124)
call PauseUnit(udg_unit123,true)
call PauseUnit(udg_unit124,true)
call SetUnitInvulnerable(udg_unit123,true)
call UnitAddAbility(udg_unit124,'ACm3')
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit123,"spell")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[46]=xB(udg_locations02[45],300.,udg_real15)
call CreateNUnitsAtLoc(1,'h01K',GetOwningPlayer(udg_unit124),udg_locations02[46],(AngleBetweenPoints(udg_locations02[46],udg_locations02[45])+30.))
call UnitApplyTimedLifeBJ(15.,'BTLF',bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call AddLightningLoc("DRAL",udg_locations02[46],udg_locations02[45])
set udg_lightnings01[bj_forLoopAIndex]=bj_lastCreatedLightning
set udg_real15=(udg_real15+72.)
call RemoveLocation(udg_locations02[46])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
call UnitDamageTarget(udg_unit123,udg_unit124,(I2R(GetHeroStatBJ(2,udg_unit123,true))*60.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=5
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call DestroyLightning(udg_lightnings01[bj_forLoopBIndex])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call PauseUnit(udg_unit123,false)
call PauseUnit(udg_unit124,false)
call SetUnitInvulnerable(udg_unit123,false)
call UnitRemoveAbility(udg_unit124,'ACm3')
call ResetUnitAnimation(udg_unit123)
call RemoveLocation(udg_locations02[45])
set udg_unit123=null
set udg_unit124=null
endfunction
function RJ takes nothing returns boolean
return(GetSpellAbilityId()=='A08X')
endfunction
function IJ takes nothing returns nothing
set udg_unit122=GetSpellTargetUnit()
call SetHeroStr(udg_unit122,(GetHeroStr(udg_unit122,true)/2),true)
call SetHeroAgi(udg_unit122,(GetHeroAgi(udg_unit122,true)/2),true)
call SetHeroInt(udg_unit122,(GetHeroInt(udg_unit122,true)/2),true)
call TriggerSleepAction(15.)
call SetHeroStr(udg_unit122,(GetHeroStr(udg_unit122,true)*2),true)
call SetHeroAgi(udg_unit122,(GetHeroAgi(udg_unit122,true)*2),true)
call SetHeroInt(udg_unit122,(GetHeroInt(udg_unit122,true)*2),true)
set udg_unit122=null
endfunction
function AJ takes nothing returns boolean
return(GetSpellAbilityId()=='A08U')
endfunction
function NJ takes nothing returns nothing
set udg_unit118=GetTriggerUnit()
set udg_locations02[38]=GetUnitLoc(udg_unit118)
call PauseUnit(udg_unit118,true)
call SetUnitInvulnerable(udg_unit118,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit118,"spell")
call CreateNUnitsAtLoc(1,'h015',GetOwningPlayer(udg_unit118),udg_locations02[38],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(10.)
call PauseUnit(udg_unit118,false)
call SetUnitInvulnerable(udg_unit118,false)
call ResetUnitAnimation(udg_unit118)
call RemoveLocation(udg_locations02[38])
set udg_unit118=null
endfunction
function bJ takes nothing returns boolean
return(GetSpellAbilityId()=='A08U')
endfunction
function BJ takes nothing returns nothing
set udg_unit119=GetTriggerUnit()
set udg_locations02[39]=GetUnitLoc(udg_unit119)
call PauseUnit(udg_unit119,true)
call SetUnitInvulnerable(udg_unit119,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit119,"spell")
call CreateNUnitsAtLoc(1,'h015',GetOwningPlayer(udg_unit119),udg_locations02[39],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(10.)
call PauseUnit(udg_unit119,false)
call SetUnitInvulnerable(udg_unit119,false)
call ResetUnitAnimation(udg_unit119)
call RemoveLocation(udg_locations02[39])
set udg_unit119=null
endfunction
function cJ takes nothing returns boolean
return(GetSpellAbilityId()=='A08U')
endfunction
function CJ takes nothing returns nothing
set udg_unit121=GetTriggerUnit()
set udg_locations02[40]=GetUnitLoc(udg_unit121)
call PauseUnit(udg_unit121,true)
call SetUnitInvulnerable(udg_unit121,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit121,"spell")
call CreateNUnitsAtLoc(1,'h015',GetOwningPlayer(udg_unit121),udg_locations02[40],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(10.)
call PauseUnit(udg_unit121,false)
call SetUnitInvulnerable(udg_unit121,false)
call ResetUnitAnimation(udg_unit121)
call RemoveLocation(udg_locations02[40])
set udg_unit121=null
endfunction
function dJ takes nothing returns boolean
return(GetSpellAbilityId()=='A08U')
endfunction
function DJ takes nothing returns nothing
set udg_unit120=GetTriggerUnit()
set udg_locations02[41]=GetUnitLoc(udg_unit120)
call PauseUnit(udg_unit120,true)
call SetUnitInvulnerable(udg_unit120,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit120,"spell")
call CreateNUnitsAtLoc(1,'h015',GetOwningPlayer(udg_unit120),udg_locations02[41],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(10.)
call PauseUnit(udg_unit120,false)
call SetUnitInvulnerable(udg_unit120,false)
call ResetUnitAnimation(udg_unit120)
call RemoveLocation(udg_locations02[41])
set udg_unit120=null
endfunction
function fJ takes nothing returns boolean
return(GetSpellAbilityId()=='A08S')
endfunction
function FJ takes nothing returns nothing
set udg_unit117=GetTriggerUnit()
set udg_locations02[42]=GetSpellTargetLoc()
set udg_locations02[35]=GetUnitLoc(udg_unit117)
set udg_locations02[36]=xB(udg_locations02[35],100.,GetUnitFacing(udg_unit117))
call PauseUnit(udg_unit117,true)
call SetUnitInvulnerable(udg_unit117,true)
call CreateNUnitsAtLoc(1,'h01J',GetOwningPlayer(udg_unit117),udg_locations02[36],GetUnitFacing(udg_unit117))
set udg_unit114=bj_lastCreatedUnit
call SetUnitPathing(udg_unit114,false)
call RemoveLocation(udg_locations02[36])
call EnableTrigger(udg_trigger81)
call TriggerSleepAction(3.)
call DisableTrigger(udg_trigger81)
call RemoveUnit(udg_unit114)
call SetUnitInvulnerable(udg_unit117,false)
call PauseUnit(udg_unit117,false)
call RemoveLocation(udg_locations02[35])
call RemoveLocation(udg_locations02[42])
set udg_unit114=null
set udg_unit117=null
endfunction
function gJ takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit117)))
endfunction
function GJ takes nothing returns nothing
call UnitDamageTarget(udg_unit117,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit117,true))*4.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function hJ takes nothing returns nothing
set udg_locations02[36]=GetUnitLoc(udg_unit114)
set udg_locations02[37]=xB(udg_locations02[36],30.,AngleBetweenPoints(udg_locations02[35],udg_locations02[42]))
call SetUnitPositionLoc(udg_unit114,udg_locations02[37])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(250.,udg_locations02[37],Condition(function gJ)),function GJ)
call AddSpecialEffectLocBJ(udg_locations02[36],"Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[36])
call RemoveLocation(udg_locations02[37])
endfunction
function HJ takes nothing returns boolean
return(GetSpellAbilityId()=='A08F')
endfunction
function jJ takes nothing returns nothing
set udg_unit113=GetSpellTargetUnit()
call SetHeroStr(udg_unit113,(GetHeroStr(udg_unit113,true)*2),true)
call SetHeroAgi(udg_unit113,(GetHeroAgi(udg_unit113,true)*2),true)
call SetHeroInt(udg_unit113,(GetHeroInt(udg_unit113,true)*2),true)
call TriggerSleepAction(15.)
call SetHeroStr(udg_unit113,(GetHeroStr(udg_unit113,true)/2),true)
call SetHeroAgi(udg_unit113,(GetHeroAgi(udg_unit113,true)/2),true)
call SetHeroInt(udg_unit113,(GetHeroInt(udg_unit113,true)/2),true)
set udg_unit113=null
endfunction
function JJ takes nothing returns boolean
return(GetSpellAbilityId()=='A07P')
endfunction
function kJ takes nothing returns nothing
set udg_unit108=GetTriggerUnit()
set udg_unit109=GetSpellTargetUnit()
call DisplayTextToPlayer(GetOwningPlayer(udg_unit109),0,0,"|cFFFF0000You are hit by Hidan's curse, you will now take the same damage as Hidan takes.|r")
call TriggerRegisterUnitEvent(udg_trigger84,udg_unit108,EVENT_UNIT_DAMAGED)
call EnableTrigger(udg_trigger84)
call TriggerSleepAction(30.)
call DisableTrigger(udg_trigger84)
set udg_unit108=null
set udg_unit109=null
endfunction
function KJ takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(.01)
call UnitDamageTarget(udg_unit108,udg_unit109,(GetEventDamage()*2.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function lJ takes nothing returns boolean
return(GetSpellAbilityId()=='A07V')
endfunction
function LJ takes nothing returns boolean
return(udg_real11>=udg_real10)
endfunction
function mJ takes nothing returns nothing
set udg_unit98=GetTriggerUnit()
set udg_unit99=GetSpellTargetUnit()
set udg_locations02[93]=GetUnitLoc(udg_unit99)
call CreateNUnitsAtLoc(1,'h00I',GetOwningPlayer(udg_unit98),udg_locations02[93],bj_UNIT_FACING)
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',1.)
call ShowUnitHide(bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852189,udg_unit99)
call CreateNUnitsAtLoc(1,'h00I',GetOwningPlayer(udg_unit98),udg_locations02[93],bj_UNIT_FACING)
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',10.)
call ShowUnitHide(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852121,udg_locations02[93])
call CameraSetSourceNoiseForPlayer(GetOwningPlayer(udg_unit99),50.,.1)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_unit99),50.)
call RemoveLocation(udg_locations02[93])
call TriggerSleepAction(10.)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit99),0)
set udg_locations02[93]=GetUnitLoc(udg_unit99)
set udg_locations02[94]=GetUnitLoc(udg_unit98)
set udg_real10=(DistanceBetweenPoints(udg_locations02[94],udg_locations02[93])/20.)
set udg_real11=GetRandomReal(.0,100.)
if(LJ())then
set udg_real11=.0
call UnitDamageTarget(udg_unit98,udg_unit99,(I2R(GetHeroStatBJ(2,udg_unit98,true))*(110.*(1.-(udg_real10/100.)))),false,true,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call AddSpecialEffectLocBJ(udg_locations02[93],"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
set udg_effects01['y']=bj_lastCreatedEffect
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[95]=xB(udg_locations02[93],100.,udg_real11)
call AddSpecialEffectLocBJ(xB(GetUnitLoc(udg_unit99),100.,udg_real11),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
set udg_effects01[(bj_forLoopAIndex+'y')]=bj_lastCreatedEffect
set udg_real11=(udg_real11+36.)
call RemoveLocation(udg_locations02[95])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call DestroyEffect(udg_effects01[(bj_forLoopAIndex+'y')])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call DestroyEffect(udg_effects01['y'])
else
call CreateTextTagLocBJ("Distance too great, you failed to hit the enemy.......",udg_locations02[94],0,10,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
endif
call RemoveLocation(udg_locations02[93])
call RemoveLocation(udg_locations02[94])
set udg_unit98=null
set udg_unit99=null
set udg_real10=.0
set udg_real11=.0
endfunction
function MJ takes nothing returns boolean
return(GetSpellAbilityId()=='A074')
endfunction
function pJ takes nothing returns nothing
set udg_unit96=GetTriggerUnit()
set udg_locations02['d']=GetSpellTargetLoc()
set udg_locations02[98]=GetUnitLoc(udg_unit96)
set udg_locations02[99]=xB(udg_locations02[98],50.,AngleBetweenPoints(udg_locations02[98],udg_locations02['d']))
call CreateNUnitsAtLoc(1,'h01A',GetOwningPlayer(udg_unit96),udg_locations02[99],bj_UNIT_FACING)
set udg_unit97=bj_lastCreatedUnit
set udg_locations02['e']=xB(udg_locations02[98],2000.,GetUnitFacing(udg_unit96))
call IssuePointOrderByIdLoc(udg_unit97,851986,udg_locations02['e'])
call UnitApplyTimedLifeBJ(10.,'BHwe',udg_unit97)
call SetUnitPathing(udg_unit97,false)
call EnableTrigger(udg_trigger87)
call TriggerSleepAction(10.)
call DisableTrigger(udg_trigger87)
call RemoveUnit(udg_unit97)
call RemoveLocation(udg_locations02[98])
call RemoveLocation(udg_locations02[99])
call RemoveLocation(udg_locations02['d'])
call RemoveLocation(udg_locations02['e'])
call RemoveLocation(udg_locations02['f'])
call RemoveLocation(udg_locations02['g'])
set udg_unit96=null
set udg_unit97=null
set udg_unit110=null
endfunction
function PJ takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02['f']=GetUnitLoc(udg_unit97)
set udg_locations02['g']=xB(udg_locations02['f'],100.,GetUnitFacing(udg_unit110))
call CreateNUnitsAtLoc(1,'h00L',GetOwningPlayer(udg_unit96),udg_locations02['f'],GetRandomReal(0,360.))
set udg_unit110=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit110)
call ShowUnitHide(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(udg_unit110,852218,udg_locations02['g'])
call RemoveLocation(udg_locations02['f'])
call RemoveLocation(udg_locations02['g'])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function qJ takes nothing returns boolean
return(GetSpellAbilityId()=='A073')
endfunction
function QJ takes nothing returns nothing
set udg_locations02['h']=GetSpellTargetLoc()
call TerrainDeformationCraterBJ(13.,false,udg_locations02['h'],400.,500.)
call AddSpecialEffectLocBJ(udg_locations02['h'],"Abilities\\Spells\\Human\\FlameStrike\\FlameStrikeTarget.mdl")
set udg_effects01[139]=bj_lastCreatedEffect
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02['i']=xB(udg_locations02['h'],300.,(I2R(bj_forLoopAIndex)*12.))
call CreateNUnitsAtLoc(1,'h018',GetOwningPlayer(udg_unit281),udg_locations02['i'],((I2R(bj_forLoopAIndex)*12.)+180.))
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02['i'])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger89)
call TriggerSleepAction(10.)
call DisableTrigger(udg_trigger89)
call DestroyEffect(udg_effects01[139])
call RemoveLocation(udg_locations02['h'])
call RemoveLocation(udg_locations02['j'])
call RemoveLocation(udg_locations02['k'])
endfunction
function sJ takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02['h'],udg_locations02['j'])>=40.)
endfunction
function SJ takes nothing returns boolean
return(GetEnumUnit()!=udg_unit281)and(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit281)))and(GetUnitAbilityLevelSwapped('Avul',GetEnumUnit())==0)
endfunction
function tJ takes nothing returns nothing
if(SJ())then
set udg_locations02['j']=GetUnitLoc(GetEnumUnit())
set udg_locations02['k']=xB(udg_locations02['j'],20.,AngleBetweenPoints(udg_locations02['j'],udg_locations02['h']))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations02['k']))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations02['k']))
call UnitDamageTarget(udg_unit281,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit281,true))/2.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
if(sJ())then
call AddSpecialEffectLocBJ(udg_locations02['k'],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
call RemoveLocation(udg_locations02['j'])
call RemoveLocation(udg_locations02['k'])
endif
endfunction
function TJ takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(400.,udg_locations02['h']),function tJ)
endfunction
function uJ takes nothing returns boolean
return(GetSpellAbilityId()=='A05B')
endfunction
function UJ takes nothing returns nothing
call PauseUnit(udg_unit255,true)
call SetUnitInvulnerable(udg_unit255,true)
call SetUnitPathing(udg_unit255,false)
call TriggerSleepAction(.5)
call SetUnitAnimationByIndex(udg_unit255,4)
call EnableTrigger(udg_trigger91)
call TriggerSleepAction(1.5)
call DisableTrigger(udg_trigger91)
call SetUnitInvulnerable(udg_unit255,false)
call SetUnitPathing(udg_unit255,true)
call PauseUnit(udg_unit255,false)
call ResetUnitAnimation(udg_unit255)
endfunction
function wJ takes nothing returns nothing
call UnitDamageTarget(udg_unit255,GetEnumUnit(),(I2R(GetHeroInt(udg_unit255,true))*4.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function WJ takes nothing returns nothing
set udg_locations02['y']=GetUnitLoc(udg_unit255)
set udg_locations02['z']=xB(udg_locations02['y'],20.,GetUnitFacing(udg_unit255))
call AddSpecialEffectLocBJ(udg_locations02['y'],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitPositionLoc(udg_unit255,udg_locations02['z'])
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(150.,udg_locations02['z']),function wJ)
call RemoveLocation(udg_locations02['y'])
call RemoveLocation(udg_locations02['z'])
endfunction
function yJ takes nothing returns boolean
return(GetSpellAbilityId()=='A049')
endfunction
function YJ takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit81)))
endfunction
function zJ takes nothing returns nothing
if(YJ())then
set udg_locations02[131]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00L',GetOwningPlayer(udg_unit81),udg_locations02[131],bj_UNIT_FACING)
set udg_unit82=bj_lastCreatedUnit
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetEnumUnit(),0)
call ShowUnitHide(udg_unit82)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit82)
call IssueTargetOrderById(udg_unit82,852171,GetEnumUnit())
call RemoveLocation(udg_locations02[131])
endif
endfunction
function ZJ takes nothing returns nothing
set udg_locations02[130]=GetSpellTargetLoc()
set udg_unit81=GetTriggerUnit()
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(600.,udg_locations02[130]),function zJ)
set udg_unit81=null
set udg_unit82=null
call RemoveLocation(udg_locations02[130])
endfunction
function vk takes nothing returns boolean
return(GetSpellAbilityId()=='A06V')
endfunction
function ek takes nothing returns nothing
set udg_unit77=GetTriggerUnit()
call SetUnitVertexColor(udg_unit77,255,0,0,255)
call SetUnitMoveSpeed(udg_unit77,522.)
call TriggerSleepAction(60.)
call SetUnitMoveSpeed(udg_unit77,450.)
call SetUnitVertexColor(udg_unit77,255,255,255,255)
set udg_unit77=null
endfunction
function xk takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='n00L')and(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00H')==false)
endfunction
function ok takes nothing returns nothing
set udg_unit01=GetSummoningUnit()
set udg_unit08=GetSummonedUnit()
call PauseUnit(udg_unit01,true)
call TriggerSleepAction(.5)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cFFFF0000Gaara summoned the mighty Shukaku. If you attack Gaara with a physical attack, the Shukaku will disappear.|r")
call SetUnitAnimation(udg_unit01,"spell channel")
call UnitAddAbility(udg_unit01,'Amim')
call EnableTrigger(udg_trigger95)
call TriggerRegisterUnitLifeEvent(udg_trigger95,udg_unit01,LESS_THAN_OR_EQUAL,1.)
call TriggerRegisterUnitEvent(udg_trigger95,udg_unit01,EVENT_UNIT_ATTACKED)
call EnableTrigger(udg_trigger96)
call TriggerRegisterUnitEvent(udg_trigger96,udg_unit08,EVENT_UNIT_DEATH)
endfunction
function rk takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call UnitRemoveAbility(udg_unit01,'Amim')
call KillUnit(udg_unit08)
call PauseUnit(udg_unit01,false)
call ResetUnitAnimation(udg_unit01)
set udg_unit01=null
set udg_unit08=null
call DisableTrigger(udg_trigger96)
endfunction
function ik takes nothing returns nothing
call PauseUnit(udg_unit01,false)
call ResetUnitAnimation(udg_unit01)
call UnitRemoveAbility(udg_unit01,'Amim')
set udg_unit01=null
set udg_unit08=null
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger95)
endfunction
function ak takes nothing returns boolean
return(GetSpellAbilityId()=='A035')
endfunction
function nk takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit49,'B013'))
endfunction
function Vk takes nothing returns boolean
return(IsUnitType(udg_unit50,UNIT_TYPE_HERO)!=null)
endfunction
function Ek takes nothing returns boolean
return(IsUnitType(udg_unit50,UNIT_TYPE_HERO)!=null)
endfunction
function Xk takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit49,'B013'))
endfunction
function Ok takes nothing returns boolean
return(IsUnitType(udg_unit50,UNIT_TYPE_HERO)!=null)
endfunction
function Rk takes nothing returns nothing
set udg_unit49=GetTriggerUnit()
set udg_unit50=GetSpellTargetUnit()
set udg_locations01[1]=GetUnitLoc(udg_unit50)
set udg_real03=.0
call SetUnitPathing(udg_unit49,false)
call PauseUnit(udg_unit49,true)
call PauseUnit(udg_unit50,true)
call SetUnitInvulnerable(udg_unit49,true)
call SetUnitInvulnerable(udg_unit50,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit49,"walk")
call EnableTrigger(udg_trigger98)
call TriggerSleepAction(3.)
call DisableTrigger(udg_trigger98)
call ResetUnitAnimation(udg_unit49)
call SetUnitPositionLoc(udg_unit49,udg_locations01[1])
call ShowUnitHide(udg_unit49)
call UnitAddAbility(udg_unit49,'Amrf')
call UnitAddAbility(udg_unit50,'Amrf')
call CreateNUnitsAtLoc(1,'h02L',GetOwningPlayer(udg_unit49),GetUnitLoc(udg_unit50),GetUnitFacing(udg_unit49))
set udg_unit51=bj_lastCreatedUnit
if(nk())then
call SetUnitVertexColor(udg_unit51,255,50,50,255)
endif
call SetUnitAnimationByIndex(udg_unit51,3)
call TriggerSleepAction(.5)
call AddSpecialEffectLocBJ(udg_locations01[1],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitFlyHeight(udg_unit50,80.,3000.)
call TriggerSleepAction(.6)
set udg_integers06[0]=1
loop
exitwhen udg_integers06[0]>5
call SetUnitFlyHeight(udg_unit51,(GetUnitFlyHeight(udg_unit51)+50.),3000.)
call SetUnitAnimationByIndex(udg_unit51,3)
call TriggerSleepAction(.6)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit50,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitFlyHeight(udg_unit50,(GetUnitFlyHeight(udg_unit51)+80.),3000.)
set udg_integers06[0]=udg_integers06[0]+1
endloop
call SetUnitFlyHeight(udg_unit49,500.,3000.)
call SetUnitFlyHeight(udg_unit50,500.,3000.)
call RemoveUnit(udg_unit51)
set udg_unit51=null
call SetUnitPositionLocFacingBJ(udg_unit49,xB(GetUnitLoc(udg_unit50),80.,(GetUnitFacing(udg_unit50)-180.)),GetUnitFacing(udg_unit50))
call SetUnitAnimation(udg_unit50,"stand")
call TriggerSleepAction(.5)
call ShowUnitShow(udg_unit49)
call SetUnitAnimationByIndex(udg_unit49,9)
if(Vk())then
call RotateCameraAroundLocBJ(360.,udg_locations01[1],GetOwningPlayer(udg_unit50),2.)
endif
call RotateCameraAroundLocBJ(360.,udg_locations01[1],GetOwningPlayer(udg_unit49),2.)
call TriggerSleepAction(2.)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit49,"Abilities\\Weapons\\ZigguratMissile\\ZigguratMissile.mdl")
set udg_effects01[24]=bj_lastCreatedEffect
set udg_integers06[0]=1
loop
exitwhen udg_integers06[0]>20
call SetUnitAnimationByIndex(udg_unit49,GetRandomInt(2,3))
call PlaySoundOnUnitBJ(udg_sound01,'d',udg_unit50)
call TriggerSleepAction(.15)
call SetUnitAnimation(udg_unit50,"death")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit50,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitFlyHeight(udg_unit50,GetRandomReal(100.,650.),10000.)
call SetUnitPositionLoc(udg_unit50,xB(GetUnitLoc(udg_unit50),800.,GetUnitFacing(udg_unit49)))
if(Ek())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit50),GetUnitLoc(udg_unit50),.2)
endif
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit49),GetUnitLoc(udg_unit50),.2)
call SetUnitPositionLocFacingLocBJ(udg_unit49,xB(GetUnitLoc(udg_unit50),50.,GetUnitFacing(udg_unit49)),GetUnitLoc(udg_unit50))
call SetUnitFlyHeight(udg_unit49,GetUnitFlyHeight(udg_unit50),10000.)
set udg_integers06[0]=udg_integers06[0]+1
endloop
call ResetUnitAnimation(udg_unit50)
call ShowUnitHide(udg_unit49)
call KillSoundWhenDone(udg_sound01)
call CreateNUnitsAtLoc(1,'h02M',GetOwningPlayer(udg_unit49),GetUnitLoc(udg_unit50),GetUnitFacing(udg_unit49))
set udg_unit51=bj_lastCreatedUnit
if(Xk())then
call SetUnitVertexColor(udg_unit51,255,50,50,255)
endif
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit49),udg_unit50,0,0,false)
if(Ok())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit50),udg_unit50,0,0,false)
endif
call AddSpecialEffectTargetUnitBJ("hand",udg_unit51,"Abilities\\Spells\\Orc\\Bloodlust\\BloodlustTarget.mdl")
set udg_effects01[25]=bj_lastCreatedEffect
call SetUnitFlyHeight(udg_unit49,.0,100000000.)
call SetUnitFlyHeight(udg_unit50,350.,100000000.)
call SetUnitFlyHeight(udg_unit51,500.,100000000.)
call TriggerSleepAction(.5)
call SetUnitAnimationByIndex(udg_unit51,3)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit50,"Abilities\\Spells\\Human\\FlameStrike\\FlameStrikeTarget.mdl")
set udg_effects01[26]=bj_lastCreatedEffect
call TriggerSleepAction(.5)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit50,"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
set udg_effects01[27]=bj_lastCreatedEffect
call SetUnitAnimation(udg_unit50,"death")
call SetUnitFlyHeight(udg_unit50,.0,2000.)
call RemoveUnit(udg_unit51)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit50,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
set udg_effects01[28]=bj_lastCreatedEffect
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(xB(GetUnitLoc(udg_unit50),100.,(I2R(bj_forLoopAIndex)*30.)),"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
set udg_effects01[(bj_forLoopAIndex+28)]=bj_lastCreatedEffect
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call DestroyEffect(udg_effects01[(bj_forLoopBIndex+28)])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call DestroyEffect(udg_effects01[24])
call ShowUnitShow(udg_unit49)
call ResetUnitAnimation(udg_unit49)
call ResetUnitAnimation(udg_unit50)
call DestroyEffect(udg_effects01[25])
call DestroyEffect(udg_effects01[26])
call DestroyEffect(udg_effects01[27])
call DestroyEffect(udg_effects01[28])
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit49),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit50),0)
call SetUnitPathing(udg_unit49,true)
call UnitRemoveAbility(udg_unit49,'Amrf')
call UnitRemoveAbility(udg_unit50,'Amrf')
call PauseUnit(udg_unit49,false)
call PauseUnit(udg_unit50,false)
call SetUnitInvulnerable(udg_unit49,false)
call SetUnitInvulnerable(udg_unit50,false)
call UnitDamageTargetBJ(udg_unit49,udg_unit50,(I2R(GetHeroStatBJ(0,udg_unit49,true))*150.),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL)
call UnitDamageTargetBJ(udg_unit49,udg_unit49,(I2R(GetHeroStatBJ(0,udg_unit49,false))*50.),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL)
call SelectUnitForPlayerSingle(udg_unit49,GetOwningPlayer(udg_unit49))
set udg_unit49=null
set udg_unit50=null
set udg_real03=.0
endfunction
function Ik takes nothing returns nothing
set udg_real03=(udg_real03+30.)
set udg_locations01[2]=xB(udg_locations01[1],400.,udg_real03)
call SetUnitPositionLocFacingBJ(udg_unit49,udg_locations01[2],(udg_real03+90.))
call SetUnitAnimation(udg_unit49,"walk")
call AddSpecialEffectLocBJ(udg_locations01[2],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations01[2])
endfunction
function Ak takes nothing returns boolean
return(GetSpellAbilityId()=='A035')
endfunction
function Nk takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit62,'B013'))
endfunction
function bk takes nothing returns boolean
return(IsUnitType(udg_unit64,UNIT_TYPE_HERO)!=null)
endfunction
function Bk takes nothing returns boolean
return(IsUnitType(udg_unit64,UNIT_TYPE_HERO)!=null)
endfunction
function ck takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit62,'B013'))
endfunction
function Ck takes nothing returns boolean
return(IsUnitType(udg_unit64,UNIT_TYPE_HERO)!=null)
endfunction
function dk takes nothing returns nothing
set udg_unit62=GetTriggerUnit()
set udg_unit64=GetSpellTargetUnit()
set udg_locations01[3]=GetUnitLoc(udg_unit64)
set udg_real04=.0
call SetUnitPathing(udg_unit62,false)
call SetUnitInvulnerable(udg_unit62,true)
call SetUnitInvulnerable(udg_unit64,true)
call PauseUnit(udg_unit62,true)
call PauseUnit(udg_unit64,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit62,"walk")
call EnableTrigger(udg_trigger100)
call TriggerSleepAction(3.)
call DisableTrigger(udg_trigger100)
call ResetUnitAnimation(udg_unit49)
call SetUnitPositionLoc(udg_unit62,udg_locations01[3])
call ShowUnitHide(udg_unit62)
call UnitAddAbility(udg_unit62,'Amrf')
call UnitAddAbility(udg_unit64,'Amrf')
call CreateNUnitsAtLoc(1,'h005',GetOwningPlayer(udg_unit62),GetUnitLoc(udg_unit64),GetUnitFacing(udg_unit62))
set udg_unit63=bj_lastCreatedUnit
if(Nk())then
call SetUnitVertexColor(udg_unit63,255,50,50,255)
endif
call SetUnitAnimationByIndex(udg_unit63,3)
call TriggerSleepAction(.5)
call AddSpecialEffectLocBJ(udg_locations01[3],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitFlyHeight(udg_unit64,80.,3000.)
call TriggerSleepAction(.6)
set udg_integers06[1]=1
loop
exitwhen udg_integers06[1]>5
call SetUnitFlyHeight(udg_unit63,(GetUnitFlyHeight(udg_unit63)+50.),3000.)
call SetUnitAnimationByIndex(udg_unit63,3)
call TriggerSleepAction(.6)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit64,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitFlyHeight(udg_unit64,(GetUnitFlyHeight(udg_unit63)+80.),3000.)
set udg_integers06[1]=udg_integers06[1]+1
endloop
call SetUnitFlyHeight(udg_unit62,500.,3000.)
call SetUnitFlyHeight(udg_unit64,500.,3000.)
call RemoveUnit(udg_unit63)
set udg_unit63=null
call SetUnitPositionLocFacingBJ(udg_unit62,xB(GetUnitLoc(udg_unit64),80.,(GetUnitFacing(udg_unit64)-180.)),GetUnitFacing(udg_unit64))
call SetUnitAnimation(udg_unit64,"stand")
call TriggerSleepAction(.5)
call ShowUnitShow(udg_unit62)
call SetUnitAnimationByIndex(udg_unit62,9)
if(bk())then
call RotateCameraAroundLocBJ(360.,udg_locations01[3],GetOwningPlayer(udg_unit64),2.)
endif
call RotateCameraAroundLocBJ(360.,udg_locations01[3],GetOwningPlayer(udg_unit62),2.)
call TriggerSleepAction(2.)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit62,"Abilities\\Weapons\\ZigguratMissile\\ZigguratMissile.mdl")
set udg_effects01[41]=bj_lastCreatedEffect
set udg_integers06[1]=1
loop
exitwhen udg_integers06[1]>20
call SetUnitAnimationByIndex(udg_unit62,GetRandomInt(2,3))
call PlaySoundOnUnitBJ(udg_sound01,'d',udg_unit64)
call TriggerSleepAction(.15)
call SetUnitAnimation(udg_unit64,"death")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit64,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitFlyHeight(udg_unit64,GetRandomReal(100.,650.),10000.)
call SetUnitPositionLoc(udg_unit64,xB(GetUnitLoc(udg_unit64),800.,GetUnitFacing(udg_unit62)))
if(Bk())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit64),GetUnitLoc(udg_unit64),.2)
endif
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit62),GetUnitLoc(udg_unit64),.2)
call SetUnitPositionLocFacingLocBJ(udg_unit62,xB(GetUnitLoc(udg_unit64),50.,GetUnitFacing(udg_unit62)),GetUnitLoc(udg_unit64))
call SetUnitFlyHeight(udg_unit62,GetUnitFlyHeight(udg_unit64),10000.)
set udg_integers06[1]=udg_integers06[1]+1
endloop
call ResetUnitAnimation(udg_unit64)
call ShowUnitHide(udg_unit62)
call KillSoundWhenDone(udg_sound01)
call CreateNUnitsAtLoc(1,'h006',GetOwningPlayer(udg_unit62),GetUnitLoc(udg_unit64),GetUnitFacing(udg_unit62))
set udg_unit63=bj_lastCreatedUnit
if(ck())then
call SetUnitVertexColor(udg_unit63,255,50,50,255)
endif
if(Ck())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit64),udg_unit64,0,0,false)
endif
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit62),udg_unit64,0,0,false)
call AddSpecialEffectTargetUnitBJ("hand",udg_unit63,"Abilities\\Spells\\Orc\\Bloodlust\\BloodlustTarget.mdl")
set udg_effects01[42]=bj_lastCreatedEffect
call SetUnitFlyHeight(udg_unit62,.0,100000000.)
call SetUnitFlyHeight(udg_unit64,350.,100000000.)
call SetUnitFlyHeight(udg_unit63,500.,100000000.)
call TriggerSleepAction(.5)
call SetUnitAnimationByIndex(udg_unit63,3)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit64,"Abilities\\Spells\\Human\\FlameStrike\\FlameStrikeTarget.mdl")
set udg_effects01[43]=bj_lastCreatedEffect
call TriggerSleepAction(.5)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit64,"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
set udg_effects01[44]=bj_lastCreatedEffect
call SetUnitAnimation(udg_unit64,"death")
call SetUnitFlyHeight(udg_unit64,.0,2000.)
call RemoveUnit(udg_unit63)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit64,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
set udg_effects01[45]=bj_lastCreatedEffect
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(xB(GetUnitLoc(udg_unit64),100.,(I2R(bj_forLoopAIndex)*30.)),"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
set udg_effects01[(bj_forLoopAIndex+45)]=bj_lastCreatedEffect
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call DestroyEffect(udg_effects01[(bj_forLoopBIndex+45)])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call DestroyEffect(udg_effects01[41])
call ShowUnitShow(udg_unit62)
call ResetUnitAnimation(udg_unit62)
call ResetUnitAnimation(udg_unit64)
call DestroyEffect(udg_effects01[42])
call DestroyEffect(udg_effects01[43])
call DestroyEffect(udg_effects01[44])
call DestroyEffect(udg_effects01[45])
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit62),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit64),0)
call SetUnitPathing(udg_unit62,true)
call UnitRemoveAbility(udg_unit62,'Amrf')
call UnitRemoveAbility(udg_unit64,'Amrf')
call PauseUnit(udg_unit62,false)
call PauseUnit(udg_unit64,false)
call SetUnitInvulnerable(udg_unit62,false)
call SetUnitInvulnerable(udg_unit64,false)
call UnitDamageTargetBJ(udg_unit62,udg_unit64,(I2R(GetHeroStatBJ(0,udg_unit62,true))*150.),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL)
call UnitDamageTargetBJ(udg_unit62,udg_unit62,(I2R(GetHeroStatBJ(0,udg_unit62,false))*75.),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL)
call SelectUnitForPlayerSingle(udg_unit62,GetOwningPlayer(udg_unit62))
set udg_unit62=null
set udg_unit64=null
set udg_real04=.0
endfunction
function Dk takes nothing returns nothing
set udg_real04=(udg_real04+30.)
set udg_locations01[4]=xB(udg_locations01[3],400.,udg_real04)
call SetUnitPositionLocFacingBJ(udg_unit62,udg_locations01[4],(udg_real04+90.))
call SetUnitAnimation(udg_unit62,"walk")
call AddSpecialEffectLocBJ(udg_locations01[4],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations01[4])
endfunction
function fk takes nothing returns boolean
return(GetSpellAbilityId()=='A05U')
endfunction
function Fk takes nothing returns nothing
set udg_unit42=GetTriggerUnit()
set udg_unit44=GetSpellTargetUnit()
call PauseUnit(udg_unit42,true)
call SetUnitInvulnerable(udg_unit42,true)
call ResetUnitAnimation(udg_unit42)
call TriggerSleepAction(.5)
set udg_locations02[167]=GetUnitLoc(udg_unit42)
set udg_locations02[168]=xB(udg_locations02[167],60.,GetUnitFacing(udg_unit42))
set udg_integers06[2]=1
loop
exitwhen udg_integers06[2]>10
call CreateNUnitsAtLoc(1,'h00K',GetOwningPlayer(udg_unit42),xB(GetUnitLoc(udg_unit42),60.,GetUnitFacing(udg_unit42)),GetUnitFacing(udg_unit42))
set udg_unit43=bj_lastCreatedUnit
call ShowUnitHide(udg_unit43)
call SetUnitAnimation(udg_unit42,"spell two")
call UnitApplyTimedLifeBJ(.8,'BHwe',udg_unit43)
call IssueTargetOrderById(udg_unit43,852095,udg_unit44)
call TriggerSleepAction(.25)
set udg_integers06[2]=udg_integers06[2]+1
endloop
call TriggerSleepAction(.5)
call ResetUnitAnimation(udg_unit42)
call PauseUnit(udg_unit42,false)
call SetUnitInvulnerable(udg_unit42,false)
call RemoveLocation(udg_locations02[167])
call RemoveLocation(udg_locations02[168])
set udg_unit42=null
set udg_unit43=null
set udg_unit44=null
endfunction
function gk takes nothing returns boolean
return(GetSpellAbilityId()=='A033')
endfunction
function Gk takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit17)))
endfunction
function hk takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_MECHANICAL)==false)
endfunction
function Hk takes nothing returns nothing
if(hk())then
set udg_locations02[189]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit17),udg_locations02[189],bj_UNIT_FACING)
set udg_unit19=bj_lastCreatedUnit
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetEnumUnit(),0)
call ShowUnitHide(udg_unit19)
call IssueTargetOrderById(udg_unit19,852227,GetEnumUnit())
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_unit19)
call RemoveLocation(udg_locations02[189])
endif
endfunction
function jk takes nothing returns nothing
set udg_unit17=GetTriggerUnit()
set udg_locations02[188]=GetSpellTargetLoc()
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(600.,udg_locations02[188],Condition(function Gk)),function Hk)
call RemoveLocation(udg_locations02[188])
set udg_unit17=null
set udg_unit19=null
endfunction
function Jk takes nothing returns boolean
return(GetSpellAbilityId()=='A08P')
endfunction
function kk takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit115)))
endfunction
function Kk takes nothing returns nothing
set udg_locations02[191]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit115),udg_locations02[191],bj_UNIT_FACING)
set udg_unit116=bj_lastCreatedUnit
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetEnumUnit(),0)
call ShowUnitHide(udg_unit116)
call IssueTargetOrderById(udg_unit116,852211,GetEnumUnit())
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_unit116)
call RemoveLocation(udg_locations02[191])
endfunction
function lk takes nothing returns nothing
set udg_unit115=GetTriggerUnit()
set udg_locations02[190]=GetSpellTargetLoc()
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(600.,udg_locations02[190],Condition(function kk)),function Kk)
call RemoveLocation(udg_locations02[190])
set udg_unit115=null
set udg_unit116=null
endfunction
function Lk takes nothing returns boolean
return(GetSpellAbilityId()=='A024')
endfunction
function mk takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit18)))
endfunction
function Mk takes nothing returns nothing
set udg_locations02[198]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00E',GetOwningPlayer(udg_unit18),udg_locations02[198],bj_UNIT_FACING)
set udg_unit20=bj_lastCreatedUnit
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetEnumUnit(),0)
call ShowUnitHide(udg_unit20)
call IssueTargetOrderById(udg_unit20,852171,GetEnumUnit())
call UnitApplyTimedLifeBJ(1.,'BTLF',udg_unit20)
call RemoveLocation(udg_locations02[198])
endfunction
function pk takes nothing returns nothing
set udg_unit18=GetTriggerUnit()
set udg_locations02[197]=GetSpellTargetLoc()
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(300.,udg_locations02[197],Condition(function mk)),function Mk)
call RemoveLocation(udg_locations02[197])
set udg_unit18=null
set udg_unit20=null
endfunction
function Pk takes nothing returns boolean
return(GetSpellAbilityId()=='A032')
endfunction
function qk takes nothing returns nothing
set udg_unit04=GetTriggerUnit()
set udg_unit05=GetSpellTargetUnit()
call PauseUnit(udg_unit04,true)
call PauseUnit(udg_unit05,true)
call SetUnitInvulnerable(udg_unit04,true)
call SetUnitInvulnerable(udg_unit05,true)
call UnitAddAbility(udg_unit04,'Amrf')
call SetUnitPathing(udg_unit04,false)
call SetUnitPathing(udg_unit05,false)
call SetUnitTimeScalePercent(udg_unit04,50.)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit04,"Spell slam")
call TriggerSleepAction(.5)
call ShowUnitHide(udg_unit05)
call TriggerSleepAction(1.6)
set udg_locations02[194]=GetUnitLoc(udg_unit05)
call AddSpecialEffectLocBJ(udg_locations02[194],"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
set udg_effects01[133]=bj_lastCreatedEffect
call TriggerSleepAction(1.)
call ShowUnitShow(udg_unit05)
call AddSpecialEffectLocBJ(udg_locations02[194],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
set udg_effects01[134]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(udg_locations02[194],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
set udg_effects01[135]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(udg_locations02[194],"Units\\NightElf\\Wisp\\WispExplode.mdl")
set udg_effects01[136]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[194])
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit04,"Stand Ready")
call SetUnitTimeScalePercent(udg_unit04,100.)
call SetUnitPathing(udg_unit04,true)
call SetUnitPathing(udg_unit05,true)
call UnitRemoveAbility(udg_unit04,'Amrf')
call SetUnitInvulnerable(udg_unit04,false)
call SetUnitInvulnerable(udg_unit05,false)
call PauseUnit(udg_unit04,false)
call PauseUnit(udg_unit05,false)
call UnitDamageTargetBJ(udg_unit04,udg_unit05,(I2R(GetHeroStatBJ(0,udg_unit04,true))*100.),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL)
call UnitDamageTargetBJ(udg_unit05,udg_unit04,(I2R(GetHeroStatBJ(0,udg_unit04,true))*50.),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL)
set bj_forLoopBIndex=133
set bj_forLoopBIndexEnd=136
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call DestroyEffect(udg_effects01[bj_forLoopAIndex])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set udg_unit04=null
set udg_unit05=null
endfunction
function Qk takes nothing returns boolean
return(GetSpellAbilityId()=='A0E1')
endfunction
function sk takes nothing returns nothing
call PauseUnit(udg_unit272,true)
call SetUnitInvulnerable(udg_unit272,true)
call TriggerSleepAction(.1)
call SetHeroStr(udg_unit272,(GetHeroStr(udg_unit272,true)+300),true)
call SetUnitAnimation(udg_unit272,"spell channel")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit272,"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call TriggerSleepAction(1.5)
call SetUnitInvulnerable(udg_unit272,false)
call PauseUnit(udg_unit272,false)
call EnableTrigger(udg_trigger108)
call EnableTrigger(udg_trigger110)
call SetUnitVertexColor(udg_unit272,255,50,50,255)
call SetPlayerAbilityAvailableBJ(true,'A036',GetOwningPlayer(udg_unit272))
call SetUnitManaPercentBJ(udg_unit272,'d')
call SetUnitLifePercentBJ(udg_unit272,'d')
call TriggerSleepAction(44.)
call DisableTrigger(udg_trigger108)
call DisableTrigger(udg_trigger109)
call DisableTrigger(udg_trigger110)
call SetUnitVertexColor(udg_unit272,255,255,255,255)
call SetHeroStr(udg_unit272,(GetHeroStr(udg_unit272,true)-300),true)
call UnitDamageTarget(udg_unit272,udg_unit272,(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_unit272)/4.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetPlayerAbilityAvailableBJ(false,'A036',GetOwningPlayer(udg_unit272))
endfunction
function Sk takes nothing returns boolean
return(GetSpellAbilityId()=='A0E1')
endfunction
function tk takes nothing returns nothing
call PauseUnit(udg_unit277,true)
call SetUnitInvulnerable(udg_unit277,true)
call TriggerSleepAction(.1)
call SetHeroStr(udg_unit277,(GetHeroStr(udg_unit277,true)+300),true)
call SetUnitAnimation(udg_unit277,"spell channel")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit277,"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call TriggerSleepAction(1.5)
call SetUnitInvulnerable(udg_unit277,false)
call PauseUnit(udg_unit277,false)
call EnableTrigger(udg_trigger111)
call EnableTrigger(udg_trigger113)
call SetUnitVertexColor(udg_unit277,255,50,50,255)
call SetUnitManaPercentBJ(udg_unit277,'d')
call SetUnitLifePercentBJ(udg_unit277,'d')
call TriggerSleepAction(44.)
call DisableTrigger(udg_trigger111)
call DisableTrigger(udg_trigger112)
call DisableTrigger(udg_trigger113)
call SetUnitVertexColor(udg_unit277,255,255,255,255)
call SetHeroStr(udg_unit277,(GetHeroStr(udg_unit277,true)-300),true)
call UnitDamageTarget(udg_unit277,udg_unit277,(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,udg_unit277)/4.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function Tk takes nothing returns boolean
return(RectContainsLoc(udg_rect04,GetOrderPointLoc()))
endfunction
function uk takes nothing returns nothing
call IssueImmediateOrderById(udg_unit272,851972)
set udg_locations02[520]=GetUnitLoc(udg_unit272)
set udg_locations02[521]=GetOrderPointLoc()
call EnableTrigger(udg_trigger109)
endfunction
function Uk takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit272,'Bweb'))or(UnitHasBuffBJ(udg_unit272,'B004'))or(UnitHasBuffBJ(udg_unit272,'B00U'))or(UnitHasBuffBJ(udg_unit272,'B002'))or(UnitHasBuffBJ(udg_unit272,'BPSE'))or(UnitHasBuffBJ(udg_unit272,'Beng'))or(UnitHasBuffBJ(udg_unit272,'Bply'))or(UnitHasBuffBJ(udg_unit272,'Bcyc'))or(IsUnitPaused(udg_unit272))or(DistanceBetweenPoints(udg_locations02[521],udg_locations02[522])<=40.)
endfunction
function wk takes nothing returns boolean
return(Uk())
endfunction
function Wk takes nothing returns nothing
set udg_locations02[522]=GetUnitLoc(udg_unit272)
if(wk())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations02[522])
return
else
set udg_locations02[523]=xB(udg_locations02[522],20.,AngleBetweenPoints(udg_locations02[520],udg_locations02[521]))
call SetUnitX(udg_unit272,GetLocationX(udg_locations02[523]))
call SetUnitY(udg_unit272,GetLocationY(udg_locations02[523]))
call SetUnitFacing(udg_unit272,AngleBetweenPoints(udg_locations02[520],udg_locations02[521]))
call RemoveLocation(udg_locations02[522])
call RemoveLocation(udg_locations02[523])
endif
endfunction
function yk takes nothing returns boolean
return(GetIssuedOrderId()==851972)
endfunction
function Yk takes nothing returns nothing
call DisableTrigger(udg_trigger109)
call RemoveLocation(udg_locations02[520])
call RemoveLocation(udg_locations02[521])
endfunction
function zk takes nothing returns boolean
return(RectContainsLoc(udg_rect04,GetOrderPointLoc()))
endfunction
function Zk takes nothing returns nothing
call IssueImmediateOrderById(udg_unit277,851972)
set udg_locations02[524]=GetUnitLoc(udg_unit277)
set udg_locations02[525]=GetOrderPointLoc()
call EnableTrigger(udg_trigger112)
endfunction
function vK takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit277,'Bweb'))or(UnitHasBuffBJ(udg_unit277,'B004'))or(UnitHasBuffBJ(udg_unit277,'B00U'))or(UnitHasBuffBJ(udg_unit277,'B002'))or(UnitHasBuffBJ(udg_unit277,'BPSE'))or(UnitHasBuffBJ(udg_unit277,'Beng'))or(UnitHasBuffBJ(udg_unit277,'Bply'))or(UnitHasBuffBJ(udg_unit277,'Bcyc'))or(DistanceBetweenPoints(udg_locations02[525],udg_locations02[526])<=40.)or(IsUnitPaused(udg_unit277))
endfunction
function eK takes nothing returns boolean
return(vK())
endfunction
function xK takes nothing returns nothing
set udg_locations02[526]=GetUnitLoc(udg_unit277)
if(eK())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations02[526])
return
else
set udg_locations02[527]=xB(udg_locations02[526],20.,AngleBetweenPoints(udg_locations02[524],udg_locations02[525]))
call SetUnitX(udg_unit277,GetLocationX(udg_locations02[527]))
call SetUnitY(udg_unit277,GetLocationY(udg_locations02[527]))
call SetUnitFacing(udg_unit277,AngleBetweenPoints(udg_locations02[524],udg_locations02[525]))
call RemoveLocation(udg_locations02[526])
call RemoveLocation(udg_locations02[527])
endif
endfunction
function oK takes nothing returns boolean
return(GetIssuedOrderId()==851972)
endfunction
function rK takes nothing returns nothing
call DisableTrigger(udg_trigger112)
call RemoveLocation(udg_locations02[524])
call RemoveLocation(udg_locations02[525])
endfunction
function iK takes nothing returns boolean
return(GetSpellAbilityId()=='A082')
endfunction
function aK takes nothing returns nothing
set udg_unit100=GetTriggerUnit()
set udg_unit101=GetSpellTargetUnit()
call SetUnitInvulnerable(udg_unit100,true)
call SetUnitInvulnerable(udg_unit101,true)
call SetUnitPathing(udg_unit100,false)
call PauseUnit(udg_unit100,true)
call PauseUnit(udg_unit101,true)
set udg_locations02[89]=GetUnitLoc(udg_unit101)
set udg_locations02[90]=xB(udg_locations02[89],60.,GetUnitFacing(udg_unit100))
call SetUnitPositionLocFacingLocBJ(udg_unit100,udg_locations02[90],udg_locations02[89])
set udg_locations02[91]=GetUnitLoc(udg_unit100)
call AddSpecialEffectLocBJ(udg_locations02[91],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[91],"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit100,"attack")
call TriggerSleepAction(.75)
call SetUnitInvulnerable(udg_unit101,false)
call UnitDamageTarget(udg_unit100,udg_unit101,(I2R(GetHeroStatBJ(0,udg_unit100,true))*60.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitInvulnerable(udg_unit101,true)
call AddSpecialEffectLocBJ(udg_locations02[89],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ResetUnitAnimation(udg_unit100)
call SetUnitAnimationByIndex(udg_unit100,11)
call TriggerSleepAction(.15)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[91]=GetUnitLoc(udg_unit100)
set udg_locations02[92]=xB(udg_locations02[91],20.,GetUnitFacing(udg_unit100))
call SetUnitPositionLoc(udg_unit100,udg_locations02[92])
call AddSpecialEffectLocBJ(udg_locations02[92],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[91])
call RemoveLocation(udg_locations02[92])
call TriggerSleepAction(.01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitInvulnerable(udg_unit101,false)
call UnitDamageTarget(udg_unit100,udg_unit101,(I2R(GetHeroStatBJ(0,udg_unit100,true))*60.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitInvulnerable(udg_unit101,true)
call SetUnitAnimation(udg_unit101,"death")
call TriggerSleepAction(1.)
call ResetUnitAnimation(udg_unit100)
call ResetUnitAnimation(udg_unit101)
call PauseUnit(udg_unit100,false)
call PauseUnit(udg_unit101,false)
call SetUnitPathing(udg_unit100,true)
call SetUnitInvulnerable(udg_unit100,false)
call SetUnitInvulnerable(udg_unit101,false)
call RemoveLocation(udg_locations02[89])
call RemoveLocation(udg_locations02[90])
call RemoveLocation(udg_locations02[91])
set udg_unit100=null
set udg_unit101=null
endfunction
function nK takes nothing returns boolean
return(GetSpellAbilityId()=='A080')
endfunction
function VK takes nothing returns nothing
set udg_unit106=GetTriggerUnit()
set udg_unit107=GetSpellTargetUnit()
call PauseUnit(udg_unit106,true)
call SetUnitInvulnerable(udg_unit106,true)
call SetUnitPathing(udg_unit106,false)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit106,5)
call TriggerSleepAction(.5)
call SetUnitAnimationByIndex(udg_unit106,6)
call AddSpecialEffectTargetUnitBJ("hand",udg_unit106,"Abilities\\Spells\\Other\\FrostBolt\\FrostBoltMissile.mdl")
set udg_effects01['v']=bj_lastCreatedEffect
call TriggerSleepAction(1.)
call SetUnitAnimationByIndex(udg_unit106,10)
call EnableTrigger(udg_trigger116)
endfunction
function EK takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[210],udg_locations02[211])<=120.)
endfunction
function XK takes nothing returns nothing
set udg_locations02[210]=GetUnitLoc(udg_unit106)
set udg_locations02[211]=GetUnitLoc(udg_unit107)
if(EK())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations02[210])
call RemoveLocation(udg_locations02[211])
call PauseUnit(udg_unit107,true)
call SetUnitAnimation(udg_unit107,"death")
call SetUnitAnimationByIndex(udg_unit106,11)
set udg_locations02[211]=GetUnitLoc(udg_unit107)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=5
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[213]=xB(udg_locations02[211],50.,(I2R(bj_forLoopAIndex)*30.))
call CreateNUnitsAtLoc(1,'o003',GetOwningPlayer(udg_unit106),udg_locations02[213],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[213])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call TriggerSleepAction(2.)
call ResetUnitAnimation(udg_unit106)
call PauseUnit(udg_unit106,false)
call SetUnitInvulnerable(udg_unit106,false)
call SetUnitPathing(udg_unit106,true)
call DestroyEffect(udg_effects01['v'])
call UnitDamageTarget(udg_unit106,udg_unit107,(I2R(GetHeroStatBJ(2,udg_unit106,true))*60.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call ResetUnitAnimation(udg_unit107)
call PauseUnit(udg_unit107,false)
call RemoveLocation(udg_locations02[211])
set udg_unit106=null
set udg_unit107=null
return
else
set udg_locations02[212]=xB(udg_locations02[210],50.,AngleBetweenPoints(udg_locations02[210],udg_locations02[211]))
call SetUnitPositionLocFacingLocBJ(udg_unit106,udg_locations02[212],udg_locations02[211])
call RemoveLocation(udg_locations02[212])
endif
call RemoveLocation(udg_locations02[210])
call RemoveLocation(udg_locations02[211])
endfunction
function OK takes nothing returns boolean
return(GetSpellAbilityId()=='A044')
endfunction
function RK takes nothing returns nothing
set udg_unit30=GetTriggerUnit()
set udg_unit29=GetSpellTargetUnit()
call PauseUnit(udg_unit30,true)
call SetUnitInvulnerable(udg_unit30,true)
call UnitAddAbility(udg_unit30,'Amrf')
call TriggerSleepAction(.1)
call QueueUnitAnimation(udg_unit30,"Spell slam")
call TriggerSleepAction(.5)
call SetUnitFlyHeight(udg_unit30,600.,800.)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit30,"Abilities\\Spells\\Items\\AIsm\\AIsmTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(4.)
set udg_locations02[224]=GetUnitLoc(udg_unit29)
call SetUnitPositionLoc(udg_unit30,udg_locations02[224])
call SetUnitFlyHeight(udg_unit30,.0,2500.)
call AddSpecialEffectLocBJ(udg_locations02[224],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[224],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTargetBJ(udg_unit30,udg_unit29,(I2R(GetHeroStatBJ(2,udg_unit30,true))*60.),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL)
call UnitRemoveAbility(udg_unit30,'Amrf')
call SetUnitInvulnerable(udg_unit30,false)
call PauseUnit(udg_unit30,false)
call TriggerSleepAction(.5)
call SetUnitAnimation(udg_unit30,"stand")
call RemoveLocation(udg_locations02[224])
set udg_unit30=null
set udg_unit29=null
endfunction
function IK takes nothing returns boolean
return(GetSpellAbilityId()=='A0EJ')
endfunction
function AK takes nothing returns nothing
call SetUnitVertexColorBJ(udg_unit293,'d','d','d',60.)
call EnableTrigger(udg_trigger119)
call TriggerRegisterUnitEvent(udg_trigger119,udg_unit293,EVENT_UNIT_DAMAGED)
call TriggerSleepAction(2)
call DisableTrigger(udg_trigger119)
call SetUnitVertexColorBJ(udg_unit293,'d','d','d',.0)
endfunction
function NK takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetWidgetLife(udg_unit293,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit293)+GetEventDamage()))
call EnableTrigger(GetTriggeringTrigger())
endfunction
function bK takes nothing returns boolean
return(GetSpellAbilityId()=='A047')
endfunction
function BK takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit264)))
endfunction
function cK takes nothing returns nothing
set udg_locations02[528]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00K',GetOwningPlayer(udg_unit264),udg_locations02[528],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetEnumUnit(),0)
call IssueTargetOrderById(bj_lastCreatedUnit,852171,GetEnumUnit())
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[528])
endfunction
function CK takes nothing returns nothing
set udg_locations02[527]=GetSpellTargetLoc()
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(500.,udg_locations02[527],Condition(function BK)),function cK)
call RemoveLocation(udg_locations02[527])
endfunction
function dK takes nothing returns boolean
return(GetSpellAbilityId()=='A05I')
endfunction
function DK takes nothing returns nothing
set udg_unit100=GetTriggerUnit()
set udg_unit101=GetSpellTargetUnit()
set udg_real12=255.
call PauseUnit(udg_unit100,true)
call PauseUnit(udg_unit101,true)
call SetUnitInvulnerable(udg_unit100,true)
call SetUnitInvulnerable(udg_unit101,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit100,"spell")
set udg_locations02[238]=GetUnitLoc(udg_unit100)
set udg_locations02[240]=GetUnitLoc(udg_unit101)
set udg_locations02[239]=xB(udg_locations02[238],150.,(GetUnitFacing(udg_unit100)-180.))
call CreateNUnitsAtLoc(1,'h019',GetOwningPlayer(udg_unit100),udg_locations02[239],GetUnitFacing(udg_unit100))
set udg_unit102=bj_lastCreatedUnit
call CreateNUnitsAtLoc(1,'h015',GetOwningPlayer(udg_unit100),udg_locations02[238],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.5,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h016',GetOwningPlayer(udg_unit100),udg_locations02[240],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.5,'BHwe',bj_lastCreatedUnit)
set udg_locations02[241]=xB(udg_locations02[240],50.,DistanceBetweenPoints(udg_locations02[240],udg_locations02[238]))
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_unit101),GetOwningPlayer(udg_unit100),udg_locations02[241],AngleBetweenPoints(udg_locations02[240],udg_locations02[238]))
set udg_unit103=bj_lastCreatedUnit
call SetUnitVertexColorBJ(udg_unit103,'d','d','d',35.)
call PauseUnit(udg_unit103,true)
call SetUnitInvulnerable(udg_unit103,true)
call SetUnitPathing(udg_unit103,false)
call UnitAddAbility(udg_unit103,'Amrf')
call UnitAddAbility(udg_unit103,'Aloc')
call SetUnitAnimation(udg_unit103,"death")
call SetUnitFlyHeight(udg_unit103,100.,100.)
call EnableTrigger(udg_trigger122)
call TriggerSleepAction(3.3)
call DisableTrigger(udg_trigger122)
call RemoveUnit(udg_unit103)
call CreateTextTagLocBJ("·_!!!",udg_locations02[238],0,10,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,5.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call CreateNUnitsAtLoc(1,'h017',GetOwningPlayer(udg_unit100),udg_locations02[238],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h017',GetOwningPlayer(udg_unit100),udg_locations02[238],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h017',GetOwningPlayer(udg_unit100),udg_locations02[238],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h017',GetOwningPlayer(udg_unit100),udg_locations02[238],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(4.)
call SetUnitAnimation(udg_unit102,"attack")
call SetUnitInvulnerable(udg_unit101,false)
call CreateTextTagLocBJ(R2S((GetUnitState(udg_unit101,UNIT_STATE_LIFE)*((GetUnitLifePercent(udg_unit100)+30.)/100.))),GetUnitLoc(udg_unit101),0,10.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,4.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call UnitDamageTarget(udg_unit100,udg_unit101,(GetUnitState(udg_unit101,UNIT_STATE_LIFE)*((GetUnitLifePercent(udg_unit100)+30.)/100.)),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call PauseUnit(udg_unit101,false)
call ResetUnitAnimation(udg_unit102)
call TriggerSleepAction(1.)
call SetUnitInvulnerable(udg_unit100,false)
call UnitDamageTarget(udg_unit100,udg_unit100,(GetUnitState(udg_unit100,UNIT_STATE_LIFE)+100000.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
call SetUnitAnimation(udg_unit102,"death")
call TriggerSleepAction(2.)
call RemoveUnit(udg_unit102)
call SetUnitVertexColor(udg_unit101,255,255,255,255)
call PauseUnit(udg_unit100,false)
call RemoveLocation(udg_locations02[238])
call RemoveLocation(udg_locations02[239])
call RemoveLocation(udg_locations02[240])
call RemoveLocation(udg_locations02[241])
call RemoveLocation(udg_locations02[242])
call RemoveLocation(udg_locations02[243])
set udg_unit100=null
set udg_unit101=null
set udg_unit102=null
set udg_unit103=null
set udg_real12=.0
endfunction
function fK takes nothing returns nothing
set udg_locations02[242]=GetUnitLoc(udg_unit103)
set udg_locations02[243]=xB(udg_locations02[242],(DistanceBetweenPoints(udg_locations02[240],udg_locations02[238])/200.),AngleBetweenPoints(udg_locations02[240],udg_locations02[238]))
call SetUnitPositionLocFacingLocBJ(udg_unit103,udg_locations02[243],udg_locations02[238])
call SetUnitVertexColor(udg_unit101,R2I(udg_real12),R2I(udg_real12),R2I(udg_real12),255)
set udg_real12=(udg_real12-1)
call RemoveLocation(udg_locations02[242])
call RemoveLocation(udg_locations02[243])
endfunction
function FK takes nothing returns boolean
return(GetSpellAbilityId()=='A05I')
endfunction
function gK takes nothing returns nothing
set udg_unit92=GetTriggerUnit()
set udg_unit93=GetSpellTargetUnit()
set udg_integer05=255
call PauseUnit(udg_unit92,true)
call PauseUnit(udg_unit93,true)
call SetUnitInvulnerable(udg_unit92,true)
call SetUnitInvulnerable(udg_unit93,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit92,"spell")
set udg_locations02[244]=GetUnitLoc(udg_unit92)
set udg_locations02[245]=GetUnitLoc(udg_unit93)
set udg_locations02[246]=xB(udg_locations02[244],150.,(GetUnitFacing(udg_unit92)-180.))
call CreateNUnitsAtLoc(1,'h019',GetOwningPlayer(udg_unit92),udg_locations02[246],GetUnitFacing(udg_unit92))
set udg_unit95=bj_lastCreatedUnit
call CreateNUnitsAtLoc(1,'h015',GetOwningPlayer(udg_unit92),udg_locations02[244],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.5,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h016',GetOwningPlayer(udg_unit92),udg_locations02[245],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.5,'BHwe',bj_lastCreatedUnit)
set udg_locations02[247]=xB(udg_locations02[245],50.,AngleBetweenPoints(udg_locations02[245],udg_locations02[244]))
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_unit93),GetOwningPlayer(udg_unit92),udg_locations02[247],AngleBetweenPoints(udg_locations02[245],udg_locations02[244]))
set udg_unit94=bj_lastCreatedUnit
call SetUnitVertexColorBJ(udg_unit94,'d','d','d',35.)
call PauseUnit(udg_unit94,true)
call SetUnitInvulnerable(udg_unit94,true)
call SetUnitPathing(udg_unit94,false)
call UnitAddAbility(udg_unit94,'Amrf')
call UnitAddAbility(udg_unit94,'Aloc')
call SetUnitAnimation(udg_unit94,"death")
call SetUnitFlyHeight(udg_unit94,100.,100.)
call EnableTrigger(udg_trigger124)
call TriggerSleepAction(3.3)
call DisableTrigger(udg_trigger124)
call RemoveUnit(udg_unit94)
call CreateTextTagLocBJ("·_!!!",udg_locations02[244],0,10,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,5.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call CreateNUnitsAtLoc(1,'h017',GetOwningPlayer(udg_unit92),udg_locations02[244],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h017',GetOwningPlayer(udg_unit92),udg_locations02[244],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h017',GetOwningPlayer(udg_unit92),udg_locations02[244],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h017',GetOwningPlayer(udg_unit92),udg_locations02[244],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(4.)
call SetUnitAnimation(udg_unit95,"attack")
call SetUnitInvulnerable(udg_unit93,false)
call CreateTextTagLocBJ(R2S((GetUnitState(udg_unit93,UNIT_STATE_LIFE)*((GetUnitLifePercent(udg_unit92)+30.)/100.))),GetUnitLoc(udg_unit93),0,10.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,4.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call UnitDamageTarget(udg_unit92,udg_unit93,(GetUnitState(udg_unit93,UNIT_STATE_LIFE)*((GetUnitLifePercent(udg_unit92)+30.)/100.)),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call PauseUnit(udg_unit93,false)
call ResetUnitAnimation(udg_unit95)
call TriggerSleepAction(1.)
call SetUnitInvulnerable(udg_unit92,false)
call UnitDamageTarget(udg_unit92,udg_unit92,(GetUnitState(udg_unit92,UNIT_STATE_LIFE)+10000.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
call SetUnitAnimation(udg_unit95,"death")
call TriggerSleepAction(2.)
call RemoveUnit(udg_unit95)
call SetUnitVertexColor(udg_unit93,255,255,255,255)
call RemoveLocation(udg_locations02[244])
call RemoveLocation(udg_locations02[245])
call RemoveLocation(udg_locations02[246])
call RemoveLocation(udg_locations02[247])
call RemoveLocation(udg_locations02[248])
call RemoveLocation(udg_locations02[249])
set udg_unit92=null
set udg_unit93=null
set udg_unit95=null
set udg_unit94=null
set udg_integer05=0
endfunction
function GK takes nothing returns nothing
set udg_locations02[248]=GetUnitLoc(udg_unit94)
set udg_locations02[249]=xB(udg_locations02[248],(DistanceBetweenPoints(udg_locations02[245],udg_locations02[244])/200.),AngleBetweenPoints(udg_locations02[245],udg_locations02[244]))
call SetUnitPositionLocFacingLocBJ(udg_unit94,udg_locations02[249],udg_locations02[244])
call SetUnitVertexColor(udg_unit93,udg_integer05,udg_integer05,udg_integer05,255)
set udg_integer05=(udg_integer05-1)
call RemoveLocation(udg_locations02[248])
call RemoveLocation(udg_locations02[249])
endfunction
function hK takes nothing returns boolean
return(GetSpellAbilityId()=='A00J')
endfunction
function HK takes nothing returns boolean
return(UnitHasBuffBJ(GetSpellTargetUnit(),'B017')==false)
endfunction
function jK takes nothing returns nothing
if(HK())then
call CreateTextTagUnitBJ("Your sand has not yet trapped the enemy....",udg_unit264,0,10.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,10.,90)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
return
endif
set udg_unit06=GetTriggerUnit()
set udg_unit07=GetSpellTargetUnit()
call PauseUnit(udg_unit07,true)
call PauseUnit(udg_unit06,true)
call SetUnitInvulnerable(udg_unit06,true)
call SetUnitInvulnerable(udg_unit07,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit06,"spell channel")
call SetUnitTimeScalePercent(udg_unit07,20.)
call UnitRemoveBuffsBJ(2,udg_unit07)
call UnitAddAbility(udg_unit07,'Amrf')
call AddSpecialEffectTargetUnitBJ("origin",udg_unit07,"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitFlyHeight(udg_unit07,600.,600.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("origin",udg_unit07,"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimation(udg_unit07,"death")
call TriggerSleepAction(.5)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit07,"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit07,"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosDone.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.1)
call SetUnitTimeScalePercent(udg_unit07,100.)
call SetUnitAnimation(udg_unit07,"death")
call SetUnitFlyHeight(udg_unit07,.0,3000.)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit07,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitInvulnerable(udg_unit07,false)
call SetUnitInvulnerable(udg_unit06,false)
call TriggerSleepAction(.1)
call UnitDamageTargetBJ(udg_unit06,udg_unit07,(I2R(GetHeroStatBJ(2,udg_unit06,true))*70.),ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL)
call UnitRemoveAbility(udg_unit07,'Amrf')
call TriggerSleepAction(1.)
call PauseUnit(udg_unit07,false)
call PauseUnit(udg_unit06,false)
call ResetUnitAnimation(udg_unit06)
set udg_unit06=null
set udg_unit07=null
endfunction
function JK takes nothing returns boolean
return(GetSpellAbilityId()=='A0EG')
endfunction
function kK takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit256)))
endfunction
function KK takes nothing returns nothing
call UnitDamageTarget(udg_unit256,GetEnumUnit(),(I2R(GetHeroInt(udg_unit256,true))*40.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function lK takes nothing returns nothing
set udg_locations02[516]=GetUnitLoc(udg_unit256)
set udg_locations02[517]=xB(udg_locations02[516],50.,(GetUnitFacing(udg_unit256)-90.))
call PauseUnit(udg_unit256,true)
call SetUnitInvulnerable(udg_unit256,true)
call SetUnitPathing(udg_unit256,false)
call TriggerSleepAction(.1)
call AddSpecialEffectLocBJ(udg_locations02[516],"Abilities\\Weapons\\FrostWyrmMissile\\FrostWyrmMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'h00W',GetOwningPlayer(udg_unit256),udg_locations02[517],(GetUnitFacing(udg_unit256)+90.))
set udg_units16[0]=bj_lastCreatedUnit
call PauseUnit(udg_units16[0],true)
call UnitAddAbility(udg_units16[0],'Aloc')
call SetUnitPathing(udg_units16[0],false)
call SetUnitInvulnerable(udg_units16[0],true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_units16[0],"spell")
call TriggerSleepAction(1.)
call AddSpecialEffectTargetUnitBJ("hand right",udg_unit256,"Abilities\\Weapons\\GreenDragonMissile\\GreenDragonMissile.mdl")
set udg_effects01[143]=bj_lastCreatedEffect
call TriggerSleepAction(.3)
call RemoveUnit(udg_units16[0])
set udg_units16[0]=null
call AddSpecialEffectLocBJ(udg_locations02[517],"Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[516])
call RemoveLocation(udg_locations02[517])
call SetUnitTimeScalePercent(udg_unit256,70.)
call SetUnitAnimationByIndex(udg_unit256,9)
call EnableTrigger(udg_trigger127)
call TriggerSleepAction(1.1)
set udg_locations02[518]=GetUnitLoc(udg_unit256)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o003',GetOwningPlayer(udg_unit275),udg_locations02[518],bj_UNIT_FACING)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.)
set udg_units16[bj_forLoopAIndex]=bj_lastCreatedUnit
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[519]=xB(udg_locations02[518],150.,(I2R(bj_forLoopAIndex)*45.))
call AddSpecialEffectLocBJ(udg_locations02[519],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[519])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[519]=xB(udg_locations02[518],300.,(I2R(bj_forLoopAIndex)*36.))
call AddSpecialEffectLocBJ(udg_locations02[519],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[519])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers06[3]=1
loop
exitwhen udg_integers06[3]>5
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(600.,udg_locations02[518],Condition(function kK)),function KK)
call TriggerSleepAction(.3)
call TerrainDeformationRippleBJ(2.,true,udg_locations02[518],400.,800.,100.,1,400.)
set udg_integers06[3]=udg_integers06[3]+1
endloop
call RemoveLocation(udg_locations02[518])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units16[bj_forLoopAIndex])
set udg_units16[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(udg_trigger127)
call DestroyEffect(udg_effects01[143])
call ResetUnitAnimation(udg_unit256)
call SetUnitPathing(udg_unit256,true)
call SetUnitInvulnerable(udg_unit256,false)
call PauseUnit(udg_unit256,false)
call UnitDamageTarget(udg_unit256,udg_unit256,(I2R(GetHeroInt(udg_unit256,true))*100.),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_real29=.0
endfunction
function LK takes nothing returns boolean
return(udg_real29<=30.)
endfunction
function mK takes nothing returns nothing
set udg_real29=(udg_real29+1)
if(LK())then
set udg_locations02[516]=GetUnitLoc(udg_unit256)
set udg_locations02[517]=xB(udg_locations02[516],12.,GetUnitFacing(udg_unit256))
call SetUnitPositionLoc(udg_unit256,udg_locations02[517])
call RemoveLocation(udg_locations02[516])
call RemoveLocation(udg_locations02[517])
else
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitScalePercent(udg_units16[bj_forLoopAIndex],(udg_real29*15.),(udg_real29*15.),(udg_real29*15.))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function MK takes nothing returns boolean
return(GetSpellAbilityId()=='A0EC')
endfunction
function pK takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit256)))
endfunction
function PK takes nothing returns nothing
call UnitDamageTarget(udg_unit256,GetEnumUnit(),(I2R(GetHeroInt(udg_unit256,true))*25.),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function qK takes nothing returns nothing
set udg_locations02[516]=GetUnitLoc(udg_unit256)
set udg_locations02[517]=xB(udg_locations02[516],50.,(GetUnitFacing(udg_unit256)-90.))
call PauseUnit(udg_unit256,true)
call SetUnitInvulnerable(udg_unit256,true)
call SetUnitPathing(udg_unit256,false)
call TriggerSleepAction(.1)
call AddSpecialEffectLocBJ(udg_locations02[516],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'h00W',GetOwningPlayer(udg_unit256),udg_locations02[517],(GetUnitFacing(udg_unit256)+90.))
set udg_units16[0]=bj_lastCreatedUnit
call PauseUnit(udg_units16[0],true)
call UnitAddAbility(udg_units16[0],'Aloc')
call SetUnitPathing(udg_units16[0],false)
call SetUnitInvulnerable(udg_units16[0],true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_units16[0],"spell")
call TriggerSleepAction(1.)
call AddSpecialEffectTargetUnitBJ("hand right",udg_unit256,"Abilities\\Spells\\Other\\FrostBolt\\FrostBoltMissile.mdl")
set udg_effects01[143]=bj_lastCreatedEffect
call SetUnitFacingTimed(udg_units16[0],GetUnitFacing(udg_unit256),.3)
call TriggerSleepAction(.3)
call RemoveLocation(udg_locations02[516])
call RemoveLocation(udg_locations02[517])
call SetUnitAnimation(udg_units16[0],"stand ready")
call SetUnitAnimation(udg_unit256,"spell throw")
call EnableTrigger(udg_trigger129)
call TriggerSleepAction(.5)
set udg_locations02[516]=GetUnitLoc(udg_unit256)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o00K',GetOwningPlayer(udg_unit275),udg_locations02[516],bj_UNIT_FACING)
set udg_units16[bj_forLoopAIndex]=bj_lastCreatedUnit
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[517]=xB(udg_locations02[516],150.,(I2R(bj_forLoopAIndex)*45.))
call AddSpecialEffectLocBJ(udg_locations02[517],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[517])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[517]=xB(udg_locations02[516],300.,(I2R(bj_forLoopAIndex)*36.))
call AddSpecialEffectLocBJ(udg_locations02[517],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[517])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers06[3]=1
loop
exitwhen udg_integers06[3]>5
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(400.,udg_locations02[516],Condition(function pK)),function PK)
call TriggerSleepAction(.2)
call TerrainDeformationRippleBJ(2.,true,udg_locations02[516],300.,600.,100.,1,300.)
set udg_integers06[3]=udg_integers06[3]+1
endloop
call DisableTrigger(udg_trigger129)
call DestroyEffect(udg_effects01[143])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units16[bj_forLoopAIndex])
set udg_units16[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[516])
set udg_locations02[516]=GetUnitLoc(udg_units16[0])
call AddSpecialEffectLocBJ(udg_locations02[516],"Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[516])
call RemoveUnit(udg_units16[0])
call ResetUnitAnimation(udg_unit256)
call SetUnitPathing(udg_unit256,true)
call SetUnitInvulnerable(udg_unit256,false)
call PauseUnit(udg_unit256,false)
call UnitDamageTarget(udg_unit256,udg_unit256,(I2R(GetHeroInt(udg_unit256,true))*50.),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_units16[0]=null
set udg_real29=.0
endfunction
function QK takes nothing returns boolean
return(udg_real29<=25.)
endfunction
function sK takes nothing returns nothing
set udg_real29=(udg_real29+1)
if(QK())then
set udg_locations02[516]=GetUnitLoc(udg_unit256)
set udg_locations02[517]=xB(udg_locations02[516],30.,GetUnitFacing(udg_unit256))
set udg_locations02[518]=GetUnitLoc(udg_units16[0])
set udg_locations02[519]=xB(udg_locations02[518],30.,GetUnitFacing(udg_unit256))
call SetUnitPositionLoc(udg_unit256,udg_locations02[517])
call SetUnitPositionLoc(udg_units16[0],udg_locations02[519])
call RemoveLocation(udg_locations02[516])
call RemoveLocation(udg_locations02[517])
call RemoveLocation(udg_locations02[518])
call RemoveLocation(udg_locations02[519])
else
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitScalePercent(udg_units16[bj_forLoopAIndex],(udg_real29*15.),(udg_real29*15.),(udg_real29*15.))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function SK takes nothing returns boolean
return(GetSpellAbilityId()=='A0ED')
endfunction
function tK takes nothing returns nothing
set udg_locations02[513]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[514]=xB(udg_locations02[513],GetRandomReal(100.,300.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'h02O',GetOwningPlayer(udg_unit264),udg_locations02[514],bj_UNIT_FACING)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,300.)
call UnitApplyTimedLifeBJ(12.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[514])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[513])
endfunction
function TK takes nothing returns boolean
return(GetSpellAbilityId()=='A0B0')
endfunction
function uK takes nothing returns nothing
set udg_locations02[511]=GetUnitLoc(udg_unit264)
set udg_real28=GetUnitFacing(udg_unit264)
call CreateNUnitsAtLoc(1,'h02N',GetOwningPlayer(udg_unit264),udg_locations02[511],GetUnitFacing(udg_unit264))
set udg_unit247=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[511])
call EnableTrigger(udg_trigger132)
call TriggerSleepAction(2)
call DisableTrigger(udg_trigger132)
call RemoveUnit(udg_unit247)
set udg_unit247=null
set udg_real28=.0
endfunction
function UK takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit264)))
endfunction
function wK takes nothing returns nothing
call UnitDamageTarget(udg_unit264,GetEnumUnit(),(I2R(GetHeroInt(udg_unit264,true))*10.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function WK takes nothing returns nothing
set udg_locations02[511]=GetUnitLoc(udg_unit247)
set udg_locations02[512]=xB(udg_locations02[511],35.,udg_real28)
call SetUnitPositionLoc(udg_unit247,udg_locations02[512])
call AddSpecialEffectLocBJ(udg_locations02[512],"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(100.,udg_locations02[512],Condition(function UK)),function wK)
call RemoveLocation(udg_locations02[511])
call RemoveLocation(udg_locations02[512])
endfunction
function yK takes nothing returns boolean
return(GetSpellAbilityId()=='A0EE')
endfunction
function YK takes nothing returns nothing
set udg_locations02[509]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[510]=xB(udg_locations02[509],GetRandomReal(200.,700.),0)
call CreateNUnitsAtLoc(1,'h01N',GetOwningPlayer(udg_unit284),udg_locations02[510],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[510])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[509])
endfunction
function zK takes nothing returns boolean
return(GetSpellAbilityId()=='A006')
endfunction
function ZK takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit264)))
endfunction
function vl takes nothing returns nothing
call UnitDamageTarget(udg_unit264,GetEnumUnit(),(I2R(GetHeroInt(udg_unit264,true))*30.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function el takes nothing returns nothing
set udg_locations02[61]=GetUnitLoc(udg_unit264)
call ResetUnitAnimation(udg_unit264)
call PauseUnit(udg_unit264,true)
call SetUnitInvulnerable(udg_unit264,true)
call TriggerSleepAction(.1)
set udg_integers06[4]=1
loop
exitwhen udg_integers06[4]>3
call SetUnitAnimation(udg_unit264,"spell looping")
call TerrainDeformationRippleBJ(1.5,true,udg_locations02[61],1024,1024,100.,1,512)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(512.,udg_locations02[61],Condition(function ZK)),function vl)
call TriggerSleepAction(1.)
set udg_integers06[4]=udg_integers06[4]+1
endloop
call ResetUnitAnimation(udg_unit264)
call SetUnitInvulnerable(udg_unit264,false)
call PauseUnit(udg_unit264,false)
call RemoveLocation(udg_locations02[61])
endfunction
function xl takes nothing returns boolean
return(GetSpellAbilityId()=='A02N')
endfunction
function ol takes nothing returns nothing
set udg_locations02[506]=GetSpellTargetLoc()
call TriggerSleepAction(.5)
call CameraSetSourceNoiseEx(10,.1,false)
call CameraSetSourceNoiseEx(10,.1,true)
call AddWeatherEffectSaveLast(RectFromCenterSizeBJ(udg_locations02[506],1100.,1100.),'FDwh')
set udg_weathereffect06=bj_lastCreatedWeatherEffect
call EnableWeatherEffect(udg_weathereffect06,true)
call TerrainDeformationCraterBJ(12.,false,udg_locations02[506],600.,500.)
call EnableTrigger(udg_trigger136)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetTerrainTypeBJ(udg_locations02[506],'Ldrt',-1,(bj_forLoopAIndex*3),0)
call TriggerSleepAction(.2)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(11.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetTerrainTypeBJ(udg_locations02[506],'Ybtl',-1,1300,0)
call SetTerrainTypeBJ(udg_locations02[506],'Ldrt',-1,(9-(bj_forLoopAIndex*3)),0)
call TriggerSleepAction(.2)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetTerrainTypeBJ(udg_locations02[506],'Ybtl',-1,1300,0)
call DisableTrigger(udg_trigger136)
call ResetToGameCamera(2.)
call EnableWeatherEffect(udg_weathereffect06,false)
call RemoveWeatherEffect(udg_weathereffect06)
call RemoveLocation(udg_locations02[506])
endfunction
function rl takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function il takes nothing returns boolean
return(GetFilterUnit()!=udg_unit264)
endfunction
function al takes nothing returns boolean
return GetBooleanAnd(rl(),il())
endfunction
function nl takes nothing returns nothing
set udg_locations02[507]=GetUnitLoc(GetEnumUnit())
set udg_locations02[508]=xB(udg_locations02[507],20.,AngleBetweenPoints(udg_locations02[507],udg_locations02[506]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations02[508]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations02[508]))
call RemoveLocation(udg_locations02[507])
call RemoveLocation(udg_locations02[508])
endfunction
function Vl takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(600.,udg_locations02[506],Condition(function al)),function nl)
endfunction
function El takes nothing returns boolean
return(GetSpellAbilityId()=='A0E6')
endfunction
function Xl takes nothing returns nothing
set udg_unit246=GetSpellTargetUnit()
set udg_locations02[505]=GetUnitLoc(GetTriggerUnit())
call PauseUnit(udg_unit270,true)
call PauseUnit(udg_unit246,true)
call SetUnitInvulnerable(udg_unit270,true)
call SetUnitInvulnerable(udg_unit246,true)
call SetUnitPathing(udg_unit270,false)
call SetUnitPathing(udg_unit246,false)
call CreateNUnitsAtLoc(1,'h00A',GetOwningPlayer(udg_unit270),udg_locations02[505],bj_UNIT_FACING)
set udg_unit71=bj_lastCreatedUnit
call SetUnitScale(udg_unit71,2.,2.,2.)
call SetUnitTimeScalePercent(udg_unit246,.0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit246),udg_locations02[505],0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit270),udg_locations02[505],0)
call RotateCameraAroundLocBJ(720.,udg_locations02[505],GetOwningPlayer(udg_unit246),3.)
call RotateCameraAroundLocBJ(720.,udg_locations02[505],GetOwningPlayer(udg_unit270),3.)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit246),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-500.),3.)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit270),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-500.),3.)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit246),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit270)-180.),3.)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit270),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit270)-180.),3.)
call TriggerSleepAction(.5)
call RemoveLocation(udg_locations02[505])
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit270,7)
call TriggerSleepAction(2.)
call SetUnitTimeScalePercent(udg_unit246,100.)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit246),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit270),0)
call SetUnitAnimationByIndex(udg_unit270,4)
call CreateTextTagUnitBJ("2 palms",udg_unit270,0,15.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call TriggerSleepAction(.35)
call SetUnitAnimation(udg_unit246,"death")
set udg_locations02[181]=GetUnitLoc(udg_unit246)
set udg_locations02[182]=GetUnitLoc(udg_unit270)
set udg_locations02[183]=xB(udg_locations02[181],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
set udg_locations02[184]=xB(udg_locations02[182],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitFacing(udg_unit270,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitPositionLoc(udg_unit246,udg_locations02[183])
call SetUnitPositionLoc(udg_unit270,udg_locations02[184])
call AddSpecialEffectLocBJ(udg_locations02[183],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[181])
call RemoveLocation(udg_locations02[182])
call RemoveLocation(udg_locations02[183])
call RemoveLocation(udg_locations02[184])
call SetUnitTimeScalePercent(udg_unit270,150.)
call CreateTextTagUnitBJ("4 palms",udg_unit270,0,15.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
set udg_integers06[5]=1
loop
exitwhen udg_integers06[5]>2
call SetUnitAnimationByIndex(udg_unit270,GetRandomInt(4,5))
call TriggerSleepAction(.3)
call SetUnitAnimation(udg_unit246,"death")
set udg_locations02[181]=GetUnitLoc(udg_unit246)
set udg_locations02[182]=GetUnitLoc(udg_unit270)
set udg_locations02[183]=xB(udg_locations02[181],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
set udg_locations02[184]=xB(udg_locations02[182],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitFacing(udg_unit270,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitPositionLoc(udg_unit246,udg_locations02[183])
call SetUnitPositionLoc(udg_unit270,udg_locations02[184])
call AddSpecialEffectLocBJ(udg_locations02[183],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[181])
call RemoveLocation(udg_locations02[182])
call RemoveLocation(udg_locations02[183])
call RemoveLocation(udg_locations02[184])
set udg_integers06[5]=udg_integers06[5]+1
endloop
call SetUnitTimeScalePercent(udg_unit270,200.)
call CreateTextTagUnitBJ("8 palms",udg_unit270,0,15.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
set udg_integers06[5]=1
loop
exitwhen udg_integers06[5]>3
call SetUnitAnimationByIndex(udg_unit270,GetRandomInt(4,5))
call TriggerSleepAction(.25)
call SetUnitAnimation(udg_unit246,"death")
set udg_locations02[181]=GetUnitLoc(udg_unit246)
set udg_locations02[182]=GetUnitLoc(udg_unit270)
set udg_locations02[183]=xB(udg_locations02[181],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
set udg_locations02[184]=xB(udg_locations02[182],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitFacing(udg_unit270,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitPositionLoc(udg_unit246,udg_locations02[183])
call SetUnitPositionLoc(udg_unit270,udg_locations02[184])
call AddSpecialEffectLocBJ(udg_locations02[183],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[181])
call RemoveLocation(udg_locations02[182])
call RemoveLocation(udg_locations02[183])
call RemoveLocation(udg_locations02[184])
set udg_integers06[5]=udg_integers06[5]+1
endloop
call SetUnitTimeScalePercent(udg_unit270,250.)
call CreateTextTagUnitBJ("16 palms",udg_unit270,0,15.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
set udg_integers06[5]=1
loop
exitwhen udg_integers06[5]>6
call SetUnitAnimationByIndex(udg_unit270,GetRandomInt(4,5))
call TriggerSleepAction(.2)
call SetUnitAnimation(udg_unit246,"death")
set udg_locations02[181]=GetUnitLoc(udg_unit246)
set udg_locations02[182]=GetUnitLoc(udg_unit270)
set udg_locations02[183]=xB(udg_locations02[181],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
set udg_locations02[184]=xB(udg_locations02[182],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitFacing(udg_unit270,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitPositionLoc(udg_unit246,udg_locations02[183])
call SetUnitPositionLoc(udg_unit270,udg_locations02[184])
call AddSpecialEffectLocBJ(udg_locations02[183],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[181])
call RemoveLocation(udg_locations02[182])
call RemoveLocation(udg_locations02[183])
call RemoveLocation(udg_locations02[184])
set udg_integers06[5]=udg_integers06[5]+1
endloop
call SetUnitTimeScalePercent(udg_unit270,300.)
call CreateTextTagUnitBJ("32 palms",udg_unit270,0,15.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
set udg_integers06[5]=1
loop
exitwhen udg_integers06[5]>9
call SetUnitAnimationByIndex(udg_unit270,GetRandomInt(4,5))
call TriggerSleepAction(.15)
call SetUnitAnimation(udg_unit246,"death")
set udg_locations02[181]=GetUnitLoc(udg_unit246)
set udg_locations02[182]=GetUnitLoc(udg_unit270)
set udg_locations02[183]=xB(udg_locations02[181],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
set udg_locations02[184]=xB(udg_locations02[182],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitFacing(udg_unit270,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitPositionLoc(udg_unit246,udg_locations02[183])
call SetUnitPositionLoc(udg_unit270,udg_locations02[184])
call AddSpecialEffectLocBJ(udg_locations02[183],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[181])
call RemoveLocation(udg_locations02[182])
call RemoveLocation(udg_locations02[183])
call RemoveLocation(udg_locations02[184])
set udg_integers06[5]=udg_integers06[5]+1
endloop
call SetUnitTimeScalePercent(udg_unit270,350.)
call CreateTextTagUnitBJ("64 palms",udg_unit270,0,15.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
set udg_integers06[5]=1
loop
exitwhen udg_integers06[5]>12
call SetUnitAnimationByIndex(udg_unit270,GetRandomInt(4,5))
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit246,"death")
set udg_locations02[181]=GetUnitLoc(udg_unit246)
set udg_locations02[182]=GetUnitLoc(udg_unit270)
set udg_locations02[183]=xB(udg_locations02[181],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
set udg_locations02[184]=xB(udg_locations02[182],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitFacing(udg_unit270,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitPositionLoc(udg_unit246,udg_locations02[183])
call SetUnitPositionLoc(udg_unit270,udg_locations02[184])
call AddSpecialEffectLocBJ(udg_locations02[183],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[181])
call RemoveLocation(udg_locations02[182])
call RemoveLocation(udg_locations02[183])
call RemoveLocation(udg_locations02[184])
set udg_integers06[5]=udg_integers06[5]+1
endloop
call SetUnitTimeScalePercent(udg_unit270,400.)
call CreateTextTagUnitBJ("128 palms",udg_unit270,0,15.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
set udg_integers06[5]=1
loop
exitwhen udg_integers06[5]>15
call SetUnitAnimationByIndex(udg_unit270,GetRandomInt(4,5))
call TriggerSleepAction(.05)
call SetUnitAnimation(udg_unit246,"death")
set udg_locations02[181]=GetUnitLoc(udg_unit246)
set udg_locations02[182]=GetUnitLoc(udg_unit270)
set udg_locations02[183]=xB(udg_locations02[181],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
set udg_locations02[184]=xB(udg_locations02[182],10.,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitFacing(udg_unit270,AngleBetweenPoints(udg_locations02[182],udg_locations02[181]))
call SetUnitPositionLoc(udg_unit246,udg_locations02[183])
call SetUnitPositionLoc(udg_unit270,udg_locations02[184])
call AddSpecialEffectLocBJ(udg_locations02[183],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[181])
call RemoveLocation(udg_locations02[182])
call RemoveLocation(udg_locations02[183])
call RemoveLocation(udg_locations02[184])
set udg_integers06[5]=udg_integers06[5]+1
endloop
call SetUnitTimeScalePercent(udg_unit270,200.)
call SetUnitAnimationByIndex(udg_unit270,6)
call TriggerSleepAction(.3)
call SetUnitAnimation(udg_unit246,"death")
call EnableTrigger(udg_trigger138)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger138)
call SetUnitInvulnerable(udg_unit246,false)
set udg_locations02[182]=GetUnitLoc(udg_unit270)
call CreateNUnitsAtLoc(1,'h010',GetOwningPlayer(udg_unit270),udg_locations02[182],GetUnitFacing(udg_unit13))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.5,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852668,udg_unit246)
call RemoveLocation(udg_locations02[182])
call UnitDamageTarget(udg_unit270,udg_unit246,(I2R(GetHeroInt(udg_unit270,true))*150.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(.5)
call SetUnitPathing(udg_unit246,true)
call SetUnitPathing(udg_unit270,true)
call SetUnitInvulnerable(udg_unit270,false)
call PauseUnit(udg_unit270,false)
call PauseUnit(udg_unit246,false)
call RemoveUnit(udg_unit71)
call SetUnitTimeScalePercent(udg_unit270,100.)
call ResetUnitAnimation(udg_unit270)
set udg_unit71=null
set udg_unit246=null
endfunction
function Ol takes nothing returns nothing
set udg_locations02[181]=GetUnitLoc(udg_unit246)
set udg_locations02[183]=xB(udg_locations02[181],30.,GetUnitFacing(udg_unit270))
call SetUnitPositionLoc(udg_unit246,udg_locations02[183])
call AddSpecialEffectLocBJ(udg_locations02[183],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[181])
call RemoveLocation(udg_locations02[183])
endfunction
function Rl takes nothing returns boolean
return(GetSpellAbilityId()=='A0E5')
endfunction
function Il takes nothing returns boolean
return(IsUnitPaused(udg_unit270)==false)
endfunction
function Al takes nothing returns nothing
set udg_locations02[501]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[502]=GetSpellTargetLoc()
set udg_locations02[503]=xB(udg_locations02[501],300.,AngleBetweenPoints(udg_locations02[501],udg_locations02[502]))
call PauseUnit(udg_unit270,true)
call CreateNUnitsAtLoc(1,'h00A',GetOwningPlayer(udg_unit270),udg_locations02[501],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(.01)
call SetUnitAnimationByIndex(udg_unit270,7)
call TriggerSleepAction(.3)
call SetUnitTimeScalePercent(udg_unit270,150.)
call SetUnitAnimationByIndex(udg_unit270,6)
call TriggerSleepAction(.2)
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(udg_unit270),udg_locations02[501],AngleBetweenPoints(udg_locations02[501],udg_locations02[502]))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.5,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852125,udg_locations02[503])
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(udg_unit270),udg_locations02[501],AngleBetweenPoints(udg_locations02[501],udg_locations02[502]))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.5,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852555,udg_locations02[503])
call RemoveLocation(udg_locations02[503])
call PauseUnit(udg_unit270,false)
call SetUnitTimeScalePercent(udg_unit270,100.)
call EnableTrigger(udg_trigger140)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger140)
call RemoveLocation(udg_locations02[501])
call RemoveLocation(udg_locations02[502])
if(Il())then
call SetUnitInvulnerable(udg_unit270,false)
call ResetUnitAnimation(udg_unit270)
endif
endfunction
function Nl takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B015'))
endfunction
function bl takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function Bl takes nothing returns boolean
return GetBooleanAnd(Nl(),bl())
endfunction
function cl takes nothing returns nothing
set udg_locations02[503]=GetUnitLoc(GetEnumUnit())
set udg_locations02[504]=xB(udg_locations02[503],40.,AngleBetweenPoints(udg_locations02[501],udg_locations02[502]))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[504])
call UnitDamageTarget(udg_unit270,GetEnumUnit(),(I2R(GetHeroInt(udg_unit270,true))*1),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call AddSpecialEffectLocBJ(udg_locations02[503],"Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[503])
call RemoveLocation(udg_locations02[504])
endfunction
function Cl takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(1500.,udg_locations02[501],Condition(function Bl)),function cl)
endfunction
function dl takes nothing returns boolean
return(GetSpellAbilityId()=='A036')
endfunction
function Dl takes nothing returns boolean
return(IsUnitType(udg_unit11,UNIT_TYPE_HERO)!=null)
endfunction
function fl takes nothing returns boolean
return(IsUnitType(udg_unit11,UNIT_TYPE_HERO)!=null)
endfunction
function Fl takes nothing returns boolean
return(IsUnitType(udg_unit11,UNIT_TYPE_HERO)!=null)
endfunction
function gl takes nothing returns boolean
return(GetRandomInt(1,'d')>=50)
endfunction
function Gl takes nothing returns nothing
set udg_unit11=GetSpellTargetUnit()
set udg_locations02[185]=GetUnitLoc(udg_unit11)
call PauseUnit(udg_unit272,true)
call PauseUnit(udg_unit11,true)
call SetUnitInvulnerable(udg_unit272,true)
call SetUnitInvulnerable(udg_unit11,true)
call SetUnitPathing(udg_unit272,false)
call SetUnitPathing(udg_unit11,false)
call ShowUnitHide(udg_unit272)
call UnitAddAbility(udg_unit11,'Amrf')
call UnitAddAbility(udg_unit272,'Amrf')
if(Dl())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit11),udg_locations02[185],0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit11),CAMERA_FIELD_ROTATION,GetUnitFacing(udg_unit11),1.)
endif
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit272),udg_locations02[185],0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit272),CAMERA_FIELD_ROTATION,GetUnitFacing(udg_unit11),1.)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h02L',GetOwningPlayer(udg_unit272),udg_locations02[185],GetUnitFacing(udg_unit272))
set udg_unit12=bj_lastCreatedUnit
call SetUnitVertexColor(udg_unit12,255,50,50,255)
call SetUnitAnimationByIndex(udg_unit12,3)
call TriggerSleepAction(.2)
call AddSpecialEffectLocBJ(udg_locations02[185],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitFlyHeight(udg_unit11,350.,1000.)
call TriggerSleepAction(.2)
call AddSpecialEffectLocBJ(udg_locations02[185],"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ShowUnitHide(udg_unit12)
call RemoveUnit(udg_unit12)
set udg_unit12=null
call SetUnitFlyHeight(udg_unit11,350.,3000.)
call SetUnitFlyHeight(udg_unit272,350.,3000.)
set udg_locations02[500]=xB(udg_locations02[185],80.,GetUnitFacing(udg_unit11))
call SetUnitPositionLocFacingBJ(udg_unit272,udg_locations02[500],(GetUnitFacing(udg_unit11)-180.))
call AddSpecialEffectTargetUnitBJ("hand left",udg_unit272,"Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl")
set udg_effects01[141]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("hand right",udg_unit272,"Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl")
set udg_effects01[142]=bj_lastCreatedEffect
call TriggerSleepAction(.5)
call ShowUnitShow(udg_unit272)
call SetUnitAnimation(udg_unit272,"spell channel")
if(fl())then
call RotateCameraAroundLocBJ(360.,udg_locations02[185],GetOwningPlayer(udg_unit11),2.)
endif
call RotateCameraAroundLocBJ(360.,udg_locations02[185],GetOwningPlayer(udg_unit272),2.)
call TriggerSleepAction(2.)
call SetUnitTimeScalePercent(udg_unit272,350.)
call CreateNUnitsAtLoc(1,'h02P',GetOwningPlayer(udg_unit272),udg_locations02[185],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,350.,10000.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[515]=xB(udg_locations02[185],(1000.*CosBJ((18.*I2R(bj_forLoopAIndex)))),(GetUnitFacing(udg_unit272)+90.))
call CreateNUnitsAtLoc(1,'h02Q',GetOwningPlayer(udg_unit272),udg_locations02[515],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,(350.+(1000.*SinBJ((18.*I2R(bj_forLoopAIndex))))),10000.)
call RemoveLocation(udg_locations02[515])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=6
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[515]=xB(udg_locations02[185],(1000.*CosBJ((18.*I2R(bj_forLoopAIndex)))),(GetUnitFacing(udg_unit272)+90.))
call CreateNUnitsAtLoc(1,'h02Q',GetOwningPlayer(udg_unit272),udg_locations02[515],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,(350.+(1000.*SinBJ((18.*I2R(bj_forLoopAIndex))))),10000.)
call RemoveLocation(udg_locations02[515])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=11
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[515]=xB(udg_locations02[185],(1000.*CosBJ((18.*I2R(bj_forLoopAIndex)))),(GetUnitFacing(udg_unit272)+90.))
call CreateNUnitsAtLoc(1,'h02Q',GetOwningPlayer(udg_unit272),udg_locations02[515],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,(350.+(1000.*SinBJ((18.*I2R(bj_forLoopAIndex))))),10000.)
call RemoveLocation(udg_locations02[515])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=16
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[515]=xB(udg_locations02[185],(1000.*CosBJ((18.*I2R(bj_forLoopAIndex)))),(GetUnitFacing(udg_unit272)+90.))
call CreateNUnitsAtLoc(1,'h02Q',GetOwningPlayer(udg_unit272),udg_locations02[515],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,(350.+(1000.*SinBJ((18.*I2R(bj_forLoopAIndex))))),10000.)
call RemoveLocation(udg_locations02[515])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Fl())then
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit11),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)+1000.),1.)
endif
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit272),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)+1000.),1.)
set udg_integers06[6]=1
loop
exitwhen udg_integers06[6]>25
if(gl())then
call SetUnitAnimationByIndex(udg_unit272,2)
else
call SetUnitAnimationByIndex(udg_unit272,11)
endif
call PlaySoundOnUnitBJ(udg_sound01,'d',udg_unit11)
call TriggerSleepAction(.15)
call SetUnitAnimation(udg_unit11,"death")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit11,"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_integers06[6]=udg_integers06[6]+1
endloop
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit272),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit11),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit11),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit272)+90.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit272),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit272)+90.),0)
call SetUnitAnimation(udg_unit11,"death")
call SetUnitAnimation(udg_unit272,"stand ready")
call SetUnitFlyHeight(udg_unit272,.0,2000.)
call DestroyEffect(udg_effects01[141])
call DestroyEffect(udg_effects01[142])
call AddSpecialEffectTargetUnitBJ("origin",udg_unit11,"Environment\\LargeBuildingFire\\LargeBuildingFire1.mdl")
set udg_effects01[141]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[185])
call RemoveLocation(udg_locations02[500])
call EnableTrigger(udg_trigger142)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger142)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit272),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit11),0)
call SetUnitTimeScalePercent(udg_unit272,100.)
call SetUnitFlyHeight(udg_unit11,.0,10000.)
call DestroyEffect(udg_effects01[141])
call TriggerSleepAction(.5)
call UnitRemoveAbility(udg_unit11,'Amrf')
call UnitRemoveAbility(udg_unit272,'Amrf')
call SetUnitPathing(udg_unit272,true)
call SetUnitPathing(udg_unit11,true)
call SetUnitInvulnerable(udg_unit272,false)
call SetUnitInvulnerable(udg_unit11,false)
call PauseUnit(udg_unit272,false)
call PauseUnit(udg_unit11,false)
call UnitDamageTarget(udg_unit272,udg_unit11,(I2R(GetHeroStr(udg_unit272,true))*180.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call UnitDamageTarget(udg_unit272,udg_unit272,(I2R(GetHeroStr(udg_unit272,true))*75.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SelectUnitForPlayerSingle(udg_unit272,GetOwningPlayer(udg_unit272))
call SetPlayerAbilityAvailableBJ(false,'A036',GetOwningPlayer(udg_unit272))
set udg_unit11=null
endfunction
function hl takes nothing returns nothing
set udg_locations02[185]=GetUnitLoc(udg_unit11)
set udg_locations02[500]=xB(udg_locations02[185],15.,GetUnitFacing(udg_unit272))
call SetUnitPositionLoc(udg_unit11,udg_locations02[500])
call SetUnitFlyHeight(udg_unit11,(GetUnitFlyHeight(udg_unit11)-8.),10000.)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit11,"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[185])
call RemoveLocation(udg_locations02[500])
endfunction
function Hl takes nothing returns boolean
return(GetSpellAbilityId()=='A0DY')
endfunction
function jl takes nothing returns nothing
set udg_locations02[499]=GetUnitLoc(udg_unit259)
call PauseUnit(udg_unit259,true)
call SetUnitInvulnerable(udg_unit259,true)
call SetUnitPathing(udg_unit259,false)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit259,"spell slam")
call CreateNUnitsAtLoc(1,'h004',GetOwningPlayer(udg_unit259),udg_locations02[499],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call IssueImmediateOrderById(bj_lastCreatedUnit,852556)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit259),udg_locations02[499],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call IssueImmediateOrderById(bj_lastCreatedUnit,852556)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h00E',GetOwningPlayer(udg_unit259),udg_locations02[499],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call IssueImmediateOrderById(bj_lastCreatedUnit,852556)
call TriggerSleepAction(10.)
call SetUnitPathing(udg_unit259,true)
call SetUnitInvulnerable(udg_unit259,false)
call PauseUnit(udg_unit259,false)
call ResetUnitAnimation(udg_unit259)
call RemoveLocation(udg_locations02[499])
endfunction
function Jl takes nothing returns boolean
return(GetSpellAbilityId()=='A0D5')
endfunction
function kl takes nothing returns nothing
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit244,851971,udg_unit245)
endfunction
function Kl takes nothing returns boolean
return(GetSpellAbilityId()=='A0CK')
endfunction
function ll takes nothing returns nothing
set udg_unit244=GetTriggerUnit()
set udg_unit245=GetSpellTargetUnit()
call SetPlayerAbilityAvailableBJ(false,'A0CK',GetOwningPlayer(udg_unit244))
call UnitAddAbility(udg_unit244,'A0D5')
endfunction
function Ll takes nothing returns boolean
return(GetSpellAbilityId()=='A0EH')
endfunction
function ml takes nothing returns nothing
set udg_unit243=GetSpellTargetUnit()
call TriggerSleepAction(.5)
call UnitAddAbility(udg_unit243,'A0AF')
call IssueImmediateOrderById(udg_unit243,852556)
call SetPlayerAbilityAvailableBJ(false,'A0AF',GetOwningPlayer(udg_unit243))
call TriggerSleepAction(.5)
call SetUnitVertexColor(udg_unit243,0,0,0,255)
call TriggerSleepAction(19.)
call SetUnitVertexColor(udg_unit243,255,255,255,255)
call SetPlayerAbilityAvailableBJ(true,'A0AF',GetOwningPlayer(udg_unit243))
call UnitRemoveAbility(udg_unit243,'A0AF')
set udg_unit243=null
endfunction
function Ml takes nothing returns boolean
return(GetSpellAbilityId()=='A008')
endfunction
function pl takes nothing returns nothing
set udg_unit241=GetSpellTargetUnit()
set udg_locations02[497]=GetUnitLoc(GetTriggerUnit())
call PauseUnit(udg_unit261,true)
call SetUnitPathing(udg_unit261,false)
call SetUnitInvulnerable(udg_unit261,true)
call PauseUnit(udg_unit241,true)
call SetUnitPathing(udg_unit241,false)
call SetUnitInvulnerable(udg_unit241,true)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h021',GetOwningPlayer(udg_unit261),udg_locations02[497],GetUnitFacing(udg_unit261))
set udg_unit240=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[497])
call PauseUnit(udg_unit240,true)
call SetUnitVertexColor(udg_unit240,255,255,255,128)
call SetUnitScale(udg_unit240,3.,3.,3.)
call SetUnitAnimationByIndex(udg_unit261,2)
call SetUnitAnimationByIndex(udg_unit240,2)
call TriggerSleepAction(.3)
call SetUnitAnimation(udg_unit241,"death")
call EnableTrigger(udg_trigger148)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger148)
call RemoveUnit(udg_unit240)
call SetUnitInvulnerable(udg_unit261,false)
call SetUnitPathing(udg_unit261,true)
call PauseUnit(udg_unit261,false)
call SetUnitPathing(udg_unit241,true)
call SetUnitInvulnerable(udg_unit241,false)
call PauseUnit(udg_unit241,false)
call UnitDamageTarget(udg_unit261,udg_unit241,(GetUnitState(udg_unit261,UNIT_STATE_MAX_LIFE)*.2),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call UnitDamageTarget(udg_unit261,udg_unit261,(GetUnitState(udg_unit261,UNIT_STATE_MAX_LIFE)*.15),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_unit241=null
set udg_unit240=null
endfunction
function Pl takes nothing returns nothing
set udg_locations02[497]=GetUnitLoc(udg_unit241)
set udg_locations02[498]=xB(udg_locations02[497],20.,GetUnitFacing(udg_unit261))
call SetUnitPositionLoc(udg_unit241,udg_locations02[498])
call AddSpecialEffectLocBJ(udg_locations02[497],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[497])
call RemoveLocation(udg_locations02[498])
endfunction
function ql takes nothing returns boolean
return(GetSpellAbilityId()=='A08V')
endfunction
function Ql takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetEnumPlayer(),50.)
endfunction
function sl takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit252)))
endfunction
function Sl takes nothing returns boolean
return(IsUnitPaused(GetFilterUnit())==false)
endfunction
function tl takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Tl takes nothing returns boolean
return GetBooleanAnd(Sl(),tl())
endfunction
function ul takes nothing returns boolean
return GetBooleanAnd(sl(),Tl())
endfunction
function Ul takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
call UnitAddAbility(GetEnumUnit(),'Amrf')
call SetUnitAnimation(GetEnumUnit(),"death")
endfunction
function wl takes nothing returns nothing
set udg_locations02[496]=GetUnitLoc(GetEnumUnit())
call SetUnitFlyHeight(GetEnumUnit(),.0,10000.)
call UnitRemoveAbility(udg_unit38,'Amrf')
call PauseUnit(GetEnumUnit(),false)
call AddSpecialEffectLocBJ(udg_locations02[496],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[496])
call UnitDamageTarget(udg_unit252,GetEnumUnit(),30000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function Wl takes nothing returns nothing
set udg_locations02[496]=GetUnitLoc(udg_unit252)
call PauseUnit(udg_unit252,true)
call SetUnitInvulnerable(udg_unit252,true)
call CreateNUnitsAtLoc(1,'h026',GetOwningPlayer(udg_unit252),udg_locations02[496],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h025',GetOwningPlayer(udg_unit252),udg_locations02[496],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateUbersplatBJ(udg_locations02[496],"THND",'d','d','d',0,true,true)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
call ShowUbersplat(bj_lastCreatedUbersplat,true)
call CameraSetTargetNoiseEx(50.,.1,true)
call ForForce(bj_FORCE_ALL_PLAYERS,function Ql)
set udg_group18=XB(1200.,udg_locations02[496],Condition(function ul))
call ForGroupBJ(udg_group18,function Ul)
call RemoveLocation(udg_locations02[496])
call EnableTrigger(udg_trigger150)
call TriggerSleepAction(2.)
call DisableTrigger(udg_trigger150)
call ForGroupBJ(udg_group18,function wl)
call ResetToGameCamera(0)
call SetUnitInvulnerable(udg_unit252,false)
call PauseUnit(udg_unit252,false)
call DestroyGroup(udg_group18)
set udg_integer52=0
endfunction
function yl takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),(1000.-(.4*Pow((I2R(udg_integer52)-50.),2.))),10000.)
endfunction
function Yl takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),((40.*I2R(udg_integer52))-(.4*Pow(I2R(udg_integer52),2.))),10000.)
endfunction
function zl takes nothing returns boolean
return(udg_integer52<50)
endfunction
function Zl takes nothing returns nothing
set udg_integer52=(udg_integer52+1)
if(zl())then
call ForGroupBJ(udg_group18,function Yl)
else
call ForGroupBJ(udg_group18,function yl)
endif
endfunction
function vL takes nothing returns boolean
return(GetSpellAbilityId()=='A07S')
endfunction
function eL takes nothing returns nothing
set udg_unit239=GetSpellTargetUnit()
call PauseUnit(udg_unit250,true)
call PauseUnit(udg_unit239,true)
call SetUnitInvulnerable(udg_unit239,true)
call SetUnitInvulnerable(udg_unit250,true)
call SetUnitPathing(udg_unit239,false)
call SetUnitPathing(udg_unit250,false)
call UnitAddAbility(udg_unit239,'Amrf')
call SetUnitAnimation(udg_unit239,"death")
call TriggerSleepAction(.1)
call SetUnitTimeScalePercent(udg_unit239,.0)
call SetUnitAnimationByIndex(udg_unit250,2)
call TriggerSleepAction(.5)
call SetUnitTimeScalePercent(udg_unit250,.0)
call EnableTrigger(udg_trigger152)
call TriggerSleepAction(3.5)
call DisableTrigger(udg_trigger152)
call SetUnitFlyHeight(udg_unit239,.0,10000.)
call UnitRemoveAbility(udg_unit239,'Amrf')
call ResetUnitAnimation(udg_unit239)
call ResetUnitAnimation(udg_unit250)
call PauseUnit(udg_unit239,false)
call PauseUnit(udg_unit250,false)
call SetUnitPathing(udg_unit239,true)
call SetUnitPathing(udg_unit250,true)
call SetUnitInvulnerable(udg_unit239,false)
call SetUnitInvulnerable(udg_unit250,false)
call UnitDamageTarget(udg_unit250,udg_unit239,(I2R(GetHeroInt(udg_unit250,true))*70.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_integer51=0
set udg_unit239=null
endfunction
function xL takes nothing returns boolean
return(udg_integer51==150)
endfunction
function oL takes nothing returns boolean
return(udg_integer51<150)
endfunction
function rL takes nothing returns nothing
set udg_integer51=(udg_integer51+1)
if(oL())then
set udg_locations02[492]=GetUnitLoc(udg_unit250)
set udg_locations02[493]=GetUnitLoc(udg_unit239)
set udg_locations02[494]=xB(udg_locations02[492],20.,AngleBetweenPoints(udg_locations02[492],udg_locations02[493]))
set udg_locations02[495]=xB(udg_locations02[493],20.,AngleBetweenPoints(udg_locations02[492],udg_locations02[493]))
call SetUnitPositionLoc(udg_unit250,udg_locations02[494])
call SetUnitPositionLoc(udg_unit239,udg_locations02[495])
call AddSpecialEffectLocBJ(udg_locations02[495],"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[492])
call RemoveLocation(udg_locations02[493])
call RemoveLocation(udg_locations02[494])
call RemoveLocation(udg_locations02[495])
else
set udg_locations02[492]=GetUnitLoc(udg_unit250)
set udg_locations02[493]=GetUnitLoc(udg_unit239)
set udg_locations02[495]=xB(udg_locations02[493],30.,AngleBetweenPoints(udg_locations02[492],udg_locations02[493]))
if(xL())then
call SetUnitTimeScalePercent(udg_unit250,100.)
call SetUnitTimeScalePercent(udg_unit239,100.)
call SetUnitAnimationByIndex(udg_unit250,3)
call CreateNUnitsAtLoc(1,'h026',GetOwningPlayer(udg_unit250),udg_locations02[493],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations02[495],"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endif
call SetUnitPositionLoc(udg_unit239,udg_locations02[495])
call SetUnitFlyHeight(udg_unit239,(((-2.*Pow(I2R(udg_integer51),2.))+(650.*I2R(udg_integer51)))-52500.),10000.)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit239,"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[492])
call RemoveLocation(udg_locations02[493])
call RemoveLocation(udg_locations02[495])
endif
endfunction
function iL takes nothing returns boolean
return(GetSpellAbilityId()=='A046')
endfunction
function aL takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit90)))
endfunction
function nL takes nothing returns nothing
call IssueTargetOrderById(udg_unit90,851983,GetEnumUnit())
endfunction
function VL takes nothing returns nothing
set udg_unit90=GetSpellTargetUnit()
set udg_locations02[481]=GetUnitLoc(udg_unit90)
call DisplayTextToPlayer(GetOwningPlayer(udg_unit90),0,0,(("You are hit by "+GetObjectName('A046'))+", you cannot control anything for 15 seconds!"))
call SetUserControlForceOff(CB(GetOwningPlayer(udg_unit90)))
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit90),udg_unit90,0,0,false)
call ForGroupBJ(GB(1,XB(2000.,udg_locations02[481],Condition(function aL))),function nL)
call DestroyGroup(GetLastCreatedGroup())
call TriggerSleepAction(15.)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit90),0)
call SetUserControlForceOn(dB(GetPlayerController(GetOwningPlayer(udg_unit90))))
call RemoveLocation(udg_locations02[481])
set udg_unit90=null
endfunction
function EL takes nothing returns boolean
return(GetSpellAbilityId()=='A09L')
endfunction
function XL takes nothing returns nothing
set udg_locations02[478]=GetUnitLoc(GetSpellTargetUnit())
set udg_locations02[479]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[480]=xB(udg_locations02[478],200.,AngleBetweenPoints(udg_locations02[478],udg_locations02[479]))
set udg_unit236=GetSpellTargetUnit()
call TriggerSleepAction(.0)
call PauseUnit(udg_unit236,true)
call PauseUnit(udg_unit286,true)
call SetUnitInvulnerable(udg_unit236,true)
call SetUnitInvulnerable(udg_unit286,true)
call SetUnitPositionLoc(udg_unit286,udg_locations02[480])
call SetUnitFacingToFaceUnitTimed(udg_unit286,udg_unit236,.0)
call RemoveLocation(udg_locations02[479])
call RemoveLocation(udg_locations02[480])
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit286),udg_unit286,0,0,false)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit286),CAMERA_FIELD_ANGLE_OF_ATTACK,GetRandomReal(320.,345.),.0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit286),CAMERA_FIELD_FIELD_OF_VIEW,GetRandomReal(30.,70.),.0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit286),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit286)-180.),.0)
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit236),udg_unit286,0,0,false)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit236),CAMERA_FIELD_ANGLE_OF_ATTACK,GetRandomReal(320.,345.),.0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit236),CAMERA_FIELD_FIELD_OF_VIEW,GetRandomReal(30.,70.),.0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit236),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit286)-180.),.0)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit286,"spell")
call TriggerSleepAction(.8)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit236),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit286),0)
call PauseUnit(udg_unit236,false)
call PauseUnit(udg_unit286,false)
call SetUnitInvulnerable(udg_unit236,false)
call SetUnitInvulnerable(udg_unit286,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[479]=xB(udg_locations02[478],800.,(I2R(bj_forLoopAIndex)*36.))
call CreateNUnitsAtLoc(1,'h027',GetOwningPlayer(udg_unit286),udg_locations02[479],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call SetUnitMoveSpeed(bj_lastCreatedUnit,.0)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,851983,udg_unit236)
call SetUnitFlyHeight(bj_lastCreatedUnit,2000.,10000.)
call RemoveLocation(udg_locations02[479])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[478])
set udg_unit236=null
endfunction
function OL takes nothing returns boolean
return(GetSpellAbilityId()=='A016')
endfunction
function RL takes nothing returns nothing
set udg_locations02[475]=GetSpellTargetLoc()
set udg_integers06[7]=1
loop
exitwhen udg_integers06[7]>50
set udg_locations02[476]=xB(udg_locations02[475],GetRandomReal(0,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'e00V',GetOwningPlayer(udg_unit276),udg_locations02[476],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(1.,'BTLF',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,1100.)
call RemoveLocation(udg_locations02[476])
call TriggerSleepAction(.01)
set udg_integers06[7]=udg_integers06[7]+1
endloop
call RemoveLocation(udg_locations02[475])
endfunction
function IL takes nothing returns boolean
return(GetSpellAbilityId()=='A03H')
endfunction
function AL takes nothing returns nothing
set udg_locations02[472]=GetUnitLoc(GetSpellTargetUnit())
set udg_unit235=GetSpellTargetUnit()
set udg_real26=GetRandomReal(0,360.)
call PauseUnit(udg_unit235,true)
call SetUnitInvulnerable(udg_unit235,true)
call SetUnitPathing(udg_unit235,false)
call UnitAddAbility(udg_unit235,'Amrf')
call CreateNUnitsAtLoc(1,'h00Z',GetOwningPlayer(udg_unit274),udg_locations02[472],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(6.,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit235,"death")
call EnableTrigger(udg_trigger157)
call TriggerSleepAction(6.)
call DisableTrigger(udg_trigger157)
call SetUnitFlyHeight(udg_unit235,.0,10000.)
call SetUnitPathing(udg_unit235,true)
call UnitRemoveAbility(udg_unit235,'Amrf')
call TriggerSleepAction(2.)
call SetUnitInvulnerable(udg_unit235,false)
call PauseUnit(udg_unit235,false)
call UnitDamageTarget(udg_unit274,udg_unit235,30000.,true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call UnitDamageTarget(udg_unit274,udg_unit235,20000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[472])
set udg_real26=.0
set udg_unit235=null
set udg_integer45=0
endfunction
function NL takes nothing returns boolean
return(udg_integer45<=200)
endfunction
function bL takes nothing returns nothing
set udg_integer45=(udg_integer45+1)
if(NL())then
set udg_locations02[473]=xB(udg_locations02[472],(I2R(udg_integer45)*3.),(I2R(udg_integer45)*10.))
call SetUnitFlyHeight(udg_unit235,(I2R(udg_integer45)*3.5),10000.)
call SetUnitPositionLoc(udg_unit235,udg_locations02[473])
call RemoveLocation(udg_locations02[473])
else
set udg_locations02[474]=GetUnitLoc(udg_unit235)
set udg_locations02[473]=xB(udg_locations02[474],20.,udg_real26)
call SetUnitFlyHeight(udg_unit235,(((-.15*Pow(I2R(udg_integer45),2.))+(61.2*I2R(udg_integer45)))-5300.),10000.)
call SetUnitPositionLoc(udg_unit235,udg_locations02[473])
call RemoveLocation(udg_locations02[473])
call RemoveLocation(udg_locations02[474])
endif
endfunction
function BL takes nothing returns boolean
return(GetSpellAbilityId()=='A04Y')
endfunction
function cL takes nothing returns nothing
set udg_locations02[469]=GetUnitLoc(udg_unit274)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit274),udg_locations02[469],bj_UNIT_FACING)
set udg_units11[bj_forLoopAIndex]=bj_lastCreatedUnit
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger159)
call TriggerSleepAction(20.)
call DisableTrigger(udg_trigger159)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units11[bj_forLoopAIndex])
set udg_units11[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer44=0
call RemoveLocation(udg_locations02[469])
endfunction
function CL takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit274)))
endfunction
function dL takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function DL takes nothing returns boolean
return GetBooleanAnd(CL(),dL())
endfunction
function fL takes nothing returns nothing
set udg_locations02[470]=GetUnitLoc(GetEnumUnit())
set udg_locations02[471]=xB(udg_locations02[470],5.,AngleBetweenPoints(udg_locations02[470],udg_locations02[469]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations02[471]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations02[471]))
call RemoveLocation(udg_locations02[470])
call RemoveLocation(udg_locations02[471])
endfunction
function FL takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit274)))
endfunction
function gL takes nothing returns nothing
call UnitDamageTarget(udg_unit274,GetEnumUnit(),(I2R(GetHeroInt(udg_unit274,true))*.5),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function GL takes nothing returns nothing
set udg_integer44=(udg_integer44+1)
set udg_locations02[469]=GetUnitLoc(udg_unit274)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(800.,udg_locations02[469],Condition(function DL)),function fL)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[470]=xB(udg_locations02[469],256,((I2R(bj_forLoopAIndex)*60.)+I2R(udg_integer44)))
call SetUnitPositionLoc(udg_units11[bj_forLoopAIndex],udg_locations02[470])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(100.,udg_locations02[470],Condition(function FL)),function gL)
call RemoveLocation(udg_locations02[470])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[469])
endfunction
function hL takes nothing returns boolean
return(GetSpellAbilityId()=='A04X')
endfunction
function HL takes nothing returns nothing
set udg_locations02[234]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[237]=xB(udg_locations02[234],256,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'h00Z',GetOwningPlayer(udg_unit274),udg_locations02[237],GetUnitFacing(GetTriggerUnit()))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,500.)
set udg_unit234=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[237])
set udg_locations02[237]=xB(udg_locations02[234],2000.,GetUnitFacing(udg_unit234))
call SetUnitPathing(udg_unit234,false)
call IssuePointOrderByIdLoc(udg_unit234,851986,udg_locations02[237])
call RemoveLocation(udg_locations02[234])
call RemoveLocation(udg_locations02[237])
call EnableTrigger(udg_trigger161)
call TriggerSleepAction(10.)
call DisableTrigger(udg_trigger161)
call KillUnit(udg_unit234)
set udg_unit234=null
endfunction
function jL takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function JL takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit234)))
endfunction
function kL takes nothing returns boolean
return GetBooleanAnd(jL(),JL())
endfunction
function KL takes nothing returns boolean
return(AngleBetweenPoints(udg_locations02[234],udg_locations02[237])<=400.)
endfunction
function lL takes nothing returns nothing
set udg_locations02[237]=GetUnitLoc(GetEnumUnit())
set udg_locations02[468]=xB(udg_locations02[237],10.,AngleBetweenPoints(udg_locations02[237],udg_locations02[234]))
call SetUnitX(GetEnumUnit(),GetLocationX(udg_locations02[468]))
call SetUnitY(GetEnumUnit(),GetLocationY(udg_locations02[468]))
if(KL())then
call UnitDamageTarget(udg_unit274,GetEnumUnit(),(I2R(GetHeroInt(udg_unit274,true))*.5),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endif
call RemoveLocation(udg_locations02[237])
call RemoveLocation(udg_locations02[468])
endfunction
function LL takes nothing returns nothing
set udg_locations02[234]=GetUnitLoc(udg_unit234)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(1000.,udg_locations02[234],Condition(function kL)),function lL)
call RemoveLocation(udg_locations02[234])
endfunction
function mL takes nothing returns boolean
return(GetSpellAbilityId()=='A08T')
endfunction
function ML takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[150],udg_locations02[151])>=450.)
endfunction
function pL takes nothing returns nothing
set udg_unit70=GetTriggerUnit()
set udg_unit69=GetSpellTargetUnit()
set udg_locations02[150]=GetUnitLoc(udg_unit70)
set udg_locations02[151]=GetUnitLoc(udg_unit69)
if(ML())then
call RemoveLocation(udg_locations02[150])
call RemoveLocation(udg_locations02[151])
call PauseUnit(udg_unit70,true)
call SetUnitInvulnerable(udg_unit70,true)
call SetUnitPathing(udg_unit70,false)
call SetUnitPathing(udg_unit69,false)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit70,"stand ready")
call AddSpecialEffectTargetUnitBJ("hand",udg_unit70,"Abilities\\Spells\\Orc\\Bloodlust\\BloodlustTarget.mdl")
set udg_effects01['j']=bj_lastCreatedEffect
call TriggerSleepAction(1.)
call SetUnitAnimationByIndex(udg_unit70,4)
call EnableTrigger(udg_trigger163)
else
call CreateTextTagLocBJ("You are too close to your enemy....",udg_locations02[150],0,10,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.5)
call RemoveLocation(udg_locations02[150])
call RemoveLocation(udg_locations02[151])
set udg_unit70=null
set udg_unit69=null
endif
endfunction
function PL takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[150],udg_locations02[151])<=450.)
endfunction
function qL takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[150],udg_locations02[151])<=100.)
endfunction
function QL takes nothing returns nothing
set udg_locations02[150]=GetUnitLoc(udg_unit70)
set udg_locations02[151]=GetUnitLoc(udg_unit69)
if(PL())then
call SetUnitAnimationByIndex(udg_unit70,3)
endif
if(qL())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_unit69,"death")
call PauseUnit(udg_unit69,true)
call EnableTrigger(udg_trigger164)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger164)
call DestroyEffect(udg_effects01['j'])
call PauseUnit(udg_unit69,false)
call UnitDamageTarget(udg_unit70,udg_unit69,(I2R(GetHeroStatBJ(0,udg_unit70,true))*100.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitInvulnerable(udg_unit70,false)
call PauseUnit(udg_unit70,false)
call SetUnitPathing(udg_unit70,true)
call SetUnitPathing(udg_unit69,true)
call ResetUnitAnimation(udg_unit70)
set udg_unit70=null
set udg_unit69=null
return
else
set udg_locations02[152]=xB(udg_locations02[150],30.,AngleBetweenPoints(udg_locations02[150],udg_locations02[151]))
call AddSpecialEffectLocBJ(udg_locations02[152],"Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitPositionLocFacingLocBJ(udg_unit70,udg_locations02[152],udg_locations02[151])
call RemoveLocation(udg_locations02[152])
endif
call RemoveLocation(udg_locations02[150])
call RemoveLocation(udg_locations02[151])
endfunction
function sL takes nothing returns nothing
set udg_locations02[151]=GetUnitLoc(udg_unit69)
set udg_locations02[152]=xB(udg_locations02[151],30.,AngleBetweenPoints(udg_locations02[150],udg_locations02[151]))
call AddSpecialEffectLocBJ(udg_locations02[151],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitPositionLoc(udg_unit69,udg_locations02[152])
call RemoveLocation(udg_locations02[151])
call RemoveLocation(udg_locations02[152])
endfunction
function SL takes nothing returns boolean
return(GetSpellAbilityId()=='A0DT')
endfunction
function tL takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit288)))
endfunction
function TL takes nothing returns nothing
call UnitDamageTarget(udg_unit288,GetEnumUnit(),30000.,false,true,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function uL takes nothing returns nothing
set udg_locations02[468]=GetSpellTargetLoc()
call AddSpecialEffectLocBJ(udg_locations02[468],"Abilities\\Spells\\Other\\Andt\\Andt.mdl")
set udg_effects01[139]=bj_lastCreatedEffect
call TriggerSleepAction(1.)
set udg_integers06[8]=1
loop
exitwhen udg_integers06[8]>6
set udg_locations02[469]=xB(udg_locations02[468],GetRandomReal(0,300.),GetRandomReal(0,360.))
call AddSpecialEffectLocBJ(udg_locations02[469],"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[469],"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(100.,udg_locations02[469],Condition(function tL)),function TL)
call RemoveLocation(udg_locations02[469])
call TriggerSleepAction(.15)
set udg_integers06[8]=udg_integers06[8]+1
endloop
call DestroyEffect(udg_effects01[139])
call RemoveLocation(udg_locations02[468])
endfunction
function UL takes nothing returns boolean
return(GetSpellAbilityId()=='A0DP')
endfunction
function wL takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit227=GetTriggerUnit()
call SetPlayerAbilityAvailableBJ(false,'A0DI',GetOwningPlayer(udg_unit227))
call SetPlayerAbilityAvailableBJ(false,'A0DM',GetOwningPlayer(udg_unit227))
call SetPlayerAbilityAvailableBJ(false,'A0DN',GetOwningPlayer(udg_unit227))
call UnitAddAbility(udg_unit227,'Agyv')
call SetPlayerAbilityAvailableBJ(false,'Agyv',GetOwningPlayer(udg_unit227))
call TriggerSleepAction(17.)
call SetPlayerAbilityAvailableBJ(true,'A0DI',GetOwningPlayer(udg_unit227))
call SetPlayerAbilityAvailableBJ(true,'A0DM',GetOwningPlayer(udg_unit227))
call SetPlayerAbilityAvailableBJ(true,'A0DN',GetOwningPlayer(udg_unit227))
call UnitRemoveAbility(udg_unit227,'Agyv')
call SetPlayerAbilityAvailableBJ(true,'Agyv',GetOwningPlayer(udg_unit227))
set udg_unit227=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function WL takes nothing returns boolean
return(GetSpellAbilityId()=='A0DN')
endfunction
function yL takes nothing returns nothing
set udg_unit227=GetTriggerUnit()
call EnableTrigger(udg_trigger168)
call EnableTrigger(udg_trigger169)
call TriggerRegisterUnitInRangeSimple(udg_trigger168,1000.,udg_unit227)
endfunction
function YL takes nothing returns boolean
return(IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(udg_unit227)))
endfunction
function zL takes nothing returns nothing
set udg_locations02[467]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h00G',GetOwningPlayer(udg_unit227),udg_locations02[467],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetTriggerUnit(),0)
call IssueTargetOrderById(bj_lastCreatedUnit,852274,GetTriggerUnit())
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[467])
endfunction
function ZL takes nothing returns boolean
return(GetSpellAbilityId()=='A0DN')
endfunction
function vm takes nothing returns nothing
call DisableTrigger(udg_trigger168)
call DisableTrigger(udg_trigger169)
set udg_unit227=null
endfunction
function em takes nothing returns boolean
return(GetSpellAbilityId()=='A0DM')
endfunction
function xm takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit228)==false)
endfunction
function om takes nothing returns nothing
set udg_unit227=GetTriggerUnit()
set udg_unit228=GetSpellTargetUnit()
set udg_locations02[463]=GetUnitLoc(udg_unit228)
call PauseUnit(udg_unit227,true)
call PauseUnit(udg_unit228,true)
call SetUnitInvulnerable(udg_unit227,true)
call UnitAddAbility(udg_unit228,'ACm3')
call SetUnitTimeScalePercent(udg_unit227,250.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[464]=xB(udg_locations02[463],100.,(I2R(bj_forLoopAIndex)*36.))
call CreateDestructableLoc('ZTtw',udg_locations02[464],GetRandomReal(0,360),2.,0)
set udg_destructables07[bj_forLoopAIndex]=bj_lastCreatedDestructable
call SetDestAnimationSpeedPercent(bj_lastCreatedDestructable,2000.)
call SetDestructableAnimation(bj_lastCreatedDestructable,"birth")
call RemoveLocation(udg_locations02[464])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations02[464]=GetUnitLoc(udg_unit227)
set udg_locations02[465]=xB(udg_locations02[464],165.,(GetUnitFacing(udg_unit227)+90.))
set udg_locations02[466]=xB(udg_locations02[464],165.,(GetUnitFacing(udg_unit227)-90.))
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit227,10)
call TriggerSleepAction(.8)
call SetUnitTimeScalePercent(udg_unit227,.0)
call AddLightningLoc("DRAM",udg_locations02[465],udg_locations02[463])
set udg_lightnings06[0]=bj_lastCreatedLightning
call AddLightningLoc("DRAL",udg_locations02[466],udg_locations02[463])
set udg_lightnings06[1]=bj_lastCreatedLightning
call RemoveLocation(udg_locations02[463])
call RemoveLocation(udg_locations02[464])
call RemoveLocation(udg_locations02[465])
call RemoveLocation(udg_locations02[466])
set udg_integers06[9]=1
loop
exitwhen udg_integers06[9]>10
call SetWidgetLife(udg_unit227,(GetUnitState(udg_unit227,UNIT_STATE_LIFE)+5000.))
call SetUnitManaBJ(udg_unit227,(GetUnitState(udg_unit227,UNIT_STATE_MANA)+500.))
call SetUnitManaBJ(udg_unit228,(GetUnitState(udg_unit228,UNIT_STATE_MANA)-500.))
call UnitDamageTarget(udg_unit227,udg_unit228,5000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(1.)
if(xm())then
call SetUnitInvulnerable(udg_unit227,false)
call PauseUnit(udg_unit227,false)
call PauseUnit(udg_unit228,false)
call UnitRemoveAbility(udg_unit228,'ACm3')
call DestroyLightning(udg_lightnings06[0])
call DestroyLightning(udg_lightnings06[1])
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call RemoveDestructable(udg_destructables07[bj_forLoopBIndex])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call SetUnitTimeScalePercent(udg_unit227,100.)
call ResetUnitAnimation(udg_unit227)
set udg_unit227=null
set udg_unit228=null
return
endif
set udg_integers06[9]=udg_integers06[9]+1
endloop
call SetUnitInvulnerable(udg_unit227,false)
call PauseUnit(udg_unit227,false)
call PauseUnit(udg_unit228,false)
call UnitRemoveAbility(udg_unit228,'ACm3')
call DestroyLightning(udg_lightnings06[0])
call DestroyLightning(udg_lightnings06[1])
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call RemoveDestructable(udg_destructables07[bj_forLoopBIndex])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call SetUnitTimeScalePercent(udg_unit227,100.)
call ResetUnitAnimation(udg_unit227)
set udg_unit227=null
set udg_unit228=null
endfunction
function rm takes nothing returns boolean
return(GetSpellAbilityId()=='A0DI')
endfunction
function im takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit288)))and(GetUnitTypeId(GetEnumUnit())!='n007')and(GetUnitTypeId(GetEnumUnit())!='nglm')and(GetUnitAbilityLevelSwapped('Avul',GetEnumUnit())==0)
endfunction
function am takes nothing returns nothing
if(im())then
set udg_locations02[462]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00L',GetOwningPlayer(udg_unit288),udg_locations02[462],bj_UNIT_FACING)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetEnumUnit(),0)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852171,GetEnumUnit())
call GroupAddUnit(udg_group16,GetEnumUnit())
call AddLightningLoc("DRAL",udg_locations02[462],udg_locations02[461])
set udg_lightnings06[udg_integer41]=bj_lastCreatedLightning
set udg_integer41=(udg_integer41+1)
call RemoveLocation(udg_locations02[462])
endif
endfunction
function nm takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger172))
endfunction
function Vm takes nothing returns nothing
set udg_locations02[461]=GetUnitLoc(udg_unit288)
set udg_group16=CreateGroup()
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(1000.,udg_locations02[461]),function am)
call RemoveLocation(udg_locations02[461])
call EnableTrigger(udg_trigger172)
set udg_integers06[10]=1
loop
exitwhen udg_integers06[10]>20
if(nm())then
call TriggerSleepAction(1.)
call SetWidgetLife(udg_unit288,(GetUnitState(udg_unit288,UNIT_STATE_LIFE)+(1000.*I2R(udg_integer41))))
else
return
endif
set udg_integers06[10]=udg_integers06[10]+1
endloop
endfunction
function Em takes nothing returns boolean
return(GetSpellAbilityId()=='A0DI')
endfunction
function Xm takes nothing returns nothing
call UnitRemoveAbility(GetEnumUnit(),'BEer')
endfunction
function Om takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(udg_group16,function Xm)
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=(udg_integer41-1)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyLightning(udg_lightnings06[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer41=0
call DestroyGroup(udg_group16)
endfunction
function Rm takes nothing returns boolean
return(GetSpellAbilityId()=='A0DK')
endfunction
function Im takes nothing returns nothing
set udg_unit226=GetSpellTargetUnit()
set udg_locations02[458]=GetUnitLoc(udg_unit226)
call PauseUnit(udg_units09[2],true)
call PauseUnit(udg_unit226,true)
call SetUnitInvulnerable(udg_units09[2],true)
call SetUnitInvulnerable(udg_unit226,true)
call SetUnitPathing(udg_unit226,false)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_units09[2],"attack")
call CreateNUnitsAtLoc(1,'h01D',GetOwningPlayer(udg_units09[2]),udg_locations02[458],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call CinematicFadeBJ(1,.8,"ReplaceableTextures\\CameraMasks\\SpecialPowMask.blp",100.,0,0,0)
call RemoveLocation(udg_locations02[458])
set udg_locations02[460]=GetUnitLoc(udg_units09[2])
call SetUnitAnimation(udg_unit226,"death")
call EnableTrigger(udg_trigger174)
call TriggerSleepAction(.5)
call DisableTrigger(udg_trigger174)
call RemoveLocation(udg_locations02[460])
call CinematicFadeBJ(0,.0,"ReplaceableTextures\\CameraMasks\\White_mask.blp",.0,0,0,0)
call SetUnitInvulnerable(udg_units09[2],false)
call SetUnitInvulnerable(udg_unit226,false)
call PauseUnit(udg_units09[2],false)
call PauseUnit(udg_unit226,false)
call SetUnitPathing(udg_unit226,true)
call UnitDamageTarget(udg_units09[2],udg_unit226,(20000.*I2R((udg_integer40+1))),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_unit226=null
set udg_integer40=0
endfunction
function Am takes nothing returns nothing
set udg_locations02[458]=GetUnitLoc(udg_unit226)
set udg_locations02[459]=xB(udg_locations02[458],30.,AngleBetweenPoints(udg_locations02[460],udg_locations02[458]))
call SetUnitPositionLoc(udg_unit226,udg_locations02[459])
call AddSpecialEffectLocBJ(udg_locations02[458],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[458])
call RemoveLocation(udg_locations02[459])
endfunction
function Nm takes nothing returns boolean
return(GetSpellAbilityId()=='A0DJ')
endfunction
function bm takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger177)
call UnitRemoveAbility(udg_units09[2],'A0DJ')
set udg_integer38=0
set udg_integer40=(udg_integer40+1)
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call KillUnit(udg_units10[bj_forLoopAIndex])
set udg_units10[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTextToPlayer(GetOwningPlayer(udg_units09[2]),0,0,("|cFFFF0000Right now the damage of Asura Lord Fist is |r"+(I2S((udg_integer40+1))+"|cFFFF0000 times the normal damage.|r")))
call EnableTrigger(udg_trigger176)
endfunction
function Bm takes nothing returns boolean
return(GetSpellAbilityId()=='A0DH')
endfunction
function cm takes nothing returns boolean
return(udg_integer38==5)
endfunction
function Cm takes nothing returns boolean
return(udg_integer38==0)
endfunction
function dm takes nothing returns nothing
if(Cm())then
set udg_locations02[455]=GetUnitLoc(udg_units09[2])
call CreateNUnitsAtLoc(1,'h02K',GetOwningPlayer(udg_units09[2]),udg_locations02[455],bj_UNIT_FACING)
set udg_units10[0]=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[455])
set udg_integer38=(udg_integer38+1)
call EnableTrigger(udg_trigger177)
else
set udg_locations02[455]=GetUnitLoc(udg_units09[2])
call CreateNUnitsAtLoc(1,'h02K',GetOwningPlayer(udg_units09[2]),udg_locations02[455],bj_UNIT_FACING)
set udg_units10[udg_integer38]=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[455])
set udg_integer38=(udg_integer38+1)
if(cm())then
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_trigger175)
call UnitAddAbility(udg_units09[2],'A0DJ')
endif
endif
endfunction
function Dm takes nothing returns boolean
return(udg_integer38==1)
endfunction
function fm takes nothing returns nothing
set udg_integer39=(udg_integer39+1)
if(Dm())then
set udg_locations02[456]=GetUnitLoc(udg_units09[2])
set udg_locations02[457]=xB(udg_locations02[456],150.,I2R(udg_integer39))
call SetUnitPositionLoc(udg_units10[0],udg_locations02[457])
call RemoveLocation(udg_locations02[456])
call RemoveLocation(udg_locations02[457])
else
set udg_locations02[456]=GetUnitLoc(udg_units09[2])
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=(udg_integer38-1)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[457]=xB(udg_locations02[456],150.,(I2R(udg_integer39)+((360./I2R(udg_integer38))*I2R(bj_forLoopAIndex))))
call SetUnitPositionLoc(udg_units10[bj_forLoopAIndex],udg_locations02[457])
call RemoveLocation(udg_locations02[457])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[456])
endif
endfunction
function Fm takes nothing returns boolean
return(GetSpellAbilityId()=='A07W')
endfunction
function gm takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[473],udg_locations02[474])>=300.)
endfunction
function Gm takes nothing returns nothing
set udg_unit231=GetTriggerUnit()
set udg_unit232=GetSpellTargetUnit()
set udg_locations02[473]=GetUnitLoc(udg_unit231)
set udg_locations02[474]=GetUnitLoc(udg_unit232)
if(gm())then
call SetUnitPathing(udg_unit231,false)
call RemoveLocation(udg_locations02[473])
call RemoveLocation(udg_locations02[474])
call SetUnitTimeScalePercent(udg_unit231,200.)
call SetUnitAnimation(udg_unit231,"walk")
call EnableTrigger(udg_trigger179)
else
call CreateTextTagLocBJ("Too close, unable to use!",udg_locations02[473],0,10,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[473])
call RemoveLocation(udg_locations02[474])
set udg_unit231=null
set udg_unit232=null
endif
endfunction
function hm takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[474],udg_locations02[475])<=100.)
endfunction
function Hm takes nothing returns nothing
set udg_locations02[473]=GetUnitLoc(udg_unit231)
set udg_locations02[474]=GetUnitLoc(udg_unit232)
set udg_locations02[475]=xB(udg_locations02[473],30.,AngleBetweenPoints(udg_locations02[473],udg_locations02[474]))
call SetUnitPositionLoc(udg_unit231,udg_locations02[475])
call SetUnitAnimation(udg_unit231,"walk")
call AddSpecialEffectLocBJ(udg_locations02[473],"Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(hm())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_unit231,"attack")
call SetUnitTimeScalePercent(udg_unit231,100.)
call SetUnitPathing(udg_unit231,true)
set udg_unit231=null
set udg_unit232=null
endif
call RemoveLocation(udg_locations02[473])
call RemoveLocation(udg_locations02[474])
call RemoveLocation(udg_locations02[475])
endfunction
function jm takes nothing returns boolean
return(GetSpellAbilityId()=='A07W')
endfunction
function Jm takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[470],udg_locations02[471])>=300.)
endfunction
function km takes nothing returns nothing
set udg_unit229=GetTriggerUnit()
set udg_unit230=GetSpellTargetUnit()
set udg_locations02[470]=GetUnitLoc(udg_unit229)
set udg_locations02[471]=GetUnitLoc(udg_unit230)
if(Jm())then
call SetUnitPathing(udg_unit229,false)
call RemoveLocation(udg_locations02[470])
call RemoveLocation(udg_locations02[471])
call SetUnitTimeScalePercent(udg_unit229,200.)
call SetUnitAnimation(udg_unit229,"walk")
call EnableTrigger(udg_trigger181)
else
call CreateTextTagLocBJ("Too close, unable to use!",udg_locations02[470],0,10,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[470])
call RemoveLocation(udg_locations02[471])
set udg_unit229=null
set udg_unit230=null
endif
endfunction
function Km takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[471],udg_locations02[472])<=100.)
endfunction
function lm takes nothing returns nothing
set udg_locations02[470]=GetUnitLoc(udg_unit229)
set udg_locations02[471]=GetUnitLoc(udg_unit230)
set udg_locations02[472]=xB(udg_locations02[470],30.,AngleBetweenPoints(udg_locations02[470],udg_locations02[471]))
call SetUnitPositionLoc(udg_unit229,udg_locations02[472])
call SetUnitAnimation(udg_unit229,"walk")
call AddSpecialEffectLocBJ(udg_locations02[470],"Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(Km())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_unit229,"attack")
call SetUnitTimeScalePercent(udg_unit229,100.)
call SetUnitPathing(udg_unit229,true)
set udg_unit229=null
set udg_unit230=null
endif
call RemoveLocation(udg_locations02[470])
call RemoveLocation(udg_locations02[471])
call RemoveLocation(udg_locations02[472])
endfunction
function Lm takes nothing returns boolean
return(GetSpellAbilityId()=='A07W')
endfunction
function mm takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[454],udg_locations02[452])>=300.)
endfunction
function Mm takes nothing returns nothing
set udg_unit225=GetSpellTargetUnit()
set udg_locations02[454]=GetUnitLoc(udg_unit225)
set udg_locations02[452]=GetUnitLoc(udg_units09[2])
if(mm())then
call SetUnitPathing(udg_units09[2],false)
call RemoveLocation(udg_locations02[454])
call RemoveLocation(udg_locations02[452])
call SetUnitManaBJ(udg_units09[2],(GetUnitState(udg_units09[2],UNIT_STATE_MANA)-1000.))
call SetUnitTimeScalePercent(udg_units09[2],200.)
call SetUnitAnimation(udg_units09[2],"walk")
call EnableTrigger(udg_trigger183)
else
call CreateTextTagLocBJ("Too close, unable to use!",udg_locations02[452],0,10,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[454])
call RemoveLocation(udg_locations02[452])
set udg_unit225=null
endif
endfunction
function pm takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[454],udg_locations02[453])<=100.)
endfunction
function Pm takes nothing returns nothing
set udg_locations02[454]=GetUnitLoc(udg_unit225)
set udg_locations02[452]=GetUnitLoc(udg_units09[2])
set udg_locations02[453]=xB(udg_locations02[452],30.,AngleBetweenPoints(udg_locations02[452],udg_locations02[454]))
call SetUnitPositionLoc(udg_units09[2],udg_locations02[453])
call SetUnitAnimation(udg_units09[2],"walk")
call AddSpecialEffectLocBJ(udg_locations02[452],"Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(pm())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_units09[2],"attack")
call SetUnitTimeScalePercent(udg_units09[2],100.)
call SetUnitPathing(udg_units09[2],true)
set udg_unit225=null
endif
call RemoveLocation(udg_locations02[452])
call RemoveLocation(udg_locations02[453])
call RemoveLocation(udg_locations02[454])
endfunction
function qm takes nothing returns boolean
return(GetSpellAbilityId()=='A0DF')
endfunction
function Qm takes nothing returns nothing
set udg_unit224=GetSpellTargetUnit()
set udg_locations02[450]=GetUnitLoc(udg_unit224)
call AddSpecialEffectLocBJ(udg_locations02[450],"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations02[451]=xB(udg_locations02[450],2000.,GetRandomReal(0,360.))
call SetUserControlForceOff(CB(GetOwningPlayer(udg_unit224)))
call DisplayTextToPlayer(GetOwningPlayer(udg_unit224),0,0,"|cFFFF0000You are hit by scare seeing jutsu, you cannot control anything for 8 seconds.|r ")
call IssuePointOrderByIdLoc(udg_unit224,851986,udg_locations02[451])
call AddSpecialEffectTargetUnitBJ("overhead",udg_unit224,"Abilities\\Spells\\NightElf\\shadowstrike\\shadowstrike.mdl")
set udg_effects01[131]=bj_lastCreatedEffect
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit224),udg_unit224,0,0,false)
call RemoveLocation(udg_locations02[450])
call RemoveLocation(udg_locations02[451])
call TriggerSleepAction(10.)
call DestroyEffect(udg_effects01[131])
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit224),0)
call SetUserControlForceOn(CB(GetOwningPlayer(udg_unit224)))
set udg_unit224=null
endfunction
function sm takes nothing returns boolean
return(GetSpellAbilityId()=='A0DF')
endfunction
function Sm takes nothing returns nothing
set udg_unit16=GetSpellTargetUnit()
set udg_locations02[186]=GetUnitLoc(udg_unit16)
call AddSpecialEffectLocBJ(udg_locations02[186],"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations02[187]=xB(udg_locations02[186],2000.,GetRandomReal(0,360.))
call SetUserControlForceOff(CB(GetOwningPlayer(udg_unit16)))
call DisplayTextToPlayer(GetOwningPlayer(udg_unit16),0,0,"|cFFFF0000You are hit by scare seeing jutsu, you cannot control anything for 8 seconds.|r")
call IssuePointOrderByIdLoc(udg_unit16,851986,udg_locations02[187])
call AddSpecialEffectTargetUnitBJ("overhead",udg_unit16,"Abilities\\Spells\\NightElf\\shadowstrike\\shadowstrike.mdl")
set udg_effects01[140]=bj_lastCreatedEffect
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit16),udg_unit16,0,0,false)
call RemoveLocation(udg_locations02[186])
call RemoveLocation(udg_locations02[187])
call TriggerSleepAction(10.)
call DestroyEffect(udg_effects01[140])
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit16),0)
call SetUserControlForceOn(CB(GetOwningPlayer(udg_unit16)))
set udg_unit16=null
endfunction
function tm takes nothing returns boolean
return(GetSpellAbilityId()=='A0CH')
endfunction
function Tm takes nothing returns nothing
call SetUnitManaBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetEnumUnit())-10000.))
call PauseUnit(GetEnumUnit(),false)
call SetUnitInvulnerable(GetEnumUnit(),false)
call ResetUnitAnimation(GetEnumUnit())
endfunction
function um takes nothing returns nothing
set udg_units09[0]=GetTriggerUnit()
set udg_unit223=GetSpellTargetUnit()
set udg_locations02[437]=GetUnitLoc(udg_units09[0])
call PauseUnit(udg_units09[0],true)
call PauseUnit(udg_unit223,true)
call SetUnitInvulnerable(udg_units09[0],true)
call SetUnitInvulnerable(udg_unit223,true)
call UnitAddAbility(udg_unit223,'Amrf')
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[438]=xB(udg_locations02[437],200.,(I2R(bj_forLoopAIndex)*90.))
call AddSpecialEffectLocBJ(udg_locations02[438],"Abilities\\Spells\\Undead\\VampiricAura\\VampiricAura.mdl")
set udg_effects01[(138+bj_forLoopAIndex)]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[438])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'h01P',GetOwningPlayer(udg_units09[0]),udg_locations02[437],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(.1)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit223,"Abilities\\Spells\\Undead\\Cripple\\CrippleTarget.mdl")
set udg_effects01[143]=bj_lastCreatedEffect
call CreateNUnitsAtLoc(1,'h02J',GetOwningPlayer(udg_units09[0]),udg_locations02[437],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(16.,'BHwe',bj_lastCreatedUnit)
call SetUnitAnimation(udg_units09[0],"spell")
call SetUnitAnimation(udg_unit223,"death")
call SetUnitFlyHeight(udg_unit223,400.,300.)
call CreateNUnitsAtLoc(1,'u00D',GetOwningPlayer(udg_units09[0]),udg_locations02[437],GetUnitFacing(udg_units09[0]))
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
set udg_locations02[438]=GetUnitLoc(udg_unit223)
call AddLightningLoc("DRAM",udg_locations02[438],udg_locations02[437])
set udg_lightnings05[1]=bj_lastCreatedLightning
set udg_group15=CreateGroup()
call GroupAddUnit(udg_group15,udg_units09[0])
call EnableTrigger(udg_trigger187)
call EnableTrigger(udg_trigger188)
call TriggerSleepAction(10.)
call DisableTrigger(udg_trigger187)
call DisableTrigger(udg_trigger188)
call SetUnitFlyHeight(udg_unit223,.0,500.)
call ForGroupBJ(udg_group15,function Tm)
call DestroyGroup(udg_group15)
set udg_integer37=0
call DestroyEffect(udg_effects01[139])
call DestroyEffect(udg_effects01[140])
call DestroyEffect(udg_effects01[141])
call DestroyEffect(udg_effects01[142])
call DestroyEffect(udg_effects01[143])
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_integer36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyLightning(udg_lightnings05[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnit(udg_units09[0],false)
call SetUnitInvulnerable(udg_units09[0],false)
call AddSpecialEffectLocBJ(udg_locations02[438],"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.5)
call SetUnitFlyHeight(udg_unit223,.0,10000.)
call UnitRemoveAbility(udg_unit223,'Amrf')
call PauseUnit(udg_unit223,false)
call SetUnitInvulnerable(udg_unit223,false)
call UnitDamageTarget(udg_units09[0],udg_unit223,(I2R(GetHeroInt(udg_units09[0],true))*(I2R(udg_integer36)*60.)),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[437])
call RemoveLocation(udg_locations02[438])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveLocation(udg_locations02[(438+bj_forLoopAIndex)])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer36=0
set udg_unit223=null
endfunction
function Um takes nothing returns boolean
return(udg_integer37==200)
endfunction
function wm takes nothing returns boolean
return(udg_integer36!=1)
endfunction
function Wm takes nothing returns nothing
set udg_integer37=(udg_integer37+1)
if(Um())then
set udg_integer37=0
endif
call SetUnitFlyHeight(udg_unit223,(400.+(75.*Sin(((bj_PI*I2R(udg_integer37))/100.)))),10000.)
call MoveLightningEx(udg_lightnings05[0],true,GetLocationX(udg_locations02[438]),GetLocationY(udg_locations02[438]),GetUnitFlyHeight(udg_unit223),GetLocationX(udg_locations02[437]),GetLocationY(udg_locations02[437]),600.)
if(wm())then
call MoveLightningEx(udg_lightnings05[0],true,GetLocationX(udg_locations02[438]),GetLocationY(udg_locations02[438]),GetUnitFlyHeight(udg_unit223),GetLocationX(udg_locations02[437]),GetLocationY(udg_locations02[437]),600.)
call MoveLightningEx(udg_lightnings05[1],true,GetLocationX(udg_locations02[438]),GetLocationY(udg_locations02[438]),GetUnitFlyHeight(udg_unit223),GetLocationX(udg_locations02[437]),GetLocationY(udg_locations02[437]),GetLocationZ(udg_locations02[437]))
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=udg_integer36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MoveLightningEx(udg_lightnings05[bj_forLoopAIndex],true,GetLocationX(udg_locations02[438]),GetLocationY(udg_locations02[438]),GetUnitFlyHeight(udg_unit223),GetLocationX(udg_locations02[(437+bj_forLoopAIndex)]),GetLocationY(udg_locations02[(437+bj_forLoopAIndex)]),GetLocationZ(udg_locations02[(437+bj_forLoopAIndex)]))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function ym takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=null)
endfunction
function Ym takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[0]))==false)
endfunction
function zm takes nothing returns boolean
return GetBooleanAnd(ym(),Ym())
endfunction
function Zm takes nothing returns boolean
return(IsUnitInGroup(GetEnumUnit(),udg_group15)==false)
endfunction
function vM takes nothing returns nothing
if(Zm())then
set udg_locations02[(438+udg_integer36)]=GetUnitLoc(GetEnumUnit())
call GroupAddUnit(udg_group15,GetEnumUnit())
call SetUnitFacingToFaceUnitTimed(GetEnumUnit(),udg_unit223,0)
call PauseUnit(GetEnumUnit(),true)
call SetUnitInvulnerable(GetEnumUnit(),true)
call SetUnitAnimation(GetEnumUnit(),"spell")
call AddLightningLoc("DRAM",udg_locations02[438],udg_locations02[440])
set udg_integer36=(udg_integer36+1)
set udg_lightnings05[udg_integer36]=bj_lastCreatedLightning
else
call SetUnitAnimation(GetEnumUnit(),"spell")
endif
endfunction
function eM takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(400.,udg_locations02[437],Condition(function zm)),function vM)
endfunction
function xM takes nothing returns boolean
return(GetSpellAbilityId()=='A02Z')
endfunction
function oM takes nothing returns nothing
call SetUnitMoveSpeed(GetEnumUnit(),.0)
endfunction
function rM takes nothing returns nothing
call ShowUnitHide(GetEnumUnit())
endfunction
function iM takes nothing returns nothing
set udg_unit242=GetTriggerUnit()
set udg_unit23=GetSpellTargetUnit()
set udg_locations02[220]=GetUnitLoc(udg_unit23)
call PauseUnit(udg_unit23,true)
call PauseUnit(udg_unit242,true)
call SetUnitInvulnerable(udg_unit242,true)
call UnitAddAbility(udg_unit23,'ACm3')
call CreateNUnitsAtLoc(1,'ushd',GetOwningPlayer(udg_unit23),udg_locations02[220],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(18.,'BHwe',bj_lastCreatedUnit)
call TriggerRegisterUnitEvent(udg_trigger190,udg_unit23,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger191,udg_unit23,EVENT_UNIT_ATTACKED)
call EnableTrigger(udg_trigger190)
call EnableTrigger(udg_trigger191)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[221]=xB(udg_locations02[220],150.,(I2R(bj_forLoopAIndex)*30.))
call CreateNUnitsAtLoc(1,'h00P',GetOwningPlayer(udg_unit242),udg_locations02[221],(30.*I2R(bj_forLoopAIndex)))
call UnitAddAbility(bj_lastCreatedUnit,'Agho')
call UnitAddAbility(bj_lastCreatedUnit,'Aloc')
call UnitAddAbility(bj_lastCreatedUnit,'A02D')
call SetUnitInvulnerable(bj_lastCreatedUnit,true)
call SetUnitFacingToFaceLocTimed(bj_lastCreatedUnit,udg_locations02[220],.0)
call UnitApplyTimedLifeBJ(18.,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,851983,udg_unit23)
call RemoveLocation(udg_locations02[221])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.5)
call ForGroupBJ(AB('h00P'),function oM)
call DestroyGroup(GetLastCreatedGroup())
call TriggerSleepAction(16.5)
call DisableTrigger(udg_trigger190)
call DisableTrigger(udg_trigger191)
call ForGroupBJ(AB('h00P'),function rM)
call DestroyGroup(GetLastCreatedGroup())
call UnitRemoveAbility(udg_unit23,'ACm3')
call SetUnitInvulnerable(udg_unit242,false)
call PauseUnit(udg_unit23,false)
call PauseUnit(udg_unit242,false)
call UnitDamageTarget(udg_unit242,udg_unit242,(GetUnitState(udg_unit242,UNIT_STATE_MAX_LIFE)*.2),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[220])
set udg_unit242=null
set udg_unit23=null
endfunction
function aM takes nothing returns nothing
call ShowUnitHide(GetEnumUnit())
endfunction
function nM takes nothing returns nothing
call ForGroupBJ(AB('h00P'),function aM)
call DestroyGroup(GetLastCreatedGroup())
call SetUnitInvulnerable(udg_unit242,false)
call PauseUnit(udg_unit242,false)
call UnitRemoveAbility(udg_unit23,'ACm3')
call PauseUnit(udg_unit23,false)
call UnitDamageTarget(udg_unit242,udg_unit242,(GetUnitState(udg_unit242,UNIT_STATE_MAX_LIFE)*.15),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_unit242=null
set udg_unit23=null
call DisableTrigger(udg_trigger191)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function VM takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='h00P')
endfunction
function EM takes nothing returns nothing
call UnitDamageTarget(udg_unit242,udg_unit23,(GetUnitState(udg_unit23,UNIT_STATE_MAX_LIFE)*(.01*.6)),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function XM takes nothing returns boolean
return(GetSpellAbilityId()=='A0DD')
endfunction
function OM takes nothing returns nothing
set udg_locations02[436]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(GetTriggerUnit()),udg_locations02[436],bj_UNIT_FACING)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetTriggerUnit(),0)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitAddAbility(bj_lastCreatedUnit,'A0DC')
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852160,GetTriggerUnit())
call RemoveLocation(udg_locations02[436])
endfunction
function RM takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B011'))and(GetRandomInt(1,'d')<=33)
endfunction
function IM takes nothing returns nothing
set udg_locations02[435]=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h02H',GetOwningPlayer(GetAttacker()),udg_locations02[435],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetTriggerUnit(),0)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,851985,GetTriggerUnit())
call SetUnitManaBJ(GetAttacker(),(GetUnitState(GetAttacker(),UNIT_STATE_MANA)-1000.))
call RemoveLocation(udg_locations02[435])
endfunction
function AM takes nothing returns boolean
return(GetSpellAbilityId()=='A05L')
endfunction
function NM takes nothing returns nothing
set udg_unit222=GetSpellTargetUnit()
call DisplayTextToPlayer(GetOwningPlayer(udg_unit222),0,0,"|cFFFF0000Your nerves were attacked, you will lose control of your direction for the next 15 seconds.|r")
call EnableTrigger(udg_trigger195)
call EnableTrigger(udg_trigger196)
call TriggerSleepAction(15.)
call DisableTrigger(udg_trigger195)
call DisableTrigger(udg_trigger196)
set udg_unit222=null
endfunction
function bM takes nothing returns boolean
return(GetTriggerUnit()==udg_unit222)
endfunction
function BM takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[375]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[376]=GetOrderPointLoc()
set udg_locations02[434]=xB(udg_locations02[376],DistanceBetweenPoints(udg_locations02[375],udg_locations02[376]),AngleBetweenPoints(udg_locations02[376],udg_locations02[375]))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851971,udg_locations02[434])
call RemoveLocation(udg_locations02[375])
call RemoveLocation(udg_locations02[376])
call RemoveLocation(udg_locations02[434])
call TriggerSleepAction(.01)
call DisableTrigger(udg_trigger195)
endfunction
function cM takes nothing returns boolean
return(GetTriggerUnit()==udg_unit222)
endfunction
function CM takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[375]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[376]=GetUnitLoc(GetOrderTargetUnit())
set udg_locations02[434]=xB(udg_locations02[376],DistanceBetweenPoints(udg_locations02[375],udg_locations02[376]),AngleBetweenPoints(udg_locations02[376],udg_locations02[375]))
call IssuePointOrderByIdLoc(GetTriggerUnit(),851971,udg_locations02[434])
call RemoveLocation(udg_locations02[375])
call RemoveLocation(udg_locations02[376])
call RemoveLocation(udg_locations02[434])
call TriggerSleepAction(.01)
call DisableTrigger(udg_trigger196)
endfunction
function dM takes nothing returns boolean
return(GetSpellAbilityId()=='A084')
endfunction
function DM takes nothing returns nothing
set udg_units09[0]=GetTriggerUnit()
set udg_real25=GetUnitFacing(udg_units09[0])
call PauseUnit(udg_units09[0],true)
call SetUnitInvulnerable(udg_units09[0],true)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_units09[0],6)
call TriggerSleepAction(1.)
set udg_locations02[373]=GetUnitLoc(udg_units09[0])
set udg_locations02[374]=xB(udg_locations02[373],300.,GetUnitFacing(udg_units09[0]))
call CreateNUnitsAtLoc(1,'h01C',GetOwningPlayer(udg_units09[0]),udg_locations02[374],bj_UNIT_FACING)
set udg_units09[7]=bj_lastCreatedUnit
call SetUnitPathing(udg_units09[7],false)
call RemoveLocation(udg_locations02[373])
call RemoveLocation(udg_locations02[374])
call EnableTrigger(udg_trigger198)
call TriggerSleepAction(.5)
call ResetUnitAnimation(udg_units09[0])
call PauseUnit(udg_units09[0],false)
call SetUnitInvulnerable(udg_units09[0],false)
call TriggerSleepAction(2.5)
call DisableTrigger(udg_trigger198)
call RemoveUnit(udg_units09[7])
set udg_units09[7]=null
set udg_real25=.0
endfunction
function fM takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[0])))
endfunction
function FM takes nothing returns nothing
call UnitDamageTarget(udg_units09[0],GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_units09[0],true))*8.),true,false,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function gM takes nothing returns nothing
set udg_locations02[373]=GetUnitLoc(udg_units09[7])
set udg_locations02[374]=xB(udg_locations02[373],80.,udg_real25)
call SetUnitPositionLoc(udg_units09[7],udg_locations02[374])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(400.,udg_locations02[374],Condition(function fM)),function FM)
call RemoveLocation(udg_locations02[373])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[373]=xB(udg_locations02[374],400.,(90.*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations02[373],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[373])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[374])
endfunction
function GM takes nothing returns boolean
return(GetSpellAbilityId()=='A084')
endfunction
function hM takes nothing returns nothing
set udg_unit201=GetTriggerUnit()
set udg_real01=GetUnitFacing(udg_unit201)
call PauseUnit(udg_unit201,true)
call SetUnitInvulnerable(udg_unit201,true)
call SetUnitTimeScalePercent(udg_unit201,120.)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit201,7)
call TriggerSleepAction(1.)
set udg_locations02[84]=GetUnitLoc(udg_unit201)
set udg_locations02[85]=xB(udg_locations02[84],300.,GetUnitFacing(udg_unit201))
call CreateNUnitsAtLoc(1,'h01C',GetOwningPlayer(udg_unit201),udg_locations02[85],bj_UNIT_FACING)
set udg_unit202=bj_lastCreatedUnit
call SetUnitPathing(udg_unit202,false)
call RemoveLocation(udg_locations02[84])
call RemoveLocation(udg_locations02[85])
call EnableTrigger(udg_trigger200)
call TriggerSleepAction(.5)
call ResetUnitAnimation(udg_unit201)
call PauseUnit(udg_unit201,false)
call SetUnitInvulnerable(udg_unit201,false)
call SetUnitTimeScalePercent(udg_unit201,100.)
call TriggerSleepAction(2.5)
call DisableTrigger(udg_trigger200)
call RemoveUnit(udg_unit202)
set udg_unit201=null
set udg_unit202=null
set udg_real01=.0
endfunction
function HM takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit201)))
endfunction
function jM takes nothing returns nothing
call UnitDamageTarget(udg_unit201,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit201,true))*8.),true,false,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function JM takes nothing returns nothing
set udg_locations02[86]=GetUnitLoc(udg_unit202)
set udg_locations02[87]=xB(udg_locations02[86],80.,udg_real01)
call SetUnitPositionLoc(udg_unit202,udg_locations02[87])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(400.,udg_locations02[87],Condition(function HM)),function jM)
call RemoveLocation(udg_locations02[86])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[86]=xB(udg_locations02[87],400.,(90.*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations02[86],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[86])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[87])
endfunction
function kM takes nothing returns boolean
return(GetSpellAbilityId()=='A084')
endfunction
function KM takes nothing returns nothing
set udg_unit179=GetTriggerUnit()
set udg_real20=GetUnitFacing(udg_unit179)
call PauseUnit(udg_unit179,true)
call SetUnitInvulnerable(udg_unit179,true)
call SetUnitTimeScalePercent(udg_unit179,50.)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit179,"spell")
call TriggerSleepAction(1.)
set udg_locations02[346]=GetUnitLoc(udg_unit179)
set udg_locations02[347]=xB(udg_locations02[346],300.,GetUnitFacing(udg_unit179))
call CreateNUnitsAtLoc(1,'h01C',GetOwningPlayer(udg_unit179),udg_locations02[347],bj_UNIT_FACING)
set udg_unit180=bj_lastCreatedUnit
call SetUnitPathing(udg_unit180,false)
call RemoveLocation(udg_locations02[346])
call RemoveLocation(udg_locations02[347])
call EnableTrigger(udg_trigger202)
call TriggerSleepAction(.5)
call ResetUnitAnimation(udg_unit179)
call PauseUnit(udg_unit179,false)
call SetUnitInvulnerable(udg_unit179,false)
call SetUnitTimeScalePercent(udg_unit179,100.)
call TriggerSleepAction(2.5)
call DisableTrigger(udg_trigger202)
call RemoveUnit(udg_unit180)
set udg_unit179=null
set udg_unit180=null
set udg_real20=.0
endfunction
function lM takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit179)))
endfunction
function LM takes nothing returns nothing
call UnitDamageTarget(udg_unit179,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit179,true))*8.),true,false,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function mM takes nothing returns nothing
set udg_locations02[346]=GetUnitLoc(udg_unit180)
set udg_locations02[347]=xB(udg_locations02[346],80.,udg_real20)
call SetUnitPositionLoc(udg_unit180,udg_locations02[347])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(400.,udg_locations02[347],Condition(function lM)),function LM)
call RemoveLocation(udg_locations02[346])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[346]=xB(udg_locations02[347],400.,(90.*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations02[346],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[346])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[347])
endfunction
function MM takes nothing returns boolean
return(GetSpellAbilityId()=='A084')
endfunction
function pM takes nothing returns nothing
set udg_unit242=GetTriggerUnit()
set udg_real27=GetUnitFacing(udg_unit242)
call PauseUnit(udg_unit242,true)
call SetUnitInvulnerable(udg_unit242,true)
call SetUnitTimeScalePercent(udg_unit242,50.)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit242,"spell two")
call TriggerSleepAction(1.)
set udg_locations02[80]=GetUnitLoc(udg_unit242)
set udg_locations02[79]=xB(udg_locations02[80],300.,GetUnitFacing(udg_unit242))
call CreateNUnitsAtLoc(1,'h01C',GetOwningPlayer(udg_unit242),udg_locations02[79],bj_UNIT_FACING)
set udg_unit178=bj_lastCreatedUnit
call SetUnitPathing(udg_unit178,false)
call RemoveLocation(udg_locations02[79])
call RemoveLocation(udg_locations02[80])
call EnableTrigger(udg_trigger204)
call TriggerSleepAction(.5)
call ResetUnitAnimation(udg_unit242)
call PauseUnit(udg_unit242,false)
call SetUnitInvulnerable(udg_unit242,false)
call SetUnitTimeScalePercent(udg_unit242,100.)
set udg_unit242=null
call TriggerSleepAction(2.5)
call DisableTrigger(udg_trigger204)
call RemoveUnit(udg_unit178)
set udg_unit178=null
set udg_real27=.0
endfunction
function PM takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit242)))
endfunction
function qM takes nothing returns nothing
call UnitDamageTarget(udg_unit242,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit242,true))*8.),true,false,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function QM takes nothing returns nothing
set udg_locations02[81]=GetUnitLoc(udg_unit178)
set udg_locations02[82]=xB(udg_locations02[81],80.,udg_real27)
call SetUnitPositionLoc(udg_unit178,udg_locations02[82])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(400.,udg_locations02[82],Condition(function PM)),function qM)
call RemoveLocation(udg_locations02[81])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[81]=xB(udg_locations02[82],400.,(90.*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations02[81],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[81])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[82])
endfunction
function sM takes nothing returns boolean
return(GetSpellAbilityId()=='A0D8')
endfunction
function SM takes nothing returns nothing
call AddWeatherEffectSaveLast(udg_rect04,'RAhr')
set udg_weathereffect05=bj_lastCreatedWeatherEffect
call EnableWeatherEffect(udg_weathereffect05,true)
call EnableTrigger(udg_trigger206)
call UnitAddAbility(GetTriggerUnit(),'Agyv')
call SetPlayerAbilityAvailableBJ(false,'Agyv',GetOwningPlayer(GetTriggerUnit()))
endfunction
function tM takes nothing returns boolean
return(GetIssuedOrderId()==852178)and(GetUnitTypeId(GetTriggerUnit())=='E00J')
endfunction
function TM takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call UnitRemoveAbility(GetTriggerUnit(),'Agyv')
call SetPlayerAbilityAvailableBJ(true,'Agyv',GetOwningPlayer(GetTriggerUnit()))
call EnableWeatherEffect(udg_weathereffect05,false)
call RemoveWeatherEffect(udg_weathereffect05)
endfunction
function uM takes nothing returns boolean
return(GetSpellAbilityId()=='A0BJ')
endfunction
function UM takes nothing returns nothing
set udg_unit219=GetTriggerUnit()
set udg_locations02[383]=GetUnitLoc(udg_unit219)
call PauseUnit(udg_unit219,true)
call SetUnitInvulnerable(udg_unit219,true)
call SetUnitPathing(udg_unit219,false)
call CreateNUnitsAtLoc(1,'uske',GetOwningPlayer(udg_unit219),udg_locations02[383],GetUnitFacing(udg_unit219))
set udg_unit220=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(38.,'BTLF',udg_unit220)
call PauseUnit(udg_unit220,true)
call SetUnitInvulnerable(udg_unit220,true)
call SetUnitVertexColor(udg_unit220,255,255,255,0)
set udg_integers06[11]=1
loop
exitwhen udg_integers06[11]>8
call TriggerSleepAction(1.)
call SetUnitVertexColor(udg_unit220,255,255,255,(udg_integers06[11]*32))
set udg_integers06[11]=udg_integers06[11]+1
endloop
call SetUnitPathing(udg_unit219,true)
call SetUnitInvulnerable(udg_unit219,false)
call SetUnitInvulnerable(udg_unit220,false)
call PauseUnit(udg_unit219,false)
call PauseUnit(udg_unit220,false)
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(udg_unit219),udg_locations02[383],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,udg_unit219,0)
call IssueTargetOrderById(bj_lastCreatedUnit,852066,udg_unit219)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[383])
call UnitDamageTarget(udg_unit219,udg_unit219,(GetUnitState(udg_unit219,UNIT_STATE_MAX_LIFE)*.2),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_unit219=null
set udg_unit220=null
endfunction
function wM takes nothing returns boolean
return(GetSpellAbilityId()=='A0D6')and(IsUnitIllusion(GetSpellTargetUnit())==false)and(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function WM takes nothing returns boolean
return(GetUnitState(GetSpellTargetUnit(),UNIT_STATE_MAX_MANA)>=16000.)
endfunction
function yM takes nothing returns nothing
set udg_locations02[432]=GetUnitLoc(GetSpellTargetUnit())
if(WM())then
call PauseUnit(GetSpellTargetUnit(),true)
call SetUnitInvulnerable(GetSpellTargetUnit(),true)
call SetUnitUserData(GetSpellTargetUnit(),6)
call SetUnitAnimation(GetSpellTargetUnit(),"spell")
call CreateNUnitsAtLoc(1,GetUnitTypeId(GetSpellTargetUnit()),GetOwningPlayer(GetSpellTargetUnit()),udg_locations02[432],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[432])
call SetHeroLevelBJ(bj_lastCreatedUnit,30,false)
call SetUnitUserData(bj_lastCreatedUnit,5)
set udg_locations02[432]=GetUnitLoc(bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations02[432],"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
else
call CreateTextTagLocBJ("The target's chakra limit is too low, they cannot use this jutsu!",udg_locations02[432],0,10,'d',100.,100.,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call TriggerSleepAction(.01)
call SetUnitManaBJ(GetSpellTargetUnit(),(GetUnitState(GetSpellTargetUnit(),UNIT_STATE_MANA)+5000.))
call UnitRemoveAbility(GetSpellTargetUnit(),'B00Y')
endif
call RemoveLocation(udg_locations02[432])
endfunction
function YM takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetUnitUserData(GetTriggerUnit())==5)
endfunction
function zM takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO))and(GetUnitUserData(GetEnumUnit())==6)
endfunction
function ZM takes nothing returns nothing
if(zM())then
set udg_locations02[433]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations02[433],"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[433])
call RemoveUnit(GetTriggerUnit())
call SetUnitUserData(GetEnumUnit(),0)
call PauseUnit(GetEnumUnit(),false)
call SetUnitInvulnerable(GetEnumUnit(),false)
call UnitRemoveAbility(GetEnumUnit(),'B00Y')
call ResetUnitAnimation(GetEnumUnit())
endif
endfunction
function vp takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function ZM)
endfunction
function ep takes nothing returns boolean
return(GetSpellAbilityId()=='A0D3')
endfunction
function xp takes nothing returns nothing
set udg_locations02[431]=GetUnitLoc(udg_units09[4])
call PauseUnit(udg_units09[4],true)
call SetUnitInvulnerable(udg_units09[4],true)
call UnitAddAbility(udg_units09[4],'Amrf')
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_units09[4],"spell")
call SetUnitFlyHeight(udg_units09[4],400.,300.)
call CreateNUnitsAtLoc(1,'h02G',GetOwningPlayer(udg_units09[4]),udg_locations02[431],bj_UNIT_FACING)
set udg_units09[6]=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[431])
call TriggerSleepAction(.75)
call SetUnitTimeScalePercent(udg_units09[6],8.)
call EnableTrigger(udg_trigger211)
call TriggerRegisterUnitEvent(udg_trigger211,udg_units09[0],EVENT_UNIT_DAMAGED)
call TriggerRegisterUnitEvent(udg_trigger211,udg_units09[1],EVENT_UNIT_DAMAGED)
call TriggerRegisterUnitEvent(udg_trigger211,udg_units09[2],EVENT_UNIT_DAMAGED)
call TriggerRegisterUnitEvent(udg_trigger211,udg_units09[3],EVENT_UNIT_DAMAGED)
call TriggerRegisterUnitEvent(udg_trigger211,udg_units09[5],EVENT_UNIT_DAMAGED)
call TriggerSleepAction(15.)
call DisableTrigger(udg_trigger211)
call SetUnitFlyHeight(udg_units09[4],.0,500.)
call TriggerSleepAction(2)
call ResetUnitAnimation(udg_units09[4])
call RemoveUnit(udg_units09[6])
call SetUnitInvulnerable(udg_units09[4],false)
call PauseUnit(udg_units09[4],false)
call UnitRemoveAbility(udg_units09[4],'Amrf')
set udg_units09[6]=null
endfunction
function op takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[203],udg_locations02['{'])>1000.)
endfunction
function rp takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02['{']=GetUnitLoc(GetTriggerUnit())
set udg_locations02[203]=GetUnitLoc(udg_units09[4])
if(op())then
call EnableTrigger(GetTriggeringTrigger())
return
endif
set udg_locations02[431]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations02[431],"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetWidgetLife(GetTriggerUnit(),(GetUnitState(GetTriggerUnit(),UNIT_STATE_LIFE)+GetEventDamage()))
call SetUnitManaBJ(udg_units09[4],(GetUnitState(udg_units09[4],UNIT_STATE_MANA)+GetEventDamage()))
call RemoveLocation(udg_locations02[431])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function ip takes nothing returns boolean
return(GetSpellAbilityId()=='A0CY')
endfunction
function ap takes nothing returns boolean
return(IsUnitAliveBJ(udg_units09[4])==false)
endfunction
function np takes nothing returns boolean
return(IsUnitAliveBJ(udg_units09[3])==false)
endfunction
function Vp takes nothing returns boolean
return(IsUnitAliveBJ(udg_units09[2])==false)
endfunction
function Ep takes nothing returns boolean
return(IsUnitAliveBJ(udg_units09[1])==false)
endfunction
function Xp takes nothing returns boolean
return(IsUnitAliveBJ(udg_units09[0]))and(IsUnitAliveBJ(udg_units09[1]))and(IsUnitAliveBJ(udg_units09[2]))and(IsUnitAliveBJ(udg_units09[3]))and(IsUnitAliveBJ(udg_units09[4]))
endfunction
function Op takes nothing returns nothing
set udg_locations02[430]=GetUnitLoc(udg_units09[5])
if(Xp())then
call CreateTextTagLocBJ("The Six Peins live together!",udg_locations02[430],0,10,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[430])
else
if(Ep())then
call ReviveHeroLoc(udg_units09[1],udg_locations02[430],true)
call RemoveLocation(udg_locations02[430])
else
if(Vp())then
call ReviveHeroLoc(udg_units09[2],udg_locations02[430],true)
call RemoveLocation(udg_locations02[430])
else
if(np())then
call ReviveHeroLoc(udg_units09[3],udg_locations02[430],true)
call RemoveLocation(udg_locations02[430])
else
if(ap())then
call ReviveHeroLoc(udg_units09[4],udg_locations02[430],true)
call RemoveLocation(udg_locations02[430])
endif
endif
endif
endif
endif
endfunction
function Rp takes nothing returns boolean
return(GetSpellAbilityId()=='A0CX')
endfunction
function Ip takes nothing returns nothing
set udg_units09[0]=GetTriggerUnit()
call SetPlayerAbilityAvailableBJ(false,'A0CX',GetOwningPlayer(udg_units09[0]))
set udg_locations02[428]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[429]=xB(udg_locations02[428],GetRandomReal(100.,250.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'E00M',GetOwningPlayer(udg_units09[0]),udg_locations02[429],bj_UNIT_FACING)
set udg_units09[1]=bj_lastCreatedUnit
call SetHeroLevelBJ(udg_units09[1],'d',true)
call SelectHeroSkill(udg_units09[1],'A0CO')
call SelectHeroSkill(udg_units09[1],'A0CP')
call SelectHeroSkill(udg_units09[1],'A0CN')
call SelectHeroSkill(udg_units09[1],'A0CR')
call SelectHeroSkill(udg_units09[1],'A0CM')
call TriggerRegisterUnitEvent(udg_trigger215,udg_units09[1],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[429],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[429])
call TriggerSleepAction(.2)
set udg_locations02[429]=xB(udg_locations02[428],GetRandomReal(100.,250.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'E00O',GetOwningPlayer(udg_units09[0]),udg_locations02[429],bj_UNIT_FACING)
set udg_units09[2]=bj_lastCreatedUnit
call SetHeroLevelBJ(udg_units09[2],'d',true)
call SelectHeroSkill(udg_units09[2],'A0DH')
call SelectHeroSkill(udg_units09[2],'A0DK')
call TriggerRegisterUnitEvent(udg_trigger182,udg_units09[2],EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger176,udg_units09[2],EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger175,udg_units09[2],EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger173,udg_units09[2],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[429],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[429])
call TriggerSleepAction(.2)
set udg_locations02[429]=xB(udg_locations02[428],GetRandomReal(100.,250.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'E00N',GetOwningPlayer(udg_units09[0]),udg_locations02[429],bj_UNIT_FACING)
set udg_units09[3]=bj_lastCreatedUnit
call SetHeroLevelBJ(udg_units09[3],'d',true)
call SelectHeroSkill(udg_units09[3],'A06L')
call SelectHeroSkill(udg_units09[3],'A0DG')
call SelectHeroSkill(udg_units09[3],'A0DF')
call SelectHeroSkill(udg_units09[3],'A033')
call TriggerRegisterUnitEvent(udg_trigger184,udg_units09[3],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[429],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[429])
call TriggerSleepAction(.2)
set udg_locations02[429]=xB(udg_locations02[428],GetRandomReal(100.,250.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'E00Q',GetOwningPlayer(udg_units09[0]),udg_locations02[429],bj_UNIT_FACING)
set udg_units09[4]=bj_lastCreatedUnit
call SetHeroLevelBJ(udg_units09[4],'d',true)
call SelectHeroSkill(udg_units09[4],'A0D4')
call SelectHeroSkill(udg_units09[4],'A0D1')
call SelectHeroSkill(udg_units09[4],'A0D2')
call SelectHeroSkill(udg_units09[4],'A0D0')
call SelectHeroSkill(udg_units09[4],'A0D3')
call TriggerRegisterUnitEvent(udg_trigger210,udg_units09[4],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[429],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[429])
call TriggerSleepAction(.2)
set udg_locations02[429]=xB(udg_locations02[428],GetRandomReal(100.,250.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'E00R',GetOwningPlayer(udg_units09[0]),udg_locations02[429],bj_UNIT_FACING)
set udg_units09[5]=bj_lastCreatedUnit
call SetHeroLevelBJ(udg_units09[5],'d',true)
call SelectHeroSkill(udg_units09[5],'A03Q')
call SelectHeroSkill(udg_units09[5],'A01O')
call SetUnitAbilityLevel(udg_units09[5],'A01O',10)
call SelectHeroSkill(udg_units09[5],'A01M')
call SelectHeroSkill(udg_units09[5],'A088')
call SelectHeroSkill(udg_units09[5],'A0CY')
call ModifyHeroSkillPoints(udg_units09[5],2,0)
call TriggerRegisterUnitEvent(udg_trigger212,udg_units09[5],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[429],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[429])
call RemoveLocation(udg_locations02[428])
endfunction
function Ap takes nothing returns boolean
return(GetTriggerUnit()==udg_units09[1])or(GetTriggerUnit()==udg_units09[2])or(GetTriggerUnit()==udg_units09[3])or(GetTriggerUnit()==udg_units09[4])or(GetTriggerUnit()==udg_units09[5])
endfunction
function Np takes nothing returns boolean
return(IsUnitAliveBJ(udg_units09[0]))and(Ap())
endfunction
function bp takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n00V')or(GetUnitTypeId(GetEnumUnit())=='n00W')or(GetUnitTypeId(GetEnumUnit())=='n00X')or(GetUnitTypeId(GetEnumUnit())=='n00Y')or(GetUnitTypeId(GetEnumUnit())=='n010')
endfunction
function Bp takes nothing returns boolean
return(bp())
endfunction
function cp takes nothing returns nothing
if(Bp())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Cp takes nothing returns boolean
return(GetTriggerUnit()==udg_units09[1])
endfunction
function dp takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A0DJ',udg_units09[2])!=0)
endfunction
function Dp takes nothing returns boolean
return(GetTriggerUnit()==udg_units09[2])
endfunction
function fp takes nothing returns boolean
return(GetTriggerUnit()==udg_units09[4])
endfunction
function Fp takes nothing returns nothing
if(Cp())then
call ForGroupBJ(EB(udg_rect04),function cp)
endif
if(Dp())then
call DisableTrigger(udg_trigger177)
call EnableTrigger(udg_trigger176)
set udg_integer38=0
set udg_integer40=0
if(dp())then
call UnitRemoveAbility(udg_units09[2],'A0DJ')
call DisableTrigger(udg_trigger175)
endif
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call KillUnit(udg_units10[bj_forLoopAIndex])
set udg_units10[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
if(fp())then
call DisableTrigger(udg_trigger211)
endif
endfunction
function gp takes nothing returns boolean
return(GetSpellAbilityId()=='A0CQ')
endfunction
function Gp takes nothing returns nothing
set udg_locations02[426]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[427]=xB(udg_locations02[426],200.,GetUnitFacing(GetTriggerUnit()))
set udg_unit218=GetTriggerUnit()
call PauseUnit(udg_unit218,true)
call SetUnitInvulnerable(udg_unit218,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit218,"spell")
call CreateNUnitsAtLoc(1,'h01P',GetOwningPlayer(udg_unit218),udg_locations02[427],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'n00Z',GetOwningPlayer(GetTriggerUnit()),udg_locations02[427],GetUnitFacing(GetTriggerUnit()))
set udg_unit25=bj_lastCreatedUnit
call TriggerSleepAction(10.)
call RemoveUnit(udg_unit25)
call CreateNUnitsAtLoc(1,'h01P',GetOwningPlayer(udg_unit218),udg_locations02[427],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call PauseUnit(udg_unit218,false)
call SetUnitInvulnerable(udg_unit218,false)
call ResetUnitAnimation(udg_unit218)
call RemoveLocation(udg_locations02[426])
call RemoveLocation(udg_locations02[427])
set udg_unit25=null
set udg_unit218=null
endfunction
function hp takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='n00W')
endfunction
function Hp takes nothing returns boolean
return(udg_integer35==15)
endfunction
function jp takes nothing returns nothing
set udg_integer35=(udg_integer35+1)
if(Hp())then
set udg_locations02[222]=GetUnitLoc(GetAttacker())
call CreateNUnitsAtLoc(1,'n00W',GetOwningPlayer(GetAttacker()),udg_locations02[222],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[222])
set udg_integer35=0
endif
endfunction
function Jp takes nothing returns boolean
return(GetSpellAbilityId()=='A031')
endfunction
function kp takes nothing returns nothing
set udg_unit26=GetSpellTargetUnit()
set udg_locations02[223]=GetUnitLoc(udg_unit26)
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(GetTriggerUnit()),udg_locations02[223],bj_UNIT_FACING)
set udg_unit24=bj_lastCreatedUnit
call ShowUnitHide(udg_unit24)
call UnitApplyTimedLifeBJ(60.,'BHwe',udg_unit24)
call IssueImmediateOrderById(udg_unit24,852556)
call RemoveLocation(udg_locations02[223])
call TriggerSleepAction(.5)
call UnitDamageTarget(udg_unit265,udg_unit265,(GetUnitState(udg_unit265,UNIT_STATE_MAX_LIFE)*.2),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call EnableTrigger(udg_trigger218)
call EnableTrigger(udg_trigger219)
call TriggerRegisterUnitEvent(udg_trigger218,udg_unit26,EVENT_UNIT_DEATH)
call TriggerSleepAction(75.)
call DisableTrigger(udg_trigger218)
call DisableTrigger(udg_trigger219)
call RemoveUnit(udg_unit24)
set udg_unit24=null
set udg_unit26=null
endfunction
function Kp takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger219)
call RemoveUnit(udg_unit24)
set udg_unit24=null
set udg_unit26=null
endfunction
function lp takes nothing returns nothing
set udg_locations02[223]=GetUnitLoc(udg_unit26)
call SetUnitPositionLoc(udg_unit24,udg_locations02[223])
call RemoveLocation(udg_locations02[223])
endfunction
function Lp takes nothing returns boolean
return(GetSpellAbilityId()=='A0CL')
endfunction
function mp takes nothing returns nothing
set udg_unit217=GetTriggerUnit()
set udg_locations02[423]=GetUnitLoc(udg_unit217)
call EnableTrigger(udg_trigger221)
call EnableTrigger(udg_trigger222)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger222,GetOwningPlayer(udg_unit217),true)
endfunction
function Mp takes nothing returns boolean
return(GetSpellAbilityId()=='A0CL')
endfunction
function pp takes nothing returns nothing
call DisableTrigger(udg_trigger221)
call DisableTrigger(udg_trigger222)
set udg_unit217=null
call RemoveLocation(udg_locations02[423])
endfunction
function Pp takes nothing returns boolean
return(IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(udg_unit217)))
endfunction
function qp takes nothing returns boolean
return(GetUnitState(udg_unit217,UNIT_STATE_MANA)>=5000.)
endfunction
function Qp takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[423],udg_locations02[424])<=1000.)
endfunction
function sp takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[424]=GetUnitLoc(GetTriggerUnit())
if(Qp())then
if(qp())then
call SetUnitManaBJ(udg_unit217,(GetUnitState(udg_unit217,UNIT_STATE_MANA)-5000.))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[425]=xB(udg_locations02[424],150.,(I2R(bj_forLoopAIndex)*60.))
call CreateNUnitsAtLoc(1,'h02F',GetOwningPlayer(udg_unit217),udg_locations02[425],bj_UNIT_FACING)
call SetUnitAnimation(bj_lastCreatedUnit,"Birth Medium")
call UnitApplyTimedLifeBJ(.6,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h02I',GetOwningPlayer(udg_unit217),udg_locations02[425],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.2,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[425])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.5)
call AddSpecialEffectLocBJ(udg_locations02[424],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[424],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_unit217,GetTriggerUnit(),60000.,true,false,ATTACK_TYPE_SIEGE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
else
call CreateTextTagLocBJ("Not enough Chkara!",udg_locations02[424],0,10,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
endif
else
call CreateTextTagLocBJ("Too far!",udg_locations02[424],0,10,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
endif
call RemoveLocation(udg_locations02[424])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Sp takes nothing returns boolean
return(GetSpellAbilityId()=='A0CJ')
endfunction
function tp takes nothing returns nothing
set udg_unit215=GetTriggerUnit()
set udg_unit216=GetSpellTargetUnit()
set udg_locations02[419]=GetUnitLoc(udg_unit215)
set udg_locations02[420]=GetUnitLoc(udg_unit216)
set udg_locations02[422]=xB(udg_locations02[419],900.,AngleBetweenPoints(udg_locations02[419],udg_locations02[420]))
call PauseUnit(udg_unit215,true)
call PauseUnit(udg_unit216,true)
call SetUnitInvulnerable(udg_unit215,true)
call SetUnitInvulnerable(udg_unit216,true)
call SetUnitPathing(udg_unit215,false)
call SetUnitPathing(udg_unit216,false)
call UnitAddAbility(udg_unit215,'Amrf')
call UnitAddAbility(udg_unit216,'Amrf')
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit215,"spell")
call CreateNUnitsAtLoc(1,'h02D',GetOwningPlayer(udg_unit215),udg_locations02[420],AngleBetweenPoints(udg_locations02[419],udg_locations02[420]))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,120.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call UnitApplyTimedLifeBJ(3.,'BHwe',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations02[420],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimation(udg_unit216,"death")
call SetUnitPositionLoc(udg_unit215,udg_locations02[422])
call SetUnitFlyHeight(udg_unit215,400.,10000.)
call SetUnitFacingToFaceLocTimed(udg_unit215,udg_locations02[419],.0)
call SetUnitTimeScalePercent(udg_unit215,150.)
call RemoveLocation(udg_locations02[422])
call EnableTrigger(udg_trigger224)
call TriggerSleepAction(.5)
call SetUnitAnimationByIndex(udg_unit215,7)
call TriggerSleepAction(.8)
call DisableTrigger(udg_trigger224)
set udg_locations02[422]=GetUnitLoc(udg_unit216)
call AddSpecialEffectLocBJ(udg_locations02[422],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[422])
call UnitRemoveAbility(udg_unit215,'Amrf')
call UnitRemoveAbility(udg_unit216,'Amrf')
call SetUnitPathing(udg_unit215,true)
call SetUnitPathing(udg_unit216,true)
call SetUnitInvulnerable(udg_unit215,false)
call SetUnitInvulnerable(udg_unit216,false)
call PauseUnit(udg_unit215,false)
call PauseUnit(udg_unit216,false)
call ResetUnitAnimation(udg_unit215)
call SetUnitFlyHeight(udg_unit215,.0,10000.)
call UnitDamageTarget(udg_unit215,udg_unit216,(I2R(GetHeroInt(udg_unit215,true))*70.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[419])
call RemoveLocation(udg_locations02[420])
set udg_integer34=0
set udg_unit215=null
set udg_unit216=null
endfunction
function Tp takes nothing returns boolean
return(udg_integer34<=40)
endfunction
function up takes nothing returns nothing
set udg_integer34=(udg_integer34+1)
if(Tp())then
set udg_locations02[421]=GetUnitLoc(udg_unit216)
set udg_locations02[422]=xB(udg_locations02[421],14.,AngleBetweenPoints(udg_locations02[419],udg_locations02[420]))
call SetUnitPositionLoc(udg_unit216,udg_locations02[422])
call SetUnitFlyHeight(udg_unit216,(19.*I2R(udg_integer34)),10000.)
call RemoveLocation(udg_locations02[421])
call RemoveLocation(udg_locations02[422])
else
set udg_locations02[421]=GetUnitLoc(udg_unit216)
set udg_locations02[422]=xB(udg_locations02[421],20.,AngleBetweenPoints(udg_locations02[420],udg_locations02[419]))
call SetUnitPositionLoc(udg_unit216,udg_locations02[422])
call SetUnitFlyHeight(udg_unit216,(760.-(25.*(I2R(udg_integer34)-40.))),10000.)
call RemoveLocation(udg_locations02[421])
call RemoveLocation(udg_locations02[422])
endif
endfunction
function Up takes nothing returns boolean
return(GetSpellAbilityId()=='A0CI')
endfunction
function wp takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit214)))
endfunction
function Wp takes nothing returns nothing
call UnitDamageTarget(udg_unit214,GetEnumUnit(),(I2R(GetHeroInt(udg_unit214,true))*15.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function yp takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit214)))
endfunction
function Yp takes nothing returns nothing
call UnitDamageTarget(udg_unit214,GetEnumUnit(),(I2R(GetHeroInt(udg_unit214,true))*15.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function zp takes nothing returns nothing
set udg_locations02[416]=GetSpellTargetLoc()
set udg_locations02[418]=GetUnitLoc(GetTriggerUnit())
set udg_unit214=GetTriggerUnit()
set udg_real24=AngleBetweenPoints(udg_locations02[418],udg_locations02[416])
set udg_integers06[12]=1
loop
exitwhen udg_integers06[12]>10
set udg_locations02[417]=xB(udg_locations02[416],GetRandomReal(50.,200.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'h02D',GetOwningPlayer(udg_unit214),udg_locations02[417],udg_real24)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,200.)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call AddSpecialEffectLocBJ(udg_locations02[417],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateUbersplatBJ(udg_locations02[417],"THND",'d','d','d',0,true,true)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(100.,udg_locations02[417],Condition(function wp)),function Wp)
call RemoveLocation(udg_locations02[417])
call TriggerSleepAction(.05)
set udg_locations02[417]=xB(udg_locations02[416],GetRandomReal(50.,300.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'h02E',GetOwningPlayer(udg_unit214),udg_locations02[417],GetRandomReal(0,360.))
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,200.)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call AddSpecialEffectLocBJ(udg_locations02[417],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateUbersplatBJ(udg_locations02[417],"THND",'d','d','d',0,true,true)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(100.,udg_locations02[417],Condition(function yp)),function Yp)
call RemoveLocation(udg_locations02[417])
set udg_integers06[12]=udg_integers06[12]+1
endloop
set udg_unit214=null
set udg_real24=.0
call RemoveLocation(udg_locations02[416])
call RemoveLocation(udg_locations02[418])
endfunction
function Zp takes nothing returns boolean
return(GetSpellAbilityId()=='A0DE')
endfunction
function vP takes nothing returns boolean
return(udg_integers05[1]==udg_integer04)
endfunction
function eP takes nothing returns boolean
return(udg_integers05[2]==udg_integer04)
endfunction
function xP takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(udg_units08[1]),udg_force01))
endfunction
function oP takes nothing returns boolean
return(IsUnitAliveBJ(udg_units08[1]))
endfunction
function rP takes nothing returns boolean
return(IsUnitAliveBJ(udg_units08[1]))and(GetUnitTypeId(udg_units08[1])=='E004')and(GetUnitState(udg_units08[1],UNIT_STATE_LIFE)<=90.)
endfunction
function iP takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='E004')
endfunction
function aP takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n00L')
endfunction
function nP takes nothing returns boolean
return(GetBooleanOr(iP(),aP()))
endfunction
function VP takes nothing returns nothing
set udg_locations02[412]=GetUnitLoc(GetTriggerUnit())
if(nP())then
set udg_units08[0]=GetTriggerUnit()
set udg_units08[1]=GetSpellTargetUnit()
set udg_locations02[413]=GetUnitLoc(udg_units08[1])
call PauseUnit(udg_units08[0],true)
call PauseUnit(udg_units08[1],true)
call SetUnitInvulnerable(udg_units08[0],true)
call SetUnitInvulnerable(udg_units08[1],true)
call SetUnitFacingToFaceUnitTimed(udg_units08[0],udg_units08[1],0)
call SetUnitFacingToFaceUnitTimed(udg_units08[1],udg_units08[0],0)
call UnitAddAbility(udg_units08[0],'Amrf')
call TriggerSleepAction(.1)
call AddSpecialEffectTargetUnitBJ("origin",udg_units08[0],"Abilities\\Spells\\NightElf\\TargetArtLumber\\TargetArtLumber.mdl")
set udg_effects01[138]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("origin",udg_units08[1],"Abilities\\Spells\\Undead\\Unsummon\\UnsummonTarget.mdl")
set udg_effects01[139]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("origin",udg_units08[1],"Abilities\\Spells\\Other\\Drain\\ManaDrainCaster.mdl")
set udg_effects01[140]=bj_lastCreatedEffect
call SetUnitAnimation(udg_units08[0],"spell")
call AddLightningLoc("SPLK",udg_locations02[412],udg_locations02[413])
set udg_lightning03=bj_lastCreatedLightning
call RemoveLocation(udg_locations02[412])
call EnableTrigger(udg_trigger227)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[414]=xB(udg_locations02[413],300.,(I2R(bj_forLoopAIndex)*30.))
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(udg_units08[0]),udg_locations02[414],AngleBetweenPoints(udg_locations02[414],udg_locations02[413]))
set udg_units08[(bj_forLoopAIndex+1)]=bj_lastCreatedUnit
call SetUnitPathing(bj_lastCreatedUnit,false)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,300.)
call AddSpecialEffectLocBJ(udg_locations02[414],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateUbersplatBJ(udg_locations02[414],"THND",'d','d','d',0,true,true)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
call RemoveLocation(udg_locations02[414])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.5)
call DisableTrigger(udg_trigger227)
set udg_integer33=0
call SetUnitFlyHeight(udg_units08[0],.0,10000.)
call UnitRemoveAbility(udg_units08[0],'Amrf')
set udg_integers06[13]=1
loop
exitwhen udg_integers06[13]>10
if(oP())then
call SetUnitLifePercentBJ(udg_units08[1],(GetUnitLifePercent(udg_units08[1])-12.))
call TriggerSleepAction(1.)
else
call DestroyEffect(udg_effects01[138])
call DestroyEffect(udg_effects01[139])
call DestroyEffect(udg_effects01[140])
call ShowUnitShow(udg_units08[1])
call PauseUnit(udg_units08[0],false)
call PauseUnit(udg_units08[1],false)
call SetUnitInvulnerable(udg_units08[0],false)
call SetUnitInvulnerable(udg_units08[1],false)
call DestroyLightning(udg_lightning03)
call ResetUnitAnimation(udg_units08[0])
if(xP())then
set udg_integers05[2]=(udg_integers05[2]+1)
call MultiboardSetItemValueBJ(udg_multiboard02,3,3,I2S(udg_integers05[2]))
if(eP())then
call TriggerExecute(udg_trigger61)
endif
else
set udg_integers05[1]=(udg_integers05[1]+1)
call MultiboardSetItemValueBJ(udg_multiboard02,3,2,I2S(udg_integers05[1]))
if(vP())then
call TriggerExecute(udg_trigger60)
endif
endif
set udg_units08[0]=null
set udg_units08[1]=null
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_units08[(bj_forLoopAIndex+1)])
set udg_units08[(bj_forLoopAIndex+1)]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[412])
call RemoveLocation(udg_locations02[413])
return
endif
set udg_integers06[13]=udg_integers06[13]+1
endloop
if(rP())then
call TriggerExecute(udg_trigger305)
endif
call DestroyEffect(udg_effects01[138])
call DestroyEffect(udg_effects01[139])
call DestroyEffect(udg_effects01[140])
call ShowUnitShow(udg_units08[1])
call PauseUnit(udg_units08[0],false)
call PauseUnit(udg_units08[1],false)
call SetUnitInvulnerable(udg_units08[0],false)
call SetUnitInvulnerable(udg_units08[1],false)
call DestroyLightning(udg_lightning03)
call ResetUnitAnimation(udg_units08[0])
set udg_units08[0]=null
set udg_units08[1]=null
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_units08[(bj_forLoopAIndex+1)])
set udg_units08[(bj_forLoopAIndex+1)]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[412])
call RemoveLocation(udg_locations02[413])
return
else
call CreateTextTagLocBJ("Unable to use to this unit!",udg_locations02[412],0,10,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call RemoveLocation(udg_locations02[412])
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitState(GetTriggerUnit(),UNIT_STATE_MANA)+16000.))
endif
endfunction
function EP takes nothing returns nothing
set udg_integer33=(udg_integer33+1)
set udg_locations02[412]=GetUnitLoc(udg_units08[0])
set udg_locations02[415]=xB(udg_locations02[412],16.,AngleBetweenPoints(udg_locations02[413],udg_locations02[412]))
call SetUnitPositionLoc(udg_units08[0],udg_locations02[415])
call SetUnitFlyHeight(udg_units08[0],((-1.3*Pow(I2R(udg_integer33),2.))+(32.*I2R(udg_integer33))),10000.)
call MoveLightningEx(udg_lightning03,false,GetLocationX(udg_locations02[415]),GetLocationY(udg_locations02[415]),GetLocationZ(udg_locations02[415]),GetLocationX(udg_locations02[413]),GetLocationY(udg_locations02[413]),GetLocationZ(udg_locations02[413]))
call RemoveLocation(udg_locations02[412])
call RemoveLocation(udg_locations02[415])
endfunction
function XP takes nothing returns boolean
return(GetSpellAbilityId()=='A0DU')
endfunction
function OP takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetSpellTargetUnit()),udg_force01))
endfunction
function RP takes nothing returns nothing
if(OP())then
call DisplayTextToForce(udg_force02,GetHeroProperName(GetSpellTargetUnit()))
call DisplayTextToForce(udg_force02,("|cFFFF0000Current Hp: |r"+R2S(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit()))))
call DisplayTextToForce(udg_force02,("|cFFFF0000Maximum Hp: |r"+R2S(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellTargetUnit()))))
call DisplayTextToForce(udg_force02,("|cFFFF0000Current Chakra: |r"+R2S(GetUnitStateSwap(UNIT_STATE_MANA,GetSpellTargetUnit()))))
call DisplayTextToForce(udg_force02,("|cFFFF0000Maximum Chakra: |r"+R2S(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetSpellTargetUnit()))))
call DisplayTextToForce(udg_force02,("|cFFFF0000Gold: |r"+I2S(GetPlayerState(GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_GOLD))))
call DisplayTextToForce(udg_force02,("|cFFFF0000Wood: |r"+I2S(GetPlayerState(GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_LUMBER))))
else
call DisplayTextToForce(udg_force01,GetHeroProperName(GetSpellTargetUnit()))
call DisplayTextToForce(udg_force01,("|cFFFF0000Current Hp: |r"+R2S(GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit()))))
call DisplayTextToForce(udg_force01,("|cFFFF0000Maximum Hp: |r"+R2S(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetSpellTargetUnit()))))
call DisplayTextToForce(udg_force01,("|cFFFF0000Current Chakra: |r"+R2S(GetUnitStateSwap(UNIT_STATE_MANA,GetSpellTargetUnit()))))
call DisplayTextToForce(udg_force01,("|cFFFF0000Maximum Chkara: |r"+R2S(GetUnitStateSwap(UNIT_STATE_MAX_MANA,GetSpellTargetUnit()))))
call DisplayTextToForce(udg_force01,("|cFFFF0000Gold: |r"+I2S(GetPlayerState(GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_GOLD))))
call DisplayTextToForce(udg_force01,("|cFFFF0000Wood: |r"+I2S(GetPlayerState(GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_LUMBER))))
endif
endfunction
function IP takes nothing returns boolean
return(GetSpellAbilityId()=='A0CF')
endfunction
function AP takes nothing returns nothing
set udg_unit211=GetTriggerUnit()
set udg_unit212=GetSpellTargetUnit()
set udg_locations02[407]=GetUnitLoc(udg_unit211)
call PauseUnit(udg_unit211,true)
call SetUnitInvulnerable(udg_unit211,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit211,"spell two")
set udg_integers06[14]=1
loop
exitwhen udg_integers06[14]>20
call AddSpecialEffectLocBJ(udg_locations02[407],"war3mapImported\\AMWQQKSTD91.MDX")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitVertexColorBJ(udg_unit211,'d','d','d',(I2R(udg_integers06[14])*5.))
call TriggerSleepAction(.05)
set udg_integers06[14]=udg_integers06[14]+1
endloop
call ShowUnitHide(udg_unit211)
call RemoveLocation(udg_locations02[407])
call TriggerSleepAction(3.)
call ShowUnitShow(udg_unit211)
call SetUnitVertexColorBJ(udg_unit211,'d','d','d',.0)
set udg_locations02[407]=GetUnitLoc(udg_unit212)
call SetUnitPositionLoc(udg_unit211,udg_locations02[407])
call IssueTargetOrderById(udg_unit211,851985,udg_unit212)
call UnitDamageTarget(udg_unit211,udg_unit212,(I2R(GetHeroInt(udg_unit211,true))*35.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call AddSpecialEffectLocBJ(udg_locations02[407],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[407],"war3mapImported\\AMWQQKSTD91.MDX")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[407])
call SetUnitInvulnerable(udg_unit211,false)
call PauseUnit(udg_unit211,false)
set udg_unit211=null
set udg_unit212=null
endfunction
function NP takes nothing returns boolean
return(IsUnitAliveBJ(udg_units07[4]))
endfunction
function bP takes nothing returns boolean
return(IsUnitAliveBJ(udg_units07[3]))
endfunction
function BP takes nothing returns boolean
return(IsUnitAliveBJ(udg_units07[2]))
endfunction
function cP takes nothing returns boolean
return(IsUnitAliveBJ(udg_units07[1]))
endfunction
function CP takes nothing returns boolean
return(IsUnitAliveBJ(udg_units07[1]))or(IsUnitAliveBJ(udg_units07[2]))or(IsUnitAliveBJ(udg_units07[3]))or(IsUnitAliveBJ(udg_units07[4]))
endfunction
function dP takes nothing returns boolean
return(CP())
endfunction
function DP takes nothing returns boolean
return(udg_integer32==1)
endfunction
function fP takes nothing returns boolean
return(udg_integer32==1)
endfunction
function FP takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(fP())then
set udg_integer32=5
call TriggerSleepAction(5.)
call SetPlayerAbilityAvailableBJ(true,'A0C1',GetOwningPlayer(udg_unit251))
else
set udg_integer32=(udg_integer32-1)
if(dP())then
call DisableTrigger(udg_trigger231)
if(cP())then
call KillUnit(udg_units07[1])
else
if(BP())then
call KillUnit(udg_units07[2])
else
if(bP())then
call KillUnit(udg_units07[3])
else
if(NP())then
call KillUnit(udg_units07[4])
endif
endif
endif
endif
call EnableTrigger(udg_trigger231)
endif
if(DP())then
call SetPlayerAbilityAvailableBJ(false,'A0C1',GetOwningPlayer(udg_unit251))
endif
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function gP takes nothing returns boolean
return(GetTriggerUnit()==udg_units07[1])or(GetTriggerUnit()==udg_units07[2])or(GetTriggerUnit()==udg_units07[3])or(GetTriggerUnit()==udg_units07[4])
endfunction
function GP takes nothing returns boolean
return(gP())
endfunction
function hP takes nothing returns boolean
return(udg_integer32==1)
endfunction
function HP takes nothing returns boolean
return(GetKillingUnit()==udg_units07[0])
endfunction
function jP takes nothing returns nothing
if(HP())then
else
set udg_integer32=(udg_integer32-1)
if(hP())then
call SetPlayerAbilityAvailableBJ(false,'A0C1',GetOwningPlayer(udg_unit251))
endif
endif
endfunction
function JP takes nothing returns boolean
return(GetSpellAbilityId()=='A0C3')
endfunction
function kP takes nothing returns boolean
return(udg_integer32==1)
endfunction
function KP takes nothing returns boolean
return(udg_integer32==2)
endfunction
function lP takes nothing returns boolean
return(udg_integer32==3)
endfunction
function LP takes nothing returns boolean
return(udg_integer32==4)
endfunction
function mP takes nothing returns boolean
return(udg_integer32==5)
endfunction
function MP takes nothing returns nothing
set udg_units07[0]=GetTriggerUnit()
set udg_locations02[398]=GetUnitLoc(udg_units07[0])
call SetPlayerAbilityAvailableBJ(false,'A0C3',GetOwningPlayer(udg_units07[0]))
call SetPlayerAbilityAvailableBJ(true,'A0C2',GetOwningPlayer(udg_units07[0]))
if(mP())then
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n00U',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[1]=bj_lastCreatedUnit
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call TriggerSleepAction(.3)
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n009',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[2]=bj_lastCreatedUnit
call TriggerRegisterUnitEvent(udg_trigger238,udg_units07[2],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call TriggerSleepAction(.3)
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n00T',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[3]=bj_lastCreatedUnit
call TriggerRegisterUnitEvent(udg_trigger237,udg_units07[3],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call TriggerSleepAction(.3)
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n00N',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[4]=bj_lastCreatedUnit
call TriggerRegisterUnitEvent(udg_trigger239,udg_units07[4],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call RemoveLocation(udg_locations02[398])
else
if(LP())then
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n00N',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[1]=bj_lastCreatedUnit
call TriggerRegisterUnitEvent(udg_trigger239,udg_units07[1],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call TriggerSleepAction(.3)
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n009',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[2]=bj_lastCreatedUnit
call TriggerRegisterUnitEvent(udg_trigger238,udg_units07[2],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call TriggerSleepAction(.3)
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n00T',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[3]=bj_lastCreatedUnit
call TriggerRegisterUnitEvent(udg_trigger237,udg_units07[3],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call RemoveLocation(udg_locations02[398])
set udg_units07[4]=null
else
if(lP())then
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n009',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[2]=bj_lastCreatedUnit
call TriggerRegisterUnitEvent(udg_trigger238,udg_units07[2],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call TriggerSleepAction(.3)
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n00N',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[3]=bj_lastCreatedUnit
call TriggerRegisterUnitEvent(udg_trigger239,udg_units07[3],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call RemoveLocation(udg_locations02[398])
set udg_units07[4]=null
set udg_units07[1]=null
else
if(KP())then
set udg_locations02[399]=xB(udg_locations02[398],GetRandomReal(200.,400.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n009',GetOwningPlayer(udg_units07[0]),udg_locations02[399],bj_UNIT_FACING)
set udg_units07[2]=bj_lastCreatedUnit
call TriggerRegisterUnitEvent(udg_trigger238,udg_units07[2],EVENT_UNIT_SPELL_EFFECT)
call AddSpecialEffectLocBJ(udg_locations02[399],"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[399])
call RemoveLocation(udg_locations02[398])
set udg_units07[1]=null
set udg_units07[3]=null
set udg_units07[4]=null
else
if(kP())then
call CreateTextTagLocBJ("You only have one heart left, you can no longer summon heart demons.",udg_locations02[398],0,10,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[398])
set udg_units07[1]=null
set udg_units07[2]=null
set udg_units07[3]=null
set udg_units07[4]=null
endif
endif
endif
endif
endif
endfunction
function pP takes nothing returns boolean
return(GetSpellAbilityId()=='A0C2')
endfunction
function PP takes nothing returns nothing
call SetPlayerAbilityAvailableBJ(false,'A0C2',GetOwningPlayer(udg_units07[0]))
call SetPlayerAbilityAvailableBJ(true,'A0C3',GetOwningPlayer(udg_units07[0]))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[400]=GetUnitLoc(udg_units07[bj_forLoopAIndex])
call AddSpecialEffectLocBJ(udg_locations02[400],"Abilities\\Spells\\Undead\\Unsummon\\UnsummonTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitInvulnerable(udg_units07[bj_forLoopAIndex],false)
call UnitDamageTarget(udg_units07[0],udg_units07[bj_forLoopAIndex],500000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_units07[bj_forLoopAIndex]=null
call RemoveLocation(udg_locations02[400])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function qP takes nothing returns boolean
return(GetSpellAbilityId()=='A0C0')
endfunction
function QP takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units06[0])))
endfunction
function sP takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function SP takes nothing returns boolean
return GetBooleanAnd(QP(),sP())
endfunction
function tP takes nothing returns nothing
set udg_locations02[397]=GetUnitLoc(GetEnumUnit())
call AddLightningLoc("LEAS",udg_locations02[396],udg_locations02[397])
set udg_lightnings03[udg_integer31]=bj_lastCreatedLightning
set udg_integer31=(udg_integer31+1)
call RemoveLocation(udg_locations02[397])
call PauseUnit(GetEnumUnit(),true)
endfunction
function TP takes nothing returns nothing
set udg_units06[0]=GetTriggerUnit()
set udg_locations02[396]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[397]=xB(udg_locations02[396],GetRandomReal(200.,500.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'h02B',GetOwningPlayer(udg_units06[0]),udg_locations02[397],bj_UNIT_FACING)
set udg_units06[bj_forLoopAIndex]=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[397])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_group12=XB(1000.,udg_locations02[396],Condition(function SP))
call ForGroupBJ(udg_group12,function tP)
call RemoveLocation(udg_locations02[396])
call EnableTrigger(udg_trigger235)
endfunction
function uP takes nothing returns boolean
return(GetSpellAbilityId()=='A0C0')
endfunction
function UP takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
endfunction
function wP takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(udg_group12,function UP)
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=(udg_integer31-1)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyLightning(udg_lightnings03[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units06[bj_forLoopAIndex])
set udg_units06[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_group12)
call DestroyGroup(udg_group12)
set udg_units06[0]=null
set udg_integer31=0
endfunction
function WP takes nothing returns boolean
return(GetSpellAbilityId()=='A06R')
endfunction
function yP takes nothing returns boolean
return(udg_integer32!=5)
endfunction
function YP takes nothing returns boolean
return(GetRandomInt(1,'d')>=85)
endfunction
function zP takes nothing returns nothing
set udg_unit76=GetTriggerUnit()
set udg_unit75=GetSpellTargetUnit()
set udg_locations02[141]=GetUnitLoc(udg_unit75)
set udg_locations02[142]=GetUnitLoc(udg_unit76)
call PauseUnit(udg_unit76,true)
call PauseUnit(udg_unit75,true)
call SetUnitInvulnerable(udg_unit76,true)
call SetUnitInvulnerable(udg_unit75,true)
call SetUnitFacingToFaceUnitTimed(udg_unit76,udg_unit75,0)
call SetUnitTimeScalePercent(udg_unit76,250.)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit76,8)
call TriggerSleepAction(.7)
call SetUnitTimeScalePercent(udg_unit76,.0)
call SetUnitAnimation(udg_unit75,"death")
call TriggerSleepAction(.15)
call SetUnitTimeScalePercent(udg_unit75,.0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations02[141],"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.1)
call AddSpecialEffectLocBJ(udg_locations02[141],"Objects\\Spawnmodels\\Orc\\Orcblood\\OrcBloodHeroFarSeer.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_unit76,100.)
call SetUnitAnimationByIndex(udg_unit76,14)
if(YP())then
call CreateTextTagLocBJ("Successfully Taken a heart!",udg_locations02[142],0,10,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call CreateNUnitsAtLoc(1,'h02C',GetOwningPlayer(udg_unit76),udg_locations02[141],bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,udg_locations02[142])
call UnitApplyTimedLifeBJ(3.,'BHwe',bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call TriggerSleepAction(3.5)
call SetUnitTimeScalePercent(udg_unit75,100.)
call PauseUnit(udg_unit76,false)
call PauseUnit(udg_unit75,false)
call SetUnitInvulnerable(udg_unit76,false)
call SetUnitInvulnerable(udg_unit75,false)
call UnitDamageTarget(udg_unit76,udg_unit75,(GetUnitState(udg_unit75,UNIT_STATE_LIFE)+10.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
if(yP())then
set udg_integer32=(udg_integer32+1)
call SetPlayerAbilityAvailableBJ(true,'A0C1',GetOwningPlayer(udg_unit251))
endif
call RemoveLocation(udg_locations02[141])
call RemoveLocation(udg_locations02[142])
set udg_unit76=null
set udg_unit75=null
else
call CreateTextTagLocBJ("Failed to take a heart!",udg_locations02[142],0,10,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetUnitTimeScalePercent(udg_unit75,100.)
call PauseUnit(udg_unit76,false)
call PauseUnit(udg_unit75,false)
call SetUnitInvulnerable(udg_unit76,false)
call SetUnitInvulnerable(udg_unit75,false)
call UnitDamageTarget(udg_unit76,udg_unit75,(I2R(GetHeroInt(udg_unit76,true))*30.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[141])
call RemoveLocation(udg_locations02[142])
set udg_unit76=null
set udg_unit75=null
endif
endfunction
function ZP takes nothing returns boolean
return(GetSpellAbilityId()=='A053')
endfunction
function vq takes nothing returns nothing
set udg_unit73=GetTriggerUnit()
set udg_real22=GetUnitFacing(GetTriggerUnit())
set udg_locations02[384]=GetUnitLoc(udg_unit73)
call PauseUnit(udg_unit73,true)
call SetUnitInvulnerable(udg_unit73,true)
call SetUnitPathing(udg_unit73,false)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(udg_unit73),udg_locations02[384],GetUnitFacing(udg_unit73))
call SetUnitPathing(bj_lastCreatedUnit,false)
set udg_unit74=bj_lastCreatedUnit
call ShowUnitHide(udg_unit74)
call SetUnitScalePercent(udg_unit74,300.,300.,300.)
call TriggerSleepAction(.3)
call SetUnitTimeScalePercent(udg_unit73,.0)
set udg_integers06[15]=1
loop
exitwhen udg_integers06[15]>30
set udg_locations02[143]=xB(udg_locations02[384],256,(udg_real22+GetRandomReal(-25.,25.)))
call SetUnitFacingToFaceLocTimed(udg_unit73,udg_locations02[143],0)
call SetUnitFacingToFaceLocTimed(udg_unit74,udg_locations02[143],0)
call IssuePointOrderByIdLoc(udg_unit74,852580,udg_locations02[143])
call RemoveLocation(udg_locations02[143])
call TriggerSleepAction(.1)
set udg_integers06[15]=udg_integers06[15]+1
endloop
call TriggerSleepAction(.5)
call RemoveUnit(udg_unit74)
call SetUnitTimeScalePercent(udg_unit73,100.)
call SetUnitPathing(udg_unit73,true)
call SetUnitInvulnerable(udg_unit73,false)
call PauseUnit(udg_unit73,false)
call RemoveLocation(udg_locations02[143])
set udg_real22=.0
set udg_unit73=null
set udg_unit74=null
endfunction
function eq takes nothing returns boolean
return(GetSpellAbilityId()=='A0C5')
endfunction
function xq takes nothing returns nothing
set udg_unit207=GetTriggerUnit()
set udg_locations02[144]=GetUnitLoc(udg_unit207)
set udg_real23=GetUnitFacing(GetTriggerUnit())
call PauseUnit(udg_unit207,true)
call SetUnitInvulnerable(udg_unit207,true)
call CreateNUnitsAtLoc(1,'h010',GetOwningPlayer(udg_unit207),udg_locations02[144],udg_real23)
set udg_unit210=bj_lastCreatedUnit
call SetUnitPathing(bj_lastCreatedUnit,false)
call ShowUnitHide(bj_lastCreatedUnit)
call TriggerSleepAction(.3)
call SetUnitTimeScalePercent(udg_unit207,.0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[145]=xB(udg_locations02[144],50.,(udg_real23+I2R(bj_forLoopAIndex)))
set udg_locations02[146]=xB(udg_locations02[145],2000.,AngleBetweenPoints(udg_locations02[144],udg_locations02[145]))
call AddLightningLoc("CLPB",udg_locations02[145],udg_locations02[146])
set udg_lightnings04[bj_forLoopAIndex]=bj_lastCreatedLightning
call RemoveLocation(udg_locations02[145])
call RemoveLocation(udg_locations02[146])
set udg_locations02[145]=xB(udg_locations02[144],50.,(udg_real23-I2R(bj_forLoopAIndex)))
set udg_locations02[146]=xB(udg_locations02[145],2000.,AngleBetweenPoints(udg_locations02[144],udg_locations02[145]))
call AddLightningLoc("CLPB",udg_locations02[145],udg_locations02[146])
set udg_lightnings04[(bj_forLoopAIndex+30)]=bj_lastCreatedLightning
call RemoveLocation(udg_locations02[145])
call RemoveLocation(udg_locations02[146])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations02[145]=xB(udg_locations02[144],256.,udg_real23)
set udg_integers06[16]=1
loop
exitwhen udg_integers06[16]>8
call IssuePointOrderByIdLoc(udg_unit210,852218,udg_locations02[145])
call TriggerSleepAction(1.)
set udg_integers06[16]=udg_integers06[16]+1
endloop
call RemoveUnit(udg_unit210)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=60
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyLightning(udg_lightnings04[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[144])
call RemoveLocation(udg_locations02[145])
call SetUnitInvulnerable(udg_unit207,false)
call PauseUnit(udg_unit207,false)
set udg_unit207=null
set udg_real23=.0
set udg_unit210=null
endfunction
function oq takes nothing returns boolean
return(GetSpellAbilityId()=='A0C7')
endfunction
function rq takes nothing returns nothing
set udg_unit208=GetTriggerUnit()
set udg_locations02[405]=GetUnitLoc(GetTriggerUnit())
call PauseUnit(udg_unit208,true)
call SetUnitInvulnerable(udg_unit208,true)
call SetUnitPathing(udg_unit208,false)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h00H',GetOwningPlayer(udg_unit208),udg_locations02[405],GetUnitFacing(udg_unit208))
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_unit208),udg_locations02[405],GetUnitFacing(udg_unit208))
call SetUnitPathing(bj_lastCreatedUnit,false)
set udg_unit209=bj_lastCreatedUnit
call ShowUnitHide(udg_unit209)
set udg_locations02[406]=xB(udg_locations02[405],256.,GetUnitFacing(udg_unit208))
set udg_integers06[17]=1
loop
exitwhen udg_integers06[17]>10
call IssuePointOrderByIdLoc(udg_unit209,852555,udg_locations02[406])
call TriggerSleepAction(1.)
set udg_integers06[17]=udg_integers06[17]+1
endloop
call RemoveUnit(udg_unit209)
call RemoveLocation(udg_locations02[405])
call RemoveLocation(udg_locations02[406])
call SetUnitInvulnerable(udg_unit208,false)
call SetUnitPathing(udg_unit208,true)
call PauseUnit(udg_unit208,false)
set udg_unit208=null
set udg_unit209=null
endfunction
function iq takes nothing returns boolean
return(GetSpellAbilityId()=='A062')
endfunction
function aq takes nothing returns boolean
return(GetRandomInt(1,'d')>=80)and(IsTriggerEnabled(udg_trigger247)==false)
endfunction
function nq takes nothing returns nothing
set udg_unit203=GetTriggerUnit()
set udg_unit205=GetSpellTargetUnit()
set udg_locations02[401]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[402]=GetUnitLoc(GetSpellTargetUnit())
call PauseUnit(udg_unit203,true)
call PauseUnit(udg_unit205,true)
call SetUnitInvulnerable(udg_unit203,true)
call SetUnitInvulnerable(udg_unit205,true)
call SetUnitPathing(udg_unit203,false)
call SetUnitTimeScalePercent(udg_unit203,200.)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit203,4)
call TriggerSleepAction(.5)
call CreateNUnitsAtLoc(1,'h020',GetOwningPlayer(udg_unit203),udg_locations02[401],GetUnitFacing(udg_unit203))
set udg_unit204=bj_lastCreatedUnit
call PauseUnit(udg_unit204,true)
call SetUnitInvulnerable(udg_unit204,true)
call SetUnitPathing(udg_unit204,false)
call UnitAddAbility(udg_unit204,'Aloc')
call SetUnitTimeScalePercent(udg_unit204,100.)
call SetUnitTimeScalePercent(udg_unit203,100.)
call SetUnitAnimationByIndex(udg_unit204,3)
call SetUnitAnimation(udg_unit205,"death")
call EnableTrigger(udg_trigger241)
call EnableTrigger(udg_trigger242)
call TriggerSleepAction(.5)
call DisableTrigger(udg_trigger241)
call SetUnitTimeScalePercent(udg_unit204,.0)
call SetUnitTimeScalePercent(udg_unit205,.0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations02[402],"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.1)
call AddSpecialEffectLocBJ(udg_locations02[402],"Objects\\Spawnmodels\\Orc\\Orcblood\\OrcBloodHeroFarSeer.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(udg_trigger242)
call TriggerSleepAction(2)
call SetUnitTimeScalePercent(udg_unit204,100.)
call SetUnitTimeScalePercent(udg_unit205,100.)
call SetUnitAnimation(udg_unit204,"stand")
call AddSpecialEffectLocBJ(udg_locations02[401],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageDeathCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations02[403]=GetUnitLoc(udg_unit204)
call SetUnitPositionLoc(udg_unit203,udg_locations02[403])
call SetUnitFacing(udg_unit203,GetUnitFacing(udg_unit204))
call RemoveUnit(udg_unit204)
call SetUnitPathing(udg_unit203,true)
call SetUnitInvulnerable(udg_unit203,false)
call SetUnitInvulnerable(udg_unit205,false)
call PauseUnit(udg_unit203,false)
call PauseUnit(udg_unit205,false)
call UnitDamageTarget(udg_unit203,udg_unit205,(I2R(GetHeroStr(udg_unit203,true))*90.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(.1)
set udg_locations02[158]=GetUnitLoc(udg_unit203)
if(aq())then
call UnitAddItemByIdSwapped('I00L',udg_unit203)
call CreateTextTagLocBJ((GetObjectName('A061')+"|cFFFFFF00Success!!!|r"),udg_locations02[158],0,10,'d','d','d',0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call RemoveLocation(udg_locations02[158])
call SetPlayerAbilityAvailableBJ(false,'A061',GetOwningPlayer(udg_unit203))
call SetPlayerAbilityAvailableBJ(true,'A0BX',GetOwningPlayer(udg_unit203))
call IssueImmediateOrderById(udg_unit203,852180)
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit203))
set udg_unit56=udg_unit203
set udg_unit57=udg_unit205
call EnableTrigger(udg_trigger247)
call TriggerRegisterUnitEvent(udg_trigger247,udg_unit56,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger247,udg_unit57,EVENT_UNIT_DEATH)
else
call CreateTextTagLocBJ((GetObjectName('A061')+"|cFFFFFF00Fail!!!|r"),udg_locations02[158],0,10,'d','d','d',0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call RemoveLocation(udg_locations02[158])
endif
set udg_unit206=null
set udg_unit203=null
set udg_unit204=null
set udg_unit205=null
call RemoveLocation(udg_locations02[401])
call RemoveLocation(udg_locations02[402])
call RemoveLocation(udg_locations02[403])
endfunction
function Vq takes nothing returns nothing
set udg_locations02[403]=GetUnitLoc(udg_unit204)
set udg_locations02[404]=xB(udg_locations02[403],35.,AngleBetweenPoints(udg_locations02[401],udg_locations02[402]))
call SetUnitPositionLoc(udg_unit204,udg_locations02[404])
call CreateNUnitsAtLoc(1,'h020',GetOwningPlayer(udg_unit203),udg_locations02[403],GetUnitFacing(udg_unit204))
set udg_unit206=bj_lastCreatedUnit
call SetUnitPathing(udg_unit206,false)
call SetUnitVertexColorBJ(udg_unit206,'d','d','d',30.)
call SetUnitColor(udg_unit206,PLAYER_COLOR_PURPLE)
call SetUnitAnimationByIndex(udg_unit206,3)
call UnitApplyTimedLifeBJ(.15,'BTLF',udg_unit206)
call RemoveLocation(udg_locations02[403])
call RemoveLocation(udg_locations02[404])
endfunction
function Eq takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h020')
endfunction
function Xq takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
endfunction
function Oq takes nothing returns boolean
return(GetSpellAbilityId()=='A063')
endfunction
function Rq takes nothing returns boolean
return(GetFilterUnit()==udg_unit56)
endfunction
function Iq takes nothing returns boolean
return(IsUnitIllusion(GetFilterUnit())!=true)
endfunction
function Aq takes nothing returns boolean
return GetBooleanAnd(Rq(),Iq())
endfunction
function Nq takes nothing returns nothing
set udg_integer30=1
endfunction
function bq takes nothing returns boolean
return(udg_integer30!=0)
endfunction
function Bq takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(udg_unit56,'I00L'))=='I00L')
endfunction
function cq takes nothing returns nothing
set udg_locations02[160]=GetUnitLoc(udg_unit56)
if(Bq())then
set udg_locations02[159]=GetUnitLoc(udg_unit59)
call ForGroupBJ(XB(150.,udg_locations02[159],Condition(function Aq)),function Nq)
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_locations02[159])
if(bq())then
call DisableTrigger(udg_trigger247)
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit56,'I00L'))
set udg_locations02[159]=GetUnitLoc(udg_unit57)
call PauseUnit(udg_unit56,true)
call PauseUnit(udg_unit57,true)
call SetUnitInvulnerable(udg_unit56,true)
call SetUnitInvulnerable(udg_unit57,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit58),udg_locations02[160],.0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit57),udg_locations02[160],.0)
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit56),udg_unit56,0,0,false)
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit57),udg_unit56,0,0,false)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit56),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-800.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit57),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-800.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit56),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit56)+180.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit57),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit56)+180.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit56),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit57),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),0)
call TriggerSleepAction(.5)
call CreateTextTagLocBJ(("Accept"+GetObjectName('A063')),udg_locations02[160],200.,10.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call SetTextTagLifespan(bj_lastCreatedTextTag,5.)
call SetUnitTimeScalePercent(udg_unit56,150.)
call SetUnitAnimationByIndex(udg_unit56,13)
call TriggerSleepAction(.7)
call SetUnitTimeScalePercent(udg_unit56,.0)
call TriggerSleepAction(1.)
call SetUnitTimeScalePercent(udg_unit56,150.)
call AddSpecialEffectLocBJ(udg_locations02[160],"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[159],"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations02[160],"Objects\\Spawnmodels\\Orc\\Orcblood\\OrcBloodHellScream.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.1)
call AddSpecialEffectLocBJ(udg_locations02[159],"Objects\\Spawnmodels\\Other\\BeastmasterBlood\\BeastmasterBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.)
call SetPlayerAbilityAvailableBJ(true,'A061',GetOwningPlayer(udg_unit56))
call PauseUnit(udg_unit56,false)
call PauseUnit(udg_unit57,false)
call SetUnitInvulnerable(udg_unit56,false)
call SetUnitInvulnerable(udg_unit57,false)
call SetUnitTimeScalePercent(udg_unit56,100.)
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit56))
call UnitDamageTarget(udg_unit56,udg_unit57,(GetUnitState(udg_unit57,UNIT_STATE_LIFE)+100000.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
call UnitDamageTarget(udg_unit56,udg_unit56,(GetUnitState(udg_unit56,UNIT_STATE_LIFE)+100000.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit57),udg_locations02[159],.0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit56),3.)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit57),3.)
call RemoveUnit(udg_unit59)
call RemoveLocation(udg_locations02[159])
call RemoveLocation(udg_locations02[160])
set udg_integer30=0
set udg_unit59=null
else
call CreateTextTagLocBJ("You must be in the circle!",udg_locations02[160],0,10.,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,.0,90)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[160])
endif
else
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"|cFFFF0000You must have a shinobi's blood!|r")
call RemoveLocation(udg_locations02[160])
endif
endfunction
function Cq takes nothing returns boolean
return(GetSpellAbilityId()=='A0BY')and(IsUnitAliveBJ(udg_unit59)==false)
endfunction
function dq takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit59))
endfunction
function Dq takes nothing returns nothing
set udg_unit58=GetTriggerUnit()
set udg_locations02[159]=GetUnitLoc(udg_unit58)
call CreateNUnitsAtLoc(1,'h007',GetOwningPlayer(udg_unit58),udg_locations02[159],bj_UNIT_FACING)
set udg_unit59=bj_lastCreatedUnit
call CreateTextTagLocBJ("Ritual begins!",udg_locations02[159],0,10,100.,.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call EnableTrigger(udg_trigger245)
set udg_integers06[31]=1
loop
exitwhen udg_integers06[31]>10
set udg_locations02[395]=xB(udg_locations02[159],150.,(I2R(udg_integers06[31])*36.))
call CreateNUnitsAtLoc(1,'h02A',GetOwningPlayer(udg_unit58),udg_locations02[395],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
set udg_units05[udg_integers06[31]]=bj_lastCreatedUnit
call RemoveLocation(udg_locations02[395])
call TriggerSleepAction(.11)
set udg_integers06[31]=udg_integers06[31]+1
endloop
call TriggerSleepAction(11.)
if(dq())then
call DisableTrigger(udg_trigger245)
call CreateTextTagLocBJ("Ritual finished, you can now use god's judgement!",udg_locations02[159],0,10,100.,.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units05[bj_forLoopAIndex])
set udg_units05[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[159])
set udg_unit58=null
endif
endfunction
function fq takes nothing returns boolean
return(GetSpellAbilityId()=='A0BY')
endfunction
function Fq takes nothing returns nothing
call RemoveUnit(udg_unit59)
call CreateTextTagLocBJ("Ritual stopped!",udg_locations02[159],0,10,100.,.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units05[bj_forLoopAIndex])
set udg_units05[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[159])
set udg_unit58=null
set udg_unit59=null
endfunction
function gq takes nothing returns boolean
return(GetSpellAbilityId()=='A061')
endfunction
function Gq takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!='E00S')
endfunction
function hq takes nothing returns boolean
return(GetRandomInt(1,'d')>=80)
endfunction
function Hq takes nothing returns nothing
set udg_unit56=GetTriggerUnit()
set udg_unit57=GetSpellTargetUnit()
set udg_locations02[158]=GetUnitLoc(udg_unit56)
call UnitDamageTarget(udg_unit56,udg_unit57,15000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
if(hq())then
call UnitAddItemByIdSwapped('I00L',udg_unit56)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit57,"Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateTextTagLocBJ((GetObjectName('A061')+"|cFFFFFF00Success!!!|r"),udg_locations02[158],0,10,'d','d','d',0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call RemoveLocation(udg_locations02[158])
call SetPlayerAbilityAvailableBJ(false,'A061',GetOwningPlayer(udg_unit56))
if(Gq())then
call SetPlayerAbilityAvailableBJ(true,'A0BX',GetOwningPlayer(udg_unit56))
call IssueImmediateOrderById(udg_unit56,852180)
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit56))
endif
call EnableTrigger(udg_trigger247)
call TriggerRegisterUnitEvent(udg_trigger247,udg_unit56,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger247,udg_unit57,EVENT_UNIT_DEATH)
else
call CreateTextTagLocBJ((GetObjectName('A061')+"|cFFFFFF00Fail!!!|r"),udg_locations02[158],0,10,'d','d','d',0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call RemoveLocation(udg_locations02[158])
set udg_locations02[158]=GetUnitLoc(udg_unit57)
call CreateTextTagLocBJ("¶ª_",udg_locations02[158],0,10,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call RemoveLocation(udg_locations02[158])
set udg_unit56=null
set udg_unit57=null
endif
endfunction
function jq takes nothing returns boolean
return(GetUnitTypeId(udg_unit56)=='E00S')
endfunction
function Jq takes nothing returns boolean
return(GetTriggerUnit()==udg_unit56)
endfunction
function kq takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetPlayerAbilityAvailableBJ(true,'A061',GetOwningPlayer(udg_unit56))
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit56,'I00L'))
if(Jq())then
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit56))
call RemoveUnit(udg_unit59)
set udg_unit59=null
else
if(jq())then
call SetPlayerAbilityAvailableBJ(true,'A0BX',GetOwningPlayer(udg_unit56))
call IssueImmediateOrderById(udg_unit56,852180)
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit56))
endif
endif
set udg_unit56=null
set udg_unit57=null
set udg_unit203=null
set udg_unit205=null
endfunction
function Kq takes nothing returns boolean
return(GetSpellAbilityId()=='A065')
endfunction
function lq takes nothing returns boolean
return(IsUnitType(udg_unit61,UNIT_TYPE_HERO)!=null)
endfunction
function Lq takes nothing returns boolean
return(IsUnitEnemy(udg_unit61,GetOwningPlayer(udg_unit60)))and(GetUnitAbilityLevelSwapped('Avul',udg_unit61)==0)and(IsUnitType(udg_unit61,UNIT_TYPE_MECHANICAL)==false)and(IsUnitType(udg_unit61,UNIT_TYPE_ANCIENT)==false)
endfunction
function mq takes nothing returns nothing
set udg_unit61=GetEnumUnit()
set udg_locations02[156]=GetUnitLoc(udg_unit61)
if(Lq())then
call UnitGenerateAlarms(udg_unit61,false)
set udg_locations02[157]=xB(udg_locations02[156],2000.,(GetUnitFacing(udg_unit61)-180.))
call IssuePointOrderByIdLoc(udg_unit61,851971,udg_locations02[157])
call RemoveLocation(udg_locations02[157])
if(lq())then
call DisplayTextToPlayer(GetOwningPlayer(udg_unit61),0,0,"Your shinobi is scared...you cannot control him for 8 seconds.")
call SetUserControlForceOff(CB(GetOwningPlayer(udg_unit61)))
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit61),udg_unit61,0,0,false)
endif
endif
call RemoveLocation(udg_locations02[156])
endfunction
function Mq takes nothing returns nothing
call UnitGenerateAlarms(GetEnumUnit(),true)
call ResetToGameCameraForPlayer(GetOwningPlayer(GetEnumUnit()),0)
call SetUserControlForceOn(CB(GetOwningPlayer(GetEnumUnit())))
endfunction
function pq takes nothing returns nothing
set udg_unit60=GetTriggerUnit()
set udg_locations02[155]=GetUnitLoc(udg_unit60)
set udg_group14=IB(1000.,udg_locations02[155])
call ForGroupBJ(udg_group14,function mq)
call RemoveLocation(udg_locations02[155])
call TriggerSleepAction(8.)
call ForGroupBJ(udg_group14,function Mq)
call GroupClear(udg_group14)
call DestroyGroup(udg_group14)
set udg_unit60=null
set udg_unit61=null
endfunction
function Pq takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A063',GetTriggerUnit())==0)
endfunction
function qq takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A063',GetTriggerUnit())==0)
endfunction
function Qq takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A063',GetTriggerUnit())==0)
endfunction
function sq takes nothing returns boolean
return(IsTriggerEnabled(udg_trigger247)==false)
endfunction
function Sq takes nothing returns boolean
return(GetItemTypeId(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00L'))=='I00L')
endfunction
function tq takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(10.2)
if(Sq())then
if(sq())then
call SetPlayerAbilityAvailableBJ(true,'A061',GetOwningPlayer(udg_unit269))
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit269,'I00L'))
if(Qq())then
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit269))
else
call SetPlayerAbilityAvailableBJ(true,'A0BX',GetOwningPlayer(udg_unit269))
call IssueImmediateOrderById(udg_unit269,852180)
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit269))
endif
else
call SetPlayerAbilityAvailableBJ(false,'A061',GetOwningPlayer(udg_unit56))
if(qq())then
call SetPlayerAbilityAvailableBJ(true,'A0BX',GetOwningPlayer(udg_unit269))
call IssueImmediateOrderById(udg_unit269,852180)
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit269))
else
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit269))
endif
endif
else
call SetPlayerAbilityAvailableBJ(true,'A061',GetOwningPlayer(udg_unit269))
if(Pq())then
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit269))
else
call SetPlayerAbilityAvailableBJ(true,'A0BX',GetOwningPlayer(udg_unit269))
call IssueImmediateOrderById(udg_unit269,852180)
call SetPlayerAbilityAvailableBJ(false,'A0BX',GetOwningPlayer(udg_unit269))
endif
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Tq takes nothing returns boolean
return(GetSpellAbilityId()=='A0BN')
endfunction
function uq takes nothing returns nothing
call UnitResetCooldown(GetTriggerUnit())
endfunction
function Uq takes nothing returns boolean
return(GetSpellAbilityId()=='A02U')
endfunction
function wq takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit199)))
endfunction
function Wq takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00L',GetOwningPlayer(udg_unit199),udg_locations02[386],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852095,GetEnumUnit())
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
endfunction
function yq takes nothing returns nothing
set udg_locations02[385]=GetSpellTargetLoc()
set udg_locations02[386]=GetUnitLoc(GetTriggerUnit())
set udg_unit199=GetTriggerUnit()
call SetUnitPathing(udg_unit199,false)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(300.,udg_locations02[385],Condition(function wq)),function Wq)
call SetUnitPathing(udg_unit199,true)
call TriggerSleepAction(.3)
call SetUnitAnimationByIndex(udg_unit199,3)
call TriggerSleepAction(1.)
call ResetUnitAnimation(udg_unit199)
call RemoveLocation(udg_locations02[385])
call RemoveLocation(udg_locations02[386])
endfunction
function Yq takes nothing returns boolean
return(GetSpellAbilityId()=='A0BM')
endfunction
function zq takes nothing returns nothing
set udg_locations02[380]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[381]=GetSpellTargetLoc()
set udg_unit198=GetTriggerUnit()
call PauseUnit(udg_unit198,true)
call SetUnitInvulnerable(udg_unit198,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit198,"spell")
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[382]=xB(udg_locations02[380],DistanceBetweenPoints(udg_locations02[380],udg_locations02[381]),(AngleBetweenPoints(udg_locations02[380],udg_locations02[381])+(20.-(10.*I2R(bj_forLoopAIndex)))))
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(udg_unit198),udg_locations02[380],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call SetUnitFacingToFaceLocTimed(bj_lastCreatedUnit,udg_locations02[382],0)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations02[382])
call RemoveLocation(udg_locations02[382])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(8.)
call ResetUnitAnimation(udg_unit198)
call SetUnitInvulnerable(udg_unit198,false)
call PauseUnit(udg_unit198,false)
call RemoveLocation(udg_locations02[380])
call RemoveLocation(udg_locations02[381])
endfunction
function Zq takes nothing returns boolean
return(GetSpellAbilityId()=='A06M')
endfunction
function vQ takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit200)))
endfunction
function eQ takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function xQ takes nothing returns boolean
return GetBooleanAnd(vQ(),eQ())
endfunction
function oQ takes nothing returns nothing
set udg_real21=(udg_real21+1)
call SetUnitTimeScalePercent(GetEnumUnit(),.0)
call SetUnitVertexColor(GetEnumUnit(),0,0,0,255)
endfunction
function rQ takes nothing returns nothing
set udg_locations02[379]=GetSpellTargetLoc()
set udg_unit200=GetTriggerUnit()
set udg_group11=XB(600.,udg_locations02[379],Condition(function xQ))
call ForGroupBJ(udg_group11,function oQ)
call EnableTrigger(udg_trigger254)
call EnableTrigger(udg_trigger255)
endfunction
function iQ takes nothing returns boolean
return(GetSpellAbilityId()=='A06M')
endfunction
function aQ takes nothing returns nothing
call SetUnitTimeScalePercent(GetEnumUnit(),100.)
call SetUnitVertexColor(GetEnumUnit(),255,255,255,255)
call UnitRemoveAbility(GetEnumUnit(),'BPSE')
endfunction
function nQ takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger255)
set udg_real21=.0
set udg_unit200=null
call ForGroupBJ(udg_group11,function aQ)
call DestroyGroup(udg_group11)
call RemoveLocation(udg_locations02[379])
endfunction
function VQ takes nothing returns nothing
call SetUnitAnimation(udg_unit200,"spell")
call SetUnitManaBJ(udg_unit200,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit200)-(udg_real21*150.)))
endfunction
function EQ takes nothing returns boolean
return(GetSpellAbilityId()=='A022')
endfunction
function XQ takes nothing returns nothing
set udg_unit54=GetTriggerUnit()
set udg_unit55=GetSpellTargetUnit()
set udg_player02=GetOwningPlayer(udg_unit55)
call UnitGenerateAlarms(udg_unit55,false)
call SetUserControlForceOff(CB(GetOwningPlayer(udg_unit55)))
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit55),udg_unit55,0,0,false)
call DisplayTextToPlayer(GetOwningPlayer(udg_unit55),0,0,("You are controled by "+(GetObjectName('A022')+", you cannot do anything for 10 seconds.")))
call UnitRemoveAbility(udg_unit54,'A03O')
call UnitRemoveAbility(udg_unit54,'A03N')
call EnableTrigger(udg_trigger257)
call EnableTrigger(udg_trigger258)
call TriggerRegisterUnitEvent(udg_trigger257,udg_unit54,EVENT_UNIT_ISSUED_POINT_ORDER)
call TriggerRegisterUnitEvent(udg_trigger258,udg_unit54,EVENT_UNIT_ISSUED_TARGET_ORDER)
call TriggerSleepAction(15.)
call DisableTrigger(udg_trigger257)
call DisableTrigger(udg_trigger258)
call UnitGenerateAlarms(udg_unit55,true)
call SetUserControlForceOn(CB(udg_player02))
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit55),0)
call UnitAddAbility(udg_unit54,'A03O')
call UnitAddAbility(udg_unit54,'A03N')
set udg_unit54=null
set udg_unit55=null
endfunction
function OQ takes nothing returns nothing
set udg_locations02[161]=GetUnitLoc(udg_unit54)
set udg_locations02[162]=GetUnitLoc(udg_unit55)
set udg_locations02[163]=GetOrderPointLoc()
set udg_locations02[164]=xB(udg_locations02[163],DistanceBetweenPoints(udg_locations02[161],udg_locations02[162]),AngleBetweenPoints(udg_locations02[161],udg_locations02[162]))
call IssuePointOrderByIdLoc(udg_unit55,851971,udg_locations02[164])
call RemoveLocation(udg_locations02[161])
call RemoveLocation(udg_locations02[162])
call RemoveLocation(udg_locations02[163])
call RemoveLocation(udg_locations02[164])
endfunction
function RQ takes nothing returns nothing
set udg_locations02[161]=GetUnitLoc(udg_unit54)
set udg_locations02[162]=GetUnitLoc(udg_unit55)
set udg_locations02[163]=GetUnitLoc(GetOrderedUnit())
set udg_locations02[164]=xB(udg_locations02[163],DistanceBetweenPoints(udg_locations02[161],udg_locations02[162]),AngleBetweenPoints(udg_locations02[161],udg_locations02[162]))
call IssuePointOrderByIdLoc(udg_unit55,851971,udg_locations02[164])
call RemoveLocation(udg_locations02[161])
call RemoveLocation(udg_locations02[162])
call RemoveLocation(udg_locations02[163])
call RemoveLocation(udg_locations02[164])
endfunction
function IQ takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='H002')and(GetRandomReal(0,100.)<=20.)and(IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function AQ takes nothing returns boolean
return(GetRandomReal(.0,100.)>=50.)
endfunction
function NQ takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit196=GetAttacker()
set udg_locations02[377]=GetUnitLoc(GetAttacker())
set udg_locations02[378]=GetUnitLoc(GetTriggerUnit())
if(AQ())then
call RemoveLocation(udg_locations02[377])
set udg_locations02[377]=xB(udg_locations02[378],100.,GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'h00P',GetOwningPlayer(udg_unit196),udg_locations02[377],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60.,'BUan',bj_lastCreatedUnit)
call SetUnitFacingToFaceLocTimed(udg_unit196,udg_locations02[378],0)
call IssueTargetOrderById(bj_lastCreatedUnit,851971,GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations02[377],"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[377])
call RemoveLocation(udg_locations02[378])
else
call SetUnitPathing(udg_unit196,false)
call CreateNUnitsAtLoc(1,'h00P',GetOwningPlayer(udg_unit196),udg_locations02[377],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60.,'BUan',bj_lastCreatedUnit)
call SetUnitFacingToFaceLocTimed(udg_unit196,udg_locations02[378],0)
call IssueTargetOrderById(bj_lastCreatedUnit,851971,GetTriggerUnit())
call SetUnitPathing(udg_unit196,true)
call RemoveLocation(udg_locations02[377])
set udg_locations02[377]=xB(udg_locations02[378],100.,GetRandomReal(0,360.))
call SetUnitPositionLoc(udg_unit196,udg_locations02[377])
call IssueTargetOrderById(udg_unit196,851971,GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations02[377],"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[377])
call RemoveLocation(udg_locations02[378])
endif
set udg_unit196=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function bQ takes nothing returns boolean
return(GetSpellAbilityId()=='A0BG')
endfunction
function BQ takes nothing returns nothing
set udg_locations02[371]=GetUnitLoc(GetTriggerUnit())
set udg_unit195=GetTriggerUnit()
call PauseUnit(udg_unit195,true)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit195,5)
set udg_integers06[18]=1
loop
exitwhen udg_integers06[18]>3
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[372]=xB(udg_locations02[371],256.,(GetUnitFacing(udg_unit195)+(45.-(15.*I2R(bj_forLoopAIndex)))))
call CreateNUnitsAtLoc(1,'h00E',GetOwningPlayer(udg_unit195),udg_locations02[371],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call SetUnitFacingToFaceLocTimed(bj_lastCreatedUnit,udg_locations02[372],0)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852555,udg_locations02[372])
call RemoveLocation(udg_locations02[372])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.5)
set udg_integers06[18]=udg_integers06[18]+1
endloop
call ResetUnitAnimation(udg_unit195)
call PauseUnit(udg_unit195,false)
call RemoveLocation(udg_locations02[371])
set udg_unit195=null
endfunction
function cQ takes nothing returns boolean
return(GetSpellAbilityId()=='A0BD')
endfunction
function CQ takes nothing returns nothing
set udg_locations02[369]=GetUnitLoc(GetTriggerUnit())
set udg_unit194=GetTriggerUnit()
call PauseUnit(udg_unit194,true)
call SetUnitInvulnerable(udg_unit194,true)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit194,6)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[370]=xB(udg_locations02[369],150.,(I2R(bj_forLoopAIndex)*60.))
call AddSpecialEffectLocBJ(udg_locations02[370],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
set udg_effects01[(138+bj_forLoopAIndex)]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[370])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[370]=xB(udg_locations02[369],300.,(I2R(bj_forLoopAIndex)*30.))
call AddSpecialEffectLocBJ(udg_locations02[370],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
set udg_effects01[(57+bj_forLoopAIndex)]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[370])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[370]=xB(udg_locations02[369],450.,(I2R(bj_forLoopAIndex)*20.))
call AddSpecialEffectLocBJ(udg_locations02[370],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
set udg_effects01[(144+bj_forLoopAIndex)]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[370])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=24
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[370]=xB(udg_locations02[369],600.,(I2R(bj_forLoopAIndex)*15.))
call AddSpecialEffectLocBJ(udg_locations02[370],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
set udg_effects01[(69+bj_forLoopAIndex)]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[370])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[370]=xB(udg_locations02[369],600.,(I2R(bj_forLoopAIndex)*12.))
call AddSpecialEffectLocBJ(udg_locations02[370],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
set udg_effects01[(162+bj_forLoopAIndex)]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[370])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[370]=xB(udg_locations02[369],600.,(I2R(bj_forLoopAIndex)*10.))
call AddSpecialEffectLocBJ(udg_locations02[370],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
set udg_effects01[(192+bj_forLoopAIndex)]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[370])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitAddAbility(udg_unit194,'A0BE')
call EnableTrigger(udg_trigger262)
call TriggerSleepAction(10.)
call DisableTrigger(udg_trigger262)
set bj_forLoopAIndex=58
set bj_forLoopAIndexEnd=93
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(udg_effects01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=139
set bj_forLoopAIndexEnd=228
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(udg_effects01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ResetUnitAnimation(udg_unit194)
call UnitRemoveAbility(udg_unit194,'A0BE')
call SetUnitInvulnerable(udg_unit194,false)
call PauseUnit(udg_unit194,false)
set udg_unit194=null
call RemoveLocation(udg_locations02[369])
endfunction
function dQ takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit194)))
endfunction
function DQ takes nothing returns nothing
set bj_wantDestroyGroup=true
set udg_group10=XB(600.,udg_locations02[369],Condition(function dQ))
set udg_unit248=GroupPickRandomUnit(udg_group10)
set udg_locations02[370]=GetUnitLoc(udg_unit248)
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(udg_unit194),udg_locations02[370],bj_UNIT_FACING)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,udg_unit248,0)
call IssueTargetOrderById(bj_lastCreatedUnit,852119,udg_unit248)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call ShowUnitHide(bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[370])
call DestroyGroup(udg_group10)
set udg_locations02[370]=xB(udg_locations02[369],GetRandomReal(0,600.),GetRandomReal(0,360.))
call AddSpecialEffectLocBJ(udg_locations02[370],"Doodads\\Cinematic\\Lightningbolt\\Lightningbolt.mdl")
call RemoveLocation(udg_locations02[370])
endfunction
function fQ takes nothing returns boolean
return(GetSpellAbilityId()=='A04I')
endfunction
function FQ takes nothing returns nothing
set udg_unit52=GetTriggerUnit()
set udg_unit53=GetSpellTargetUnit()
set udg_locations02[200]=GetUnitLoc(udg_unit52)
call PauseUnit(udg_unit52,true)
call SetUnitInvulnerable(udg_unit52,true)
call SetUnitPathing(udg_unit52,false)
call SetUnitPathing(udg_unit53,false)
call CreateNUnitsAtLoc(1,'h015',GetOwningPlayer(udg_unit52),udg_locations02[200],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit52,0)
call AddSpecialEffectLocBJ(udg_locations02[200],"Abilities\\Spells\\Items\\AIam\\AIamTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectTargetUnitBJ("hand right",udg_unit52,"Abilities\\Spells\\Items\\AIvi\\AIviTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.5)
call AddSpecialEffectTargetUnitBJ("hand right",udg_unit52,"Abilities\\Spells\\Other\\FrostBolt\\FrostBoltMissile.mdl")
set udg_effects01[93]=bj_lastCreatedEffect
call TriggerSleepAction(1.5)
call RemoveLocation(udg_locations02[200])
call SetUnitAnimationByIndex(udg_unit52,6)
call EnableTrigger(udg_trigger264)
endfunction
function gQ takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[200],udg_locations02[201])<=80.)
endfunction
function GQ takes nothing returns nothing
set udg_locations02[200]=GetUnitLoc(udg_unit52)
set udg_locations02[201]=GetUnitLoc(udg_unit53)
if(gQ())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations02[200])
call RemoveLocation(udg_locations02[201])
call SetUnitAnimation(udg_unit52,"spell throw")
set udg_locations02[200]=GetUnitLoc(udg_unit53)
call CreateNUnitsAtLoc(1,'h025',GetOwningPlayer(udg_unit52),udg_locations02[200],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h026',GetOwningPlayer(udg_unit52),udg_locations02[200],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[200])
call PauseUnit(udg_unit53,true)
call SetUnitPathing(udg_unit52,true)
call SetUnitAnimation(udg_unit53,"death")
call EnableTrigger(udg_trigger265)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger265)
call ResetUnitAnimation(udg_unit52)
call SetUnitInvulnerable(udg_unit52,false)
call SetUnitPathing(udg_unit53,true)
call PauseUnit(udg_unit52,false)
call PauseUnit(udg_unit53,false)
call DestroyEffect(udg_effects01[93])
call UnitDamageTarget(udg_unit52,udg_unit53,(I2R(GetHeroStatBJ(2,udg_unit52,true))*70.),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_unit52=null
set udg_unit53=null
return
else
set udg_locations02[202]=xB(udg_locations02[200],30.,AngleBetweenPoints(udg_locations02[200],udg_locations02[201]))
call SetUnitPositionLoc(udg_unit52,udg_locations02[202])
call SetUnitFacingToFaceUnitTimed(udg_unit52,udg_unit53,0)
call SetUnitAnimation(udg_unit52,"walk")
call RemoveLocation(udg_locations02[202])
endif
call RemoveLocation(udg_locations02[200])
call RemoveLocation(udg_locations02[201])
endfunction
function hQ takes nothing returns nothing
set udg_locations02[200]=GetUnitLoc(udg_unit52)
set udg_locations02[201]=GetUnitLoc(udg_unit53)
set udg_locations02[202]=xB(udg_locations02[201],25.,AngleBetweenPoints(udg_locations02[200],udg_locations02[201]))
call SetUnitPositionLoc(udg_unit53,udg_locations02[202])
call AddSpecialEffectLocBJ(udg_locations02[201],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[200])
call RemoveLocation(udg_locations02[201])
call RemoveLocation(udg_locations02[202])
endfunction
function HQ takes nothing returns boolean
return(GetSpellAbilityId()=='A05A')
endfunction
function jQ takes nothing returns nothing
set udg_unit83=GetTriggerUnit()
set udg_unit84=GetSpellTargetUnit()
set udg_locations02['|']=GetUnitLoc(udg_unit83)
call PauseUnit(udg_unit83,true)
call ShowUnitHide(udg_unit83)
call SetUnitPathing(udg_unit83,false)
call CreateNUnitsAtLoc(1,'h00P',GetOwningPlayer(udg_unit83),udg_locations02['|'],GetUnitFacing(udg_unit83))
set udg_unit193=bj_lastCreatedUnit
call PauseUnit(udg_unit193,true)
call EnableTrigger(udg_trigger267)
call TriggerSleepAction(1.9)
call RemoveUnit(udg_unit193)
call SetUnitPathing(udg_unit83,true)
call RemoveLocation(udg_locations02['|'])
set udg_locations02['|']=GetUnitLoc(udg_unit84)
set udg_locations02['}']=xB(udg_locations02['|'],150.,GetUnitFacing(udg_unit84))
call SetUnitPositionLoc(udg_unit83,udg_locations02['}'])
call SetUnitFacingToFaceUnitTimed(udg_unit83,udg_unit84,0)
call ShowUnitShow(udg_unit83)
call SetUnitAnimation(udg_unit83,"attack")
call PauseUnit(udg_unit83,false)
call PauseUnit(udg_unit84,true)
call SetUnitInvulnerable(udg_unit84,true)
call SetUnitAnimation(udg_unit84,"death")
call TriggerSleepAction(.5)
call DisableTrigger(udg_trigger267)
call SetUnitInvulnerable(udg_unit84,false)
call PauseUnit(udg_unit84,false)
call UnitDamageTarget(udg_unit83,udg_unit84,(I2R(GetHeroStatBJ(1,udg_unit83,true))*40.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call ResetUnitAnimation(udg_unit83)
call RemoveLocation(udg_locations02['|'])
call RemoveLocation(udg_locations02['}'])
set udg_integer28=0
set udg_unit83=null
set udg_unit84=null
set udg_unit193=null
endfunction
function JQ takes nothing returns boolean
return(udg_integer28<'d')
endfunction
function kQ takes nothing returns nothing
set udg_integer28=(udg_integer28+1)
if(JQ())then
call SetUnitVertexColorBJ(udg_unit193,'d','d','d',I2R(udg_integer28))
call CreateNUnitsAtLoc(1,'h011',GetOwningPlayer(udg_unit83),udg_locations02['|'],GetRandomReal(.0,360.))
call UnitApplyTimedLifeBJ(1.5,'BHwe',bj_lastCreatedUnit)
set udg_locations02['}']=xB(udg_locations02['|'],900.,GetRandomReal(0,3600.))
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851986,udg_locations02['}'])
call RemoveLocation(udg_locations02['}'])
else
set udg_locations02[126]=GetUnitLoc(udg_unit84)
set udg_locations02[127]=xB(udg_locations02[126],30.,AngleBetweenPoints(udg_locations02['}'],udg_locations02[126]))
call SetUnitPositionLoc(udg_unit84,udg_locations02[127])
call AddSpecialEffectLocBJ(udg_locations02[127],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[126])
call RemoveLocation(udg_locations02[127])
endif
endfunction
function KQ takes nothing returns boolean
return(GetSpellAbilityId()=='A0B9')
endfunction
function lQ takes nothing returns boolean
return(IsUnitPaused(udg_unit34))
endfunction
function LQ takes nothing returns boolean
return(IsUnitPaused(udg_unit186))
endfunction
function mQ takes nothing returns boolean
return(GetBooleanOr(lQ(),LQ()))
endfunction
function MQ takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[366],udg_locations02[367])<=600.)
endfunction
function pQ takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit34))and(IsUnitAliveBJ(udg_unit186))
endfunction
function PQ takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[366]=GetUnitLoc(udg_unit34)
set udg_locations02[367]=GetUnitLoc(udg_unit186)
set udg_locations02[368]=GetUnitLoc(GetSpellTargetUnit())
set udg_unit190=GetSpellTargetUnit()
if(pQ())then
if(MQ())then
if(mQ())then
call CreateTextTagLocBJ("Need to use chakra string to control.",udg_locations02[366],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call CreateTextTagLocBJ("Need to use chakra string to control.",udg_locations02[367],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call EnableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations02[366])
call RemoveLocation(udg_locations02[367])
call RemoveLocation(udg_locations02[368])
else
call CreateNUnitsAtLocFacingLocBJ(1,'h000',GetOwningPlayer(udg_unit186),udg_locations02[367],udg_locations02[368])
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852095,udg_unit190)
call SetUnitFacing(udg_unit34,90.)
call SetUnitFacing(udg_unit186,270.)
call SetUnitPathing(udg_unit34,false)
call SetUnitPathing(udg_unit186,false)
call SetUnitAnimationByIndex(udg_unit34,1)
call SetUnitAnimationByIndex(udg_unit186,1)
call TriggerSleepAction(.1)
call SetUnitTimeScale(udg_unit34,.0)
call SetUnitTimeScale(udg_unit186,.0)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit34,"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
set udg_effects01[94]=bj_lastCreatedEffect
call AddSpecialEffectTargetUnitBJ("origin",udg_unit186,"Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl")
set udg_effects01[95]=bj_lastCreatedEffect
call RemoveLocation(udg_locations02[366])
call RemoveLocation(udg_locations02[367])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit190),udg_locations02[368],0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit190),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)+300.),.0)
call EnableTrigger(udg_trigger269)
call TriggerSleepAction(10.)
call DisableTrigger(udg_trigger269)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit190),0)
set udg_integer25=0
call SetUnitPathing(udg_unit34,true)
call SetUnitPathing(udg_unit186,true)
call SetUnitTimeScale(udg_unit34,100.)
call SetUnitTimeScale(udg_unit186,100.)
call DestroyEffect(udg_effects01[94])
call DestroyEffect(udg_effects01[95])
call RemoveLocation(udg_locations02[368])
set udg_unit190=null
call EnableTrigger(GetTriggeringTrigger())
endif
else
call CreateTextTagLocBJ("Distance too great, can not activate.",udg_locations02[366],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call CreateTextTagLocBJ("Distance too great, can not activate.",udg_locations02[367],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call EnableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations02[366])
call RemoveLocation(udg_locations02[367])
call RemoveLocation(udg_locations02[368])
endif
else
call CreateTextTagLocBJ("The two puppets must be alive!",udg_locations02[367],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[366])
call RemoveLocation(udg_locations02[367])
call RemoveLocation(udg_locations02[368])
call EnableTrigger(GetTriggeringTrigger())
endif
endfunction
function qQ takes nothing returns boolean
return(udg_integer25==360)
endfunction
function QQ takes nothing returns boolean
return(R2I(Pow(-1.,(I2R(udg_integer25)/10.)))==1)
endfunction
function sQ takes nothing returns nothing
if(qQ())then
set udg_integer25=0
endif
set udg_integer25=(udg_integer25+10)
set udg_locations02[366]=xB(udg_locations02[368],600.,I2R(udg_integer25))
set udg_locations02[367]=xB(udg_locations02[368],600.,(180.+I2R(udg_integer25)))
call SetUnitPositionLoc(udg_unit34,udg_locations02[366])
call SetUnitFacing(udg_unit34,(90.+I2R(udg_integer25)))
call SetUnitPositionLoc(udg_unit186,udg_locations02[367])
call SetUnitFacing(udg_unit186,(270.+I2R(udg_integer25)))
call AddSpecialEffectLocBJ(udg_locations02[366],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[367],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(QQ())then
call CreateNUnitsAtLocFacingLocBJ(1,'h000',GetOwningPlayer(udg_unit186),udg_locations02[GetRandomInt(366,367)],udg_locations02[368])
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852095,udg_unit190)
endif
call RemoveLocation(udg_locations02[366])
call RemoveLocation(udg_locations02[367])
endfunction
function SQ takes nothing returns boolean
return(GetSpellAbilityId()=='A0B7')
endfunction
function tQ takes nothing returns boolean
return(udg_integer27==1)
endfunction
function TQ takes nothing returns nothing
set udg_unit188=GetTriggerUnit()
set udg_unit189=GetSpellTargetUnit()
set udg_locations02[366]=GetUnitLoc(udg_unit188)
call PauseUnit(udg_unit188,true)
call PauseUnit(udg_unit189,true)
call SetUnitInvulnerable(udg_unit189,true)
call SetUnitPathing(udg_unit188,false)
call SetUnitPathing(udg_unit189,false)
call SetUnitFlyHeight(udg_unit188,.0,500.)
call TriggerSleepAction(.5)
call SetUnitAnimation(udg_unit188,"spell")
call UnitAddAbility(udg_unit189,'Amrf')
call TriggerSleepAction(.5)
call SetUnitPositionLoc(udg_unit189,udg_locations02[366])
call SetUnitFlyHeight(udg_unit189,100.,10000.)
call SetUnitTimeScalePercent(udg_unit188,200.)
call SetUnitAnimation(udg_unit188,"spell two")
call SetUnitVertexColorBJ(udg_unit189,'d','d','d',100.)
call TriggerSleepAction(.75)
call SetUnitTimeScalePercent(udg_unit188,.0)
call EnableTrigger(udg_trigger271)
call AddSpecialEffectTargetUnitBJ("overhead",udg_unit188,"Abilities\\Spells\\Other\\TalkToMe\\TalkToMe.mdl")
set udg_effects01[96]=bj_lastCreatedEffect
call TriggerSleepAction(3.)
call DestroyEffect(udg_effects01[96])
if(tQ())then
return
endif
call DisableTrigger(udg_trigger42)
call SetUnitTimeScalePercent(udg_unit188,100.)
call TriggerSleepAction(1.)
call SetUnitAnimation(udg_unit189,"death")
call TriggerSleepAction(1.)
call ResetUnitAnimation(udg_unit189)
call SetUnitVertexColorBJ(udg_unit189,'d','d','d',.0)
call SetUnitInvulnerable(udg_unit189,false)
call PauseUnit(udg_unit189,false)
call UnitDamageTarget(udg_unit188,udg_unit189,30000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitPathing(udg_unit188,true)
call SetUnitPathing(udg_unit189,true)
call SetUnitFlyHeight(udg_unit188,200.,10000.)
call SetUnitFlyHeight(udg_unit189,.0,10000.)
call UnitRemoveAbility(udg_unit189,'Amrf')
call RemoveLocation(udg_locations02[366])
set udg_unit188=null
set udg_unit189=null
endfunction
function uQ takes nothing returns boolean
return(GetSpellAbilityId()=='A06Z')and(GetUnitTypeId(GetSpellTargetUnit())=='o00T')
endfunction
function UQ takes nothing returns nothing
set udg_integer27=1
set udg_unit192=GetTriggerUnit()
call SetPlayerAbilityAvailableBJ(false,'A08K',GetOwningPlayer(udg_unit258))
call PauseUnit(udg_unit192,true)
call SetUnitPathing(udg_unit192,false)
call SetUnitPositionLoc(udg_unit192,udg_locations02[366])
call SetUnitFacing(udg_unit192,GetUnitFacing(udg_unit188))
call SetUnitFlyHeight(udg_unit192,.0,10000.)
call SetUnitAnimation(udg_unit192,"spell")
call TriggerSleepAction(1.67)
call SetUnitAnimation(udg_unit192,"spell two")
call SetUnitTimeScalePercent(udg_unit188,100.)
call TriggerSleepAction(1.33)
set udg_integers06[19]=1
loop
exitwhen udg_integers06[19]>3
call AddSpecialEffectLocBJ(udg_locations02[366],"Objects\\Spawnmodels\\Other\\BeastmasterBlood\\BeastmasterBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.1)
call AddSpecialEffectLocBJ(udg_locations02[366],"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.1)
call AddSpecialEffectLocBJ(udg_locations02[366],"Objects\\Spawnmodels\\Orc\\Orcblood\\OrdBloodWyvernRider.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_integers06[19]=udg_integers06[19]+1
endloop
call TriggerSleepAction(1.)
call SetUnitAnimation(udg_unit189,"death")
call TriggerSleepAction(1.)
call SetUnitVertexColorBJ(udg_unit189,'d','d','d',.0)
call SetUnitInvulnerable(udg_unit189,false)
call PauseUnit(udg_unit189,false)
call UnitDamageTarget(udg_unit188,udg_unit189,60000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitPathing(udg_unit188,true)
call SetUnitPathing(udg_unit189,true)
call SetUnitPathing(udg_unit192,true)
call SetUnitTimeScalePercent(udg_unit188,100.)
call SetUnitFlyHeight(udg_unit188,200.,10000.)
call SetUnitFlyHeight(udg_unit189,.0,10000.)
call SetUnitScalePercent(udg_unit189,100.,100.,100.)
call SetUnitFlyHeight(udg_unit192,200.,10000.)
call UnitRemoveAbility(udg_unit189,'Amrf')
call RemoveLocation(udg_locations02[366])
call SetPlayerAbilityAvailableBJ(true,'A08K',GetOwningPlayer(udg_unit258))
set udg_unit188=null
set udg_unit189=null
set udg_unit192=null
set udg_integer27=0
endfunction
function wQ takes nothing returns boolean
return(GetSpellAbilityId()=='A0B4')
endfunction
function WQ takes nothing returns nothing
set udg_unit185=GetTriggerUnit()
set udg_locations02[363]=GetSpellTargetLoc()
set udg_locations02[364]=GetUnitLoc(GetTriggerUnit())
call PauseUnit(udg_unit185,true)
call SetUnitInvulnerable(udg_unit185,true)
call SetUnitPathing(udg_unit185,false)
call UnitAddAbility(udg_unit185,'Amrf')
call CreateNUnitsAtLoc(1,'h004',GetOwningPlayer(udg_unit185),udg_locations02[364],GetUnitFacing(udg_unit185))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(5.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852593,udg_locations02[363])
call TriggerSleepAction(1.4)
call RemoveLocation(udg_locations02[363])
call RemoveLocation(udg_locations02[364])
call EnableTrigger(udg_trigger273)
endfunction
function yQ takes nothing returns boolean
return(udg_integer24==80)
endfunction
function YQ takes nothing returns boolean
return(udg_integer24<=80)
endfunction
function zQ takes nothing returns boolean
return(udg_integer24=='d')
endfunction
function ZQ takes nothing returns nothing
set udg_integer24=(udg_integer24+1)
set udg_locations02[364]=GetUnitLoc(udg_unit185)
set udg_locations02[365]=xB(udg_locations02[364],14.,GetUnitFacing(udg_unit185))
call SetUnitPositionLoc(udg_unit185,udg_locations02[365])
if(yQ())then
call SetUnitAnimationByIndex(udg_unit185,9)
endif
if(YQ())then
call SetUnitFlyHeight(udg_unit185,(GetUnitFlyHeight(udg_unit185)+4.),10000.)
else
call SetUnitFlyHeight(udg_unit185,(GetUnitFlyHeight(udg_unit185)-25.),10000.)
endif
if(zQ())then
call RemoveLocation(udg_locations02[365])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[365]=xB(udg_locations02[364],100.,(GetUnitFacing(udg_unit185)+(75.-(15.*I2R(bj_forLoopAIndex)))))
call CreateNUnitsAtLoc(1,'h00G',GetOwningPlayer(udg_unit185),udg_locations02[364],GetUnitFacing(udg_unit185))
call ShowUnitHide(bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852555,udg_locations02[365])
call RemoveLocation(udg_locations02[365])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(1.)
call PauseUnit(udg_unit185,false)
call SetUnitInvulnerable(udg_unit185,false)
call SetUnitPathing(udg_unit185,true)
call UnitRemoveAbility(udg_unit185,'Amrf')
set udg_integer24=0
set udg_unit185=null
call RemoveLocation(udg_locations02[364])
return
endif
call RemoveLocation(udg_locations02[364])
call RemoveLocation(udg_locations02[365])
endfunction
function vs takes nothing returns boolean
return(GetSpellAbilityId()=='A0B5')
endfunction
function es takes nothing returns nothing
set udg_unit183=GetTriggerUnit()
set udg_unit184=GetSpellTargetUnit()
set udg_locations02[360]=GetUnitLoc(GetSpellTargetUnit())
call PauseUnit(udg_unit183,true)
call PauseUnit(udg_unit184,true)
call SetUnitInvulnerable(udg_unit183,true)
call SetUnitInvulnerable(udg_unit184,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit183,"attack 03")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit183,"Abilities\\Weapons\\ZigguratMissile\\ZigguratMissile.mdl")
set udg_effects01[97]=bj_lastCreatedEffect
set udg_locations02[361]=xB(udg_locations02[360],200.,GetUnitFacing(udg_unit183))
call SetUnitPositionLoc(udg_unit183,udg_locations02[361])
call RemoveLocation(udg_locations02[361])
call SetUnitTimeScalePercent(udg_unit183,200.)
set udg_integers06[20]=1
loop
exitwhen udg_integers06[20]>15
set udg_locations02[361]=xB(udg_locations02[360],GetRandomReal(.0,250.),GetRandomReal(0,360.))
call SetUnitPositionLocFacingLocBJ(udg_unit183,udg_locations02[361],udg_locations02[360])
call TriggerSleepAction(.1)
set udg_locations02[362]=xB(udg_locations02[361],GetRandomReal(.0,250.),AngleBetweenPoints(udg_locations02[361],udg_locations02[360]))
call SetUnitPositionLocFacingLocBJ(udg_unit183,udg_locations02[362],udg_locations02[360])
call AddSpecialEffectLocBJ(udg_locations02[360],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitAnimation(udg_unit183,"attack")
call SetUnitAnimation(udg_unit184,"death")
call RemoveLocation(udg_locations02[361])
call RemoveLocation(udg_locations02[362])
set udg_integers06[20]=udg_integers06[20]+1
endloop
call DestroyEffect(udg_effects01[97])
call PauseUnit(udg_unit183,false)
call PauseUnit(udg_unit184,false)
call SetUnitInvulnerable(udg_unit183,false)
call SetUnitInvulnerable(udg_unit184,false)
call UnitDamageTarget(udg_unit183,udg_unit184,(I2R(GetHeroStatBJ(0,udg_unit183,true))*100.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[360])
set udg_unit183=null
set udg_unit184=null
endfunction
function xs takes nothing returns boolean
return(GetSpellAbilityId()=='A04T')and(GetRandomInt(0,'d')<=40)
endfunction
function os takes nothing returns boolean
return(GetUnitFacing(GetTriggerUnit())<=(GetUnitFacing(GetSpellTargetUnit())+10.))and(GetUnitFacing(GetTriggerUnit())>=(GetUnitFacing(GetSpellTargetUnit())-10.))
endfunction
function rs takes nothing returns nothing
if(os())then
set udg_locations02[359]=GetUnitLoc(GetTriggerUnit())
set udg_unit181=GetTriggerUnit()
set udg_unit182=GetSpellTargetUnit()
call ResetUnitAnimation(udg_unit181)
call SetUnitAnimationByIndex(udg_unit181,1)
call PauseUnit(udg_unit181,true)
call PauseUnit(udg_unit182,true)
call SetUnitInvulnerable(udg_unit181,true)
call SetUnitInvulnerable(udg_unit182,true)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit181),udg_locations02[359],0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit181),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-500.),.0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit181),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),.0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit181),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit181)-180.),.0)
call AddSpecialEffectLocBJ(udg_locations02[359],"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[359])
call TriggerSleepAction(1.)
set udg_locations02[359]=GetUnitLoc(udg_unit182)
call SetUnitAnimation(udg_unit181,"attack 3")
call CinematicFadeBJ(1,.8,"ReplaceableTextures\\CameraMasks\\SpecialSplatMask.blp",100.,0,0,0)
call AddSpecialEffectLocBJ(udg_locations02[359],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[359],"Objects\\Spawnmodels\\Other\\BeastmasterBlood\\BeastmasterBlood.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.2)
call CinematicFadeBJ(0,.2,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.,0,0,0)
call SetUnitAnimation(udg_unit182,"death")
call PauseUnit(udg_unit182,false)
call PauseUnit(udg_unit181,false)
call SetUnitInvulnerable(udg_unit181,false)
call SetUnitInvulnerable(udg_unit182,false)
call UnitDamageTarget(udg_unit181,udg_unit182,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit182)+1),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit181),2.)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit182),2.)
call RemoveLocation(udg_locations02[359])
set udg_unit181=null
set udg_unit182=null
endif
endfunction
function is takes nothing returns boolean
return(GetSpellAbilityId()=='A0DA')
endfunction
function as takes nothing returns nothing
call KillUnit(GetTriggerUnit())
call UnitAddAbility(udg_unit266,'A02D')
call SetHeroInt(udg_unit266,(GetHeroInt(udg_unit266,true)+200),true)
call EnableTrigger(udg_trigger277)
endfunction
function ns takes nothing returns boolean
return(GetSpellAbilityId()=='A0A9')
endfunction
function Vs takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call UnitRemoveAbility(udg_unit266,'A02D')
call SetHeroInt(udg_unit266,(GetHeroInt(udg_unit266,true)-200),true)
endfunction
function Es takes nothing returns boolean
return(GetSpellAbilityId()=='A03W')
endfunction
function Xs takes nothing returns nothing
set udg_unit221=GetTriggerUnit()
set udg_locations02[348]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations02[348],"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[348])
call TriggerSleepAction(.5)
call RemoveUnit(udg_unit221)
call UnitAddAbility(udg_unit281,'A096')
call SetHeroInt(udg_unit281,(GetHeroInt(udg_unit281,true)+200),true)
call EnableTrigger(udg_trigger279)
endfunction
function Os takes nothing returns boolean
return(GetSpellAbilityId()=='A076')
endfunction
function Rs takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call UnitRemoveAbility(GetTriggerUnit(),'A096')
call SetHeroInt(udg_unit281,(GetHeroInt(udg_unit281,true)-200),true)
endfunction
function Is takes nothing returns boolean
return(GetSpellAbilityId()=='A03V')
endfunction
function As takes nothing returns nothing
set udg_unit21=GetTriggerUnit()
set udg_locations02[348]=GetSpellTargetLoc()
set udg_locations02[349]=xB(udg_locations02[348],350.,GetUnitFacing(udg_unit21))
set udg_locations02[350]=xB(udg_locations02[349],350.,GetUnitFacing(udg_unit21))
call PauseUnit(udg_unit21,true)
call SetUnitInvulnerable(udg_unit21,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit21,"spell")
call CreateNUnitsAtLoc(1,'h01O',GetOwningPlayer(udg_unit21),udg_locations02[348],GetUnitFacing(udg_unit21))
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,500.)
call AddSpecialEffectLocBJ(udg_locations02[348],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations02[351]=xB(udg_locations02[348],700.,(GetUnitFacing(udg_unit21)+90.))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[352]=xB(udg_locations02[351],(144.*I2R(bj_forLoopAIndex)),(GetUnitFacing(udg_unit21)-90.))
call CreateDestructableLoc('YTpc',udg_locations02[352],GetRandomReal(0,360),1,0)
set udg_destructables06[bj_forLoopAIndex]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[352])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.3)
call CreateNUnitsAtLoc(1,'h01O',GetOwningPlayer(udg_unit21),udg_locations02[349],GetUnitFacing(udg_unit21))
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,500.)
call AddSpecialEffectLocBJ(udg_locations02[349],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations02[353]=xB(udg_locations02[349],700.,(GetUnitFacing(udg_unit21)+90.))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[354]=xB(udg_locations02[353],(144.*I2R(bj_forLoopAIndex)),(GetUnitFacing(udg_unit21)-90.))
call CreateDestructableLoc('YTpc',udg_locations02[354],GetRandomReal(0,360),1,0)
set udg_destructables06[(bj_forLoopAIndex+10)]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[354])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(.3)
call CreateNUnitsAtLoc(1,'h01O',GetOwningPlayer(udg_unit21),udg_locations02[350],GetUnitFacing(udg_unit21))
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,500.)
call AddSpecialEffectLocBJ(udg_locations02[350],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations02[355]=xB(udg_locations02[350],700.,(GetUnitFacing(udg_unit21)+90.))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[356]=xB(udg_locations02[355],(144.*I2R(bj_forLoopAIndex)),(GetUnitFacing(udg_unit21)-90.))
call CreateDestructableLoc('YTpc',udg_locations02[354],GetRandomReal(0,360),1,0)
set udg_destructables06[(bj_forLoopAIndex+20)]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[356])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations02[357]=xB(udg_locations02[350],400.,(GetUnitFacing(udg_unit21)-180.))
call CreateNUnitsAtLoc(1,'h00E',GetOwningPlayer(udg_unit21),udg_locations02[357],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call IssueImmediateOrderById(bj_lastCreatedUnit,852503)
call TriggerSleepAction(10.)
call PauseUnit(udg_unit21,false)
call SetUnitInvulnerable(udg_unit21,false)
call ResetUnitAnimation(udg_unit21)
set udg_unit21=null
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables06[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[348])
call RemoveLocation(udg_locations02[349])
call RemoveLocation(udg_locations02[350])
call RemoveLocation(udg_locations02[351])
call RemoveLocation(udg_locations02[352])
call RemoveLocation(udg_locations02[353])
call RemoveLocation(udg_locations02[354])
call RemoveLocation(udg_locations02[355])
call RemoveLocation(udg_locations02[356])
call RemoveLocation(udg_locations02[357])
endfunction
function Ns takes nothing returns boolean
return(GetSpellAbilityId()=='A099')
endfunction
function bs takes nothing returns nothing
set udg_unit127=GetTriggerUnit()
call PauseUnit(udg_unit127,true)
call SetUnitInvulnerable(udg_unit127,true)
set udg_locations02[64]=GetUnitLoc(udg_unit127)
set udg_locations02[65]=xB(udg_locations02[64],300.,GetUnitFacing(udg_unit127))
call CreateNUnitsAtLoc(1,'h01O',GetOwningPlayer(udg_unit127),udg_locations02[65],GetUnitFacing(udg_unit127))
set udg_unit128=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(10.,'BHwe',udg_unit128)
call SetUnitFlyHeight(udg_unit128,.0,500.)
set udg_locations02[66]=GetUnitLoc(udg_unit128)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_real17=((I2R(bj_forLoopAIndex)*160.)-80.)
set udg_locations02[67]=xB(udg_locations02[66],udg_real17,(GetUnitFacing(udg_unit127)+90.))
call AddSpecialEffectLocBJ(udg_locations02[67],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateDestructableLoc('YTfc',udg_locations02[67],GetRandomReal(0,360),1,0)
set udg_destructables01[(bj_forLoopAIndex+12)]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[67])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_real17=((I2R(bj_forLoopAIndex)*160.)-80.)
set udg_locations02[68]=xB(udg_locations02[66],udg_real17,(GetUnitFacing(udg_unit127)-90.))
call AddSpecialEffectLocBJ(udg_locations02[68],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateDestructableLoc('YTfc',udg_locations02[68],GetRandomReal(0,360),1,0)
set udg_destructables01[(bj_forLoopAIndex+17)]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[68])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
call SetUnitAnimation(udg_unit127,"spell")
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call RemoveDestructable(udg_destructables01[(bj_forLoopBIndex+12)])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call PauseUnit(udg_unit127,false)
call SetUnitInvulnerable(udg_unit127,false)
call ResetUnitAnimation(udg_unit127)
call RemoveLocation(udg_locations02[64])
call RemoveLocation(udg_locations02[65])
call RemoveLocation(udg_locations02[66])
set udg_real17=.0
set udg_unit127=null
set udg_unit128=null
endfunction
function Bs takes nothing returns boolean
return(GetSpellAbilityId()=='A03Z')
endfunction
function cs takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit14))
endfunction
function Cs takes nothing returns nothing
set udg_unit13=GetTriggerUnit()
set udg_unit14=GetSpellTargetUnit()
set udg_locations02[181]=GetUnitLoc(udg_unit13)
call CreateNUnitsAtLoc(1,'h00A',GetOwningPlayer(udg_unit13),udg_locations02[181],bj_UNIT_FACING)
set udg_unit71=bj_lastCreatedUnit
call UnitAddAbility(udg_unit14,'ACm3')
call SetUnitInvulnerable(udg_unit13,true)
call SetUnitInvulnerable(udg_unit14,true)
call PauseUnit(udg_unit13,true)
call PauseUnit(udg_unit14,true)
call SetUnitPathing(udg_unit13,false)
call SetUnitPathing(udg_unit14,false)
call SetUnitTimeScalePercent(udg_unit14,.0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit13),udg_locations02[181],0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit14),udg_locations02[181],0)
call RotateCameraAroundLocBJ(360.,udg_locations02[181],GetOwningPlayer(udg_unit13),1.5)
call RotateCameraAroundLocBJ(360.,udg_locations02[181],GetOwningPlayer(udg_unit14),1.5)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit13),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-500.),1.5)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit14),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-500.),1.5)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit13),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),1.5)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit14),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),1.5)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit13),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit13)-180.),1.5)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit14),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit13)-180.),1.5)
call RemoveLocation(udg_locations02[181])
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit13,7)
call TriggerSleepAction(2.)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit13),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit14),0)
call SetUnitTimeScalePercent(udg_unit13,250.)
set udg_integers06[21]=1
loop
exitwhen udg_integers06[21]>64
if(cs())then
call SetUnitAnimationByIndex(udg_unit13,GetRandomInt(4,5))
call SetUnitAnimation(udg_unit14,"death")
call SetUnitInvulnerable(udg_unit14,false)
call TriggerSleepAction(.05)
set udg_locations02[181]=GetUnitLoc(udg_unit13)
set udg_locations02[182]=GetUnitLoc(udg_unit14)
call AddSpecialEffectLocBJ(udg_locations02[182],"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[182],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_locations02[183]=xB(udg_locations02[181],10.,GetUnitFacing(udg_unit13))
set udg_locations02[184]=xB(udg_locations02[182],10.,GetUnitFacing(udg_unit13))
call SetUnitPositionLoc(udg_unit13,udg_locations02[183])
call SetUnitPositionLoc(udg_unit14,udg_locations02[184])
call UnitDamageTargetBJ(udg_unit13,udg_unit14,(I2R(GetHeroStatBJ(2,udg_unit13,true))*1.5),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL)
call SetUnitInvulnerable(udg_unit14,true)
set udg_integer01=((udg_integer01+0)+1)
call CreateTextTagLocBJ((I2S(udg_integer01)+"Hit"),udg_locations02[184],50.,10,'d',.0,.0,0)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagLifespan(bj_lastCreatedTextTag,1.)
call RemoveLocation(udg_locations02[181])
call RemoveLocation(udg_locations02[182])
call RemoveLocation(udg_locations02[183])
call RemoveLocation(udg_locations02[184])
else
call TriggerSleepAction(.5)
set udg_integer01=0
call UnitRemoveAbility(udg_unit14,'ACm3')
call PauseUnit(udg_unit13,false)
call PauseUnit(udg_unit14,false)
call SetUnitInvulnerable(udg_unit13,false)
call SetUnitInvulnerable(udg_unit14,false)
call SetUnitTimeScalePercent(udg_unit13,100.)
call SetUnitTimeScalePercent(udg_unit14,100.)
call ResetUnitAnimation(udg_unit13)
call ResetUnitAnimation(udg_unit14)
call SetUnitPathing(udg_unit13,true)
call SetUnitPathing(udg_unit14,true)
call ResetUnitLookAt(udg_unit13)
call RemoveUnit(udg_unit71)
set udg_unit13=null
set udg_unit14=null
return
endif
set udg_integers06[21]=udg_integers06[21]+1
endloop
call SetUnitInvulnerable(udg_unit14,false)
set udg_locations02[181]=GetUnitLoc(udg_unit14)
call CreateNUnitsAtLoc(1,'h00G',GetOwningPlayer(udg_unit13),udg_locations02[181],GetUnitFacing(udg_unit13))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.5,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852668,udg_unit14)
call RemoveLocation(udg_locations02[181])
call TriggerSleepAction(.5)
set udg_integer01=0
call UnitRemoveAbility(udg_unit14,'ACm3')
call PauseUnit(udg_unit13,false)
call PauseUnit(udg_unit14,false)
call SetUnitInvulnerable(udg_unit13,false)
call SetUnitTimeScalePercent(udg_unit13,100.)
call SetUnitTimeScalePercent(udg_unit14,100.)
call ResetUnitAnimation(udg_unit13)
call ResetUnitAnimation(udg_unit14)
call SetUnitPathing(udg_unit13,true)
call SetUnitPathing(udg_unit14,true)
call ResetUnitLookAt(udg_unit13)
call RemoveUnit(udg_unit71)
set udg_unit13=null
set udg_unit14=null
endfunction
function ds takes nothing returns boolean
return(GetSpellAbilityId()=='A05P')
endfunction
function Ds takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit35)))
endfunction
function fs takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function Fs takes nothing returns boolean
return GetBooleanAnd(Ds(),fs())
endfunction
function gs takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),false)
call SetUnitAnimation(GetEnumUnit(),"death")
endfunction
function Gs takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),true)
endfunction
function hs takes nothing returns nothing
set udg_unit35=GetTriggerUnit()
call PauseUnit(udg_unit35,true)
call SetUnitInvulnerable(udg_unit35,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit35,"attack walk stand spin")
set udg_locations02[172]=GetUnitLoc(udg_unit35)
call AddSpecialEffectLocBJ(udg_locations02[172],"Units\\NightElf\\Wisp\\WispExplode.mdl")
set udg_effects01[132]=bj_lastCreatedEffect
set udg_group17=XB(300.,udg_locations02[172],Condition(function Fs))
call ForGroupBJ(udg_group17,function gs)
call EnableTrigger(udg_trigger284)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger284)
call ForGroupBJ(udg_group17,function Gs)
call DestroyGroup(udg_group17)
call TriggerSleepAction(2.)
call DestroyEffect(udg_effects01[132])
call SetUnitAnimation(udg_unit35,"stand ready")
call SetUnitInvulnerable(udg_unit35,false)
call PauseUnit(udg_unit35,false)
call RemoveLocation(udg_locations02[172])
set udg_unit35=null
endfunction
function Hs takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==false)
endfunction
function js takes nothing returns nothing
if(Hs())then
call UnitDamageTarget(udg_unit35,GetEnumUnit(),(I2R(GetHeroStr(udg_unit35,true))*1.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
else
set udg_locations02[173]=GetUnitLoc(GetEnumUnit())
set udg_locations02[174]=xB(udg_locations02[173],20.,AngleBetweenPoints(udg_locations02[172],udg_locations02[173]))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[174])
call AddSpecialEffectLocBJ(udg_locations02[173],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_unit35,GetEnumUnit(),(I2R(GetHeroStr(udg_unit35,true))*1.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[173])
call RemoveLocation(udg_locations02[174])
endif
endfunction
function Js takes nothing returns nothing
call ForGroupBJ(udg_group17,function js)
endfunction
function ks takes nothing returns boolean
return(GetSpellAbilityId()=='A03X')
endfunction
function Ks takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit15)))
endfunction
function ls takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function Ls takes nothing returns boolean
return GetBooleanAnd(Ks(),ls())
endfunction
function ms takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),false)
call SetUnitAnimation(GetEnumUnit(),"death")
endfunction
function Ms takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),true)
endfunction
function ps takes nothing returns nothing
set udg_unit15=GetTriggerUnit()
set udg_locations02[175]=GetUnitLoc(udg_unit15)
call PauseUnit(udg_unit15,true)
call SetUnitInvulnerable(udg_unit15,true)
call CreateNUnitsAtLoc(1,'h00A',GetOwningPlayer(udg_unit15),udg_locations02[175],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit15,7)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit15),udg_locations02[175],0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit15),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-700.),1.)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit15),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),1.)
call TriggerSleepAction(1.5)
call SetUnitTimeScalePercent(udg_unit15,250.)
call SetUnitAnimationByIndex(udg_unit15,8)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit15),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit15),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)+1000.),0)
set udg_group09=XB(1000.,udg_locations02[175],Condition(function Ls))
call ForGroupBJ(udg_group09,function ms)
call EnableTrigger(udg_trigger286)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger286)
call ForGroupBJ(udg_group09,function Ms)
call DestroyGroup(udg_group09)
call TriggerSleepAction(.5)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit15),0)
call SetUnitTimeScalePercent(udg_unit15,100.)
call SetUnitAnimation(udg_unit15,"stand ready")
call SetUnitInvulnerable(udg_unit15,false)
call PauseUnit(udg_unit15,false)
call RemoveLocation(udg_locations02[175])
set udg_unit15=null
endfunction
function Ps takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==false)
endfunction
function qs takes nothing returns nothing
if(Ps())then
call UnitDamageTarget(udg_unit15,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit15,true))*1.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
else
set udg_locations02[176]=GetUnitLoc(GetEnumUnit())
set udg_locations02[177]=xB(udg_locations02[176],20.,AngleBetweenPoints(udg_locations02[175],udg_locations02[176]))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[177])
call AddSpecialEffectLocBJ(udg_locations02[176],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_unit15,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit15,true))*1.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[176])
call RemoveLocation(udg_locations02[177])
endif
endfunction
function Qs takes nothing returns nothing
call ForGroupBJ(udg_group09,function qs)
endfunction
function ss takes nothing returns boolean
return(GetSpellAbilityId()=='A03X')
endfunction
function Ss takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit197)))
endfunction
function ts takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function Ts takes nothing returns boolean
return GetBooleanAnd(Ss(),ts())
endfunction
function us takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),false)
call SetUnitAnimation(GetEnumUnit(),"death")
endfunction
function Us takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),true)
endfunction
function ws takes nothing returns nothing
set udg_unit197=GetTriggerUnit()
set udg_locations02[178]=GetUnitLoc(udg_unit197)
call PauseUnit(udg_unit197,true)
call SetUnitInvulnerable(udg_unit197,true)
call CreateNUnitsAtLoc(1,'h00A',GetOwningPlayer(udg_unit197),udg_locations02[175],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit197,1)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit197),udg_locations02[178],0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit197),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-700.),1.)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit197),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),1.)
call TriggerSleepAction(1.5)
call SetUnitTimeScalePercent(udg_unit197,200.)
call SetUnitAnimationByIndex(udg_unit197,5)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit197),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit197),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)+1000.),0)
set udg_group13=XB(1000.,udg_locations02[178],Condition(function Ts))
call ForGroupBJ(udg_group13,function us)
call EnableTrigger(udg_trigger288)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger288)
call ForGroupBJ(udg_group13,function Us)
call DestroyGroup(udg_group13)
call TriggerSleepAction(.5)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit197),0)
call SetUnitTimeScalePercent(udg_unit197,100.)
call SetUnitAnimation(udg_unit197,"stand ready")
call SetUnitInvulnerable(udg_unit197,false)
call PauseUnit(udg_unit197,false)
call RemoveLocation(udg_locations02[178])
set udg_unit197=null
endfunction
function Ws takes nothing returns boolean
return(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==false)
endfunction
function ys takes nothing returns nothing
if(Ws())then
call UnitDamageTarget(udg_unit197,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit197,true))*1.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
else
set udg_locations02[179]=GetUnitLoc(GetEnumUnit())
set udg_locations02[180]=xB(udg_locations02[179],20.,AngleBetweenPoints(udg_locations02[178],udg_locations02[179]))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[180])
call AddSpecialEffectLocBJ(udg_locations02[179],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_unit197,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit197,true))*1.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[179])
call RemoveLocation(udg_locations02[180])
endif
endfunction
function Ys takes nothing returns nothing
call ForGroupBJ(udg_group13,function ys)
endfunction
function zs takes nothing returns boolean
return(GetSpellAbilityId()=='A03M')
endfunction
function Zs takes nothing returns nothing
set udg_unit86=GetTriggerUnit()
set udg_unit87=GetSpellTargetUnit()
set udg_locations02['s']=GetUnitLoc(udg_unit86)
set udg_locations02['t']=GetUnitLoc(udg_unit87)
call PauseUnit(udg_unit86,true)
call PauseUnit(udg_unit87,true)
call SetUnitInvulnerable(udg_unit86,true)
call SetUnitInvulnerable(udg_unit87,true)
call SetUnitPathing(udg_unit87,false)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit86),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-500.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit86),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit87),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-500.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit87),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit86),udg_locations02['s'],0)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit87),udg_locations02['t'],0)
call CreateNUnitsAtLoc(1,'h00A',GetOwningPlayer(udg_unit86),udg_locations02['s'],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.,'BTLF',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(udg_unit87,.0)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit86,7)
call TriggerSleepAction(1.)
call SetUnitTimeScalePercent(udg_unit86,150.)
call SetUnitAnimationByIndex(udg_unit86,6)
call TriggerSleepAction(.53)
call SetUnitTimeScalePercent(udg_unit86,.0)
call TriggerSleepAction(1.)
call SetUnitTimeScalePercent(udg_unit86,100.)
call SetUnitTimeScalePercent(udg_unit87,100.)
call AddSpecialEffectLocBJ(udg_locations02['u'],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'h01D',GetOwningPlayer(udg_unit86),udg_locations02['t'],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit86),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit87),0)
call UnitDamageTarget(udg_unit86,udg_unit87,(I2R(GetHeroStatBJ(2,udg_unit86,true))*60.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitAnimation(udg_unit87,"death")
call EnableTrigger(udg_trigger290)
call TriggerSleepAction(.5)
call DisableTrigger(udg_trigger290)
call TriggerSleepAction(.5)
call ResetUnitAnimation(udg_unit86)
call ResetUnitAnimation(udg_unit87)
call SetUnitPathing(udg_unit87,true)
call PauseUnit(udg_unit86,false)
call PauseUnit(udg_unit87,false)
call SetUnitInvulnerable(udg_unit86,false)
call SetUnitInvulnerable(udg_unit87,false)
call UnitDamageTarget(udg_unit86,udg_unit87,(I2R(GetHeroStatBJ(2,udg_unit86,true))*60.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02['s'])
call RemoveLocation(udg_locations02['t'])
set udg_unit86=null
set udg_unit87=null
endfunction
function vS takes nothing returns nothing
set udg_locations02['u']=GetUnitLoc(udg_unit87)
set udg_locations02['v']=xB(udg_locations02['u'],30.,AngleBetweenPoints(udg_locations02['s'],udg_locations02['t']))
call SetUnitPositionLoc(udg_unit87,udg_locations02['v'])
call AddSpecialEffectLocBJ(udg_locations02['u'],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02['u'])
call RemoveLocation(udg_locations02['v'])
endfunction
function eS takes nothing returns boolean
return(GetSpellAbilityId()=='A0B1')
endfunction
function xS takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00R')
endfunction
function oS takes nothing returns boolean
return(GetFilterUnit()!=udg_units04[1])
endfunction
function rS takes nothing returns boolean
return GetBooleanAnd(xS(),oS())
endfunction
function iS takes nothing returns nothing
set udg_units04[udg_integer23]=GetEnumUnit()
endfunction
function aS takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='o00R')
endfunction
function nS takes nothing returns boolean
return(GetFilterUnit()!=udg_units04[1])
endfunction
function VS takes nothing returns boolean
return(GetFilterUnit()!=udg_units04[2])
endfunction
function ES takes nothing returns boolean
return GetBooleanAnd(nS(),VS())
endfunction
function XS takes nothing returns boolean
return GetBooleanAnd(aS(),ES())
endfunction
function OS takes nothing returns nothing
set udg_units04[udg_integer23]=GetEnumUnit()
endfunction
function RS takes nothing returns boolean
return(IsUnitAliveBJ(udg_units04[udg_integer23]))
endfunction
function IS takes nothing returns boolean
return(IsUnitAliveBJ(udg_units04[udg_integer23]))
endfunction
function AS takes nothing returns boolean
return(udg_integer23<3)
endfunction
function NS takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer23=1
set udg_units04[udg_integer23]=GetTriggerUnit()
set udg_integer23=(udg_integer23+1)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(500.,GetSpellTargetLoc(),Condition(function rS)),function iS)
if(IS())then
set udg_integer23=(udg_integer23+1)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(500.,GetSpellTargetLoc(),Condition(function XS)),function OS)
if(RS())then
call SetUnitFacingToFaceLocTimed(udg_units04[1],GetSpellTargetLoc(),0)
else
set udg_integer23=(udg_integer23-1)
endif
else
set udg_integer23=(udg_integer23-1)
endif
if(AS())then
set udg_locations02[342]=GetUnitLoc(udg_units04[1])
call CreateTextTagLocBJ("This jutsu needs 3 puppets to activate!",udg_locations02[342],0,10,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[342])
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_integer23
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units04[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(GetTriggeringTrigger())
else
set udg_locations02[342]=GetUnitLoc(udg_units04[1])
call PauseUnit(udg_units04[1],true)
call PauseUnit(udg_units04[2],true)
call PauseUnit(udg_units04[3],true)
call SetUnitInvulnerable(udg_units04[1],true)
call SetUnitInvulnerable(udg_units04[2],true)
call SetUnitInvulnerable(udg_units04[3],true)
set udg_locations02[343]=xB(udg_locations02[342],100.,(GetUnitFacing(udg_units04[1])+90.))
call SetUnitPositionLocFacingBJ(udg_units04[2],udg_locations02[343],GetUnitFacing(udg_units04[1]))
call RemoveLocation(udg_locations02[343])
set udg_locations02[343]=xB(udg_locations02[342],100.,(GetUnitFacing(udg_units04[1])-90.))
call SetUnitPositionLocFacingBJ(udg_units04[3],udg_locations02[343],GetUnitFacing(udg_units04[1]))
call RemoveLocation(udg_locations02[343])
call SetUnitFlyHeight(udg_units04[1],300.,10000.)
call TriggerSleepAction(.2)
call SetUnitAnimation(udg_units04[1],"spell two")
call TriggerSleepAction(.2)
call SetUnitAnimation(udg_units04[2],"spell two")
call TriggerSleepAction(.2)
call SetUnitAnimation(udg_units04[3],"spell two")
call TriggerSleepAction(.2)
set udg_locations02[343]=xB(udg_locations02[342],100.,GetUnitFacing(udg_units04[1]))
call CreateNUnitsAtLoc(1,'h00H',GetOwningPlayer(udg_units04[1]),udg_locations02[343],GetUnitFacing(udg_units04[1]))
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[343])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[343]=xB(udg_locations02[342],(100.*I2R(bj_forLoopAIndex)),GetUnitFacing(udg_units04[1]))
call CreateUbersplatBJ(udg_locations02[343],"DHLB",'d','d','d',0,false,false)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
call ShowUbersplat(bj_lastCreatedUbersplat,true)
call RemoveLocation(udg_locations02[343])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations02[343]=xB(udg_locations02[342],700.,GetUnitFacing(udg_units04[1]))
set udg_locations02[83]=xB(udg_locations02[342],200.,GetUnitFacing(udg_units04[1]))
call EnableTrigger(udg_trigger292)
call TriggerSleepAction(15.)
call DisableTrigger(udg_trigger292)
call SetUnitFlyHeight(udg_units04[1],150.,10000.)
call ResetUnitAnimation(udg_units04[1])
call ResetUnitAnimation(udg_units04[2])
call ResetUnitAnimation(udg_units04[3])
call RemoveLocation(udg_locations02[342])
call RemoveLocation(udg_locations02[343])
call RemoveLocation(udg_locations02[83])
call SetUnitInvulnerable(udg_units04[1],false)
call SetUnitInvulnerable(udg_units04[2],false)
call SetUnitInvulnerable(udg_units04[3],false)
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_integer23
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units04[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(GetTriggeringTrigger())
endif
endfunction
function bS takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units04[1])))
endfunction
function BS takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function cS takes nothing returns boolean
return GetBooleanAnd(bS(),BS())
endfunction
function CS takes nothing returns nothing
set udg_units04[0]=GetEnumUnit()
set udg_locations02[344]=GetUnitLoc(udg_units04[0])
set udg_locations02[345]=xB(udg_locations02[344],20.,AngleBetweenPoints(udg_locations02[344],udg_locations02[83]))
call SetUnitX(udg_units04[0],GetLocationX(udg_locations02[345]))
call SetUnitY(udg_units04[0],GetLocationY(udg_locations02[345]))
call UnitDamageTarget(udg_unit287,udg_units04[0],50.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[344])
call RemoveLocation(udg_locations02[345])
endfunction
function dS takes nothing returns nothing
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(600.,udg_locations02[343],Condition(function cS)),function CS)
endfunction
function DS takes nothing returns boolean
return(GetSpellAbilityId()=='A00Y')
endfunction
function fS takes nothing returns nothing
call UnitDamageTarget(udg_unit03,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit03,true))*10.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function FS takes nothing returns nothing
call UnitDamageTarget(udg_unit03,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit03,true))*15.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function gS takes nothing returns nothing
set udg_unit03=GetTriggerUnit()
set udg_locations02[30]=GetUnitLoc(udg_unit03)
call PauseUnit(udg_unit03,true)
call SetUnitInvulnerable(udg_unit03,true)
call TriggerSleepAction(.1)
call SetUnitTimeScalePercent(udg_unit03,150.)
call SetUnitAnimation(udg_unit03,"spell four")
call TriggerSleepAction(1.5)
call SetUnitInvulnerable(udg_unit03,false)
call PauseUnit(udg_unit03,false)
call SetUnitTimeScalePercent(udg_unit03,100.)
call UnitDamageTarget(udg_unit03,udg_unit03,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit03)+1),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
call SetPlayerAbilityAvailableBJ(true,'A08G',GetOwningPlayer(udg_unit172))
set udg_integers06[22]=1
loop
exitwhen udg_integers06[22]>10
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations02[31]=xB(udg_locations02[30],GetRandomReal(0,2000.),GetRandomReal(0,3600.))
call CreateNUnitsAtLoc(1,'h028',GetOwningPlayer(udg_unit03),udg_locations02[31],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations02[31],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(400.,udg_locations02[31]),function fS)
call RemoveLocation(udg_locations02[31])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call TriggerSleepAction(.01)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=10
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations02[31]=xB(udg_locations02[30],GetRandomReal(0,2000.),GetRandomReal(0,3600.))
call CreateNUnitsAtLoc(1,'h026',GetOwningPlayer(udg_unit03),udg_locations02[31],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h025',GetOwningPlayer(udg_unit03),udg_locations02[31],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(400.,udg_locations02[31]),function FS)
call RemoveLocation(udg_locations02[31])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set udg_integers06[22]=udg_integers06[22]+1
endloop
call RemoveLocation(udg_locations02[30])
set udg_unit03=null
endfunction
function GS takes nothing returns boolean
return(GetSpellAbilityId()=='A0AS')
endfunction
function hS takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function HS takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'A0AT')
endfunction
function jS takes nothing returns nothing
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"Snow has decreased all shinobi's movement speed......")
call AddWeatherEffectSaveLast(udg_rect04,'SNhs')
set udg_weathereffect01=bj_lastCreatedWeatherEffect
call EnableWeatherEffect(udg_weathereffect01,true)
set bj_wantDestroyGroup=true
call ForGroupBJ(nB(udg_rect04,Condition(function hS)),function HS)
call EnableTrigger(udg_trigger295)
endfunction
function JS takes nothing returns boolean
return(GetIssuedOrderId()==852178)and(GetUnitTypeId(GetTriggerUnit())=='E00C')
endfunction
function kS takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function KS takes nothing returns nothing
call UnitRemoveAbility(GetEnumUnit(),'A0AT')
endfunction
function lS takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call EnableWeatherEffect(udg_weathereffect01,false)
call RemoveWeatherEffect(udg_weathereffect01)
set bj_wantDestroyGroup=true
call ForGroupBJ(nB(udg_rect04,Condition(function kS)),function KS)
endfunction
function LS takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Apiv',GetTriggerUnit())!=0)
endfunction
function mS takes nothing returns nothing
call UnitRemoveAbility(GetTriggerUnit(),'Apiv')
call IssueImmediateOrderById(GetTriggerUnit(),852178)
endfunction
function MS takes nothing returns boolean
return(GetSpellAbilityId()=='A0B3')
endfunction
function pS takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'Apiv')
call AddWeatherEffectSaveLast(udg_rect04,'FDwh')
set udg_weathereffect02=bj_lastCreatedWeatherEffect
call EnableWeatherEffect(udg_weathereffect02,true)
call EnableTrigger(udg_trigger298)
endfunction
function PS takes nothing returns boolean
return(GetIssuedOrderId()==852178)
endfunction
function qS takes nothing returns nothing
call UnitRemoveAbility(GetTriggerUnit(),'Apiv')
call SetUnitVertexColorBJ(GetTriggerUnit(),'d','d','d',0)
call EnableWeatherEffect(udg_weathereffect02,false)
call RemoveWeatherEffect(udg_weathereffect02)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function QS takes nothing returns boolean
return(GetSpellAbilityId()=='A0B3')
endfunction
function sS takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'Apiv')
call AddWeatherEffectSaveLast(udg_rect04,'FDwh')
set udg_weathereffect03=bj_lastCreatedWeatherEffect
call EnableWeatherEffect(udg_weathereffect03,true)
call EnableTrigger(udg_trigger300)
endfunction
function SS takes nothing returns boolean
return(GetIssuedOrderId()==852178)
endfunction
function tS takes nothing returns nothing
call UnitRemoveAbility(GetTriggerUnit(),'Apiv')
call SetUnitVertexColorBJ(GetTriggerUnit(),'d','d','d',0)
call EnableWeatherEffect(udg_weathereffect03,false)
call RemoveWeatherEffect(udg_weathereffect03)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function TS takes nothing returns boolean
return(GetSpellAbilityId()=='A0B3')
endfunction
function uS takes nothing returns nothing
call UnitAddAbility(GetTriggerUnit(),'Apiv')
call AddWeatherEffectSaveLast(udg_rect04,'FDwh')
set udg_weathereffect04=bj_lastCreatedWeatherEffect
call EnableWeatherEffect(udg_weathereffect04,true)
call EnableTrigger(udg_trigger302)
endfunction
function US takes nothing returns boolean
return(GetIssuedOrderId()==852178)
endfunction
function wS takes nothing returns nothing
call UnitRemoveAbility(GetTriggerUnit(),'Apiv')
call SetUnitVertexColorBJ(GetTriggerUnit(),'d','d','d',0)
call EnableWeatherEffect(udg_weathereffect04,false)
call RemoveWeatherEffect(udg_weathereffect04)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function WS takes nothing returns boolean
return(GetSpellAbilityId()=='A09I')
endfunction
function yS takes nothing returns nothing
set udg_unit171=GetTriggerUnit()
set udg_locations02[332]=GetUnitLoc(udg_unit171)
call PauseUnit(udg_unit171,true)
call SetUnitInvulnerable(udg_unit171,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit171,"spell")
call TriggerSleepAction(.1)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[333]=xB(udg_locations02[332],350.,(I2R(bj_forLoopAIndex)*20.))
call CreateNUnitsAtLoc(1,'h01H',GetOwningPlayer(udg_unit171),udg_locations02[333],(I2R(bj_forLoopAIndex)*20.))
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,'d','d','d',30.)
call CreateNUnitsAtLoc(1,'h027',GetOwningPlayer(udg_unit171),udg_locations02[333],AngleBetweenPoints(udg_locations02[333],udg_locations02[332]))
call SetUnitPathing(bj_lastCreatedUnit,false)
call SetUnitMoveSpeed(bj_lastCreatedUnit,.0)
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h01H',GetOwningPlayer(udg_unit171),udg_locations02[333],(I2R(bj_forLoopAIndex)*20.))
call SetUnitFlyHeight(bj_lastCreatedUnit,220.,10000.)
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,'d','d','d',30.)
call CreateNUnitsAtLoc(1,'h027',GetOwningPlayer(udg_unit171),udg_locations02[333],AngleBetweenPoints(udg_locations02[333],udg_locations02[332]))
call SetUnitFlyHeight(bj_lastCreatedUnit,220.,10000.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call SetUnitMoveSpeed(bj_lastCreatedUnit,.0)
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call CreateDestructableLoc('YTfc',udg_locations02[333],GetRandomReal(0,360),1.,0)
set udg_destructables04[bj_forLoopAIndex]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[333])
call SetUnitVertexColor(udg_unit171,255,255,255,(255-(15*bj_forLoopAIndex)))
call TriggerSleepAction(.01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[332])
call ShowUnitHide(udg_unit171)
call TriggerSleepAction(15.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables04[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitVertexColor(udg_unit171,255,255,255,255)
call ShowUnitShow(udg_unit171)
call SetUnitInvulnerable(udg_unit171,false)
call PauseUnit(udg_unit171,false)
call SelectUnitForPlayerSingle(udg_unit171,GetOwningPlayer(udg_unit171))
set udg_unit171=null
endfunction
function YS takes nothing returns boolean
return(GetSpellAbilityId()=='A09H')
endfunction
function zS takes nothing returns nothing
set udg_locations02[331]=GetUnitLoc(udg_unit256)
call ShowUnitHide(udg_unit256)
call SetUnitInvulnerable(udg_unit256,true)
call PauseUnit(udg_unit256,true)
call AddSpecialEffectLocBJ(udg_locations02[331],"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'E004',GetOwningPlayer(udg_unit256),udg_locations02[331],bj_UNIT_FACING)
set udg_unit170=bj_lastCreatedUnit
call SetHeroLevelBJ(bj_lastCreatedUnit,'d',false)
call SelectHeroSkill(bj_lastCreatedUnit,'A01K')
call SelectHeroSkill(bj_lastCreatedUnit,'A013')
call SelectHeroSkill(bj_lastCreatedUnit,'A086')
call SelectHeroSkill(bj_lastCreatedUnit,'A05E')
call RemoveLocation(udg_locations02[331])
call TriggerRegisterUnitEvent(udg_trigger309,udg_unit170,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger310,udg_unit170,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger313,udg_unit170,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger311,udg_unit170,EVENT_UNIT_SPELL_EFFECT)
call EnableTrigger(udg_trigger305)
endfunction
function ZS takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit170)<=100.)
endfunction
function vt takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[331]=GetUnitLoc(udg_unit170)
call RemoveUnit(udg_unit170)
call SetUnitInvulnerable(udg_unit256,false)
call ShowUnitShow(udg_unit256)
call PauseUnit(udg_unit256,false)
call SetUnitPositionLoc(udg_unit256,udg_locations02[331])
call AddSpecialEffectLocBJ(udg_locations02[331],"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[331])
call UnitDamageTarget(udg_unit256,udg_unit256,(GetUnitState(udg_unit256,UNIT_STATE_MAX_LIFE)+1),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
set udg_unit170=null
endfunction
function et takes nothing returns boolean
return(GetSpellAbilityId()=='A09G')
endfunction
function xt takes nothing returns nothing
set udg_locations02[330]=GetUnitLoc(GetTriggerUnit())
call CreateCorpseLocBJ('hfoo',GetOwningPlayer(GetTriggerUnit()),udg_locations02[330])
call RemoveLocation(udg_locations02[330])
endfunction
function ot takes nothing returns boolean
return(GetSpellAbilityId()=='A08N')
endfunction
function rt takes nothing returns nothing
set udg_unit169=GetSpellTargetUnit()
set udg_real19=GetUnitFacing(GetTriggerUnit())
call PauseUnit(udg_unit169,true)
call SetUnitInvulnerable(udg_unit169,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit169,"death")
call EnableTrigger(udg_trigger308)
call TriggerSleepAction(.5)
call DisableTrigger(udg_trigger308)
call TriggerSleepAction(.5)
call SetUnitInvulnerable(udg_unit169,false)
call PauseUnit(udg_unit169,false)
call UnitDamageTarget(udg_unit260,udg_unit169,(I2R(GetHeroStatBJ(2,udg_unit260,true))*50.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_unit169=null
set udg_real19=.0
endfunction
function it takes nothing returns nothing
set udg_locations02[328]=GetUnitLoc(udg_unit169)
set udg_locations02[329]=xB(udg_locations02[328],20.,udg_real19)
call SetUnitPositionLoc(udg_unit169,udg_locations02[329])
call AddSpecialEffectLocBJ(udg_locations02[329],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[328])
call RemoveLocation(udg_locations02[329])
endfunction
function at takes nothing returns boolean
return(GetSpellAbilityId()=='A013')
endfunction
function nt takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit167)))
endfunction
function Vt takes nothing returns nothing
call UnitDamageTarget(udg_unit167,GetEnumUnit(),60000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function Et takes nothing returns nothing
set udg_locations02[231]=GetSpellTargetLoc()
set udg_unit167=GetTriggerUnit()
call PauseUnit(udg_unit167,true)
call SetUnitInvulnerable(udg_unit167,true)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit167,3)
call TriggerSleepAction(.8)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h025',GetOwningPlayer(udg_unit167),udg_locations02[231],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h026',GetOwningPlayer(udg_unit167),udg_locations02[231],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateUbersplatBJ(udg_locations02[231],"THND",'d','d','d',0,true,true)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
call ShowUbersplat(bj_lastCreatedUbersplat,true)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(400.,udg_locations02[231],Condition(function nt)),function Vt)
call ResetUnitAnimation(udg_unit167)
call SetUnitInvulnerable(udg_unit167,false)
call PauseUnit(udg_unit167,false)
set udg_unit167=null
call RemoveLocation(udg_locations02[231])
endfunction
function Xt takes nothing returns boolean
return(GetSpellAbilityId()=='A01K')
endfunction
function Ot takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit167)))
endfunction
function Rt takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00M'))
endfunction
function It takes nothing returns boolean
return GetBooleanAnd(Ot(),Rt())
endfunction
function At takes nothing returns nothing
call UnitDamageTarget(udg_unit167,GetEnumUnit(),15000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function Nt takes nothing returns nothing
set udg_unit167=GetTriggerUnit()
set udg_locations02[225]=GetUnitLoc(udg_unit167)
set udg_locations02[226]=xB(udg_locations02[225],220.,(GetUnitFacing(udg_unit167)-30.))
set udg_locations02[227]=xB(udg_locations02[225],256.,GetUnitFacing(udg_unit167))
call PauseUnit(udg_unit167,true)
call SetUnitInvulnerable(udg_unit167,true)
call SetUnitPathing(udg_unit167,false)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit167),udg_locations02[225],0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit167),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-700.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit167),CAMERA_FIELD_ANGLE_OF_ATTACK,(GetCameraField(CAMERA_FIELD_ANGLE_OF_ATTACK)-30.),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit167),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit167)-180.),0)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit167,6)
call TriggerSleepAction(1.5)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit167),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit167),CAMERA_FIELD_TARGET_DISTANCE,2500.,0)
set udg_integers06[23]=1
loop
exitwhen udg_integers06[23]>15
call CreateNUnitsAtLoc(1,'h01G',GetOwningPlayer(udg_unit167),udg_locations02[226],GetUnitFacing(udg_unit167))
call UnitApplyTimedLifeBJ(4.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h00N',GetOwningPlayer(udg_unit167),udg_locations02[225],GetUnitFacing(udg_unit167))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852555,udg_locations02[227])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(2000.,udg_locations02[225],Condition(function It)),function At)
set udg_integers06[23]=udg_integers06[23]+1
endloop
call TriggerSleepAction(2)
call SetUnitPathing(udg_unit167,true)
call SetUnitInvulnerable(udg_unit167,false)
call PauseUnit(udg_unit167,false)
call ResetUnitAnimation(udg_unit167)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit167),0)
call RemoveLocation(udg_locations02[225])
call RemoveLocation(udg_locations02[226])
call RemoveLocation(udg_locations02[227])
set udg_unit167=null
endfunction
function bt takes nothing returns boolean
return(GetSpellAbilityId()=='A05E')
endfunction
function Bt takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit167)))
endfunction
function ct takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function Ct takes nothing returns boolean
return GetBooleanAnd(Bt(),ct())
endfunction
function dt takes nothing returns nothing
call UnitAddAbility(GetEnumUnit(),'Amrf')
call PauseUnit(GetEnumUnit(),true)
call SetUnitPathing(GetEnumUnit(),false)
endfunction
function Dt takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),.0,100000.)
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call PauseUnit(GetEnumUnit(),false)
call SetUnitPathing(GetEnumUnit(),true)
endfunction
function ft takes nothing returns nothing
set udg_locations02[231]=GetUnitLoc(GetTriggerUnit())
set udg_unit167=GetTriggerUnit()
call PauseUnit(udg_unit167,true)
call SetUnitInvulnerable(udg_unit167,true)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit167,5)
call TriggerSleepAction(.5)
call EnableTrigger(udg_trigger312)
set udg_group04=XB(600.,udg_locations02[231],Condition(function Ct))
call ForGroupBJ(udg_group04,function dt)
call CreateUbersplatBJ(udg_locations02[231],"THND",'d','d','d',0,true,true)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
call ShowUbersplat(bj_lastCreatedUbersplat,true)
set udg_integers06[24]=1
loop
exitwhen udg_integers06[24]>10
call CreateNUnitsAtLoc(1,'h025',GetOwningPlayer(udg_unit167),udg_locations02[231],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(.1)
call CreateNUnitsAtLoc(1,'h026',GetOwningPlayer(udg_unit167),udg_locations02[231],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
set udg_integers06[24]=udg_integers06[24]+1
endloop
call DisableTrigger(udg_trigger312)
call ForGroupBJ(udg_group04,function Dt)
call GroupClear(udg_group04)
call DestroyGroup(udg_group04)
call TriggerSleepAction(1.)
call ResetUnitAnimation(udg_unit167)
call SetUnitInvulnerable(udg_unit167,false)
call PauseUnit(udg_unit167,false)
set udg_unit167=null
set udg_integer21=0
call RemoveLocation(udg_locations02[231])
endfunction
function Ft takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),(GetUnitFlyHeight(GetEnumUnit())-20.),100000.)
endfunction
function gt takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),(GetUnitFlyHeight(GetEnumUnit())+20.),100000.)
endfunction
function Gt takes nothing returns boolean
return(udg_integer21<70)
endfunction
function ht takes nothing returns nothing
set udg_locations02[225]=GetUnitLoc(GetEnumUnit())
set udg_locations02[226]=xB(udg_locations02[225],20.,AngleBetweenPoints(udg_locations02[231],udg_locations02[225]))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[226])
call UnitDamageTarget(udg_unit167,GetEnumUnit(),800.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitAnimation(GetEnumUnit(),"death")
call RemoveLocation(udg_locations02[225])
call RemoveLocation(udg_locations02[226])
endfunction
function Ht takes nothing returns nothing
set udg_integer21=(udg_integer21+1)
if(Gt())then
call ForGroupBJ(udg_group04,function gt)
else
call ForGroupBJ(udg_group04,function Ft)
endif
call ForGroupBJ(udg_group04,function ht)
endfunction
function jt takes nothing returns boolean
return(GetSpellAbilityId()=='A086')
endfunction
function Jt takes nothing returns nothing
set udg_locations02[231]=GetUnitLoc(GetTriggerUnit())
set udg_unit167=GetTriggerUnit()
set udg_unit168=GetSpellTargetUnit()
call PauseUnit(udg_unit167,true)
call PauseUnit(udg_unit168,true)
call SetUnitInvulnerable(udg_unit167,true)
call SetUnitInvulnerable(udg_unit168,true)
call TriggerSleepAction(.1)
call SetUnitTimeScalePercent(udg_unit167,200.)
call SetUnitAnimationByIndex(udg_unit167,7)
call TriggerSleepAction(.4)
call EnableTrigger(udg_trigger314)
call TriggerSleepAction(.3)
call DisableTrigger(udg_trigger314)
call SetUnitTimeScalePercent(udg_unit167,100.)
call ResetUnitAnimation(udg_unit167)
call SetUnitInvulnerable(udg_unit167,false)
call SetUnitInvulnerable(udg_unit168,false)
call PauseUnit(udg_unit167,false)
call PauseUnit(udg_unit168,false)
set udg_unit167=null
set udg_unit168=null
call RemoveLocation(udg_locations02[231])
endfunction
function kt takes nothing returns nothing
set udg_locations02[225]=GetUnitLoc(udg_unit168)
set udg_locations02[226]=xB(udg_locations02[225],40.,AngleBetweenPoints(udg_locations02[225],udg_locations02[231]))
call SetUnitPositionLoc(udg_unit168,udg_locations02[226])
call AddSpecialEffectLocBJ(udg_locations02[226],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[225])
call RemoveLocation(udg_locations02[226])
endfunction
function Kt takes nothing returns boolean
return(GetSpellAbilityId()=='A03K')
endfunction
function lt takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit85)))
endfunction
function Lt takes nothing returns nothing
call UnitDamageTarget(udg_unit85,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit85,true))*30.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function mt takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit85)))
endfunction
function Mt takes nothing returns nothing
call UnitDamageTarget(udg_unit85,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit85,true))*30.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function pt takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit85)))
endfunction
function Pt takes nothing returns nothing
call UnitDamageTarget(udg_unit85,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit85,true))*30.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function qt takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit85)))
endfunction
function Qt takes nothing returns nothing
call UnitDamageTarget(udg_unit85,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit85,true))*30.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function St takes nothing returns nothing
set udg_unit85=GetTriggerUnit()
set udg_locations02['w']=GetUnitLoc(udg_unit85)
call PauseUnit(udg_unit85,true)
call SetUnitInvulnerable(udg_unit85,true)
call TriggerSleepAction(.1)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02['x']=xB(udg_locations02['w'],250.,(60.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h024',GetOwningPlayer(udg_unit85),udg_locations02['x'],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitAnimation(bj_lastCreatedUnit,"Brith Medium")
call RemoveLocation(udg_locations02['x'])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(250.,udg_locations02['w'],Condition(function lt)),function Lt)
call TriggerSleepAction(.1)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02['x']=xB(udg_locations02['w'],500.,(30.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h024',GetOwningPlayer(udg_unit85),udg_locations02['x'],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitAnimation(bj_lastCreatedUnit,"Brith Medium")
call RemoveLocation(udg_locations02['x'])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(500.,udg_locations02['w'],Condition(function mt)),function Mt)
call TriggerSleepAction(.1)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02['x']=xB(udg_locations02['w'],750.,(18.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h024',GetOwningPlayer(udg_unit85),udg_locations02['x'],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitAnimation(bj_lastCreatedUnit,"Brith Medium")
call RemoveLocation(udg_locations02['x'])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(750.,udg_locations02['w'],Condition(function pt)),function Pt)
call TriggerSleepAction(.1)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=36
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02['x']=xB(udg_locations02['w'],1000.,(10.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h024',GetOwningPlayer(udg_unit85),udg_locations02['x'],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call SetUnitAnimation(bj_lastCreatedUnit,"Brith Medium")
call RemoveLocation(udg_locations02['x'])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(1000.,udg_locations02['w'],Condition(function qt)),function Qt)
call RemoveLocation(udg_locations02['w'])
call TriggerSleepAction(7.)
call SetUnitInvulnerable(udg_unit85,false)
call PauseUnit(udg_unit85,false)
set udg_unit85=null
endfunction
function Tt takes nothing returns boolean
return(GetSpellAbilityId()=='A03J')
endfunction
function ut takes nothing returns nothing
call ShowUnitHide(GetEnumUnit())
endfunction
function Ut takes nothing returns nothing
set udg_unit27=GetTriggerUnit()
set udg_unit28=GetSpellTargetUnit()
call PauseUnit(udg_unit27,true)
call SetUnitInvulnerable(udg_unit27,true)
set udg_real02=90.
set udg_locations02[235]=GetUnitLoc(udg_unit28)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[236]=xB(udg_locations02[235],70.,udg_real02)
call CreateNUnitsAtLoc(1,'h00T',GetOwningPlayer(udg_unit27),udg_locations02[236],udg_real02)
set udg_real02=(udg_real02+30.)
call UnitApplyTimedLifeBJ(11.,'BTLF',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[236])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
call ForGroupBJ(AB('h00T'),function ut)
call PauseUnit(udg_unit27,false)
call SetUnitInvulnerable(udg_unit27,false)
call RemoveLocation(udg_locations02[235])
set udg_unit27=null
set udg_unit28=null
endfunction
function wt takes nothing returns boolean
return(GetSpellAbilityId()=='A06L')
endfunction
function Wt takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetWorldBounds())
call FogModifierStart(bj_lastCreatedFogModifier)
endfunction
function yt takes nothing returns nothing
call FogModifierStop(bj_lastCreatedFogModifier)
call DestroyFogModifier(bj_lastCreatedFogModifier)
endfunction
function Yt takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetWorldBounds())
call FogModifierStart(bj_lastCreatedFogModifier)
endfunction
function zt takes nothing returns nothing
call FogModifierStop(bj_lastCreatedFogModifier)
call DestroyFogModifier(bj_lastCreatedFogModifier)
endfunction
function Zt takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_force01))
endfunction
function vT takes nothing returns nothing
call FogEnableOn()
call FogMaskEnableOn()
if(Zt())then
call ForForce(udg_force01,function Yt)
call TriggerSleepAction(20.)
call ForForce(udg_force01,function zt)
else
call ForForce(udg_force02,function Wt)
call TriggerSleepAction(20.)
call ForForce(udg_force02,function yt)
endif
call FogEnableOff()
call FogMaskEnableOff()
endfunction
function eT takes nothing returns boolean
return(GetSpellAbilityId()=='A03I')
endfunction
function xT takes nothing returns nothing
set udg_unit165=GetTriggerUnit()
set udg_unit166=GetSpellTargetUnit()
call PauseUnit(udg_unit165,true)
call PauseUnit(udg_unit166,true)
call SetUnitInvulnerable(udg_unit165,true)
call SetUnitInvulnerable(udg_unit166,true)
call SetUnitPathing(udg_unit165,false)
call SetUnitPathing(udg_unit166,false)
call SetUnitTimeScalePercent(udg_unit165,400.)
call SetUnitTimeScalePercent(udg_unit166,30.)
call UnitAddAbility(udg_unit166,'Amrf')
call TriggerSleepAction(.1)
set udg_integers06[25]=1
loop
exitwhen udg_integers06[25]>12
set udg_locations02[324]=GetUnitLoc(udg_unit165)
set udg_locations02[325]=xB(udg_locations02[324],50.,GetUnitFacing(udg_unit165))
set udg_locations02[326]=GetUnitLoc(udg_unit166)
set udg_locations02[327]=xB(udg_locations02[326],50.,GetUnitFacing(udg_unit165))
call SetUnitAnimationWithRarity(udg_unit165,"attack",RARITY_FREQUENT)
call SetUnitAnimation(udg_unit166,"death")
call SetUnitPositionLoc(udg_unit165,udg_locations02[325])
call SetUnitPositionLoc(udg_unit166,udg_locations02[327])
call AddSpecialEffectLocBJ(udg_locations02[327],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[324])
call RemoveLocation(udg_locations02[325])
call RemoveLocation(udg_locations02[326])
call RemoveLocation(udg_locations02[327])
call TriggerSleepAction(.1)
set udg_integers06[25]=udg_integers06[25]+1
endloop
set udg_locations02[324]=GetUnitLoc(udg_unit165)
set udg_locations02[325]=xB(udg_locations02[324],200.,GetUnitFacing(udg_unit165))
set udg_locations02[326]=GetUnitLoc(udg_unit166)
call SetUnitAnimationByIndex(udg_unit165,8)
call SetUnitPositionLoc(udg_unit165,udg_locations02[325])
call ResetUnitAnimation(udg_unit166)
call SetUnitFacingToFaceLocTimed(udg_unit165,udg_locations02[326],.1)
call RemoveLocation(udg_locations02[324])
call RemoveLocation(udg_locations02[325])
call RemoveLocation(udg_locations02[326])
call SetUnitTimeScalePercent(udg_unit165,100.)
call SetUnitTimeScalePercent(udg_unit166,100.)
call TriggerSleepAction(.5)
set udg_locations02[326]=GetUnitLoc(udg_unit166)
call SetUnitAnimationByIndex(udg_unit165,3)
call SetUnitAnimation(udg_unit166,"death")
call AddSpecialEffectLocBJ(udg_locations02[326],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[326])
call EnableTrigger(udg_trigger319)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger319)
call SetUnitFlyHeight(udg_unit166,.0,100000.)
call TriggerSleepAction(1.)
call SetUnitInvulnerable(udg_unit165,false)
call SetUnitInvulnerable(udg_unit166,false)
call UnitDamageTarget(udg_unit165,udg_unit166,(I2R(GetHeroStatBJ(2,udg_unit165,true))*50.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitPathing(udg_unit166,true)
call SetUnitPathing(udg_unit165,true)
call UnitRemoveAbility(udg_unit166,'Amrf')
call ResetUnitAnimation(udg_unit165)
call PauseUnit(udg_unit165,false)
call PauseUnit(udg_unit166,false)
set udg_integer20=0
set udg_unit165=null
set udg_unit166=null
endfunction
function oT takes nothing returns nothing
set udg_integer20=(udg_integer20+1)
set udg_locations02[326]=GetUnitLoc(udg_unit166)
set udg_locations02[327]=xB(udg_locations02[326],15.,GetUnitFacing(udg_unit165))
call SetUnitPositionLoc(udg_unit166,udg_locations02[327])
call SetUnitFlyHeight(udg_unit166,((-.8*Pow(I2R(udg_integer20),2.))+(40.*I2R(udg_integer20))),100000.)
call RemoveLocation(udg_locations02[326])
call RemoveLocation(udg_locations02[327])
endfunction
function rT takes nothing returns boolean
return(GetSpellAbilityId()=='A02I')
endfunction
function iT takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit164)))
endfunction
function aT takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function nT takes nothing returns boolean
return GetBooleanAnd(iT(),aT())
endfunction
function VT takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
call SetUnitInvulnerable(GetEnumUnit(),true)
call UnitAddAbility(GetEnumUnit(),'Amrf')
endfunction
function ET takes nothing returns nothing
call UnitRemoveAbility(GetEnumUnit(),'Amrf')
call SetUnitInvulnerable(GetEnumUnit(),false)
call PauseUnit(GetEnumUnit(),false)
call UnitDamageTarget(udg_unit164,GetEnumUnit(),(I2R(GetHeroStatBJ(0,udg_unit164,true))*120.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function XT takes nothing returns nothing
set udg_unit164=GetTriggerUnit()
set udg_locations02[321]=GetUnitLoc(udg_unit164)
call PauseUnit(udg_unit164,true)
call SetUnitInvulnerable(udg_unit164,true)
call ResetUnitAnimation(udg_unit164)
call SetUnitTimeScalePercent(udg_unit164,200.)
call UnitAddAbility(udg_unit164,'Amrf')
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit164,"Spell Slam")
call SetUnitFlyHeight(udg_unit164,600.,800.)
set udg_group03=XB(200.,udg_locations02[321],Condition(function nT))
call ForGroupBJ(udg_group03,function VT)
call EnableTrigger(udg_trigger321)
call TriggerSleepAction(1.)
call SetUnitFlyHeight(udg_unit164,.0,600.)
call TriggerSleepAction(1.5)
call DisableTrigger(udg_trigger321)
call ForGroupBJ(udg_group03,function ET)
call GroupClear(udg_group03)
call DestroyGroup(udg_group03)
call ResetUnitAnimation(udg_unit164)
call UnitRemoveAbility(udg_unit164,'Amrf')
call SetUnitTimeScalePercent(udg_unit164,100.)
call SetUnitInvulnerable(udg_unit164,false)
call PauseUnit(udg_unit164,false)
set udg_unit164=null
set udg_integer19=0
call RemoveLocation(udg_locations02[321])
endfunction
function OT takes nothing returns nothing
set udg_locations02[322]=GetUnitLoc(GetEnumUnit())
set udg_locations02[323]=xB(udg_locations02[322],15.,AngleBetweenPoints(udg_locations02[321],udg_locations02[322]))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[323])
call SetUnitAnimation(GetEnumUnit(),"death")
call RemoveLocation(udg_locations02[322])
call RemoveLocation(udg_locations02[323])
endfunction
function RT takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),(GetUnitFlyHeight(GetEnumUnit())-16.),100000.)
endfunction
function IT takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),(GetUnitFlyHeight(GetEnumUnit())+8.),100000.)
endfunction
function AT takes nothing returns boolean
return(udg_integer19>50)and(udg_integer19<=75)
endfunction
function NT takes nothing returns nothing
call SetUnitFlyHeight(GetEnumUnit(),(GetUnitFlyHeight(GetEnumUnit())+12.),100000.)
call SetUnitAnimation(GetEnumUnit(),"death")
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function bT takes nothing returns boolean
return(udg_integer19<=50)
endfunction
function BT takes nothing returns nothing
set udg_integer19=(udg_integer19+1)
if(bT())then
call ForGroupBJ(udg_group03,function NT)
else
call ForGroupBJ(udg_group03,function OT)
if(AT())then
call ForGroupBJ(udg_group03,function IT)
else
call ForGroupBJ(udg_group03,function RT)
endif
endif
endfunction
function cT takes nothing returns boolean
return(GetSpellAbilityId()=='A02M')
endfunction
function CT takes nothing returns nothing
call PauseUnit(udg_unit250,true)
call SetUnitInvulnerable(udg_unit250,true)
call SetUnitPathing(udg_unit250,false)
call TriggerSleepAction(.5)
call SetUnitAnimation(udg_unit250,"attack walk stand spin")
call EnableTrigger(udg_trigger323)
call TriggerSleepAction(1.5)
call DisableTrigger(udg_trigger323)
call ResetUnitAnimation(udg_unit250)
call SetUnitInvulnerable(udg_unit250,false)
call SetUnitPathing(udg_unit250,true)
call PauseUnit(udg_unit250,false)
call RemoveLocation(udg_locations02[319])
call RemoveLocation(udg_locations02[320])
endfunction
function dT takes nothing returns nothing
call UnitDamageTarget(udg_unit250,GetEnumUnit(),(I2R(GetHeroInt(udg_unit250,true))*4.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function DT takes nothing returns nothing
set udg_locations02[319]=GetUnitLoc(udg_unit250)
set udg_locations02[320]=xB(udg_locations02[319],20.,GetUnitFacing(udg_unit250))
call SetUnitPositionLoc(udg_unit250,udg_locations02[320])
call AddSpecialEffectLocBJ(udg_locations02[320],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(150.,udg_locations02[320]),function dT)
call RemoveLocation(udg_locations02[319])
call RemoveLocation(udg_locations02[320])
endfunction
function fT takes nothing returns boolean
return(GetSpellAbilityId()=='A05F')
endfunction
function FT takes nothing returns nothing
set udg_unit88=GetTriggerUnit()
set udg_real08=AngleBetweenPoints(GetUnitLoc(udg_unit88),GetSpellTargetLoc())
call PauseUnit(udg_unit88,true)
call SetUnitInvulnerable(udg_unit88,true)
call SetUnitPathing(udg_unit88,false)
set udg_locations02['n']=GetUnitLoc(udg_unit88)
set udg_locations02['o']=xB(udg_locations02['n'],200.,(GetUnitFacing(udg_unit88)+90.))
call CreateNUnitsAtLoc(1,'h014',GetOwningPlayer(udg_unit88),udg_locations02['o'],GetUnitFacing(udg_unit88))
set udg_unit89=bj_lastCreatedUnit
call PauseUnit(udg_unit89,true)
call SetUnitInvulnerable(udg_unit89,true)
call SetUnitPathing(udg_unit89,false)
call SetUnitTimeScalePercent(udg_unit89,1000.)
call SetUnitTimeScalePercent(udg_unit88,1000.)
call TriggerSleepAction(.5)
call SetUnitAnimation(udg_unit89,"attack walk stand spin")
call SetUnitAnimation(udg_unit88,"attack walk stand spin")
call EnableTrigger(udg_trigger325)
call TriggerSleepAction(2.)
call DisableTrigger(udg_trigger325)
call ResetUnitAnimation(udg_unit89)
call ResetUnitAnimation(udg_unit88)
call SetUnitTimeScalePercent(udg_unit89,100.)
call SetUnitTimeScalePercent(udg_unit88,100.)
call RemoveUnit(udg_unit89)
call PauseUnit(udg_unit88,false)
call SetUnitInvulnerable(udg_unit88,false)
call SetUnitPathing(udg_unit88,true)
call RemoveLocation(udg_locations02['n'])
call RemoveLocation(udg_locations02['o'])
call RemoveLocation(udg_locations02['p'])
call RemoveLocation(udg_locations02['q'])
call RemoveLocation(udg_locations02['r'])
set udg_unit88=null
set udg_unit89=null
set udg_real08=.0
endfunction
function gT takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit284)))
endfunction
function GT takes nothing returns nothing
call UnitDamageTarget(udg_unit284,GetEnumUnit(),(I2R(GetHeroInt(udg_unit284,true))*4.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function hT takes nothing returns nothing
set udg_locations02['n']=GetUnitLoc(udg_unit88)
set udg_locations02['p']=GetUnitLoc(udg_unit89)
set udg_locations02['q']=xB(udg_locations02['p'],20.,udg_real08)
set udg_locations02['r']=xB(udg_locations02['n'],20.,udg_real08)
call SetUnitPositionLoc(udg_unit89,udg_locations02['q'])
call SetUnitPositionLoc(udg_unit88,udg_locations02['r'])
call AddSpecialEffectLocBJ(udg_locations02['r'],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02['q'],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(150.,udg_locations02['r'],Condition(function gT)),function GT)
call RemoveLocation(udg_locations02['n'])
call RemoveLocation(udg_locations02['p'])
call RemoveLocation(udg_locations02['q'])
call RemoveLocation(udg_locations02['r'])
endfunction
function HT takes nothing returns boolean
return(GetSpellAbilityId()=='A01W')
endfunction
function jT takes nothing returns nothing
set udg_unit91=GetTriggerUnit()
set udg_real09=AngleBetweenPoints(GetUnitLoc(udg_unit91),GetSpellTargetLoc())
call PauseUnit(udg_unit91,true)
call SetUnitInvulnerable(udg_unit91,true)
call SetUnitPathing(udg_unit91,false)
call SetUnitTimeScalePercent(udg_unit91,1000.)
call SetUnitScalePercent(udg_unit91,500.,500.,500.)
call TriggerSleepAction(.5)
call SetUnitAnimation(udg_unit91,"attack walk stand spin")
call EnableTrigger(udg_trigger327)
call TriggerSleepAction(2)
call DisableTrigger(udg_trigger327)
call ResetUnitAnimation(udg_unit91)
call SetUnitScalePercent(udg_unit91,'d','d','d')
call SetUnitTimeScalePercent(udg_unit91,100.)
call SetUnitInvulnerable(udg_unit91,false)
call SetUnitPathing(udg_unit91,true)
call PauseUnit(udg_unit91,false)
call RemoveLocation(udg_locations02['l'])
call RemoveLocation(udg_locations02['m'])
set udg_unit91=null
set udg_real09=.0
endfunction
function JT takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit284)))
endfunction
function kT takes nothing returns nothing
call UnitDamageTarget(udg_unit284,GetEnumUnit(),(I2R(GetHeroInt(udg_unit284,true))*5.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function KT takes nothing returns nothing
set udg_locations02['l']=GetUnitLoc(udg_unit91)
set udg_locations02['m']=xB(udg_locations02['l'],20.,udg_real09)
call SetUnitPositionLoc(udg_unit91,udg_locations02['m'])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(350.,udg_locations02['m'],Condition(function JT)),function kT)
call AddSpecialEffectLocBJ(udg_locations02['m'],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02['l'])
call RemoveLocation(udg_locations02['m'])
endfunction
function lT takes nothing returns boolean
return(GetSpellAbilityId()=='A07R')
endfunction
function LT takes nothing returns boolean
return(IsUnitType(udg_unit163,UNIT_TYPE_HERO)!=null)
endfunction
function mT takes nothing returns nothing
set udg_unit32=GetTriggerUnit()
set udg_unit163=GetSpellTargetUnit()
call PauseUnit(udg_unit32,true)
call PauseUnit(udg_unit163,true)
call SetUnitInvulnerable(udg_unit32,true)
call SetUnitInvulnerable(udg_unit163,true)
call SetUnitPathing(udg_unit163,false)
call SetUnitAnimation(udg_unit32,"stand ready")
if(LT())then
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit163),GetSpellTargetUnit(),0,0,false)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit163),CAMERA_FIELD_ANGLE_OF_ATTACK,GetRandomReal(320.,345.),.8)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit163),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit32)-180.),.8)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit163),CAMERA_FIELD_FIELD_OF_VIEW,GetRandomReal(30.,70.),.8)
endif
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(udg_unit32),GetSpellTargetUnit(),0,0,false)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit32),CAMERA_FIELD_ANGLE_OF_ATTACK,GetRandomReal(320.,345.),.8)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit32),CAMERA_FIELD_FIELD_OF_VIEW,GetRandomReal(30.,70.),.8)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit32),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit32)-180.),.8)
call TriggerSleepAction(1.5)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit163),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit32),0)
call SetUnitAnimation(udg_unit32,"spell channel")
set udg_locations02[76]=GetUnitLoc(udg_unit163)
call CreateNUnitsAtLoc(1,'h01D',GetOwningPlayer(udg_unit32),udg_locations02[76],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations02[76],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[76])
call CinematicFadeBJ(1,.8,"ReplaceableTextures\\CameraMasks\\SpecialPowMask.blp",100.,0,0,0)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_unit32),8.)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_unit163),8.)
call UnitAddAbility(udg_unit163,'Amrf')
call SetUnitAnimation(udg_unit163,"death")
call EnableTrigger(udg_trigger329)
call TriggerSleepAction(.8)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit32),0)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit163),0)
call CinematicFadeBJ(0,.0,"ReplaceableTextures\\CameraMasks\\White_mask.blp",.0,0,0,0)
call TriggerSleepAction(2.2)
call DisableTrigger(udg_trigger329)
call SetUnitFlyHeight(udg_unit163,.0,10000.)
call UnitRemoveAbility(udg_unit163,'Amrf')
set udg_locations02[77]=GetUnitLoc(udg_unit163)
call AddSpecialEffectLocBJ(udg_locations02[77],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[77])
call SetUnitPathing(udg_unit163,true)
call SetUnitInvulnerable(udg_unit163,false)
call SetUnitInvulnerable(udg_unit32,false)
call PauseUnit(udg_unit32,false)
call PauseUnit(udg_unit163,false)
call UnitDamageTarget(udg_unit32,udg_unit163,I2R(udg_integer15),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
set udg_integer15=0
set udg_integer17=0
set udg_unit32=null
set udg_unit163=null
endfunction
function MT takes nothing returns boolean
return(udg_integer17<75)
endfunction
function pT takes nothing returns nothing
set udg_integer17=(udg_integer17+1)
set udg_locations02[77]=GetUnitLoc(udg_unit163)
set udg_locations02[78]=xB(udg_locations02[77],30.,GetUnitFacing(udg_unit32))
call SetUnitPositionLoc(udg_unit163,udg_locations02[78])
if(MT())then
call SetUnitFlyHeight(udg_unit163,(GetUnitFlyHeight(udg_unit163)+10.),10000.)
else
call SetUnitFlyHeight(udg_unit163,(GetUnitFlyHeight(udg_unit163)-10.),10000.)
endif
call RemoveLocation(udg_locations02[77])
call RemoveLocation(udg_locations02[78])
endfunction
function PT takes nothing returns boolean
return(GetSpellAbilityId()=='A04R')
endfunction
function qT takes nothing returns boolean
return(udg_integer16==0)
endfunction
function QT takes nothing returns nothing
set udg_unit31=GetTriggerUnit()
call EnableTrigger(udg_trigger331)
call TriggerRegisterUnitEvent(udg_trigger331,udg_unit31,EVENT_UNIT_DAMAGED)
if(qT())then
call CreateTextTagUnitBJ(I2S(udg_integer15),udg_unit31,0,10,'d',.0,.0,0)
set udg_texttag01=bj_lastCreatedTextTag
call EnableTrigger(udg_trigger332)
call TriggerRegisterUnitEvent(udg_trigger333,udg_unit31,EVENT_UNIT_DEATH)
set udg_integer16=1
endif
endfunction
function sT takes nothing returns nothing
set udg_integer15=(udg_integer15+R2I(GetEventDamage()))
endfunction
function ST takes nothing returns nothing
call SetTextTagTextBJ(udg_texttag01,I2S(udg_integer15),10)
call SetTextTagPosUnit(udg_texttag01,udg_unit31,0)
endfunction
function tT takes nothing returns nothing
call DisableTrigger(udg_trigger331)
call DisableTrigger(udg_trigger332)
call DestroyTextTag(udg_texttag01)
set udg_integer16=0
set udg_integer15=0
set udg_unit31=null
endfunction
function TT takes nothing returns boolean
return(GetIssuedOrderId()==852178)and(GetUnitTypeId(GetTriggerUnit())=='E001')
endfunction
function uT takes nothing returns nothing
call DisableTrigger(udg_trigger331)
endfunction
function UT takes nothing returns boolean
return(GetSpellAbilityId()=='A089')
endfunction
function wT takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit104)))and(GetUnitAbilityLevelSwapped('Avul',GetEnumUnit())==0)
endfunction
function WT takes nothing returns nothing
if(wT())then
set udg_locations02[18]=GetUnitLoc(GetEnumUnit())
set udg_locations02[19]=xB(udg_locations02[18],1200.,AngleBetweenPoints(udg_locations02[17],udg_locations02[18]))
call SetUnitAnimation(GetEnumUnit(),"death")
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[19])
call UnitDamageTarget(udg_unit104,GetEnumUnit(),(I2R(GetHeroStatBJ(0,udg_unit104,true))*80.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[18])
call RemoveLocation(udg_locations02[19])
endif
endfunction
function yT takes nothing returns nothing
set udg_unit104=GetTriggerUnit()
set udg_integer07=0
set udg_locations02[19]=GetSpellTargetLoc()
set udg_real13=DistanceBetweenPoints(GetUnitLoc(udg_unit104),udg_locations02[19])
call PauseUnit(udg_unit104,true)
call SetUnitInvulnerable(udg_unit104,true)
call SetUnitPathing(udg_unit104,false)
call UnitAddAbility(udg_unit104,'Amrf')
call SetUnitTimeScalePercent(udg_unit104,60.)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit104,"spell channel")
call EnableTrigger(udg_trigger336)
call TriggerSleepAction(.5)
call DisableTrigger(udg_trigger336)
set udg_locations02[17]=GetUnitLoc(udg_unit104)
call CreateNUnitsAtLoc(1,'h01D',GetOwningPlayer(udg_unit104),udg_locations02[17],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call AddSpecialEffectLocBJ(udg_locations02[17],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateUbersplatBJ(udg_locations02[17],"THND",'d','d','d',0,true,true)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
call ShowUbersplat(bj_lastCreatedUbersplat,true)
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(800.,udg_locations02[17]),function WT)
call UnitRemoveAbility(udg_unit104,'Amrf')
call SetUnitTimeScalePercent(udg_unit104,100.)
call SetUnitPathing(udg_unit104,true)
call SetUnitInvulnerable(udg_unit104,false)
call SetUnitFlyHeight(udg_unit104,.0,10000.)
call TriggerSleepAction(1.)
call ResetUnitAnimation(udg_unit104)
call PauseUnit(udg_unit104,false)
call RemoveLocation(udg_locations02[17])
set udg_unit104=null
set udg_integer07=0
endfunction
function YT takes nothing returns boolean
return(udg_integer07<=17)
endfunction
function zT takes nothing returns boolean
return(udg_integer07>17)and(udg_integer07<25)
endfunction
function ZT takes nothing returns boolean
return(udg_integer07>=25)
endfunction
function vu takes nothing returns nothing
set udg_integer07=(udg_integer07+1)
set udg_locations02[17]=GetUnitLoc(udg_unit104)
set udg_locations02[18]=xB(udg_locations02[17],(udg_real13/25.),GetUnitFacing(udg_unit104))
call SetUnitPositionLocFacingBJ(udg_unit104,udg_locations02[18],GetUnitFacing(udg_unit104))
if(YT())then
call SetUnitFlyHeight(udg_unit104,(GetUnitFlyHeight(udg_unit104)+31.),1000.)
endif
if(zT())then
call SetUnitFlyHeight(udg_unit104,(GetUnitFlyHeight(udg_unit104)-66.),1000.)
endif
if(ZT())then
call DisableTrigger(GetTriggeringTrigger())
return
endif
call RemoveLocation(udg_locations02[17])
call RemoveLocation(udg_locations02[18])
endfunction
function eu takes nothing returns boolean
return(GetSpellAbilityId()=='A06X')
endfunction
function xu takes nothing returns nothing
call ShowUnitHide(GetEnumUnit())
call RemoveUnit(GetEnumUnit())
endfunction
function ou takes nothing returns nothing
set udg_unit72=GetTriggerUnit()
call PauseUnit(udg_unit72,true)
call SetUnitInvulnerable(udg_unit72,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit72,"spell")
call TriggerSleepAction(1.)
set udg_locations02[147]=GetUnitLoc(udg_unit72)
call CreateNUnitsAtLoc(1,'h00A',GetOwningPlayer(udg_unit72),udg_locations02[147],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(20.,'BHwe',bj_lastCreatedUnit)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[148]=xB(udg_locations02[147],400.,udg_real05)
call CreateNUnitsAtLoc(1,'h008',GetOwningPlayer(udg_unit72),udg_locations02[148],udg_real05)
call UnitApplyTimedLifeBJ(21.,'BHwe',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,400.)
call SetUnitVertexColor(bj_lastCreatedUnit,255,255,255,80)
set udg_real05=(udg_real05+30.)
call RemoveLocation(udg_locations02[148])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_real05=.0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[149]=xB(udg_locations02[147],200.,udg_real05)
call CreateNUnitsAtLoc(1,'h008',GetOwningPlayer(udg_unit72),xB(GetUnitLoc(udg_unit72),200.,udg_real05),udg_real05)
call UnitApplyTimedLifeBJ(21.,'BHwe',bj_lastCreatedUnit)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,400.)
call SetUnitVertexColor(bj_lastCreatedUnit,255,255,255,80)
set udg_real05=(udg_real05+60.)
call RemoveLocation(udg_locations02[149])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger338)
call TriggerSleepAction(20.1)
call DisableTrigger(udg_trigger338)
call ForGroupBJ(AB('h008'),function xu)
call DestroyGroup(GetLastCreatedGroup())
call SetUnitInvulnerable(udg_unit72,false)
call PauseUnit(udg_unit72,false)
call ResetUnitAnimation(udg_unit72)
call RemoveLocation(udg_locations02[147])
set udg_unit72=null
set udg_real05=.0
endfunction
function ru takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"attack")
endfunction
function iu takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit72)))
endfunction
function au takes nothing returns nothing
call UnitDamageTarget(udg_unit72,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit72,true))*5.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function nu takes nothing returns nothing
call ForGroupBJ(AB('h008'),function ru)
call DestroyGroup(GetLastCreatedGroup())
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(1000.,udg_locations02[147],Condition(function iu)),function au)
endfunction
function Vu takes nothing returns boolean
return(GetSpellAbilityId()=='A071')
endfunction
function Eu takes nothing returns nothing
set udg_locations02[96]=GetSpellTargetLoc()
set udg_unit162=GetTriggerUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[97]=xB(udg_locations02[96],100.,(60.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h01F',GetOwningPlayer(udg_unit162),udg_locations02[97],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(11.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[97])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[97]=xB(udg_locations02[96],200.,(30.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h01F',GetOwningPlayer(udg_unit162),udg_locations02[97],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(11.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[97])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[97]=xB(udg_locations02[96],300.,(18.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h01F',GetOwningPlayer(udg_unit162),udg_locations02[97],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(11.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[97])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(udg_locations02[96],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(.05)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_unit162=null
call RemoveLocation(udg_locations02[96])
endfunction
function Xu takes nothing returns boolean
return(GetSpellAbilityId()=='A0BC')and(GetUnitTypeId(GetTriggerUnit())=='N00B')
endfunction
function Ou takes nothing returns nothing
set udg_unit80=GetTriggerUnit()
call PauseUnit(udg_unit80,true)
call SetUnitInvulnerable(udg_unit80,true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[132]=GetUnitLoc(udg_unit80)
set udg_locations02[133]=xB(udg_locations02[132],150.,udg_real07)
call CreateNUnitsAtLoc(1,'h012',GetOwningPlayer(udg_unit80),udg_locations02[133],udg_real07)
call UnitApplyTimedLifeBJ(7.,'BHwe',bj_lastCreatedUnit)
set udg_real07=(udg_real07+18.)
call RemoveLocation(udg_locations02[132])
call RemoveLocation(udg_locations02[133])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
call PauseUnit(udg_unit80,false)
call SetUnitInvulnerable(udg_unit80,false)
set udg_real07=.0
set udg_unit80=null
endfunction
function Ru takes nothing returns boolean
return(GetSpellAbilityId()=='A0BC')
endfunction
function Iu takes nothing returns nothing
set udg_unit191=GetTriggerUnit()
call PauseUnit(udg_unit191,true)
call SetUnitInvulnerable(udg_unit191,true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[369]=GetUnitLoc(udg_unit191)
set udg_locations02[370]=xB(udg_locations02[369],150.,I2R(udg_integer26))
call CreateNUnitsAtLoc(1,'h012',GetOwningPlayer(udg_unit191),udg_locations02[370],I2R(udg_integer26))
call UnitApplyTimedLifeBJ(7.,'BHwe',bj_lastCreatedUnit)
set udg_integer26=(udg_integer26+18)
call RemoveLocation(udg_locations02[369])
call RemoveLocation(udg_locations02[370])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
call PauseUnit(udg_unit191,false)
call SetUnitInvulnerable(udg_unit191,false)
set udg_integer26=0
set udg_unit191=null
endfunction
function Au takes nothing returns boolean
return(GetSpellAbilityId()=='A01L')
endfunction
function Nu takes nothing returns nothing
set udg_unit161=GetTriggerUnit()
set udg_locations02[317]=GetUnitLoc(udg_unit161)
call PauseUnit(udg_unit161,true)
call SetUnitInvulnerable(udg_unit161,true)
call ResetUnitAnimation(udg_unit161)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit161,"spell")
set udg_integers06[27]=1
loop
exitwhen udg_integers06[27]>6
set udg_locations02[318]=xB(udg_locations02[317],300.,(60.*I2R(udg_integers06[27])))
call CreateNUnitsAtLoc(1,'h023',GetOwningPlayer(udg_unit161),udg_locations02[318],(60.*I2R(udg_integers06[27])))
call SetUnitPathing(bj_lastCreatedUnit,false)
call SetUnitAnimation(bj_lastCreatedUnit,"stand")
call SetUnitTimeScale(bj_lastCreatedUnit,.3)
call UnitApplyTimedLifeBJ(20.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[318])
call TriggerSleepAction(.01)
set udg_integers06[27]=udg_integers06[27]+1
endloop
set udg_integers06[27]=1
loop
exitwhen udg_integers06[27]>12
set udg_locations02[318]=xB(udg_locations02[317],500.,(30.*I2R(udg_integers06[27])))
call CreateNUnitsAtLoc(1,'h023',GetOwningPlayer(udg_unit161),udg_locations02[318],(30.*I2R(udg_integers06[27])))
call SetUnitPathing(bj_lastCreatedUnit,false)
call SetUnitAnimation(bj_lastCreatedUnit,"stand")
call SetUnitTimeScale(bj_lastCreatedUnit,.3)
call UnitApplyTimedLifeBJ(20.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[318])
call TriggerSleepAction(.01)
set udg_integers06[27]=udg_integers06[27]+1
endloop
set udg_integers06[27]=1
loop
exitwhen udg_integers06[27]>20
set udg_locations02[318]=xB(udg_locations02[317],700.,(18.*I2R(udg_integers06[27])))
call CreateNUnitsAtLoc(1,'h023',GetOwningPlayer(udg_unit161),udg_locations02[318],(30.*I2R(udg_integers06[27])))
call SetUnitPathing(bj_lastCreatedUnit,false)
call SetUnitAnimation(bj_lastCreatedUnit,"stand")
call SetUnitTimeScale(bj_lastCreatedUnit,.3)
call UnitApplyTimedLifeBJ(20.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[318])
call TriggerSleepAction(.01)
set udg_integers06[27]=udg_integers06[27]+1
endloop
call TriggerSleepAction(15.)
call SetUnitInvulnerable(udg_unit161,false)
call PauseUnit(udg_unit161,false)
call RemoveLocation(udg_locations02[317])
set udg_unit161=null
endfunction
function bu takes nothing returns boolean
return(GetSpellAbilityId()=='A0BK')
endfunction
function Bu takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit78)))
endfunction
function cu takes nothing returns nothing
if(Bu())then
set udg_locations02[140]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00I',GetOwningPlayer(udg_unit78),udg_locations02[140],bj_UNIT_FACING)
set udg_unit79=bj_lastCreatedUnit
call SetUnitFacingToFaceUnitTimed(udg_unit79,GetEnumUnit(),0)
call ShowUnitHide(udg_unit79)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit79)
call IssueTargetOrderById(udg_unit79,852171,GetEnumUnit())
call RemoveLocation(udg_locations02[140])
endif
endfunction
function Cu takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit78)))
endfunction
function du takes nothing returns nothing
if(Cu())then
set udg_locations02[140]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00I',GetOwningPlayer(udg_unit78),udg_locations02[140],bj_UNIT_FACING)
set udg_unit79=bj_lastCreatedUnit
call SetUnitFacingToFaceUnitTimed(udg_unit79,GetEnumUnit(),0)
call ShowUnitHide(udg_unit79)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit79)
call IssueTargetOrderById(udg_unit79,852171,GetEnumUnit())
call RemoveLocation(udg_locations02[140])
endif
endfunction
function Du takes nothing returns boolean
return(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit78)))
endfunction
function fu takes nothing returns nothing
if(Du())then
set udg_locations02[140]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00I',GetOwningPlayer(udg_unit78),udg_locations02[140],bj_UNIT_FACING)
set udg_unit79=bj_lastCreatedUnit
call SetUnitFacingToFaceUnitTimed(udg_unit79,GetEnumUnit(),0)
call ShowUnitHide(udg_unit79)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit79)
call IssueTargetOrderById(udg_unit79,852171,GetEnumUnit())
call RemoveLocation(udg_locations02[140])
endif
endfunction
function Fu takes nothing returns nothing
set udg_unit78=GetTriggerUnit()
call PauseUnit(udg_unit78,true)
call SetUnitInvulnerable(udg_unit78,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit78,"spell slam")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[136]=GetUnitLoc(udg_unit78)
set udg_locations02[137]=xB(udg_locations02[136],100.,udg_real06)
call CreateNUnitsAtLoc(1,'h00I',GetOwningPlayer(udg_unit78),udg_locations02[137],udg_real06)
set udg_unit79=bj_lastCreatedUnit
call ShowUnitHide(udg_unit79)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit79)
set udg_locations02[138]=GetUnitLoc(udg_unit79)
set udg_locations02[139]=xB(udg_locations02[138],50.,GetUnitFacing(udg_unit79))
call IssuePointOrderByIdLoc(udg_unit79,852218,udg_locations02[139])
set udg_real06=(udg_real06+30.)
call RemoveLocation(udg_locations02[136])
call RemoveLocation(udg_locations02[137])
call RemoveLocation(udg_locations02[138])
call RemoveLocation(udg_locations02[139])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_unit79=null
set udg_locations02[136]=GetUnitLoc(udg_unit78)
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(1000.,udg_locations02[136]),function cu)
call RemoveLocation(udg_locations02[136])
set udg_unit79=null
call TriggerSleepAction(1.2)
call ResetUnitAnimation(udg_unit78)
call SetUnitAnimation(udg_unit78,"spell slam")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[136]=GetUnitLoc(udg_unit78)
set udg_locations02[137]=xB(udg_locations02[136],100.,udg_real06)
call CreateNUnitsAtLoc(1,'h00I',GetOwningPlayer(udg_unit78),udg_locations02[137],udg_real06)
set udg_unit79=bj_lastCreatedUnit
call ShowUnitHide(udg_unit79)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit79)
set udg_locations02[138]=GetUnitLoc(udg_unit79)
set udg_locations02[139]=xB(udg_locations02[138],50.,GetUnitFacing(udg_unit79))
call IssuePointOrderByIdLoc(udg_unit79,852218,udg_locations02[139])
set udg_real06=(udg_real06+30.)
call RemoveLocation(udg_locations02[136])
call RemoveLocation(udg_locations02[137])
call RemoveLocation(udg_locations02[138])
call RemoveLocation(udg_locations02[139])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_unit79=null
set udg_locations02[136]=GetUnitLoc(udg_unit78)
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(1150.,udg_locations02[136]),function du)
call RemoveLocation(udg_locations02[136])
set udg_unit79=null
call TriggerSleepAction(1.2)
call ResetUnitAnimation(udg_unit78)
call SetUnitAnimation(udg_unit78,"spell slam")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[136]=GetUnitLoc(udg_unit78)
set udg_locations02[137]=xB(udg_locations02[136],100.,udg_real06)
call CreateNUnitsAtLoc(1,'h00I',GetOwningPlayer(udg_unit78),udg_locations02[137],udg_real06)
set udg_unit79=bj_lastCreatedUnit
call ShowUnitHide(udg_unit79)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit79)
set udg_locations02[138]=GetUnitLoc(udg_unit79)
set udg_locations02[139]=xB(udg_locations02[138],50.,GetUnitFacing(udg_unit79))
call IssuePointOrderByIdLoc(udg_unit79,852218,udg_locations02[139])
set udg_real06=(udg_real06+30.)
call RemoveLocation(udg_locations02[136])
call RemoveLocation(udg_locations02[137])
call RemoveLocation(udg_locations02[138])
call RemoveLocation(udg_locations02[139])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_unit79=null
set udg_locations02[136]=GetUnitLoc(udg_unit78)
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(1150.,udg_locations02[136]),function fu)
call RemoveLocation(udg_locations02[136])
set udg_unit79=null
call TriggerSleepAction(1.2)
call ResetUnitAnimation(udg_unit78)
call PauseUnit(udg_unit78,false)
call SetUnitInvulnerable(udg_unit78,false)
set udg_unit78=null
set udg_real06=.0
endfunction
function gu takes nothing returns boolean
return(GetSpellAbilityId()=='A007')
endfunction
function Gu takes nothing returns nothing
set udg_unit45=GetTriggerUnit()
set udg_unit105=GetSpellTargetUnit()
set udg_real14=DistanceBetweenPoints(GetUnitLoc(udg_unit45),GetUnitLoc(udg_unit105))
call PauseUnit(udg_unit45,true)
call PauseUnit(udg_unit105,true)
call SetUnitInvulnerable(udg_unit45,true)
call SetUnitInvulnerable(udg_unit105,true)
call SetUnitPathing(udg_unit45,false)
call SetUnitPathing(udg_unit105,false)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit45,"spell")
call EnableTrigger(udg_trigger345)
call SetUnitTimeScalePercent(udg_unit45,200.)
call TriggerSleepAction(3.4)
call DisableTrigger(udg_trigger345)
call ResetUnitAnimation(udg_unit45)
call SetUnitAnimationByIndex(udg_unit45,9)
call SetUnitAnimation(udg_unit105,"death")
call SetUnitInvulnerable(udg_unit105,false)
set udg_integer08=0
set udg_locations02[0]=GetUnitLoc(udg_unit45)
set udg_locations02[2]=xB(udg_locations02[0],200.,GetUnitFacing(udg_unit45))
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations02[3]=xB(udg_locations02[2],200.,I2R(udg_integer08))
call AddSpecialEffectLocBJ(udg_locations02[3],"war3mapImported\\WaterFlash.mdx")
set udg_effects01[(bj_forLoopBIndex+97)]=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(udg_locations02[3],"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_integer08=(udg_integer08+60)
call RemoveLocation(udg_locations02[3])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call AddSpecialEffectLocBJ(udg_locations02[2],"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
set udg_effects01['h']=bj_lastCreatedEffect
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[2],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_unit45,udg_unit105,(I2R(GetHeroStatBJ(2,udg_unit45,true))*50.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitInvulnerable(udg_unit105,true)
set udg_locations02[1]=GetUnitLoc(udg_unit105)
set udg_locations02[4]=xB(GetUnitLoc(udg_unit105),300.,AngleBetweenPoints(GetUnitLoc(udg_unit45),GetUnitLoc(udg_unit105)))
call SetUnitPositionLoc(udg_unit105,udg_locations02[4])
call TriggerSleepAction(2.)
call ResetUnitAnimation(udg_unit45)
call ResetUnitAnimation(udg_unit105)
call SetUnitInvulnerable(udg_unit45,false)
call SetUnitInvulnerable(udg_unit105,false)
call SetUnitPathing(udg_unit105,true)
call SetUnitPathing(udg_unit45,true)
call PauseUnit(udg_unit45,false)
call PauseUnit(udg_unit105,false)
set bj_forLoopAIndex=98
set bj_forLoopAIndexEnd='h'
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(udg_effects01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[0])
call RemoveLocation(udg_locations02[1])
call RemoveLocation(udg_locations02[2])
call RemoveLocation(udg_locations02[4])
call RemoveLocation(udg_locations02[5])
call RemoveLocation(udg_locations02[6])
call RemoveLocation(udg_locations02[7])
call RemoveLocation(udg_locations02[8])
call RemoveLocation(udg_locations02[9])
call RemoveLocation(udg_locations02[10])
call RemoveLocation(udg_locations02[11])
call RemoveLocation(udg_locations02[12])
call RemoveLocation(udg_locations02[13])
call RemoveLocation(udg_locations02[14])
call RemoveLocation(udg_locations02[15])
call RemoveLocation(udg_locations02[16])
set udg_unit45=null
set udg_unit105=null
set udg_integer08=0
endfunction
function hu takes nothing returns boolean
return(udg_real14>=150.)
endfunction
function Hu takes nothing returns boolean
return(udg_integer08<25)
endfunction
function ju takes nothing returns boolean
return(IsUnitType(udg_unit105,UNIT_TYPE_HERO)!=null)
endfunction
function Ju takes nothing returns boolean
return(udg_integer08>=25)
endfunction
function ku takes nothing returns boolean
return(udg_integer08==25)or(udg_integer08==65)or(udg_integer08=='i')
endfunction
function Ku takes nothing returns boolean
return(ku())
endfunction
function lu takes nothing returns boolean
return(udg_integer08==45)or(udg_integer08==85)
endfunction
function Lu takes nothing returns boolean
return(lu())
endfunction
function mu takes nothing returns boolean
return(udg_integer08=='}')or(udg_integer08==150)
endfunction
function Mu takes nothing returns boolean
return(mu())
endfunction
function pu takes nothing returns nothing
set udg_integer08=(udg_integer08+1)
set udg_locations02[0]=GetUnitLoc(udg_unit45)
set udg_locations02[1]=GetUnitLoc(udg_unit105)
set udg_locations02[5]=xB(udg_locations02[0],((udg_real14-150.)/24.),AngleBetweenPoints(GetUnitLoc(udg_unit45),GetUnitLoc(udg_unit105)))
set udg_locations02[6]=xB(udg_locations02[1],10.,AngleBetweenPoints(GetUnitLoc(udg_unit45),GetUnitLoc(udg_unit105)))
set udg_locations02[7]=xB(udg_locations02[0],10.,AngleBetweenPoints(GetUnitLoc(udg_unit45),GetUnitLoc(udg_unit105)))
set udg_locations02[8]=xB(udg_locations02[0],20.,(GetUnitFacing(udg_unit45)+20.))
set udg_locations02[9]=xB(udg_locations02[0],200.,(GetUnitFacing(udg_unit45)+20.))
set udg_locations02[10]=xB(udg_locations02[0],20.,(GetUnitFacing(udg_unit45)+40.))
set udg_locations02[11]=xB(udg_locations02[0],200.,(GetUnitFacing(udg_unit45)+40.))
set udg_locations02[12]=xB(udg_locations02[0],20.,(GetUnitFacing(udg_unit45)-20.))
set udg_locations02[13]=xB(udg_locations02[0],200.,(GetUnitFacing(udg_unit45)-20.))
set udg_locations02[14]=xB(udg_locations02[0],20.,(GetUnitFacing(udg_unit45)-40.))
set udg_locations02[15]=xB(udg_locations02[0],200.,(GetUnitFacing(udg_unit45)-40.))
set udg_locations02[16]=xB(udg_locations02[0],20.,GetUnitFacing(udg_unit45))
if(Hu())then
if(hu())then
call SetUnitPositionLocFacingLocBJ(udg_unit45,udg_locations02[5],udg_locations02[1])
endif
endif
if(ju())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit105),udg_locations02[1],0)
endif
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit45),udg_locations02[1],0)
call AddSpecialEffectLocBJ(udg_locations02[0],"Abilities\\Spells\\Other\\CrushingWave\\CrushingWaveDamage.mdl")
call DestroyEffect(bj_lastCreatedEffect)
if(Ju())then
call SetUnitPositionLocFacingLocBJ(udg_unit105,udg_locations02[6],udg_locations02[0])
call SetUnitPositionLocFacingLocBJ(udg_unit45,udg_locations02[7],udg_locations02[1])
endif
if(Ku())then
call ResetUnitAnimation(udg_unit45)
call SetUnitAnimationByIndex(udg_unit45,11)
call SetUnitAnimation(udg_unit105,"death")
call AddSpecialEffectLocBJ(udg_locations02[1],"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosDone.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit45),udg_locations02[16],GetUnitFacing(udg_unit45))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852218,udg_locations02[1])
endif
if(Lu())then
call ResetUnitAnimation(udg_unit45)
call SetUnitAnimationByIndex(udg_unit45,2)
call SetUnitAnimation(udg_unit105,"death")
call AddSpecialEffectLocBJ(udg_locations02[1],"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosDone.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit45),udg_locations02[16],GetUnitFacing(udg_unit45))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852218,udg_locations02[1])
endif
if(Mu())then
call ResetUnitAnimation(udg_unit45)
call SetUnitTimeScalePercent(udg_unit45,100.)
call SetUnitAnimationByIndex(udg_unit45,1)
call SetUnitAnimation(udg_unit105,"death")
call AddSpecialEffectLocBJ(udg_locations02[1],"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosDone.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit45),udg_locations02[7],GetUnitFacing(udg_unit45))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852218,udg_locations02[1])
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit45),udg_locations02[8],(GetUnitFacing(udg_unit45)+30.))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852218,udg_locations02[9])
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit45),udg_locations02[10],(GetUnitFacing(udg_unit45)+60.))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852218,udg_locations02[11])
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit45),udg_locations02[12],(GetUnitFacing(udg_unit45)-30.))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852218,udg_locations02[13])
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit45),udg_locations02[14],(GetUnitFacing(udg_unit45)-60.))
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852218,udg_locations02[15])
endif
call RemoveLocation(udg_locations02[0])
call RemoveLocation(udg_locations02[1])
call RemoveLocation(udg_locations02[5])
call RemoveLocation(udg_locations02[6])
call RemoveLocation(udg_locations02[7])
call RemoveLocation(udg_locations02[8])
call RemoveLocation(udg_locations02[9])
call RemoveLocation(udg_locations02[10])
call RemoveLocation(udg_locations02[11])
call RemoveLocation(udg_locations02[12])
call RemoveLocation(udg_locations02[13])
call RemoveLocation(udg_locations02[14])
call RemoveLocation(udg_locations02[15])
call RemoveLocation(udg_locations02[16])
endfunction
function Pu takes nothing returns boolean
return(GetSpellAbilityId()=='A010')and(GetUnitTypeId(GetTriggerUnit())=='N00D')
endfunction
function qu takes nothing returns nothing
set udg_locations02[314]=GetSpellTargetLoc()
set udg_locations02[315]=xB(udg_locations02[314],200.,135.)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[315],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[314])
call RemoveLocation(udg_locations02[315])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[315]=GetUnitLoc(bj_lastCreatedUnit)
set udg_locations02[316]=xB(udg_locations02[315],80.,.0)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[316],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,550.)
call CreateDestructableLoc('YTpc',udg_locations02[316],GetRandomReal(0,360),1,0)
set udg_destructables03[udg_integer14]=bj_lastCreatedDestructable
set udg_integer14=(udg_integer14+1)
call AddSpecialEffectLocBJ(udg_locations02[316],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[315])
call RemoveLocation(udg_locations02[316])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[315]=GetUnitLoc(bj_lastCreatedUnit)
set udg_locations02[316]=xB(udg_locations02[315],80.,270.)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[316],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,550.)
call CreateDestructableLoc('YTpc',udg_locations02[316],GetRandomReal(0,360),1,0)
set udg_destructables03[udg_integer14]=bj_lastCreatedDestructable
set udg_integer14=(udg_integer14+1)
call AddSpecialEffectLocBJ(udg_locations02[316],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[315])
call RemoveLocation(udg_locations02[316])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[315]=GetUnitLoc(bj_lastCreatedUnit)
set udg_locations02[316]=xB(udg_locations02[315],80.,180.)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[316],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,550.)
call CreateDestructableLoc('YTpc',udg_locations02[316],GetRandomReal(0,360),1,0)
set udg_destructables03[udg_integer14]=bj_lastCreatedDestructable
set udg_integer14=(udg_integer14+1)
call AddSpecialEffectLocBJ(udg_locations02[316],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[315])
call RemoveLocation(udg_locations02[316])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[315]=GetUnitLoc(bj_lastCreatedUnit)
set udg_locations02[316]=xB(udg_locations02[315],80.,90.)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[316],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,550.)
call CreateDestructableLoc('YTpc',udg_locations02[316],GetRandomReal(0,360),1,0)
set udg_destructables03[udg_integer14]=bj_lastCreatedDestructable
set udg_integer14=(udg_integer14+1)
call AddSpecialEffectLocBJ(udg_locations02[316],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[315])
call RemoveLocation(udg_locations02[316])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer14=(udg_integer14-1)
call TriggerSleepAction(30.)
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=udg_integer14
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables03[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer14=0
endfunction
function Qu takes nothing returns boolean
return(GetSpellAbilityId()=='A010')
endfunction
function su takes nothing returns nothing
set udg_locations02[409]=GetSpellTargetLoc()
set udg_locations02[410]=xB(udg_locations02[409],200.,135.)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[410],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[409])
call RemoveLocation(udg_locations02[410])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[410]=GetUnitLoc(bj_lastCreatedUnit)
set udg_locations02[411]=xB(udg_locations02[410],80.,.0)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[411],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,550.)
call CreateDestructableLoc('YTpc',udg_locations02[411],GetRandomReal(0,360),1,0)
set udg_destructables03[udg_integer42]=bj_lastCreatedDestructable
set udg_integer42=(udg_integer42+1)
call AddSpecialEffectLocBJ(udg_locations02[411],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[410])
call RemoveLocation(udg_locations02[411])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[410]=GetUnitLoc(bj_lastCreatedUnit)
set udg_locations02[411]=xB(udg_locations02[410],80.,270.)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[411],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,550.)
call CreateDestructableLoc('YTpc',udg_locations02[411],GetRandomReal(0,360),1,0)
set udg_destructables03[udg_integer42]=bj_lastCreatedDestructable
set udg_integer42=(udg_integer42+1)
call AddSpecialEffectLocBJ(udg_locations02[411],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[410])
call RemoveLocation(udg_locations02[411])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[410]=GetUnitLoc(bj_lastCreatedUnit)
set udg_locations02[411]=xB(udg_locations02[410],80.,180.)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[411],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,550.)
call CreateDestructableLoc('YTpc',udg_locations02[411],GetRandomReal(0,360),1,0)
set udg_destructables03[udg_integer42]=bj_lastCreatedDestructable
set udg_integer42=(udg_integer42+1)
call AddSpecialEffectLocBJ(udg_locations02[411],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[410])
call RemoveLocation(udg_locations02[411])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[410]=GetUnitLoc(bj_lastCreatedUnit)
set udg_locations02[411]=xB(udg_locations02[410],80.,90.)
call CreateNUnitsAtLoc(1,'h022',GetOwningPlayer(GetTriggerUnit()),udg_locations02[411],180.)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(30.,'BHwe',bj_lastCreatedUnit)
call SetUnitFlyHeight(bj_lastCreatedUnit,.0,550.)
call CreateDestructableLoc('YTpc',udg_locations02[411],GetRandomReal(0,360),1,0)
set udg_destructables03[udg_integer42]=bj_lastCreatedDestructable
set udg_integer42=(udg_integer42+1)
call AddSpecialEffectLocBJ(udg_locations02[411],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[410])
call RemoveLocation(udg_locations02[411])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer42=(udg_integer42-1)
call TriggerSleepAction(30.)
set bj_forLoopAIndex=36
set bj_forLoopAIndexEnd=udg_integer42
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables03[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer42=36
endfunction
function Su takes nothing returns boolean
return(GetSpellAbilityId()=='A00Z')and(GetUnitTypeId(GetTriggerUnit())=='N00D')
endfunction
function tu takes nothing returns boolean
return(IsUnitEnemy(udg_unit160,GetOwningPlayer(GetTriggerUnit())))
endfunction
function Tu takes nothing returns nothing
set udg_locations02[312]=GetUnitLoc(GetSpellTargetUnit())
set udg_unit160=GetSpellTargetUnit()
if(tu())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[313]=xB(udg_locations02[312],320.,(12.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h02E',GetOwningPlayer(udg_unit160),udg_locations02[313],(AngleBetweenPoints(udg_locations02[312],udg_locations02[313])+90.))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[313])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[313]=xB(udg_locations02[312],300.,(30.*I2R(bj_forLoopAIndex)))
call CreateDestructableLoc('YTpc',udg_locations02[313],GetRandomReal(0,360),1,0)
set udg_destructables02[bj_forLoopAIndex]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[313])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables02[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[312])
set udg_unit160=null
else
call PauseUnit(udg_unit160,true)
call SetUnitInvulnerable(udg_unit160,true)
call SetUnitPathing(udg_unit160,false)
call SetWidgetLife(udg_unit160,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit160)+40000.))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[313]=xB(udg_locations02[312],320.,(12.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h02E',GetOwningPlayer(udg_unit160),udg_locations02[313],(AngleBetweenPoints(udg_locations02[312],udg_locations02[313])+90.))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[313])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[313]=xB(udg_locations02[312],300.,(30.*I2R(bj_forLoopAIndex)))
call CreateDestructableLoc('YTpc',udg_locations02[313],GetRandomReal(0,360),1,0)
set udg_destructables02[bj_forLoopAIndex]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[313])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables02[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitInvulnerable(udg_unit160,false)
call SetUnitPathing(udg_unit160,true)
call PauseUnit(udg_unit160,false)
call RemoveLocation(udg_locations02[312])
set udg_unit160=null
endif
endfunction
function uu takes nothing returns boolean
return(GetSpellAbilityId()=='A00Z')
endfunction
function Uu takes nothing returns boolean
return(IsUnitEnemy(udg_unit213,GetOwningPlayer(GetTriggerUnit())))
endfunction
function wu takes nothing returns nothing
set udg_locations02[407]=GetUnitLoc(GetSpellTargetUnit())
set udg_unit213=GetSpellTargetUnit()
if(Uu())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[408]=xB(udg_locations02[407],320.,(12.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h02E',GetOwningPlayer(udg_unit213),udg_locations02[408],(AngleBetweenPoints(udg_locations02[407],udg_locations02[408])+90.))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[408])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=13
set bj_forLoopAIndexEnd=24
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[408]=xB(udg_locations02[407],300.,(30.*(I2R(bj_forLoopAIndex)-12.)))
call CreateDestructableLoc('YTpc',udg_locations02[408],GetRandomReal(0,360),1,0)
set udg_destructables02[bj_forLoopAIndex]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[408])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
set bj_forLoopAIndex=13
set bj_forLoopAIndexEnd=24
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables02[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[407])
call RemoveLocation(udg_locations02[408])
set udg_unit213=null
else
call PauseUnit(udg_unit213,true)
call SetUnitInvulnerable(udg_unit213,true)
call SetUnitPathing(udg_unit213,false)
call SetWidgetLife(udg_unit213,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit213)+40000.))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[408]=xB(udg_locations02[407],320.,(12.*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'h02E',GetOwningPlayer(udg_unit213),udg_locations02[408],(AngleBetweenPoints(udg_locations02[407],udg_locations02[408])+90.))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[408])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=13
set bj_forLoopAIndexEnd=24
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[408]=xB(udg_locations02[407],300.,(30.*(I2R(bj_forLoopAIndex)-12.)))
call CreateDestructableLoc('YTpc',udg_locations02[408],GetRandomReal(0,360),1,0)
set udg_destructables02[bj_forLoopAIndex]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[408])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
set bj_forLoopAIndex=13
set bj_forLoopAIndexEnd=24
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables02[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitInvulnerable(udg_unit213,false)
call SetUnitPathing(udg_unit213,true)
call PauseUnit(udg_unit213,false)
call RemoveLocation(udg_locations02[407])
call RemoveLocation(udg_locations02[408])
set udg_unit213=null
endif
endfunction
function Wu takes nothing returns boolean
return(GetSpellAbilityId()=='A00X')
endfunction
function yu takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit159)))
endfunction
function Yu takes nothing returns nothing
call UnitDamageTarget(udg_unit159,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit159,true))*15.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function zu takes nothing returns nothing
set udg_unit159=GetTriggerUnit()
set udg_locations02[310]=GetUnitLoc(udg_unit159)
call PauseUnit(udg_unit159,true)
call SetUnitInvulnerable(udg_unit159,true)
call ResetUnitAnimation(udg_unit159)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit159,"spell slam")
set udg_integers06[28]=1
loop
exitwhen udg_integers06[28]>40
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=20
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_locations02[311]=xB(udg_locations02[310],GetRandomReal(.0,2000.),GetRandomReal(.0,360.))
call CreateDestructableLoc('ZTtw',udg_locations02[311],GetRandomReal(0,360),GetRandomReal(.5,2.2),GetRandomInt(1,3))
set udg_destructables05[udg_integer22]=bj_lastCreatedDestructable
set udg_integer22=(udg_integer22+1)
call SetDestAnimationSpeedPercent(bj_lastCreatedDestructable,2000.)
call SetDestructableAnimation(bj_lastCreatedDestructable,"birth")
call AddSpecialEffectLocBJ(udg_locations02[311],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(200.,udg_locations02[311],Condition(function yu)),function Yu)
call RemoveLocation(udg_locations02[311])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call TriggerSleepAction(.25)
set udg_integers06[28]=udg_integers06[28]+1
endloop
call SetUnitInvulnerable(udg_unit159,false)
call PauseUnit(udg_unit159,false)
call ResetUnitAnimation(udg_unit159)
call RemoveLocation(udg_locations02[310])
set udg_unit159=null
call TriggerSleepAction(20.)
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=(udg_integer22-1)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables05[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer22=0
endfunction
function Zu takes nothing returns boolean
return(GetSpellAbilityId()=='A0AQ')
endfunction
function vU takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o00P')
endfunction
function eU takes nothing returns nothing
if(vU())then
call UnitAddAbility(GetTriggerUnit(),'A009')
else
call UnitAddAbility(GetTriggerUnit(),'A02D')
endif
endfunction
function xU takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o00Q')
endfunction
function oU takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o00P')
endfunction
function rU takes nothing returns boolean
return(GetBooleanOr(xU(),oU()))and(UnitHasBuffBJ(GetTriggerUnit(),'BEim'))
endfunction
function iU takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00H'))or(UnitHasBuffBJ(GetTriggerUnit(),'B00J'))
endfunction
function aU takes nothing returns boolean
return(iU())
endfunction
function nU takes nothing returns boolean
return(GetSpellAbilityId()=='A0AL')
endfunction
function VU takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00I'))or(UnitHasBuffBJ(GetTriggerUnit(),'B00J'))
endfunction
function EU takes nothing returns boolean
return(VU())
endfunction
function XU takes nothing returns boolean
return(GetSpellAbilityId()=='A0AK')
endfunction
function OU takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00H'))or(UnitHasBuffBJ(GetTriggerUnit(),'B00I'))
endfunction
function RU takes nothing returns boolean
return(OU())
endfunction
function IU takes nothing returns boolean
return(GetSpellAbilityId()=='A0AM')
endfunction
function AU takes nothing returns nothing
set udg_locations02[303]=GetUnitLoc(GetTriggerUnit())
if(nU())then
if(aU())then
call UnitRemoveAbility(GetTriggerUnit(),'B00H')
call UnitRemoveAbility(GetTriggerUnit(),'B00J')
endif
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(GetTriggerUnit()),udg_locations02[303],bj_UNIT_FACING)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetTriggerUnit(),0)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitAddAbility(bj_lastCreatedUnit,'A0AJ')
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852160,GetTriggerUnit())
endif
if(XU())then
if(EU())then
call UnitRemoveAbility(GetTriggerUnit(),'B00I')
call UnitRemoveAbility(GetTriggerUnit(),'B00J')
endif
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(GetTriggerUnit()),udg_locations02[303],bj_UNIT_FACING)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetTriggerUnit(),0)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitAddAbility(bj_lastCreatedUnit,'A0AI')
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852160,GetTriggerUnit())
endif
if(IU())then
if(RU())then
call UnitRemoveAbility(GetTriggerUnit(),'B00H')
call UnitRemoveAbility(GetTriggerUnit(),'B00I')
endif
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(GetTriggerUnit()),udg_locations02[303],bj_UNIT_FACING)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetTriggerUnit(),0)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitAddAbility(bj_lastCreatedUnit,'A0AH')
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852160,GetTriggerUnit())
endif
call RemoveLocation(udg_locations02[303])
endfunction
function NU takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='o00Q')
endfunction
function bU takes nothing returns boolean
return(GetUnitTypeId(GetAttacker())=='o00P')
endfunction
function BU takes nothing returns boolean
return(GetBooleanOr(NU(),bU()))and(GetRandomInt(1,'d')<=50)
endfunction
function cU takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00H'))
endfunction
function CU takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00J'))
endfunction
function dU takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00I'))
endfunction
function DU takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[304]=GetUnitLoc(GetTriggerUnit())
if(dU())then
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(GetAttacker()),udg_locations02[304],bj_UNIT_FACING)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetTriggerUnit(),0)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitAddAbility(bj_lastCreatedUnit,'A0AN')
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852226,GetTriggerUnit())
else
if(CU())then
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(GetAttacker()),udg_locations02[304],bj_UNIT_FACING)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetTriggerUnit(),0)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitAddAbility(bj_lastCreatedUnit,'A0AP')
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,852119,GetTriggerUnit())
else
if(cU())then
call CreateNUnitsAtLoc(1,'h000',GetOwningPlayer(GetAttacker()),udg_locations02[304],bj_UNIT_FACING)
call SetUnitFacingToFaceUnitTimed(bj_lastCreatedUnit,GetTriggerUnit(),0)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitAddAbility(bj_lastCreatedUnit,'A0AO')
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852488,udg_locations02[304])
endif
endif
endif
call RemoveLocation(udg_locations02[304])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function fU takes nothing returns boolean
return(GetIssuedOrderId()==852178)and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_MECHANICAL))
endfunction
function FU takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o00P')
endfunction
function gU takes nothing returns boolean
return(UnitHasBuffBJ(GetTriggerUnit(),'B00I'))or(UnitHasBuffBJ(GetTriggerUnit(),'B00H'))or(UnitHasBuffBJ(GetTriggerUnit(),'B00J'))
endfunction
function GU takes nothing returns boolean
return(gU())
endfunction
function hU takes nothing returns nothing
if(FU())then
call UnitRemoveAbility(GetTriggerUnit(),'A009')
else
call UnitRemoveAbility(GetTriggerUnit(),'A02D')
endif
if(GU())then
call UnitRemoveAbility(GetTriggerUnit(),'B00H')
call UnitRemoveAbility(GetTriggerUnit(),'B00I')
call UnitRemoveAbility(GetTriggerUnit(),'B00J')
endif
endfunction
function HU takes nothing returns boolean
return(GetSpellAbilityId()=='A0AB')
endfunction
function jU takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetTriggerUnit(),(.25*GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
call SetUnitLifePercentBJ(GetSpellTargetUnit(),'d')
endfunction
function JU takes nothing returns boolean
return(GetSpellAbilityId()=='A0AA')
endfunction
function kU takes nothing returns nothing
set udg_unit155=GetTriggerUnit()
set udg_locations02[294]=GetUnitLoc(udg_unit155)
call PauseUnit(udg_unit155,true)
call SetUnitInvulnerable(udg_unit155,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit155,"spell two")
call CreateNUnitsAtLoc(1,'h01Y',GetOwningPlayer(udg_unit155),udg_locations02[294],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(10.)
call SetUnitInvulnerable(udg_unit155,false)
call PauseUnit(udg_unit155,false)
call ResetUnitAnimation(udg_unit155)
call RemoveLocation(udg_locations02[294])
set udg_unit155=null
endfunction
function KU takes nothing returns boolean
return(GetSpellAbilityId()=='A0AA')
endfunction
function lU takes nothing returns nothing
set udg_unit157=GetTriggerUnit()
set udg_locations02[295]=GetUnitLoc(udg_unit157)
call PauseUnit(udg_unit157,true)
call SetUnitInvulnerable(udg_unit157,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit157,"spell")
call CreateNUnitsAtLoc(1,'h01Y',GetOwningPlayer(udg_unit157),udg_locations02[295],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(10.)
call SetUnitInvulnerable(udg_unit157,false)
call ResetUnitAnimation(udg_unit157)
call RemoveLocation(udg_locations02[295])
set udg_unit157=null
endfunction
function LU takes nothing returns boolean
return(GetSpellAbilityId()=='A0AA')
endfunction
function mU takes nothing returns nothing
set udg_unit156=GetTriggerUnit()
set udg_locations02[296]=GetUnitLoc(udg_unit156)
call PauseUnit(udg_unit156,true)
call SetUnitInvulnerable(udg_unit156,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit156,"spell")
call CreateNUnitsAtLoc(1,'h01Y',GetOwningPlayer(udg_unit156),udg_locations02[296],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(10.)
call SetUnitInvulnerable(udg_unit156,false)
call ResetUnitAnimation(udg_unit156)
call RemoveLocation(udg_locations02[296])
set udg_unit156=null
endfunction
function MU takes nothing returns boolean
return(GetSpellAbilityId()=='A05X')
endfunction
function pU takes nothing returns nothing
set udg_unit154=GetTriggerUnit()
set udg_locations02[293]=GetUnitLoc(udg_unit154)
call PauseUnit(udg_unit154,true)
call ResetUnitAnimation(udg_unit154)
call SetUnitTimeScalePercent(udg_unit154,200.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TriggerSleepAction(.5)
call SetUnitAnimationByIndex(udg_unit154,5)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'h01X',GetOwningPlayer(udg_unit154),udg_locations02[293],bj_UNIT_FACING)
call TriggerSleepAction(.5)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,.0)
call UnitApplyTimedLifeBJ(14.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[293])
call TriggerRegisterUnitInRangeSimple(udg_trigger360,450.,udg_unit154)
call TriggerRegisterUnitEvent(udg_trigger361,udg_unit154,EVENT_UNIT_DEATH)
call EnableTrigger(udg_trigger360)
call EnableTrigger(udg_trigger361)
call TriggerSleepAction(15.)
call DisableTrigger(udg_trigger360)
call DisableTrigger(udg_trigger361)
call SetUnitTimeScalePercent(udg_unit154,100.)
call PauseUnit(udg_unit154,false)
set udg_unit154=null
endfunction
function PU takes nothing returns boolean
return(IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(udg_unit154)))
endfunction
function qU takes nothing returns nothing
set udg_locations02[293]=GetUnitLoc(GetTriggerUnit())
call UnitDamageTarget(udg_unit154,GetTriggerUnit(),(I2R(GetHeroStatBJ(2,udg_unit154,true))*100.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call AddSpecialEffectLocBJ(udg_locations02[293],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[293],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[293])
endfunction
function QU takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger360)
call SetUnitTimeScalePercent(udg_unit154,100.)
call PauseUnit(udg_unit154,false)
set udg_unit154=null
endfunction
function sU takes nothing returns boolean
return(GetSpellAbilityId()=='A014')
endfunction
function SU takes nothing returns boolean
return(IsUnitType(udg_unit152,UNIT_TYPE_HERO)!=null)
endfunction
function tU takes nothing returns nothing
set udg_unit152=GetSpellTargetUnit()
set udg_unit153=GetTriggerUnit()
call PauseUnit(udg_unit152,true)
call SetUnitInvulnerable(udg_unit152,true)
call SetUnitPathing(udg_unit152,false)
call UnitAddAbility(udg_unit152,'Amrf')
call SetUnitFlyHeight(udg_unit152,500.,10000.)
call SetUnitTimeScalePercent(udg_unit152,.0)
call CinematicFadeBJ(1,.8,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.,100.,100.,0)
set udg_locations02[288]=GetUnitLoc(udg_unit152)
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[289]=xB(udg_locations02[288],550.,(45.+(90.*I2R(bj_forLoopAIndex))))
call CreateNUnitsAtLocFacingLocBJ(1,'h003',GetOwningPlayer(udg_unit153),udg_locations02[289],udg_locations02[288])
call UnitApplyTimedLifeBJ(3.5,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[289])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations02[289]=xB(udg_locations02[288],187.5,30.)
set udg_locations02[290]=xB(udg_locations02[288],108.25,120.)
set udg_locations02[291]=xB(udg_locations02[288],187.5,210.)
set udg_locations02[292]=xB(udg_locations02[288],108.25,300.)
call AddLightningLoc("DRAM",udg_locations02[289],udg_locations02[290])
set udg_lightnings02[0]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[289]),GetLocationY(udg_locations02[289]),350.,GetLocationX(udg_locations02[290]),GetLocationY(udg_locations02[290]),350.)
call AddLightningLoc("DRAM",udg_locations02[290],udg_locations02[291])
set udg_lightnings02[1]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[290]),GetLocationY(udg_locations02[290]),350.,GetLocationX(udg_locations02[291]),GetLocationY(udg_locations02[291]),350.)
call AddLightningLoc("DRAM",udg_locations02[291],udg_locations02[292])
set udg_lightnings02[2]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[291]),GetLocationY(udg_locations02[291]),350.,GetLocationX(udg_locations02[292]),GetLocationY(udg_locations02[292]),350.)
call AddLightningLoc("DRAM",udg_locations02[292],udg_locations02[289])
set udg_lightnings02[3]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[292]),GetLocationY(udg_locations02[292]),350.,GetLocationX(udg_locations02[289]),GetLocationY(udg_locations02[289]),350.)
call AddLightningLoc("DRAM",udg_locations02[289],udg_locations02[290])
set udg_lightnings02[4]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[289]),GetLocationY(udg_locations02[289]),650.,GetLocationX(udg_locations02[290]),GetLocationY(udg_locations02[290]),650.)
call AddLightningLoc("DRAM",udg_locations02[290],udg_locations02[291])
set udg_lightnings02[5]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,false,GetLocationX(udg_locations02[290]),GetLocationY(udg_locations02[290]),650.,GetLocationX(udg_locations02[291]),GetLocationY(udg_locations02[291]),650.)
call AddLightningLoc("DRAM",udg_locations02[291],udg_locations02[292])
set udg_lightnings02[6]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[291]),GetLocationY(udg_locations02[291]),650.,GetLocationX(udg_locations02[292]),GetLocationY(udg_locations02[292]),650.)
call AddLightningLoc("DRAM",udg_locations02[292],udg_locations02[289])
set udg_lightnings02[7]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[292]),GetLocationY(udg_locations02[292]),650.,GetLocationX(udg_locations02[289]),GetLocationY(udg_locations02[289]),650.)
call AddLightningLoc("DRAM",udg_locations02[289],udg_locations02[289])
set udg_lightnings02[8]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[289]),GetLocationY(udg_locations02[289]),350.,GetLocationX(udg_locations02[289]),GetLocationY(udg_locations02[289]),650.)
call AddLightningLoc("DRAM",udg_locations02[290],udg_locations02[290])
set udg_lightnings02[9]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[290]),GetLocationY(udg_locations02[290]),350.,GetLocationX(udg_locations02[290]),GetLocationY(udg_locations02[290]),650.)
call AddLightningLoc("DRAM",udg_locations02[291],udg_locations02[291])
set udg_lightnings02[10]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[291]),GetLocationY(udg_locations02[291]),350.,GetLocationX(udg_locations02[291]),GetLocationY(udg_locations02[291]),650.)
call AddLightningLoc("DRAM",udg_locations02[292],udg_locations02[292])
set udg_lightnings02[11]=bj_lastCreatedLightning
call MoveLightningEx(bj_lastCreatedLightning,true,GetLocationX(udg_locations02[292]),GetLocationY(udg_locations02[292]),350.,GetLocationX(udg_locations02[292]),GetLocationY(udg_locations02[292]),650.)
call CinematicFadeBJ(0,.3,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.,100.,100.,0)
call TriggerSleepAction(3.)
if(SU())then
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit152),udg_locations02[288],0)
call RotateCameraAroundLocBJ(360.,udg_locations02[288],GetOwningPlayer(udg_unit152),1.)
endif
call TriggerSleepAction(3.)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit152),0)
call CinematicFadeBJ(1,.8,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.,0,0,0)
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=11
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyLightning(udg_lightnings02[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_unit152,100.)
call SetUnitFlyHeight(udg_unit152,.0,10000.)
call SetUnitAnimation(udg_unit152,"death")
call CreateNUnitsAtLoc(1,'h01W',GetOwningPlayer(udg_unit153),udg_locations02[288],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call CinematicFadeBJ(0,.3,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.,0,0,0)
call SetUnitInvulnerable(udg_unit152,false)
call TriggerSleepAction(.0)
call UnitRemoveAbility(udg_unit152,'Amrf')
call SetUnitPathing(udg_unit152,true)
call UnitDamageTarget(udg_unit153,udg_unit152,(I2R(GetHeroStatBJ(2,udg_unit153,true))*70.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call TriggerSleepAction(4.)
call PauseUnit(udg_unit152,false)
call ResetUnitAnimation(udg_unit152)
set udg_unit152=null
set udg_unit153=null
call RemoveLocation(udg_locations02[288])
call RemoveLocation(udg_locations02[289])
call RemoveLocation(udg_locations02[290])
call RemoveLocation(udg_locations02[291])
call RemoveLocation(udg_locations02[292])
endfunction
function TU takes nothing returns boolean
return(GetSpellAbilityId()=='A02H')
endfunction
function uU takes nothing returns nothing
set udg_unit151=GetTriggerUnit()
set udg_locations02[285]=GetUnitLoc(udg_unit151)
call PauseUnit(udg_unit151,true)
call SetUnitPathing(udg_unit151,false)
call SetUnitInvulnerable(udg_unit151,true)
call TriggerSleepAction(.1)
call SetUnitAnimationByIndex(udg_unit151,8)
call TriggerSleepAction(.5)
call SetUnitTimeScalePercent(udg_unit151,.0)
set udg_locations02[286]=xB(udg_locations02[285],520.,GetUnitFacing(udg_unit151))
set udg_locations02[287]=xB(udg_locations02[286],340.,GetUnitFacing(udg_unit151))
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_unit151),udg_locations02[286],GetUnitFacing(udg_unit151))
call ShowUnitHide(bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(11.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations02[287])
call RemoveLocation(udg_locations02[286])
call RemoveLocation(udg_locations02[287])
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[286]=xB(udg_locations02[285],(270.*I2R(bj_forLoopAIndex)),GetUnitFacing(udg_unit151))
set udg_locations02[287]=xB(udg_locations02[286],340.,GetUnitFacing(udg_unit151))
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_unit151),udg_locations02[286],GetUnitFacing(udg_unit151))
call SetUnitPathing(bj_lastCreatedUnit,false)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(11.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations02[287])
call RemoveLocation(udg_locations02[286])
call RemoveLocation(udg_locations02[287])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[286]=xB(udg_locations02[285],(270.*I2R(bj_forLoopAIndex)),(GetUnitFacing(udg_unit151)+25.))
set udg_locations02[287]=xB(udg_locations02[286],340.,(GetUnitFacing(udg_unit151)+25.))
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_unit151),udg_locations02[286],GetUnitFacing(udg_unit151))
call SetUnitPathing(bj_lastCreatedUnit,false)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(11.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations02[287])
call RemoveLocation(udg_locations02[286])
call RemoveLocation(udg_locations02[287])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[286]=xB(udg_locations02[285],(270.*I2R(bj_forLoopAIndex)),(GetUnitFacing(udg_unit151)-25.))
set udg_locations02[287]=xB(udg_locations02[286],340.,(GetUnitFacing(udg_unit151)-25.))
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_unit151),udg_locations02[286],GetUnitFacing(udg_unit151))
call SetUnitPathing(bj_lastCreatedUnit,false)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(11.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations02[287])
call RemoveLocation(udg_locations02[286])
call RemoveLocation(udg_locations02[287])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
call ResetUnitAnimation(udg_unit151)
call SetUnitTimeScalePercent(udg_unit151,100.)
call SetUnitPathing(udg_unit151,true)
call SetUnitInvulnerable(udg_unit151,false)
call PauseUnit(udg_unit151,false)
set udg_unit151=null
call RemoveLocation(udg_locations02[285])
endfunction
function UU takes nothing returns boolean
return(GetSpellAbilityId()=='A003')
endfunction
function wU takes nothing returns nothing
set udg_unit46=GetTriggerUnit()
set udg_locations02[165]=GetSpellTargetLoc()
call PauseUnit(udg_unit46,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit46,"Spell")
call PauseUnit(udg_unit46,false)
call CreateNUnitsAtLoc(1,'n006',GetOwningPlayer(udg_unit46),udg_locations02[165],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(12.,'BHwe',bj_lastCreatedUnit)
call SetUnitAnimation(bj_lastCreatedUnit,"Birth")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[166]=xB(udg_locations02[165],400.,(I2R(bj_forLoopAIndex)*36.))
call CreateNUnitsAtLoc(1,'n00A',GetOwningPlayer(udg_unit46),udg_locations02[166],bj_UNIT_FACING)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,851983,udg_locations02[165])
call UnitApplyTimedLifeBJ(12.,'BHwe',bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call RemoveLocation(udg_locations02[166])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[166]=xB(udg_locations02[165],400.,(I2R(bj_forLoopAIndex)*20.))
call CreateDestructableLoc('YTfc',udg_locations02[166],GetRandomReal(0,360),1,0)
set udg_destructables08[bj_forLoopAIndex]=bj_lastCreatedDestructable
call RemoveLocation(udg_locations02[166])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(15.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables08[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[165])
set udg_unit46=null
endfunction
function WU takes nothing returns boolean
return(GetSpellAbilityId()=='A08W')
endfunction
function yU takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='U003')
endfunction
function YU takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='E00J')
endfunction
function zU takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='H00F')
endfunction
function ZU takes nothing returns nothing
set udg_unit47=GetTriggerUnit()
set udg_unit48=GetSpellTargetUnit()
set udg_player01=GetOwningPlayer(udg_unit48)
if(zU())then
call SetPlayerAbilityAvailableBJ(false,'A09H',GetOwningPlayer(GetTriggerUnit()))
else
if(YU())then
call SetPlayerAbilityAvailableBJ(false,'A0CX',GetOwningPlayer(GetTriggerUnit()))
else
if(yU())then
call SetPlayerAbilityAvailableBJ(false,'A02S',GetOwningPlayer(GetTriggerUnit()))
endif
endif
endif
call PauseUnit(udg_unit47,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit47,"Spell")
call PauseUnit(udg_unit48,true)
call TriggerSleepAction(.5)
call DisplayTextToPlayer(udg_player01,0,0,((GetHeroProperName(udg_unit48)+("You are hit by "+GetHeroProperName(udg_unit47)))+(("'s"+GetObjectName('A08W'))+" |cFFFF0000, so you cannot do anything for 15 seconds.|r")))
call SetUnitOwner(udg_unit48,GetOwningPlayer(udg_unit47),true)
call PauseUnit(udg_unit48,false)
call EnableTrigger(udg_trigger366)
call TriggerRegisterUnitLifeEvent(udg_trigger366,udg_unit48,LESS_THAN_OR_EQUAL,1.)
call TriggerRegisterUnitLifeEvent(udg_trigger366,udg_unit47,LESS_THAN_OR_EQUAL,1.)
call TriggerSleepAction(20.)
call DisableTrigger(udg_trigger366)
call SetUnitOwner(udg_unit48,udg_player01,true)
call PauseUnit(udg_unit47,false)
call SetUnitAnimation(udg_unit47,"Stand")
set udg_unit47=null
set udg_unit48=null
endfunction
function vw takes nothing returns boolean
return(GetTriggerUnit()==udg_unit47)
endfunction
function ew takes nothing returns boolean
return(GetTriggerUnit()==udg_unit48)
endfunction
function xw takes nothing returns nothing
if(vw())then
call SetUnitOwner(udg_unit48,udg_player01,true)
call DisableTrigger(GetTriggeringTrigger())
endif
if(ew())then
call SetUnitOwner(udg_unit48,udg_player01,true)
call PauseUnit(udg_unit47,false)
call UnitDamageTarget(udg_unit48,udg_unit47,(GetUnitState(udg_unit47,UNIT_STATE_LIFE)+1),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_DEATH,WEAPON_TYPE_WHOKNOWS)
call DisableTrigger(GetTriggeringTrigger())
endif
endfunction
function ow takes nothing returns boolean
return(GetSpellAbilityId()=='A081')
endfunction
function rw takes nothing returns nothing
call PauseUnit(udg_unit280,true)
call SetUnitInvulnerable(udg_unit280,true)
call SetUnitPathing(udg_unit280,false)
call EnableTrigger(udg_trigger368)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger368)
call SetUnitInvulnerable(udg_unit280,false)
call SetUnitPathing(udg_unit280,true)
call PauseUnit(udg_unit280,false)
endfunction
function iw takes nothing returns nothing
call UnitDamageTarget(udg_unit280,GetEnumUnit(),(I2R(GetHeroInt(udg_unit280,true))*6.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function aw takes nothing returns nothing
set udg_locations02[204]=GetUnitLoc(udg_unit280)
set udg_locations02[205]=xB(udg_locations02[204],50.,GetUnitFacing(udg_unit280))
call SetUnitPositionLoc(udg_unit280,udg_locations02[205])
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(150.,udg_locations02[205]),function iw)
call CreateNUnitsAtLoc(1,'n00Q',GetOwningPlayer(udg_unit280),udg_locations02[205],GetUnitFacing(udg_unit280))
set udg_unit41=bj_lastCreatedUnit
call SetUnitPathing(udg_unit41,false)
call SetUnitVertexColorBJ(udg_unit41,'d','d','d',60.)
call SetUnitTimeScalePercent(udg_unit41,500.)
call UnitApplyTimedLifeBJ(.15,'BHwe',udg_unit41)
call RemoveLocation(udg_locations02[204])
call RemoveLocation(udg_locations02[205])
endfunction
function nw takes nothing returns boolean
return(GetSpellAbilityId()=='A0AU')
endfunction
function Vw takes nothing returns nothing
set udg_unit172=GetTriggerUnit()
set udg_unit173=GetSpellTargetUnit()
set udg_locations02[334]=GetUnitLoc(udg_unit172)
call CreateNUnitsAtLoc(1,'n00R',GetOwningPlayer(udg_unit172),udg_locations02[334],GetUnitFacing(udg_unit172))
call RemoveLocation(udg_locations02[334])
set udg_unit174=bj_lastCreatedUnit
call IssueTargetOrderById(udg_unit174,851971,udg_unit173)
call UnitRemoveAbility(udg_unit172,'A0AU')
call UnitAddAbility(udg_unit172,'A0AV')
call EnableTrigger(udg_trigger370)
call TriggerRegisterUnitEvent(udg_trigger370,udg_unit172,EVENT_UNIT_SPELL_EFFECT)
call SetPlayerAbilityAvailableBJ(false,'A08G',GetOwningPlayer(udg_unit172))
endfunction
function Ew takes nothing returns boolean
return(GetSpellAbilityId()=='A0AV')
endfunction
function Xw takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit172)))
endfunction
function Ow takes nothing returns nothing
call UnitDamageTarget(udg_unit172,GetEnumUnit(),30000.,true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function Rw takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[334]=GetUnitLoc(udg_unit172)
call CreateTextTagLocBJ("KA!",udg_locations02[334],0,30.,'d',.0,.0,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,.5)
call RemoveLocation(udg_locations02[334])
set udg_locations02[32]=GetUnitLoc(udg_unit174)
set udg_locations02[334]=xB(udg_locations02[32],10.,GetUnitFacing(udg_unit174))
call IssuePointOrderByIdLoc(udg_unit174,852040,udg_locations02[334])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(400.,udg_locations02[334],Condition(function Xw)),function Ow)
call CreateNUnitsAtLoc(1,'h028',GetOwningPlayer(udg_unit172),udg_locations02[334],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[334])
call RemoveLocation(udg_locations02[32])
call UnitRemoveAbility(udg_unit172,'A0AV')
call UnitAddAbility(udg_unit172,'A0AU')
call UnitModifySkillPoints(udg_unit172,1)
call SelectHeroSkill(udg_unit172,'A0AU')
call SetPlayerAbilityAvailableBJ(true,'A08G',GetOwningPlayer(udg_unit172))
set udg_unit172=null
set udg_unit173=null
set udg_unit174=null
endfunction
function Iw takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A0AU',GetTriggerUnit())==0)
endfunction
function Aw takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A0AY',GetTriggerUnit())==0)
endfunction
function Nw takes nothing returns nothing
if(Iw())then
call UnitRemoveAbility(GetTriggerUnit(),'A0AV')
call UnitAddAbility(GetTriggerUnit(),'A0AU')
call UnitModifySkillPoints(GetTriggerUnit(),1)
call SelectHeroSkill(GetTriggerUnit(),'A0AU')
endif
if(Aw())then
call UnitRemoveAbility(GetTriggerUnit(),'A0AV')
call UnitAddAbility(GetTriggerUnit(),'A0AY')
call UnitModifySkillPoints(GetTriggerUnit(),1)
call SelectHeroSkill(GetTriggerUnit(),'A0AY')
endif
endfunction
function bw takes nothing returns boolean
return(GetSpellAbilityId()=='A0AW')
endfunction
function Bw takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit249)))
endfunction
function cw takes nothing returns nothing
call UnitDamageTarget(udg_unit249,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit249,true))*5.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function Cw takes nothing returns nothing
set udg_locations02[335]=GetSpellTargetLoc()
call CreateNUnitsAtLoc(1,'u005',GetOwningPlayer(GetTriggerUnit()),udg_locations02[335],275.)
set udg_unit175=bj_lastCreatedUnit
call SetUnitFlyHeight(udg_unit175,.0,500.)
call TriggerSleepAction(1.)
call RemoveUnit(udg_unit175)
call CreateNUnitsAtLoc(1,'h00S',GetOwningPlayer(udg_unit249),udg_locations02[335],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call IssueImmediateOrderById(bj_lastCreatedUnit,852096)
set udg_integers06[30]=1
loop
exitwhen udg_integers06[30]>5
set udg_integers06[29]=1
loop
exitwhen udg_integers06[29]>4
set udg_locations02[336]=xB(udg_locations02[335],GetRandomReal(0,1000.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'h028',GetOwningPlayer(GetTriggerUnit()),udg_locations02[336],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h026',GetOwningPlayer(GetTriggerUnit()),udg_locations02[336],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(.01)
call AddSpecialEffectLocBJ(udg_locations02[336],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[336])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(1000.,udg_locations02[335],Condition(function Bw)),function cw)
set udg_integers06[29]=udg_integers06[29]+1
endloop
set udg_integers06[30]=udg_integers06[30]+1
endloop
call RemoveLocation(udg_locations02[335])
endfunction
function dw takes nothing returns boolean
return(GetSpellAbilityId()=='A02K')
endfunction
function Dw takes nothing returns nothing
set udg_locations02[337]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[338]=xB(udg_locations02[337],GetRandomReal(0,600.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'n007',GetOwningPlayer(GetTriggerUnit()),udg_locations02[338],bj_UNIT_FACING)
call RemoveLocation(udg_locations02[338])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[337])
endfunction
function fw takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='h01I')
endfunction
function Fw takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit177)))
endfunction
function gw takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(udg_unit249))==MAP_CONTROL_COMPUTER)
endfunction
function Gw takes nothing returns nothing
set udg_unit176=GetSummonedUnit()
set udg_unit177=GetSummoningUnit()
set udg_locations02[339]=GetUnitLoc(udg_unit177)
set udg_locations02[340]=GetUnitLoc(udg_unit176)
call PauseUnit(udg_unit176,true)
call PauseUnit(udg_unit177,true)
call SetUnitInvulnerable(udg_unit177,true)
call SetPlayerAbilityAvailableBJ(false,'A08G',GetOwningPlayer(udg_unit176))
call TriggerSleepAction(.1)
call SetUnitTimeScalePercent(udg_unit176,200.)
call SetUnitTimeScalePercent(udg_unit177,150.)
call SetUnitAnimation(udg_unit177,"spell")
call TriggerSleepAction(1.5)
call SetUnitAnimation(udg_unit176,"spell four")
call SetUnitAnimation(udg_unit177,"spell two")
call TriggerSleepAction(1.)
call CreateTextTagLocBJ("KA!",udg_locations02[339],0,30.,'d',.0,.0,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,.5)
call CreateNUnitsAtLoc(1,'h01D',GetOwningPlayer(udg_unit176),udg_locations02[340],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.,'BHwe',bj_lastCreatedUnit)
set udg_group08=XB(1500.,udg_locations02[340],Condition(function Fw))
call SetUnitTimeScalePercent(udg_unit177,100.)
call PauseUnit(udg_unit177,false)
call SetUnitInvulnerable(udg_unit177,false)
call RemoveUnit(udg_unit176)
set udg_unit176=null
call RemoveLocation(udg_locations02[339])
call RemoveLocation(udg_locations02[340])
call UnitRemoveAbility(udg_unit177,'A0AY')
call UnitAddAbility(udg_unit177,'A0AZ')
call EnableTrigger(udg_trigger375)
if(gw())then
call TriggerSleepAction(1.)
call IssueImmediateOrderById(udg_unit249,852526)
endif
endfunction
function hw takes nothing returns boolean
return(GetSpellAbilityId()=='A0AZ')
endfunction
function Hw takes nothing returns nothing
set udg_locations02[339]=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_locations02[339],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[339],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_unit177,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit177,true))*60.),true,false,ATTACK_TYPE_HERO,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call RemoveLocation(udg_locations02[339])
endfunction
function jw takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[340]=GetUnitLoc(udg_unit177)
call CreateTextTagLocBJ("KA!",udg_locations02[340],0,30.,'d',.0,.0,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,.5)
call RemoveLocation(udg_locations02[340])
call ForGroupBJ(udg_group08,function Hw)
call UnitRemoveAbility(udg_unit177,'A0AZ')
call UnitAddAbility(udg_unit177,'A0AY')
call UnitModifySkillPoints(udg_unit176,1)
call SelectHeroSkill(udg_unit177,'A0AY')
call GroupClear(udg_group08)
call DestroyGroup(udg_group08)
call SetPlayerAbilityAvailableBJ(true,'A08G',GetOwningPlayer(udg_unit176))
set udg_unit177=null
endfunction
function Jw takes nothing returns boolean
return(GetSpellAbilityId()=='A08E')
endfunction
function kw takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit111)))
endfunction
function Kw takes nothing returns nothing
set udg_locations02[193]=GetUnitLoc(GetEnumUnit())
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(udg_unit111),udg_locations02[193],bj_UNIT_FACING)
set udg_unit112=bj_lastCreatedUnit
call SetUnitFacingToFaceUnitTimed(udg_unit112,GetEnumUnit(),0)
call ShowUnitHide(udg_unit112)
call IssueTargetOrderById(udg_unit112,852171,GetEnumUnit())
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit112)
call RemoveLocation(udg_locations02[193])
endfunction
function lw takes nothing returns nothing
set udg_unit111=GetTriggerUnit()
set udg_locations02[192]=GetSpellTargetLoc()
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(800.,udg_locations02[192],Condition(function kw)),function Kw)
call RemoveLocation(udg_locations02[192])
set udg_unit111=null
set udg_unit112=null
endfunction
function Lw takes nothing returns boolean
return(GetSpellAbilityId()=='A04H')
endfunction
function mw takes nothing returns nothing
set udg_unit65=GetTriggerUnit()
set udg_unit66=GetSpellTargetUnit()
call PauseUnit(udg_unit65,true)
call SetUnitInvulnerable(udg_unit65,true)
call SetUnitPathing(udg_unit65,false)
call SetUnitAnimationByIndex(udg_unit65,3)
set udg_locations02[214]=GetUnitLoc(udg_unit65)
set udg_locations02[215]=xB(udg_locations02[214],120.,(GetUnitFacing(udg_unit65)-90.))
call AddLightningLoc("CLPB",udg_locations02[215],udg_locations02[215])
set udg_lightning01=bj_lastCreatedLightning
call AddSpecialEffectTargetUnitBJ("hand left",udg_unit65,"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
set udg_effects01['w']=bj_lastCreatedEffect
call TriggerSleepAction(1.)
call SetUnitAnimation(udg_unit65,"throw")
call EnableTrigger(udg_trigger378)
endfunction
function Mw takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',udg_unit66)==0)
endfunction
function pw takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[216],udg_locations02[217])<=80.)
endfunction
function Pw takes nothing returns nothing
set udg_locations02[216]=GetUnitLoc(udg_unit65)
set udg_locations02[217]=GetUnitLoc(udg_unit66)
if(pw())then
call RemoveLocation(udg_locations02[214])
call RemoveLocation(udg_locations02[215])
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_unit66,"death")
call SetUnitAnimationByIndex(udg_unit65,5)
call SetUnitPathing(udg_unit66,false)
set udg_locations02[217]=GetUnitLoc(udg_unit66)
call CreateNUnitsAtLoc(1,'o004',GetOwningPlayer(udg_unit65),udg_locations02[217],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BTLF',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h01D',GetOwningPlayer(udg_unit65),udg_locations02[217],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BTLF',bj_lastCreatedUnit)
call DestroyLightning(udg_lightning01)
call AddSpecialEffectLocBJ(udg_locations02[217],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[217])
set udg_integer18=0
if(Mw())then
call PauseUnit(udg_unit66,true)
call UnitAddAbility(udg_unit66,'Amrf')
call SetUnitAnimation(udg_unit66,"death")
set udg_locations02[214]=GetUnitLoc(udg_unit65)
call EnableTrigger(udg_trigger379)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger379)
call RemoveLocation(udg_locations02[214])
call UnitRemoveAbility(udg_unit66,'Amrf')
set udg_locations02[217]=GetUnitLoc(udg_unit66)
call AddSpecialEffectLocBJ(udg_locations02[217],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[217])
else
set udg_locations02[217]=GetUnitLoc(udg_unit66)
call CreateTextTagLocBJ("Countered!",udg_locations02[217],0,10,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[217])
endif
call TriggerSleepAction(1.)
call DestroyEffect(udg_effects01['w'])
set udg_integer18=0
call PauseUnit(udg_unit65,false)
call SetUnitInvulnerable(udg_unit65,false)
call SetUnitPathing(udg_unit65,true)
call SetUnitPathing(udg_unit66,true)
call PauseUnit(udg_unit66,false)
call UnitDamageTarget(udg_unit65,udg_unit66,(I2R(GetHeroStatBJ(2,udg_unit65,true))*70.),true,false,ATTACK_TYPE_SIEGE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call ResetUnitAnimation(udg_unit66)
set udg_unit65=null
set udg_unit66=null
else
set udg_locations02[228]=xB(udg_locations02[216],30.,AngleBetweenPoints(udg_locations02[216],udg_locations02[217]))
set udg_locations02[229]=xB(udg_locations02[216],120.,(GetUnitFacing(udg_unit65)-90.))
call MoveLightningLoc(udg_lightning01,udg_locations02[215],udg_locations02[229])
call SetUnitPositionLocFacingLocBJ(udg_unit65,udg_locations02[228],udg_locations02[217])
call AddSpecialEffectLocBJ(udg_locations02[228],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[228])
call RemoveLocation(udg_locations02[229])
endif
call RemoveLocation(udg_locations02[216])
call RemoveLocation(udg_locations02[217])
endfunction
function qw takes nothing returns nothing
set udg_locations02[217]=GetUnitLoc(udg_unit66)
set udg_locations02[230]=xB(udg_locations02[217],10.,GetUnitFacing(udg_unit65))
set udg_integer18=(udg_integer18+1)
call SetUnitPositionLoc(udg_unit66,udg_locations02[230])
call SetUnitFlyHeight(udg_unit66,((-.6*Pow(I2R(udg_integer18),2.))+(30.*I2R(udg_integer18))),10000.)
call RemoveLocation(udg_locations02[230])
set udg_locations02[230]=xB(udg_locations02[217],GetRandomReal(0,300.),GetRandomReal(0,360.))
call AddSpecialEffectLocBJ(udg_locations02[230],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[217])
call RemoveLocation(udg_locations02[230])
endfunction
function Qw takes nothing returns boolean
return(GetSpellAbilityId()=='A0BQ')
endfunction
function sw takes nothing returns nothing
set udg_unit37=GetTriggerUnit()
set udg_unit38=GetSpellTargetUnit()
call PauseUnit(udg_unit37,true)
call SetUnitInvulnerable(udg_unit37,true)
call SetUnitPathing(udg_unit37,false)
call SetUnitAnimationByIndex(udg_unit37,9)
set udg_locations02[266]=GetUnitLoc(udg_unit37)
set udg_locations02[267]=xB(udg_locations02[266],50.,(GetUnitFacing(udg_unit37)-90.))
call AddLightningLoc("CLPB",udg_locations02[267],udg_locations02[267])
set udg_lightning02=bj_lastCreatedLightning
call AddSpecialEffectTargetUnitBJ("hand left",udg_unit37,"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
set udg_effects01['x']=bj_lastCreatedEffect
call AddSpecialEffectLocBJ(udg_locations02[266],"Abilities\\Spells\\Orc\\Purge\\PurgeBuffTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call TriggerSleepAction(1.)
call SetUnitAnimationByIndex(udg_unit37,10)
call EnableTrigger(udg_trigger381)
endfunction
function Sw takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',udg_unit38)==0)
endfunction
function tw takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[206],udg_locations02[207])<=80.)
endfunction
function Tw takes nothing returns nothing
set udg_locations02[206]=GetUnitLoc(udg_unit37)
set udg_locations02[207]=GetUnitLoc(udg_unit38)
if(tw())then
call RemoveLocation(udg_locations02[266])
call RemoveLocation(udg_locations02[267])
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_unit38,"death")
call SetUnitAnimationByIndex(udg_unit37,2)
call SetUnitPathing(udg_unit38,false)
set udg_locations02[207]=GetUnitLoc(udg_unit38)
call CreateNUnitsAtLoc(1,'o004',GetOwningPlayer(udg_unit37),udg_locations02[207],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BTLF',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h01D',GetOwningPlayer(udg_unit37),udg_locations02[207],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.,'BTLF',bj_lastCreatedUnit)
call DestroyLightning(udg_lightning02)
call AddSpecialEffectLocBJ(udg_locations02[207],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[207])
set udg_real01=.0
if(Sw())then
call PauseUnit(udg_unit38,true)
call UnitAddAbility(udg_unit38,'Amrf')
call SetUnitAnimation(udg_unit38,"death")
set udg_locations02[266]=GetUnitLoc(udg_unit37)
call EnableTrigger(udg_trigger382)
call TriggerSleepAction(1.)
call DisableTrigger(udg_trigger382)
call RemoveLocation(udg_locations02[266])
call UnitRemoveAbility(udg_unit38,'Amrf')
set udg_locations02[207]=GetUnitLoc(udg_unit38)
call AddSpecialEffectLocBJ(udg_locations02[207],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[207])
else
set udg_locations02[207]=GetUnitLoc(udg_unit38)
call CreateTextTagLocBJ("Countered!",udg_locations02[207],0,10,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[207])
endif
call TriggerSleepAction(1.)
call ResetUnitAnimation(udg_unit37)
call DestroyEffect(udg_effects01['x'])
set udg_real01=.0
call PauseUnit(udg_unit37,false)
call PauseUnit(udg_unit38,false)
call SetUnitInvulnerable(udg_unit37,false)
call SetUnitPathing(udg_unit37,true)
call SetUnitPathing(udg_unit38,true)
call UnitDamageTarget(udg_unit37,udg_unit38,(I2R(GetHeroStatBJ(2,udg_unit37,true))*80.),true,false,ATTACK_TYPE_SIEGE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call ResetUnitAnimation(udg_unit38)
set udg_unit37=null
set udg_unit38=null
call RemoveLocation(udg_locations02[207])
call RemoveLocation(udg_locations02[267])
else
set udg_locations02[208]=xB(udg_locations02[206],30.,AngleBetweenPoints(udg_locations02[206],udg_locations02[207]))
set udg_locations02[268]=xB(udg_locations02[206],50.,(GetUnitFacing(udg_unit37)-90.))
call MoveLightningLoc(udg_lightning02,udg_locations02[267],udg_locations02[268])
call SetUnitPositionLocFacingLocBJ(udg_unit37,udg_locations02[208],udg_locations02[207])
call AddSpecialEffectLocBJ(udg_locations02[208],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[208])
call RemoveLocation(udg_locations02[268])
endif
call RemoveLocation(udg_locations02[206])
call RemoveLocation(udg_locations02[207])
endfunction
function uw takes nothing returns nothing
set udg_locations02[207]=GetUnitLoc(udg_unit38)
set udg_locations02[269]=xB(udg_locations02[207],10.,GetUnitFacing(udg_unit37))
set udg_real01=(udg_real01+1)
call SetUnitPositionLoc(udg_unit38,udg_locations02[269])
call SetUnitFlyHeight(udg_unit38,((-.6*Pow(udg_real01,2.))+(30.*udg_real01)),10000.)
call RemoveLocation(udg_locations02[269])
set udg_locations02[269]=xB(udg_locations02[207],GetRandomReal(0,300.),GetRandomReal(0,360.))
call AddSpecialEffectLocBJ(udg_locations02[269],"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[207])
call RemoveLocation(udg_locations02[269])
endfunction
function Uw takes nothing returns boolean
return(GetSpellAbilityId()=='A05Q')
endfunction
function ww takes nothing returns nothing
set udg_unit39=GetTriggerUnit()
call PauseUnit(udg_unit39,true)
call SetUnitInvulnerable(udg_unit39,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit39,"spell")
call TriggerSleepAction(.5)
set udg_locations02[169]=GetUnitLoc(udg_unit39)
set udg_locations02[170]=xB(udg_locations02[169],100.,GetUnitFacing(udg_unit39))
call CreateNUnitsAtLoc(1,'h013',GetOwningPlayer(udg_unit39),udg_locations02[170],GetUnitFacing(udg_unit39))
set udg_unit40=bj_lastCreatedUnit
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[284]=xB(udg_locations02[169],(150.*I2R(bj_forLoopAIndex)),GetUnitFacing(udg_unit39))
call CreateUbersplatBJ(udg_locations02[284],"DHLB",'d','d','d',0,false,false)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
call ShowUbersplat(bj_lastCreatedUbersplat,true)
call RemoveLocation(udg_locations02[284])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger384)
call TriggerSleepAction(6.)
call DisableTrigger(udg_trigger384)
call SetUnitAnimation(udg_unit39,"stand")
call RemoveUnit(udg_unit40)
call SetUnitInvulnerable(udg_unit39,false)
call PauseUnit(udg_unit39,false)
call SetUnitTimeScalePercent(udg_unit39,100.)
set udg_unit39=null
set udg_unit40=null
call RemoveLocation(udg_locations02[169])
call RemoveLocation(udg_locations02[170])
endfunction
function Ww takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),'B00G'))and(GetUnitAbilityLevelSwapped('Avul',GetEnumUnit())==0)and(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit39)))
endfunction
function yw takes nothing returns nothing
if(Ww())then
set udg_locations02[281]=GetUnitLoc(GetEnumUnit())
set udg_locations02[282]=xB(udg_locations02[281],1700.,GetUnitFacing(udg_unit39))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[282])
call AddSpecialEffectLocBJ(udg_locations02[282],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call UnitDamageTarget(udg_unit39,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit39,true))*35.),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitAnimation(GetEnumUnit(),"death")
call RemoveLocation(udg_locations02[281])
call RemoveLocation(udg_locations02[282])
endif
endfunction
function Yw takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_unit39),udg_locations02[169],GetUnitFacing(udg_unit39))
set udg_unit147=bj_lastCreatedUnit
call ShowUnitHide(udg_unit147)
call SetUnitPathing(udg_unit147,false)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit147)
call IssuePointOrderByIdLoc(udg_unit147,852555,udg_locations02[170])
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(1600.,udg_locations02[169]),function yw)
endfunction
function zw takes nothing returns boolean
return(GetSpellAbilityId()=='A01H')
endfunction
function Zw takes nothing returns nothing
set udg_locations02[277]=GetSpellTargetLoc()
set udg_locations02[278]=GetUnitLoc(GetTriggerUnit())
set udg_unit146=GetTriggerUnit()
call PauseUnit(udg_unit146,true)
call EnableTrigger(udg_trigger386)
call TriggerSleepAction(.5)
call DisableTrigger(udg_trigger386)
call PauseUnit(udg_unit146,false)
set udg_unit146=null
call RemoveLocation(udg_locations02[277])
call RemoveLocation(udg_locations02[278])
endfunction
function vW takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit146)))
endfunction
function eW takes nothing returns nothing
call UnitDamageTarget(udg_unit266,GetEnumUnit(),((DistanceBetweenPoints(udg_locations02[277],udg_locations02[278])*I2R(GetHeroInt(udg_unit266,true)))/160.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function xW takes nothing returns nothing
set udg_locations02[280]=GetUnitLoc(udg_unit146)
set udg_locations02[279]=xB(udg_locations02[280],(DistanceBetweenPoints(udg_locations02[277],udg_locations02[278])/25.),GetUnitFacing(udg_unit146))
call AddSpecialEffectLocBJ(udg_locations02[279],"Abilities\\Spells\\Undead\\DeathandDecay\\DeathandDecayTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call SetUnitPositionLocFacingLocBJ(udg_unit146,udg_locations02[279],udg_locations02[277])
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(100.,udg_locations02[279],Condition(function vW)),function eW)
call RemoveLocation(udg_locations02[280])
call RemoveLocation(udg_locations02[279])
endfunction
function oW takes nothing returns boolean
return(GetSpellAbilityId()=='A015')
endfunction
function rW takes nothing returns boolean
return(RectContainsUnit(udg_rect05,udg_unit278))
endfunction
function iW takes nothing returns boolean
return(RectContainsUnit(udg_rect05,udg_unit279))
endfunction
function aW takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit144)==false)and(IsUnitAliveBJ(udg_unit145)==false)
endfunction
function nW takes nothing returns nothing
set udg_unit143=GetTriggerUnit()
set udg_locations02[272]=GetUnitLoc(udg_unit143)
set udg_locations02[273]=xB(udg_locations02[272],500.,(GetUnitFacing(udg_unit143)+30.))
set udg_locations02[275]=xB(udg_locations02[272],530.,(GetUnitFacing(udg_unit143)-30.))
call SetPlayerAbilityAvailableBJ(false,'A015',GetOwningPlayer(udg_unit143))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit143),GetUnitLoc(udg_unit143),.5)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit143),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-200.),1.)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit143),CAMERA_FIELD_ROTATION,(GetUnitFacing(udg_unit143)-180.),.0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit143),CAMERA_FIELD_ANGLE_OF_ATTACK,-15.,.5)
call PauseUnit(udg_unit143,true)
call SetUnitInvulnerable(udg_unit143,true)
call TriggerSleepAction(.1)
call SetUnitAnimation(udg_unit143,"spell")
call TriggerSleepAction(1.)
call CreateNUnitsAtLoc(1,'h01P',GetOwningPlayer(udg_unit143),udg_locations02[273],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h01U',GetOwningPlayer(udg_unit143),udg_locations02[273],(GetUnitFacing(udg_unit143)+40.))
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(.3)
call CreateNUnitsAtLoc(1,'h01P',GetOwningPlayer(udg_unit143),udg_locations02[275],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.,'BHwe',bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h01U',GetOwningPlayer(udg_unit143),udg_locations02[275],(GetUnitFacing(udg_unit143)+40.))
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(1.)
call SetUnitAnimation(udg_unit143,"spell")
if(rW())then
call CreateNUnitsAtLoc(1,'N00D',GetOwningPlayer(udg_unit143),udg_locations02[273],GetUnitFacing(udg_unit143))
set udg_unit144=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(180.,'BHwe',bj_lastCreatedUnit)
call SetHeroLevelBJ(udg_unit144,'d',false)
call SelectHeroSkill(udg_unit144,'A010')
call SelectHeroSkill(udg_unit144,'A049')
call SelectHeroSkill(udg_unit144,'A00X')
call SelectHeroSkill(udg_unit144,'A01M')
call SelectHeroSkill(udg_unit144,'A07U')
call AddSpecialEffectLocBJ(udg_locations02[273],"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
else
call CreateTextTagLocBJ("Cannot summon this spirit!",udg_locations02[273],0,10,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call SetUnitManaPercentBJ(udg_unit143,(GetUnitManaPercent(udg_unit143)+30.))
endif
call TriggerSleepAction(1.)
call SetUnitAnimation(udg_unit143,"spell")
if(iW())then
call CreateNUnitsAtLoc(1,'N00B',GetOwningPlayer(udg_unit143),udg_locations02[275],GetUnitFacing(udg_unit143))
set udg_unit145=bj_lastCreatedUnit
call UnitApplyTimedLifeBJ(180.,'BHwe',bj_lastCreatedUnit)
call SetHeroLevelBJ(udg_unit145,'d',false)
call SelectHeroSkill(udg_unit145,'A0BC')
call SelectHeroSkill(udg_unit145,'A01L')
call SelectHeroSkill(udg_unit145,'A05S')
call SelectHeroSkill(udg_unit145,'A0BK')
call SelectHeroSkill(udg_unit145,'A06L')
call UnitRemoveAbility(udg_unit145,'A06D')
call AddSpecialEffectLocBJ(udg_locations02[275],"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
else
call CreateTextTagLocBJ("Cannot summon this spirit!",udg_locations02[275],0,10,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call SetUnitManaPercentBJ(udg_unit143,(GetUnitManaPercent(udg_unit143)+30.))
endif
call TriggerSleepAction(1.)
call SetUnitAnimation(udg_unit143,"spell")
if(aW())then
call SetPlayerAbilityAvailableBJ(true,'A015',GetOwningPlayer(udg_unit143))
call SetUnitInvulnerable(udg_unit143,false)
call PauseUnit(udg_unit143,false)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit143),0)
call ResetUnitAnimation(udg_unit143)
call RemoveLocation(udg_locations02[272])
call RemoveLocation(udg_locations02[273])
call RemoveLocation(udg_locations02[275])
set udg_unit143=null
return
else
call TriggerRegisterUnitEvent(udg_trigger388,udg_unit144,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger388,udg_unit145,EVENT_UNIT_DEATH)
call EnableTrigger(udg_trigger388)
call SetUnitInvulnerable(udg_unit143,false)
call PauseUnit(udg_unit143,false)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit143),0)
call ResetUnitAnimation(udg_unit143)
call RemoveLocation(udg_locations02[272])
call RemoveLocation(udg_locations02[273])
call RemoveLocation(udg_locations02[274])
call RemoveLocation(udg_locations02[275])
endif
endfunction
function VW takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit144)==false)and(IsUnitAliveBJ(udg_unit145)==false)
endfunction
function EW takes nothing returns nothing
set udg_locations02[276]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations02[276],"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveUnit(GetTriggerUnit())
call RemoveLocation(udg_locations02[276])
if(VW())then
call DisableTrigger(GetTriggeringTrigger())
call SetPlayerAbilityAvailableBJ(true,'A015',GetOwningPlayer(udg_unit143))
set udg_unit143=null
set udg_unit144=null
set udg_unit145=null
return
endif
endfunction
function XW takes nothing returns boolean
return(GetSpellAbilityId()=='A01G')
endfunction
function OW takes nothing returns nothing
set udg_unit09=GetTriggerUnit()
set udg_locations02[218]=GetUnitLoc(udg_unit09)
call TriggerSleepAction(.5)
call PauseUnit(udg_unit09,true)
call SetUnitInvulnerable(udg_unit09,true)
call SetUnitAnimation(udg_unit09,"death")
call TriggerSleepAction(.1)
call SetUnitTimeScalePercent(udg_unit09,.0)
call CreateTextTagLocBJ("Erg!!!",udg_locations02[218],0,15.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call TriggerSleepAction(1.5)
call SetUnitTimeScalePercent(udg_unit09,100.)
call ResetUnitAnimation(udg_unit09)
call SetUnitPathing(udg_unit09,false)
call AddSpecialEffectTargetUnitBJ("head",udg_unit09,"Abilities\\Weapons\\ChimaeraAcidMissile\\ChimaeraAcidMissile.mdl")
set udg_effects01['i']=bj_lastCreatedEffect
call CreateNUnitsAtLoc(1,'h01S',GetOwningPlayer(udg_unit09),GetUnitLoc(udg_unit09),(GetUnitFacing(udg_unit09)-90.))
set udg_unit22=bj_lastCreatedUnit
call SetUnitPathing(udg_unit22,false)
call SetUnitFlyHeight(udg_unit22,160.,15.)
call CreateNUnitsAtLoc(1,'h01T',GetOwningPlayer(udg_unit09),xB(udg_locations02[218],30.,230.),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.,'BHwe',bj_lastCreatedUnit)
call TriggerSleepAction(8.)
call SetUnitAnimation(udg_unit09,"death")
call SetUnitFlyHeight(udg_unit22,.0,700.)
call TriggerSleepAction(1.)
call ShowUnitHide(udg_unit09)
call AddSpecialEffectLocBJ(udg_locations02[218],"Objects\\Spawnmodels\\Demon\\DemonLargeDeathExplode\\DemonLargeDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[218])
call ResetUnitAnimation(udg_unit09)
call SetUnitFacing(udg_unit09,GetUnitFacing(udg_unit22))
call ShowUnitShow(udg_unit09)
call SetUnitInvulnerable(udg_unit09,false)
call RemoveUnit(udg_unit22)
call DestroyEffect(udg_effects01['i'])
call PauseUnit(udg_unit09,false)
call SetUnitLifePercentBJ(udg_unit09,'d')
set udg_unit22=null
set udg_unit09=null
endfunction
function RW takes nothing returns boolean
return(GetSpellAbilityId()=='A0A8')
endfunction
function IW takes nothing returns nothing
set udg_integer12=0
set udg_unit142=GetTriggerUnit()
set udg_unit149=GetSpellTargetUnit()
set udg_locations02[281]=GetUnitLoc(udg_unit142)
set udg_locations02[282]=GetUnitLoc(udg_unit149)
set udg_real18=DistanceBetweenPoints(udg_locations02[281],udg_locations02[282])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit149),GetUnitLoc(GetSpellTargetUnit()),0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit149),CAMERA_FIELD_ANGLE_OF_ATTACK,15.,.0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit149),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)+500.),.0)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit149),CAMERA_FIELD_ZOFFSET,550.,.0)
call PauseUnit(udg_unit142,true)
call SetUnitInvulnerable(udg_unit142,true)
call ShowUnitHide(udg_unit142)
call CreateNUnitsAtLoc(1,'h01R',GetOwningPlayer(udg_unit142),udg_locations02[281],GetUnitFacing(udg_unit142))
set udg_unit148=bj_lastCreatedUnit
call SetUnitPathing(udg_unit148,false)
call PauseUnit(udg_unit148,true)
call SetUnitInvulnerable(udg_unit148,true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o00K',GetOwningPlayer(udg_unit142),udg_locations02[281],bj_UNIT_FACING)
set udg_units03[bj_forLoopAIndex]=bj_lastCreatedUnit
call ShowUnitHide(udg_units03[bj_forLoopAIndex])
call SetUnitPathing(udg_units03[bj_forLoopAIndex],false)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger391)
call EnableTrigger(udg_trigger392)
endfunction
function AW takes nothing returns boolean
return(udg_integer12<=25)
endfunction
function NW takes nothing returns boolean
return(udg_integer12==25)
endfunction
function bW takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit142)))
endfunction
function BW takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"death")
call UnitDamageTarget(udg_unit142,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit142,true))*60.),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function cW takes nothing returns boolean
return(udg_integer12==50)
endfunction
function CW takes nothing returns nothing
set udg_integer12=(udg_integer12+1)
set udg_locations02[281]=GetUnitLoc(udg_unit148)
set udg_locations02[283]=xB(udg_locations02[281],100.,GetUnitFacing(udg_unit148))
call CreateNUnitsAtLoc(1,'h01R',GetOwningPlayer(udg_unit142),udg_locations02[281],GetUnitFacing(udg_unit148))
set udg_unit150=bj_lastCreatedUnit
call SetUnitPathing(udg_unit150,false)
call SetUnitVertexColorBJ(udg_unit150,'d','d','d',60.)
call SetUnitFlyHeight(udg_unit150,GetUnitFlyHeight(udg_unit148),1000000.)
call UnitApplyTimedLifeBJ(.1,'BHwe',udg_unit150)
if(AW())then
set udg_locations02[282]=xB(udg_locations02[281],(udg_real18/65.),GetUnitFacing(udg_unit142))
call SetUnitFlyHeight(udg_unit148,(GetUnitFlyHeight(udg_unit148)+30.),10000.)
call SetUnitPositionLocFacingBJ(udg_unit148,udg_locations02[282],GetUnitFacing(udg_unit142))
else
set udg_locations02[282]=xB(udg_locations02[281],(udg_real18/35.),GetUnitFacing(udg_unit142))
call SetUnitFlyHeight(udg_unit148,(GetUnitFlyHeight(udg_unit148)-35.),10000.)
call SetUnitPositionLocFacingBJ(udg_unit148,udg_locations02[282],GetUnitFacing(udg_unit142))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLoc(udg_units03[bj_forLoopAIndex],udg_locations02[283])
call SetUnitFlyHeight(udg_units03[bj_forLoopAIndex],(GetUnitFlyHeight(udg_unit148)-20.),10000.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
if(NW())then
call SetUnitAnimation(udg_unit148,"Spell Dissipate")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ShowUnitShow(udg_units03[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
if(cW())then
call DisableTrigger(GetTriggeringTrigger())
set udg_integer12=0
call CameraSetEQNoiseForPlayer(Player(0),3)
call ResetToGameCamera(.0)
call AddSpecialEffectLocBJ(udg_locations02[281],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[282]=xB(udg_locations02[281],300.,I2R(udg_integer12))
call AddSpecialEffectLocBJ(udg_locations02[282],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set udg_integer12=(udg_integer12+60)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(350.,udg_locations02[281],Condition(function bW)),function BW)
call TriggerSleepAction(.5)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units03[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveUnit(udg_unit148)
call SetUnitPositionLoc(udg_unit142,udg_locations02[281])
call ShowUnitShow(udg_unit142)
call SetUnitInvulnerable(udg_unit142,false)
call PauseUnit(udg_unit142,false)
call ResetUnitAnimation(udg_unit142)
call ResetToGameCameraForPlayer(GetOwningPlayer(udg_unit149),0)
set udg_unit150=null
set udg_unit142=null
set udg_unit148=null
set udg_integer12=0
set udg_real18=.0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units03[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_unit149=null
call DisableTrigger(udg_trigger392)
endif
call RemoveLocation(udg_locations02[281])
call RemoveLocation(udg_locations02[282])
call RemoveLocation(udg_locations02[283])
endfunction
function dW takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h01R')
endfunction
function DW takes nothing returns nothing
call RemoveUnit(GetTriggerUnit())
endfunction
function fW takes nothing returns boolean
return(GetSpellAbilityId()=='A0A7')
endfunction
function FW takes nothing returns nothing
set udg_locations02[270]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=150
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations02[271]=xB(udg_locations02[270],GetRandomReal(100.,900.),GetRandomReal(0,360.))
call CreateNUnitsAtLoc(1,'h01Q',GetOwningPlayer(GetTriggerUnit()),udg_locations02[271],bj_UNIT_FACING)
call SetUnitPathing(bj_lastCreatedUnit,false)
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(udg_locations02[271])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations02[270])
endfunction
function gW takes nothing returns boolean
return(GetSpellAbilityId()=='A0A5')
endfunction
function GW takes nothing returns nothing
set udg_locations02[209]=GetSpellTargetLoc()
call SetUnitAnimation(GetTriggerUnit(),"spell two")
call CreateNUnitsAtLoc(1,'h010',GetOwningPlayer(GetTriggerUnit()),udg_locations02[209],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call IssueImmediateOrderById(bj_lastCreatedUnit,852183)
call RemoveLocation(udg_locations02[209])
endfunction
function hW takes nothing returns boolean
return(GetSpellAbilityId()=='A0A2')
endfunction
function HW takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit140)))
endfunction
function jW takes nothing returns nothing
call UnitDamageTarget(udg_unit285,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit285,true))*30.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function JW takes nothing returns nothing
set udg_unit140=GetTriggerUnit()
set udg_locations02[260]=GetSpellTargetLoc()
call PauseUnit(udg_unit140,true)
call EnableTrigger(udg_trigger396)
call TriggerSleepAction(.25)
call DisableTrigger(udg_trigger396)
call PauseUnit(udg_unit140,false)
call AddSpecialEffectLocBJ(udg_locations02[260],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateUbersplatBJ(udg_locations02[260],"THND",'d','d','d',0,true,true)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
call ShowUbersplat(bj_lastCreatedUbersplat,true)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(300.,udg_locations02[260],Condition(function HW)),function jW)
call TriggerSleepAction(1.)
call SetUnitFlyHeight(udg_unit140,700.,400.)
call RemoveLocation(udg_locations02[260])
set udg_unit140=null
endfunction
function kW takes nothing returns nothing
set udg_locations02[261]=GetUnitLoc(udg_unit140)
set udg_locations02[262]=xB(udg_locations02[261],40.,AngleBetweenPoints(udg_locations02[261],udg_locations02[260]))
call SetUnitPositionLocFacingLocBJ(udg_unit140,udg_locations02[262],udg_locations02[260])
call SetUnitFlyHeight(udg_unit140,(GetUnitFlyHeight(udg_unit140)-48.),10000.)
call RemoveLocation(udg_locations02[261])
call RemoveLocation(udg_locations02[262])
endfunction
function KW takes nothing returns boolean
return(GetSpellAbilityId()=='A0A3')
endfunction
function lW takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit141)))
endfunction
function LW takes nothing returns nothing
call UnitDamageTarget(udg_unit285,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit285,true))*30.),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function mW takes nothing returns nothing
set udg_unit141=GetTriggerUnit()
set udg_locations02[263]=GetSpellTargetLoc()
call PauseUnit(udg_unit141,true)
call EnableTrigger(udg_trigger398)
call TriggerSleepAction(.5)
call DisableTrigger(udg_trigger398)
call PauseUnit(udg_unit141,false)
call AddSpecialEffectLocBJ(udg_locations02[263],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call CreateUbersplatBJ(udg_locations02[263],"THND",'d','d','d',0,true,true)
call SetUbersplatRenderAlways(bj_lastCreatedUbersplat,true)
call ShowUbersplat(bj_lastCreatedUbersplat,true)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(300.,udg_locations02[263],Condition(function lW)),function LW)
call TriggerSleepAction(1.)
call SetUnitFlyHeight(udg_unit141,700.,400.)
call RemoveLocation(udg_locations02[263])
set udg_unit141=null
set udg_integer09=0
endfunction
function MW takes nothing returns boolean
return(udg_integer09<=25)
endfunction
function pW takes nothing returns nothing
set udg_integer09=(udg_integer09+1)
if(MW())then
set udg_locations02[264]=GetUnitLoc(udg_unit141)
set udg_locations02[265]=xB(udg_locations02[264],40.,AngleBetweenPoints(udg_locations02[264],udg_locations02[263]))
call SetUnitPositionLocFacingLocBJ(udg_unit141,udg_locations02[265],udg_locations02[263])
call RemoveLocation(udg_locations02[264])
call RemoveLocation(udg_locations02[265])
else
call SetUnitFlyHeight(udg_unit141,(GetUnitFlyHeight(udg_unit141)-56.),10000.)
endif
endfunction
function PW takes nothing returns boolean
return(GetSpellAbilityId()=='A09W')
endfunction
function qW takes nothing returns nothing
set udg_unit135=GetTriggerUnit()
call PauseUnit(udg_unit135,true)
set udg_locations02[253]=GetUnitLoc(udg_unit135)
set udg_locations02[254]=xB(udg_locations02[253],200.,(GetUnitFacing(udg_unit135)+90.))
set udg_locations02[255]=xB(udg_locations02[253],100.,(GetUnitFacing(udg_unit135)-90.))
set udg_locations02[256]=xB(udg_locations02[254],1500.,GetUnitFacing(udg_unit135))
set udg_locations02[257]=xB(udg_locations02[255],1500.,GetUnitFacing(udg_unit135))
call SetUnitInvulnerable(udg_unit135,true)
call SetUnitAnimation(udg_unit135,"spell two")
call CreateNUnitsAtLoc(1,'h00S',GetOwningPlayer(udg_unit135),udg_locations02[254],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations02[256])
call CreateNUnitsAtLoc(1,'h00S',GetOwningPlayer(udg_unit135),udg_locations02[255],bj_UNIT_FACING)
call ShowUnitHide(bj_lastCreatedUnit)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations02[257])
call TriggerSleepAction(.5)
call EnableTrigger(udg_trigger400)
call TriggerSleepAction(6.5)
call DisableTrigger(udg_trigger400)
call SetUnitInvulnerable(udg_unit135,false)
call PauseUnit(udg_unit135,false)
call ResetUnitAnimation(udg_unit135)
call RemoveLocation(udg_locations02[253])
call RemoveLocation(udg_locations02[254])
call RemoveLocation(udg_locations02[255])
call RemoveLocation(udg_locations02[256])
call RemoveLocation(udg_locations02[257])
set udg_unit135=null
set udg_unit136=null
endfunction
function QW takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),'B00C'))and(GetUnitAbilityLevelSwapped('Avul',GetEnumUnit())==0)and(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit135)))
endfunction
function sW takes nothing returns nothing
if(QW())then
set udg_locations02[259]=GetUnitLoc(GetEnumUnit())
call UnitDamageTarget(udg_unit135,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit135,true))*6.),true,false,ATTACK_TYPE_MAGIC,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call AddSpecialEffectLocBJ(udg_locations02[259],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[259])
endif
endfunction
function SW takes nothing returns nothing
set udg_locations02[258]=xB(udg_locations02[253],1000.,GetUnitFacing(udg_unit135))
call CreateNUnitsAtLoc(1,'h00S',GetOwningPlayer(udg_unit135),udg_locations02[253],GetUnitFacing(udg_unit135))
set udg_unit136=bj_lastCreatedUnit
call ShowUnitHide(udg_unit136)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit136)
call SetUnitPathing(udg_unit136,false)
call IssuePointOrderByIdLoc(udg_unit136,852555,udg_locations02[258])
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(1500.,udg_locations02[253]),function sW)
call RemoveLocation(udg_locations02[258])
endfunction
function tW takes nothing returns boolean
return(GetSpellAbilityId()=='A09T')
endfunction
function TW takes nothing returns nothing
set udg_unit133=GetTriggerUnit()
call PauseUnit(udg_unit133,true)
set udg_locations02[24]=GetUnitLoc(udg_unit133)
set udg_locations02[26]=xB(udg_locations02[24],100.,(GetUnitFacing(udg_unit133)+90.))
set udg_locations02[27]=xB(udg_locations02[24],100.,(GetUnitFacing(udg_unit133)-90.))
set udg_locations02[28]=xB(udg_locations02[26],1500.,GetUnitFacing(udg_unit133))
set udg_locations02[29]=xB(udg_locations02[27],1500.,GetUnitFacing(udg_unit133))
call SetUnitInvulnerable(udg_unit133,true)
call SetUnitAnimation(udg_unit133,"spell two")
call CreateNUnitsAtLoc(1,'h00K',GetOwningPlayer(udg_unit133),udg_locations02[26],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call ShowUnitHide(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations02[28])
call CreateNUnitsAtLoc(1,'h00K',GetOwningPlayer(udg_unit133),udg_locations02[27],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(8.,'BHwe',bj_lastCreatedUnit)
call ShowUnitHide(bj_lastCreatedUnit)
call IssuePointOrderByIdLoc(bj_lastCreatedUnit,852652,udg_locations02[29])
call TriggerSleepAction(.5)
call EnableTrigger(udg_trigger402)
call TriggerSleepAction(6.5)
call DisableTrigger(udg_trigger402)
call SetUnitInvulnerable(udg_unit133,false)
call PauseUnit(udg_unit133,false)
call ResetUnitAnimation(udg_unit133)
call RemoveLocation(udg_locations02[24])
call RemoveLocation(udg_locations02[26])
call RemoveLocation(udg_locations02[27])
call RemoveLocation(udg_locations02[28])
call RemoveLocation(udg_locations02[29])
set udg_unit133=null
set udg_unit134=null
endfunction
function uW takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),'B00B'))and(GetUnitAbilityLevelSwapped('Avul',GetEnumUnit())==0)and(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(udg_unit133)))
endfunction
function UW takes nothing returns nothing
if(uW())then
set udg_locations02[250]=GetUnitLoc(GetEnumUnit())
set udg_locations02[251]=xB(udg_locations02[250],150.,AngleBetweenPoints(udg_locations02[24],udg_locations02[252]))
call UnitDamageTarget(udg_unit133,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit133,true))*6.),true,false,ATTACK_TYPE_MELEE,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
call SetUnitPositionLoc(GetEnumUnit(),udg_locations02[251])
call SetUnitAnimation(GetEnumUnit(),"death")
call AddSpecialEffectLocBJ(udg_locations02[251],"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[250])
call RemoveLocation(udg_locations02[251])
endif
endfunction
function wW takes nothing returns nothing
set udg_locations02[252]=xB(udg_locations02[24],1000.,GetUnitFacing(udg_unit133))
call CreateNUnitsAtLoc(1,'h00K',GetOwningPlayer(udg_unit133),udg_locations02[24],GetUnitFacing(udg_unit133))
set udg_unit134=bj_lastCreatedUnit
call ShowUnitHide(udg_unit134)
call UnitApplyTimedLifeBJ(1.,'BHwe',udg_unit134)
call SetUnitPathing(udg_unit134,false)
call IssuePointOrderByIdLoc(udg_unit134,852555,udg_locations02[252])
set bj_wantDestroyGroup=true
call ForGroupBJ(IB(1500.,udg_locations02[24]),function UW)
call RemoveLocation(udg_locations02[252])
endfunction
function WW takes nothing returns boolean
return(GetSpellAbilityId()=='A08K')
endfunction
function yW takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit34))
endfunction
function YW takes nothing returns nothing
set udg_locations02[43]=GetUnitLoc(GetTriggerUnit())
if(yW())then
set udg_locations02[44]=GetUnitLoc(udg_unit34)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations02[44])
call SetUnitPositionLoc(udg_unit34,udg_locations02[43])
call AddSpecialEffectLocBJ(udg_locations02[43],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[44],"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[44])
else
call CreateTextTagLocBJ("Karasu must be here.",udg_locations02[43],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
endif
call RemoveLocation(udg_locations02[43])
endfunction
function zW takes nothing returns boolean
return(GetSpellAbilityId()=='A0AG')
endfunction
function ZW takes nothing returns boolean
return(GetTriggerUnit()==udg_unit139)
endfunction
function vy takes nothing returns boolean
return(GetTriggerUnit()==udg_unit138)
endfunction
function ey takes nothing returns boolean
return(IsUnitPaused(udg_unit138))
endfunction
function xy takes nothing returns boolean
return(IsUnitPaused(udg_unit139))
endfunction
function oy takes nothing returns boolean
return(GetBooleanOr(ey(),xy()))
endfunction
function ry takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations02[305],udg_locations02[306])<=500.)
endfunction
function iy takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit138))and(IsUnitAliveBJ(udg_unit139))
endfunction
function ay takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[305]=GetUnitLoc(udg_unit138)
set udg_locations02[306]=GetUnitLoc(udg_unit139)
if(iy())then
if(ry())then
if(oy())then
call CreateTextTagLocBJ("Need chakra string to control.",udg_locations02[305],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call CreateTextTagLocBJ("Need chakra string to control.",udg_locations02[306],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call EnableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations02[305])
call RemoveLocation(udg_locations02[306])
else
call IssueImmediateOrderById(udg_unit138,852600)
call IssueImmediateOrderById(udg_unit139,852600)
call SetUnitFacing(udg_unit138,90.)
call SetUnitFacing(udg_unit139,270.)
call SetUnitPathing(udg_unit138,false)
call SetUnitPathing(udg_unit139,false)
call SetUnitAnimationByIndex(udg_unit138,1)
call SetUnitAnimationByIndex(udg_unit139,1)
call TriggerSleepAction(.1)
call SetUnitTimeScale(udg_unit138,.0)
call SetUnitTimeScale(udg_unit139,.0)
set udg_locations02[307]=Location(((GetLocationX(udg_locations02[305])+GetLocationX(udg_locations02[306]))/2.),((GetLocationY(udg_locations02[305])+GetLocationY(udg_locations02[306]))/2.))
call EnableTrigger(udg_trigger405)
call TriggerSleepAction(10.)
call DisableTrigger(udg_trigger405)
call EnableTrigger(GetTriggeringTrigger())
call SetUnitTimeScale(udg_unit138,100.)
call SetUnitTimeScale(udg_unit139,100.)
call SetUnitPathing(udg_unit138,true)
call SetUnitPathing(udg_unit139,true)
call RemoveLocation(udg_locations02[307])
call RemoveLocation(udg_locations02[305])
call RemoveLocation(udg_locations02[306])
endif
else
call CreateTextTagLocBJ("Distance is too great, cannot activate.",udg_locations02[305],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call CreateTextTagLocBJ("Distance is too great, cannot activate.",udg_locations02[306],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call EnableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations02[305])
call RemoveLocation(udg_locations02[306])
endif
else
if(vy())then
call CreateTextTagLocBJ("The two puppets must exist!",udg_locations02[305],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
else
if(ZW())then
call CreateTextTagLocBJ("The two puppets must exist!",udg_locations02[306],0,10.,'d',.0,.0,0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,64,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,2.)
call RemoveLocation(udg_locations02[305])
call RemoveLocation(udg_locations02[306])
endif
endif
endif
endfunction
function ny takes nothing returns boolean
return(udg_integer13==360)
endfunction
function Vy takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('Avul',GetFilterUnit())==0)
endfunction
function Ey takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit138)))
endfunction
function Xy takes nothing returns boolean
return GetBooleanAnd(Vy(),Ey())
endfunction
function Oy takes nothing returns nothing
call UnitDamageTarget(udg_unit287,GetEnumUnit(),(I2R(GetHeroStatBJ(2,udg_unit287,true))*.5),true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function Ry takes nothing returns nothing
if(ny())then
set udg_integer13=0
endif
set udg_integer13=(udg_integer13+10)
set udg_locations02[308]=xB(udg_locations02[307],250.,I2R(udg_integer13))
set udg_locations02[309]=xB(udg_locations02[307],250.,(I2R(udg_integer13)+180.))
call SetUnitPositionLoc(udg_unit138,udg_locations02[308])
call SetUnitFacing(udg_unit138,(I2R(udg_integer13)+90.))
call SetUnitPositionLoc(udg_unit139,udg_locations02[309])
call SetUnitFacing(udg_unit139,(I2R(udg_integer13)+270.))
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(300.,udg_locations02[307],Condition(function Xy)),function Oy)
call AddSpecialEffectLocBJ(udg_locations02[308],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[309],"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[308])
call RemoveLocation(udg_locations02[309])
endfunction
function Iy takes nothing returns boolean
return(GetTriggerUnit()==udg_unit34)
endfunction
function Ay takes nothing returns boolean
return(GetTriggerUnit()==udg_unit186)
endfunction
function Ny takes nothing returns boolean
return(GetTriggerUnit()==udg_unit187)
endfunction
function by takes nothing returns boolean
return(GetTriggerUnit()==udg_unit68)
endfunction
function By takes nothing returns boolean
return(GetTriggerUnit()==udg_unit137)
endfunction
function cy takes nothing returns boolean
return(GetTriggerUnit()==udg_unit138)
endfunction
function Cy takes nothing returns boolean
return(GetTriggerUnit()==udg_unit139)
endfunction
function Dy takes nothing returns nothing
if(Iy())then
call SetPlayerAbilityAvailableBJ(true,'A000',GetOwningPlayer(udg_unit34))
call SetPlayerAbilityAvailableBJ(false,'A08K',GetOwningPlayer(udg_unit34))
call SetUnitPathing(udg_unit33,true)
set udg_unit33=null
set udg_unit34=null
endif
if(Ay())then
call SetPlayerAbilityAvailableBJ(true,'A005',GetOwningPlayer(udg_unit186))
call SetUnitPathing(udg_unit33,true)
set udg_unit33=null
set udg_unit186=null
endif
if(Ny())then
call SetPlayerAbilityAvailableBJ(true,'A0B6',GetOwningPlayer(udg_unit187))
call SetUnitPathing(udg_unit33,true)
set udg_unit33=null
set udg_unit187=null
endif
if(by())then
call SetPlayerAbilityAvailableBJ(true,'A00B',GetOwningPlayer(udg_unit68))
call SetUnitPathing(udg_unit67,true)
set udg_unit68=null
set udg_unit67=null
endif
if(By())then
call SetPlayerAbilityAvailableBJ(true,'A09Z',GetOwningPlayer(udg_unit137))
call SetUnitPathing(udg_unit67,true)
set udg_unit67=null
set udg_unit137=null
endif
if(cy())then
call SetPlayerAbilityAvailableBJ(true,'A0AC',GetOwningPlayer(udg_unit138))
call SetUnitPathing(udg_unit158,true)
set udg_unit138=null
set udg_unit158=null
endif
if(Cy())then
call SetPlayerAbilityAvailableBJ(true,'A0AD',GetOwningPlayer(udg_unit139))
call SetUnitPathing(udg_unit158,true)
set udg_unit139=null
set udg_unit158=null
endif
endfunction
function fy takes nothing returns boolean
return(GetSpellAbilityId()=='A01B')
endfunction
function Fy takes nothing returns nothing
call TriggerSleepAction(.1)
call PauseUnit(udg_unit137,false)
call EnableTrigger(udg_trigger408)
endfunction
function gy takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit137,'Bdvv')==false)
endfunction
function Gy takes nothing returns nothing
if(gy())then
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_unit137,true)
call SetUnitPathing(udg_unit285,true)
endif
endfunction
function hy takes nothing returns boolean
return(GetSpellAbilityId()=='A087')
endfunction
function Hy takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='N000')
endfunction
function jy takes nothing returns nothing
if(Hy())then
call TriggerSleepAction(.1)
call PauseUnit(udg_unit187,false)
call EnableTrigger(udg_trigger410)
endif
endfunction
function Jy takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit187,'Bdvv')==false)
endfunction
function ky takes nothing returns nothing
if(Jy())then
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_unit187,true)
call SetUnitPathing(udg_unit258,true)
endif
endfunction
function Ky takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_MECHANICAL)!=null)
endfunction
function ly takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o000')
endfunction
function Ly takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o00T')
endfunction
function my takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o00I')
endfunction
function My takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o001')
endfunction
function py takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o00J')
endfunction
function Py takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o00P')
endfunction
function qy takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o00Q')
endfunction
function Qy takes nothing returns boolean
return(GetUnitTypeId(GetSummonedUnit())=='o00R')or(GetUnitTypeId(GetSummonedUnit())=='h01E')or(GetUnitTypeId(GetSummonedUnit())=='h00M')or(GetUnitTypeId(GetSummonedUnit())=='o00S')
endfunction
function sy takes nothing returns boolean
return(Qy())
endfunction
function Sy takes nothing returns nothing
if(ly())then
set udg_unit34=GetSummonedUnit()
call PauseUnit(udg_unit34,true)
call SetPlayerAbilityAvailableBJ(true,'A08K',GetOwningPlayer(udg_unit34))
call SetPlayerAbilityAvailableBJ(false,'A000',GetOwningPlayer(udg_unit34))
call EnableTrigger(udg_trigger403)
call TriggerRegisterUnitEvent(udg_trigger406,udg_unit34,EVENT_UNIT_DEATH)
endif
if(Ly())then
set udg_unit186=GetSummonedUnit()
call PauseUnit(udg_unit186,true)
call SetPlayerAbilityAvailableBJ(false,'A005',GetOwningPlayer(udg_unit186))
call TriggerRegisterUnitEvent(udg_trigger406,udg_unit186,EVENT_UNIT_DEATH)
endif
if(my())then
set udg_unit187=GetSummonedUnit()
call PauseUnit(udg_unit187,true)
call SetPlayerAbilityAvailableBJ(false,'A0B6',GetOwningPlayer(udg_unit187))
call TriggerRegisterUnitEvent(udg_trigger406,udg_unit187,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger409,udg_unit187,EVENT_UNIT_SPELL_EFFECT)
endif
if(My())then
set udg_unit68=GetSummonedUnit()
call PauseUnit(udg_unit68,true)
call SetPlayerAbilityAvailableBJ(false,'A00B',GetOwningPlayer(udg_unit68))
call TriggerRegisterUnitEvent(udg_trigger406,udg_unit68,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger393,udg_unit68,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger394,udg_unit68,EVENT_UNIT_SPELL_EFFECT)
endif
if(py())then
set udg_unit137=GetSummonedUnit()
call PauseUnit(udg_unit137,true)
call SetPlayerAbilityAvailableBJ(false,'A09Z',GetOwningPlayer(udg_unit137))
call TriggerRegisterUnitEvent(udg_trigger406,udg_unit137,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger407,udg_unit137,EVENT_UNIT_SPELL_EFFECT)
endif
if(Py())then
set udg_unit138=GetSummonedUnit()
call PauseUnit(udg_unit138,true)
call SetPlayerAbilityAvailableBJ(false,'A0AC',GetOwningPlayer(udg_unit138))
call TriggerRegisterUnitEvent(udg_trigger406,udg_unit138,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger357,udg_unit138,EVENT_UNIT_SPELL_EFFECT)
endif
if(qy())then
set udg_unit139=GetSummonedUnit()
call PauseUnit(udg_unit139,true)
call SetPlayerAbilityAvailableBJ(false,'A0AD',GetOwningPlayer(udg_unit139))
call TriggerRegisterUnitEvent(udg_trigger406,udg_unit139,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger358,udg_unit139,EVENT_UNIT_SPELL_EFFECT)
endif
if(sy())then
call PauseUnit(GetSummonedUnit(),true)
endif
endfunction
function ty takes nothing returns boolean
return(GetSpellAbilityId()=='A04Z')
endfunction
function Ty takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MECHANICAL)!=null)
endfunction
function uy takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_unit33))
endfunction
function Uy takes nothing returns boolean
return GetBooleanAnd(Ty(),uy())
endfunction
function wy takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01Z',GetOwningPlayer(udg_unit33),udg_locations02[300],GetUnitFacing(udg_unit33))
call GroupAddUnit(udg_group05,bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call IssueTargetOrderById(bj_lastCreatedUnit,852487,GetEnumUnit())
call PauseUnit(GetEnumUnit(),false)
endfunction
function Wy takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N000')
endfunction
function yy takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MECHANICAL)!=null)
endfunction
function Yy takes nothing returns boolean
return(GetFilterUnit()!=udg_unit67)
endfunction
function zy takes nothing returns boolean
return GetBooleanAnd(yy(),Yy())
endfunction
function Zy takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_unit67))
endfunction
function vY takes nothing returns boolean
return GetBooleanAnd(zy(),Zy())
endfunction
function eY takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01Z',GetOwningPlayer(udg_unit67),udg_locations02[302],GetUnitFacing(udg_unit67))
call GroupAddUnit(udg_group06,bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call IssueTargetOrderById(bj_lastCreatedUnit,852487,GetEnumUnit())
call PauseUnit(GetEnumUnit(),false)
endfunction
function xY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E00L')
endfunction
function oY takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MECHANICAL)!=null)
endfunction
function rY takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_unit158))
endfunction
function iY takes nothing returns boolean
return GetBooleanAnd(oY(),rY())
endfunction
function aY takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01Z',GetOwningPlayer(udg_unit158),udg_locations02[298],GetUnitFacing(udg_unit158))
call GroupAddUnit(udg_group07,bj_lastCreatedUnit)
call SetUnitPathing(bj_lastCreatedUnit,false)
call IssueTargetOrderById(bj_lastCreatedUnit,852487,GetEnumUnit())
call PauseUnit(GetEnumUnit(),false)
endfunction
function nY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N002')
endfunction
function VY takes nothing returns nothing
if(Wy())then
set udg_unit33=GetTriggerUnit()
set udg_locations02[299]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[300]=GetUnitLoc(udg_unit33)
call SetUnitPathing(udg_unit33,false)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(20000.,udg_locations02[299],Condition(function Uy)),function wy)
call RemoveLocation(udg_locations02[299])
call RemoveLocation(udg_locations02[300])
endif
if(xY())then
set udg_unit67=GetTriggerUnit()
set udg_locations02[301]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[302]=GetUnitLoc(udg_unit67)
call SetUnitPathing(udg_unit67,false)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(20000.,udg_locations02[301],Condition(function vY)),function eY)
call RemoveLocation(udg_locations02[301])
call RemoveLocation(udg_locations02[302])
endif
if(nY())then
set udg_unit158=GetTriggerUnit()
set udg_locations02[297]=GetUnitLoc(GetTriggerUnit())
set udg_locations02[298]=GetUnitLoc(udg_unit158)
call SetUnitPathing(udg_unit158,false)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(20000.,udg_locations02[297],Condition(function iY)),function aY)
call RemoveLocation(udg_locations02[298])
call RemoveLocation(udg_locations02[297])
endif
endfunction
function EY takes nothing returns boolean
return(GetSpellAbilityId()=='A0AE')
endfunction
function XY takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function OY takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MECHANICAL)!=null)
endfunction
function RY takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_unit33))
endfunction
function IY takes nothing returns boolean
return GetBooleanAnd(OY(),RY())
endfunction
function AY takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function NY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N000')
endfunction
function bY takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function BY takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MECHANICAL)!=null)
endfunction
function cY takes nothing returns boolean
return(GetFilterUnit()!=udg_unit67)
endfunction
function CY takes nothing returns boolean
return GetBooleanAnd(BY(),cY())
endfunction
function dY takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_unit67))
endfunction
function DY takes nothing returns boolean
return GetBooleanAnd(CY(),dY())
endfunction
function fY takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function FY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E00L')
endfunction
function gY takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function GY takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MECHANICAL)!=null)
endfunction
function hY takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(udg_unit158))
endfunction
function HY takes nothing returns boolean
return GetBooleanAnd(GY(),hY())
endfunction
function jY takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function JY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N002')
endfunction
function kY takes nothing returns boolean
return(GetSpellAbilityId()=='A04Z')
endfunction
function KY takes nothing returns nothing
if(kY())then
if(NY())then
call ForGroupBJ(udg_group05,function XY)
call GroupClear(udg_group05)
set udg_group02=nB(udg_rect04,Condition(function IY))
call ForGroupBJ(udg_group02,function AY)
call DestroyGroup(udg_group02)
endif
if(FY())then
call ForGroupBJ(udg_group06,function bY)
call GroupClear(udg_group06)
set udg_group02=nB(udg_rect04,Condition(function DY))
call ForGroupBJ(udg_group02,function fY)
call DestroyGroup(udg_group02)
endif
if(JY())then
call ForGroupBJ(udg_group07,function gY)
call GroupClear(udg_group07)
set udg_group02=nB(udg_rect04,Condition(function HY))
call ForGroupBJ(udg_group02,function jY)
call DestroyGroup(udg_group02)
endif
call SetUnitPathing(GetTriggerUnit(),true)
else
if(EY())then
call PauseUnit(GetSpellTargetUnit(),true)
call RemoveUnit(GetTriggerUnit())
endif
endif
endfunction
function lY takes nothing returns boolean
return(GetUnitUserData(GetTriggerUnit())!=5)
endfunction
function LY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='h027')or(GetUnitTypeId(GetTriggerUnit())=='h01H')or(GetUnitTypeId(GetTriggerUnit())=='n00Q')
endfunction
function mY takes nothing returns boolean
return(LY())
endfunction
function MY takes nothing returns boolean
return(udg_integers05[1]==udg_integer04)
endfunction
function pY takes nothing returns boolean
return(udg_integers05[2]==udg_integer04)
endfunction
function PY takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_force01))
endfunction
function qY takes nothing returns boolean
return(GetKillingUnit()==GetTriggerUnit())
endfunction
function QY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H002')or(GetUnitTypeId(GetTriggerUnit())=='O00E')or(GetUnitTypeId(GetTriggerUnit())=='O002')or(GetUnitTypeId(GetTriggerUnit())=='H00O')or(GetUnitTypeId(GetTriggerUnit())=='E00S')or(GetUnitTypeId(GetTriggerUnit())=='N00P')or(GetUnitTypeId(GetTriggerUnit())=='N00E')or(GetUnitTypeId(GetTriggerUnit())=='E00B')or(GetUnitTypeId(GetTriggerUnit())=='H00F')or(GetUnitTypeId(GetTriggerUnit())=='E00G')
endfunction
function sY takes nothing returns boolean
return(QY())
endfunction
function SY takes nothing returns boolean
return(GetTriggerUnit()==udg_unit268)or(GetTriggerUnit()==udg_unit267)or(GetTriggerUnit()==udg_unit271)
endfunction
function tY takes nothing returns boolean
return(SY())
endfunction
function TY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='e009')
endfunction
function uY takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit276)))
endfunction
function UY takes nothing returns nothing
call UnitDamageTarget(udg_unit276,GetEnumUnit(),10000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function wY takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='e00V')
endfunction
function WY takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit145))
endfunction
function yY takes nothing returns boolean
return(IsUnitAliveBJ(udg_unit144))
endfunction
function YY takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h01V')or(GetUnitTypeId(GetEnumUnit())=='u001')
endfunction
function zY takes nothing returns boolean
return(YY())
endfunction
function ZY takes nothing returns nothing
if(zY())then
call KillUnit(GetEnumUnit())
endif
endfunction
function vz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='U000')
endfunction
function ez takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='e002')
endfunction
function xz takes nothing returns boolean
return(ez())
endfunction
function oz takes nothing returns nothing
if(xz())then
call KillUnit(GetEnumUnit())
endif
endfunction
function rz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E001')
endfunction
function iz takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h00P')
endfunction
function az takes nothing returns boolean
return(iz())
endfunction
function nz takes nothing returns nothing
if(az())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Vz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='H002')
endfunction
function Ez takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='u008')
endfunction
function Xz takes nothing returns nothing
if(Ez())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Oz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N00E')
endfunction
function Rz takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n001')
endfunction
function Iz takes nothing returns boolean
return(Rz())
endfunction
function Az takes nothing returns nothing
if(Iz())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Nz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N003')
endfunction
function bz takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n004')
endfunction
function Bz takes nothing returns boolean
return(bz())
endfunction
function cz takes nothing returns nothing
if(Bz())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Cz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='O002')
endfunction
function dz takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='nlrv')or(GetUnitTypeId(GetEnumUnit())=='nfod')or(GetUnitTypeId(GetEnumUnit())=='ngir')
endfunction
function Dz takes nothing returns boolean
return(dz())
endfunction
function fz takes nothing returns nothing
if(Dz())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Fz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='O00G')
endfunction
function gz takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='h01E')or(GetUnitTypeId(GetEnumUnit())=='h00M')or(GetUnitTypeId(GetEnumUnit())=='o00J')or(GetUnitTypeId(GetEnumUnit())=='o00S')or(GetUnitTypeId(GetEnumUnit())=='o001')
endfunction
function Gz takes nothing returns boolean
return(gz())
endfunction
function hz takes nothing returns nothing
if(Gz())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Hz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E00L')
endfunction
function jz takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='o000')or(GetUnitTypeId(GetEnumUnit())=='o00I')or(GetUnitTypeId(GetEnumUnit())=='o00T')
endfunction
function Jz takes nothing returns boolean
return(jz())
endfunction
function kz takes nothing returns nothing
if(Jz())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Kz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N000')
endfunction
function lz takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='o00R')or(GetUnitTypeId(GetEnumUnit())=='o00Q')or(GetUnitTypeId(GetEnumUnit())=='o00P')
endfunction
function Lz takes nothing returns boolean
return(lz())
endfunction
function mz takes nothing returns nothing
if(Lz())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Mz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N002')
endfunction
function pz takes nothing returns boolean
return(UnitHasBuffBJ(GetEnumUnit(),'BNdo'))
endfunction
function Pz takes nothing returns nothing
if(pz())then
call UnitRemoveAbility(GetEnumUnit(),'BNdo')
endif
endfunction
function qz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='o001')
endfunction
function Qz takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n005')
endfunction
function sz takes nothing returns nothing
if(Qz())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Sz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='N00M')
endfunction
function tz takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())=='n00V')or(GetUnitTypeId(GetEnumUnit())=='n00W')or(GetUnitTypeId(GetEnumUnit())=='n00X')or(GetUnitTypeId(GetEnumUnit())=='n00Y')or(GetUnitTypeId(GetEnumUnit())=='n010')
endfunction
function Tz takes nothing returns boolean
return(tz())
endfunction
function uz takes nothing returns nothing
if(Tz())then
call KillUnit(GetEnumUnit())
endif
endfunction
function Uz takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A0DJ',udg_units09[2])!=0)
endfunction
function wz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='E00J')
endfunction
function Wz takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function yz takes nothing returns nothing
call UnitDamageTarget(udg_unit260,GetEnumUnit(),30000.,true,false,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_UNIVERSAL,WEAPON_TYPE_WHOKNOWS)
endfunction
function Yz takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())=='n005')
endfunction
function zz takes nothing returns nothing
if(mY())then
call RemoveUnit(GetTriggerUnit())
endif
if(sY())then
if(qY())then
if(PY())then
set udg_integers05[2]=(udg_integers05[2]+1)
call MultiboardSetItemValueBJ(udg_multiboard02,3,3,I2S(udg_integers05[2]))
if(pY())then
call TriggerExecute(udg_trigger61)
endif
else
set udg_integers05[1]=(udg_integers05[1]+1)
call MultiboardSetItemValueBJ(udg_multiboard02,3,2,I2S(udg_integers05[1]))
if(MY())then
call TriggerExecute(udg_trigger60)
endif
endif
endif
endif
if(tY())then
call UnitRemoveAbility(GetTriggerUnit(),'Apiv')
endif
if(TY())then
call SetPlayerAbilityAvailableBJ(true,'A0CK',GetOwningPlayer(udg_unit244))
call UnitRemoveAbility(GetTriggerUnit(),'A0D5')
set udg_unit244=null
set udg_unit245=null
endif
if(wY())then
set udg_locations02[477]=GetUnitLoc(GetTriggerUnit())
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(100.,udg_locations02[477],Condition(function uY)),function UY)
call AddSpecialEffectLocBJ(udg_locations02[477],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_locations02[477])
endif
if(vz())then
if(yY())then
call KillUnit(udg_unit144)
else
if(WY())then
call KillUnit(udg_unit145)
endif
endif
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function ZY)
endif
if(rz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function oz)
endif
if(Vz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function nz)
endif
if(Oz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(EB(udg_rect04),function Xz)
endif
if(Nz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function Az)
endif
if(Cz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function cz)
endif
if(Fz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function fz)
endif
if(Hz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function hz)
endif
if(Kz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function kz)
endif
if(Mz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(bB(GetOwningPlayer(GetTriggerUnit())),function mz)
endif
if(qz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(EB(udg_rect04),function Pz)
endif
if(Sz())then
set bj_wantDestroyGroup=true
call ForGroupBJ(EB(udg_rect04),function sz)
endif
if(wz())then
call ForGroupBJ(EB(udg_rect04),function uz)
call DisableTrigger(udg_trigger211)
call DisableTrigger(udg_trigger177)
call EnableTrigger(udg_trigger176)
set udg_integer38=0
set udg_integer40=0
if(Uz())then
call UnitRemoveAbility(udg_units09[2],'A0DJ')
call DisableTrigger(udg_trigger175)
endif
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call KillUnit(udg_units10[bj_forLoopAIndex])
set udg_units10[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call KillUnit(udg_units09[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units09[bj_forLoopAIndex])
set udg_units09[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetPlayerAbilityAvailableBJ(true,'A0CX',GetOwningPlayer(udg_units09[0]))
set udg_units09[0]=null
endif
if(Yz())then
set udg_locations02[477]=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_locations02[477],"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call AddSpecialEffectLocBJ(udg_locations02[477],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(bj_lastCreatedEffect)
set bj_wantDestroyGroup=true
call ForGroupBJ(XB(150.,udg_locations02[477],Condition(function Wz)),function yz)
call RemoveLocation(udg_locations02[477])
endif
endfunction
function Zz takes nothing returns boolean
return(GetManipulatedItem()==udg_item01)
endfunction
function vZ takes nothing returns boolean
return(GetManipulatedItem()==udg_item02)
endfunction
function eZ takes nothing returns boolean
return(GetBooleanOr(Zz(),vZ()))
endfunction
function xZ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_force01))and(RectContainsUnit(udg_rect01,GetTriggerUnit()))
endfunction
function oZ takes nothing returns boolean
return(GetManipulatedItem()==udg_item01)
endfunction
function rZ takes nothing returns boolean
return(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_force02))and(RectContainsUnit(udg_rect02,GetTriggerUnit()))
endfunction
function iZ takes nothing returns boolean
return(GetManipulatedItem()==udg_item02)
endfunction
function aZ takes nothing returns boolean
return(GetManipulatedItem()==udg_item01)
endfunction
function nZ takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Weapons\\AncestralGuardianMissile\\AncestralGuardianMissile.mdl")
set udg_effects01[137]=bj_lastCreatedEffect
if(oZ())then
if(xZ())then
set udg_locations02[387]=GetUnitLoc(GetTriggerUnit())
call UnitDropItemPointLoc(GetTriggerUnit(),udg_item01,udg_locations02[387])
call RemoveLocation(udg_locations02[387])
call SetItemPositionLoc(udg_item01,udg_locations02[21])
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"|cFFFF0000Warning: You cannot take your own flag, reduce 30% hp!|r")
call SetWidgetLife(GetTriggerUnit(),(GetUnitState(GetTriggerUnit(),UNIT_STATE_LIFE)-(.3*GetUnitState(GetTriggerUnit(),UNIT_STATE_MAX_LIFE))))
return
endif
endif
if(iZ())then
if(rZ())then
set udg_locations02[388]=GetUnitLoc(GetTriggerUnit())
call UnitDropItemPointLoc(GetTriggerUnit(),udg_item02,udg_locations02[388])
call RemoveLocation(udg_locations02[388])
call SetItemPositionLoc(udg_item02,udg_locations02[22])
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"|cFFFF0000Warning: You cannot take your own flag, reduce 30% hp!|r")
call SetWidgetLife(GetTriggerUnit(),(GetUnitState(GetTriggerUnit(),UNIT_STATE_LIFE)-(.3*GetUnitState(GetTriggerUnit(),UNIT_STATE_MAX_LIFE))))
return
endif
endif
if(aZ())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,(("|cFF00FF00Team A's flag has been picked up by |r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|cFF00FF00!!|r"))
else
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,(("|cFF00FF00Team B's flag has been picked up by |r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|cFF00FF00!!|r"))
endif
endfunction
function VZ takes nothing returns boolean
return(GetManipulatedItem()==udg_item01)
endfunction
function EZ takes nothing returns boolean
return(GetManipulatedItem()==udg_item02)
endfunction
function XZ takes nothing returns boolean
return(RectContainsUnit(udg_rect01,GetTriggerUnit())==false)
endfunction
function OZ takes nothing returns boolean
return(RectContainsUnit(udg_rect02,GetTriggerUnit())==false)
endfunction
function RZ takes nothing returns boolean
return(GetBooleanOr(VZ(),EZ()))and(GetBooleanAnd(XZ(),OZ()))
endfunction
function IZ takes nothing returns boolean
return(GetManipulatedItem()==udg_item01)
endfunction
function AZ takes nothing returns nothing
call DestroyEffect(udg_effects01[137])
if(IZ())then
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,(("|cFF00FF00Team A's flag has been lost by |r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|cFF00FF00!!|r"))
else
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,(("|cFF00FF00Team B's flag has been lost by |r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|cFF00FF00!!|r"))
endif
endfunction
function NZ takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),udg_item01))
endfunction
function bZ takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),udg_item02))
endfunction
function BZ takes nothing returns boolean
return(GetBooleanOr(NZ(),bZ()))and(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_force01))
endfunction
function cZ takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),udg_item01))
endfunction
function CZ takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),udg_item02))
endfunction
function dZ takes nothing returns boolean
return(udg_integers05[1]==udg_integer04)
endfunction
function DZ takes nothing returns nothing
call AdjustPlayerStateBJ(500,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function fZ takes nothing returns boolean
return(RectContainsItem(udg_item01,udg_rect01))and(RectContainsItem(udg_item02,udg_rect01))
endfunction
function FZ takes nothing returns nothing
call DestroyEffect(udg_effects01[137])
if(cZ())then
set udg_locations02[389]=GetUnitLoc(GetTriggerUnit())
call UnitDropItemPointLoc(GetTriggerUnit(),udg_item01,udg_locations02[389])
call RemoveLocation(udg_locations02[389])
call SetItemPositionLoc(udg_item01,udg_locations02[21])
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,((("|cFF00FF00|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|cFF00FF00 has taken Team B's flag to base|r")+"|cFF00FF00, award him 100 gold!|r"))
call AdjustPlayerStateBJ('d',GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
endif
if(CZ())then
set udg_locations02[389]=GetUnitLoc(GetTriggerUnit())
call UnitDropItemPointLoc(GetTriggerUnit(),udg_item02,udg_locations02[389])
call RemoveLocation(udg_locations02[389])
call SetItemPositionLoc(udg_item02,udg_locations02[21])
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,((("|cFF00FF00|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|cFF00FF00 has returned Team B's flag to base|r")+"|cFF00FF00, award him 100 gold!|r"))
call AdjustPlayerStateBJ('d',GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
endif
if(fZ())then
call RemoveItem(udg_item01)
call RemoveItem(udg_item02)
set udg_integers05[1]=(udg_integers05[1]+1)
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,"|cFFFF0000Team A has gotten a flag! Award everyone in Team A 500 gold!|r")
call MultiboardSetItemValueBJ(udg_multiboard02,3,2,I2S(udg_integers05[1]))
if(dZ())then
call TriggerExecute(udg_trigger60)
return
endif
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,0,"|cFFFF0000A new flag will be deployed after 30 seconds.|r")
call ForForce(udg_force01,function DZ)
call TriggerSleepAction(30.)
call CreateItemLoc('I00Y',udg_locations02[21])
set udg_item01=bj_lastCreatedItem
call CreateItemLoc('I00H',udg_locations02[22])
set udg_item02=bj_lastCreatedItem
endif
endfunction
function gZ takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),udg_item01))
endfunction
function GZ takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),udg_item02))
endfunction
function hZ takes nothing returns boolean
return(GetBooleanOr(gZ(),GZ()))and(IsPlayerInForce(GetOwningPlayer(GetTriggerUnit()),udg_force02))
endfunction
function HZ takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),udg_item01))
endfunction
function jZ takes nothing returns boolean
return(UnitHasItem(GetTriggerUnit(),udg_item02))
endfunction
function JZ takes nothing returns boolean
return(udg_integers05[2]==udg_integer04)
endfunction
function kZ takes nothing returns nothing
call AdjustPlayerStateBJ(500,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function KZ takes nothing returns boolean
return(RectContainsItem(udg_item01,udg_rect02))and(RectContainsItem(udg_item02,udg_rect02))
endfunction
function lZ takes nothing returns nothing
call DestroyEffect(udg_effects01[137])
if(HZ())then
set udg_locations02[390]=GetUnitLoc(GetTriggerUnit())
call UnitDropItemPointLoc(GetTriggerUnit(),udg_item01,udg_locations02[390])
call RemoveLocation(udg_locations02[390])
call SetItemPositionLoc(udg_item01,udg_locations02[22])
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,((("|cFF00FF00|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|cFF00FF00 has taken Team A's flag to base|r")+"|cFF00FF00, award him 100 gold!|r"))
call AdjustPlayerStateBJ('d',GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
endif
if(jZ())then
set udg_locations02[390]=GetUnitLoc(GetTriggerUnit())
call UnitDropItemPointLoc(GetTriggerUnit(),udg_item02,udg_locations02[390])
call RemoveLocation(udg_locations02[390])
call SetItemPositionLoc(udg_item02,udg_locations02[22])
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,6,((("|cFF00FF00|r"+GetPlayerName(GetOwningPlayer(GetTriggerUnit())))+"|cFF00FF00 has brought Team B's flag back to base|r")+"|cFF00FF00, award him 100 gold!|r"))
call AdjustPlayerStateBJ('d',GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
endif
if(KZ())then
call RemoveItem(udg_item01)
call RemoveItem(udg_item02)
set udg_integers05[2]=(udg_integers05[2]+1)
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,2,"|cFFFF0000Team B has gotten a flag! Award everyone in Team B 500 gold!|r")
call MultiboardSetItemValueBJ(udg_multiboard02,3,3,I2S(udg_integers05[2]))
if(JZ())then
call TriggerExecute(udg_trigger61)
return
endif
call QuestMessageBJ(bj_FORCE_ALL_PLAYERS,0,"|cFFFF0000A new flag will be deployed after 30 seconds.|r")
call ForForce(udg_force02,function kZ)
call TriggerSleepAction(30.)
call CreateItemLoc('I00Y',udg_locations02[21])
set udg_item01=bj_lastCreatedItem
call CreateItemLoc('I00H',udg_locations02[22])
set udg_item02=bj_lastCreatedItem
endif
endfunction
function LZ takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(15))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetTriggerUnit()!=udg_unit292)
endfunction
function mZ takes nothing returns boolean
return(GetPlayerController(Player(5))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(5))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function MZ takes nothing returns boolean
return(GetPlayerController(Player(4))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(4))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function pZ takes nothing returns boolean
return(GetPlayerController(Player(3))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(3))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function PZ takes nothing returns boolean
return(GetPlayerController(Player(2))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(2))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function qZ takes nothing returns boolean
return(GetPlayerSlotState(Player(1))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerController(Player(1))==MAP_CONTROL_COMPUTER)and(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function QZ takes nothing returns boolean
return(GetPlayerSlotState(Player(0))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerController(Player(0))==MAP_CONTROL_COMPUTER)and(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function sZ takes nothing returns boolean
return(udg_integers04[2]==0)
endfunction
function SZ takes nothing returns boolean
return(GetPlayerController(Player(11))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(11))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function tZ takes nothing returns boolean
return(udg_integers04[2]==0)
endfunction
function TZ takes nothing returns boolean
return(GetPlayerController(Player(10))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(10))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function uZ takes nothing returns boolean
return(udg_integers04[2]==0)
endfunction
function UZ takes nothing returns boolean
return(GetPlayerController(Player(9))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(9))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function wZ takes nothing returns boolean
return(udg_integers04[2]==0)
endfunction
function WZ takes nothing returns boolean
return(GetPlayerController(Player(8))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(8))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function yZ takes nothing returns boolean
return(udg_integers04[2]==0)
endfunction
function YZ takes nothing returns boolean
return(GetPlayerController(Player(7))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(7))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function zZ takes nothing returns boolean
return(udg_integers04[2]==0)
endfunction
function ZZ takes nothing returns boolean
return(GetPlayerController(Player(6))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(6))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(6),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function v0 takes nothing returns boolean
return(GetPlayerController(Player(11))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(11))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function e0 takes nothing returns boolean
return(GetPlayerController(Player(10))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(10))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function x0 takes nothing returns boolean
return(GetPlayerController(Player(9))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(9))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function o0 takes nothing returns boolean
return(GetPlayerController(Player(8))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(8))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function r0 takes nothing returns boolean
return(GetPlayerController(Player(7))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(7))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function i0 takes nothing returns boolean
return(GetPlayerController(Player(6))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(6))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(6),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function a0 takes nothing returns boolean
return(udg_integers04[1]==0)
endfunction
function n0 takes nothing returns boolean
return(GetPlayerController(Player(5))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(5))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function V0 takes nothing returns boolean
return(udg_integers04[1]==0)
endfunction
function E0 takes nothing returns boolean
return(GetPlayerController(Player(4))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(4))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function X0 takes nothing returns boolean
return(udg_integers04[1]==0)
endfunction
function O0 takes nothing returns boolean
return(GetPlayerController(Player(3))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(3))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function R0 takes nothing returns boolean
return(udg_integers04[1]==0)
endfunction
function I0 takes nothing returns boolean
return(GetPlayerController(Player(2))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(2))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function A0 takes nothing returns boolean
return(udg_integers04[1]==0)
endfunction
function N0 takes nothing returns boolean
return(GetPlayerSlotState(Player(1))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerController(Player(1))==MAP_CONTROL_COMPUTER)and(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function b0 takes nothing returns boolean
return(udg_integers04[1]==0)
endfunction
function B0 takes nothing returns boolean
return(GetPlayerSlotState(Player(0))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerController(Player(0))==MAP_CONTROL_COMPUTER)and(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function c0 takes nothing returns boolean
return(udg_integer43==1)
endfunction
function C0 takes nothing returns nothing
if(c0())then
if(B0())then
set udg_units02[1]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[1],false)
call SetUnitAcquireRange(udg_units02[1],8000.)
call SetUnitPositionLoc(udg_units02[1],udg_locations02[21])
call SetUnitOwner(udg_units02[1],Player(0),true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[1],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[1]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[1])
call UnitAddItemByIdSwapped('I006',udg_units02[1])
call UnitAddItemByIdSwapped('I009',udg_units02[1])
set udg_integers04[1]=(udg_integers04[1]-1)
if(b0())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[2]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(N0())then
set udg_units02[2]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[2],false)
call SetUnitAcquireRange(udg_units02[2],8000.)
call SetUnitPositionLoc(udg_units02[2],udg_locations02[21])
call SetUnitOwner(udg_units02[2],Player(1),true)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[2],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(1))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[2]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[2])
call UnitAddItemByIdSwapped('I006',udg_units02[2])
call UnitAddItemByIdSwapped('I009',udg_units02[2])
set udg_integers04[1]=(udg_integers04[1]-1)
if(A0())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[2]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(I0())then
set udg_units02[3]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[3],false)
call SetUnitAcquireRange(udg_units02[3],8000.)
call SetUnitPositionLoc(udg_units02[3],udg_locations02[21])
call SetUnitOwner(udg_units02[3],Player(2),true)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[3],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(2))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[3]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[3])
call UnitAddItemByIdSwapped('I006',udg_units02[3])
call UnitAddItemByIdSwapped('I009',udg_units02[3])
set udg_integers04[1]=(udg_integers04[1]-1)
if(R0())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[2]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(O0())then
set udg_units02[4]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[4],false)
call SetUnitAcquireRange(udg_units02[4],8000.)
call SetUnitPositionLoc(udg_units02[4],udg_locations02[21])
call SetUnitOwner(udg_units02[4],Player(3),true)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[4],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(3))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[4]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[4])
call UnitAddItemByIdSwapped('I006',udg_units02[4])
call UnitAddItemByIdSwapped('I009',udg_units02[4])
set udg_integers04[1]=(udg_integers04[1]-1)
if(X0())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[2]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(E0())then
set udg_units02[5]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[5],false)
call SetUnitAcquireRange(udg_units02[5],8000.)
call SetUnitPositionLoc(udg_units02[5],udg_locations02[21])
call SetUnitOwner(udg_units02[5],Player(4),true)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[5],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(4))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[5]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[5])
call UnitAddItemByIdSwapped('I006',udg_units02[5])
call UnitAddItemByIdSwapped('I009',udg_units02[5])
set udg_integers04[1]=(udg_integers04[1]-1)
if(V0())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[2]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(n0())then
set udg_units02[6]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[6],false)
call SetUnitAcquireRange(udg_units02[6],8000.)
call SetUnitPositionLoc(udg_units02[6],udg_locations02[21])
call SetUnitOwner(udg_units02[6],Player(5),true)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[6],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(5))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[6]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[6])
call UnitAddItemByIdSwapped('I006',udg_units02[6])
call UnitAddItemByIdSwapped('I009',udg_units02[6])
set udg_integers04[1]=(udg_integers04[1]-1)
if(a0())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[2]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(i0())then
set udg_units02[7]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[7],false)
call SetUnitAcquireRange(udg_units02[7],8000.)
call SetUnitPositionLoc(udg_units02[7],udg_locations02[22])
call SetUnitOwner(udg_units02[7],Player(6),true)
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[7],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(6))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[7]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[7])
call UnitAddItemByIdSwapped('I006',udg_units02[7])
call UnitAddItemByIdSwapped('I009',udg_units02[7])
set udg_integers04[2]=(udg_integers04[2]-1)
else
if(r0())then
set udg_units02[8]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[8],false)
call SetUnitAcquireRange(udg_units02[8],8000.)
call SetUnitPositionLoc(udg_units02[8],udg_locations02[22])
call SetUnitOwner(udg_units02[8],Player(7),true)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[8],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(7))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[8]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[8])
call UnitAddItemByIdSwapped('I006',udg_units02[8])
call UnitAddItemByIdSwapped('I009',udg_units02[8])
set udg_integers04[2]=(udg_integers04[2]-1)
else
if(o0())then
set udg_units02[9]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[9],false)
call SetUnitAcquireRange(udg_units02[9],8000.)
call SetUnitPositionLoc(udg_units02[9],udg_locations02[22])
call SetUnitOwner(udg_units02[9],Player(8),true)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[9],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(8))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[9]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[9])
call UnitAddItemByIdSwapped('I006',udg_units02[9])
call UnitAddItemByIdSwapped('I009',udg_units02[9])
set udg_integers04[2]=(udg_integers04[2]-1)
else
if(x0())then
set udg_units02[10]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[10],false)
call SetUnitAcquireRange(udg_units02[10],8000.)
call SetUnitPositionLoc(udg_units02[10],udg_locations02[22])
call SetUnitOwner(udg_units02[10],Player(9),true)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[10],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(9))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[10]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[10])
call UnitAddItemByIdSwapped('I006',udg_units02[10])
call UnitAddItemByIdSwapped('I009',udg_units02[10])
set udg_integers04[2]=(udg_integers04[2]-1)
else
if(e0())then
set udg_units02[11]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[11],false)
call SetUnitAcquireRange(udg_units02[11],8000.)
call SetUnitPositionLoc(udg_units02[11],udg_locations02[22])
call SetUnitOwner(udg_units02[11],Player(10),true)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[11],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(10))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[11]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[11])
call UnitAddItemByIdSwapped('I006',udg_units02[11])
call UnitAddItemByIdSwapped('I009',udg_units02[11])
set udg_integers04[2]=(udg_integers04[2]-1)
else
if(v0())then
set udg_units02[12]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[12],false)
call SetUnitAcquireRange(udg_units02[12],8000.)
call SetUnitPositionLoc(udg_units02[12],udg_locations02[22])
call SetUnitOwner(udg_units02[12],Player(11),true)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[12],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(11))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[12]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[12])
call UnitAddItemByIdSwapped('I006',udg_units02[12])
call UnitAddItemByIdSwapped('I009',udg_units02[12])
set udg_integers04[2]=(udg_integers04[2]-1)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if(ZZ())then
set udg_units02[7]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[7],false)
call SetUnitAcquireRange(udg_units02[7],8000.)
call SetUnitPositionLoc(udg_units02[7],udg_locations02[22])
call SetUnitOwner(udg_units02[7],Player(6),true)
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[7],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(6))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[7]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[7])
call UnitAddItemByIdSwapped('I006',udg_units02[7])
call UnitAddItemByIdSwapped('I009',udg_units02[7])
set udg_integers04[2]=(udg_integers04[2]-1)
if(zZ())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[1]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(YZ())then
set udg_units02[8]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[8],false)
call SetUnitAcquireRange(udg_units02[8],8000.)
call SetUnitPositionLoc(udg_units02[8],udg_locations02[22])
call SetUnitOwner(udg_units02[8],Player(7),true)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[8],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(7))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[8]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[8])
call UnitAddItemByIdSwapped('I006',udg_units02[8])
call UnitAddItemByIdSwapped('I009',udg_units02[8])
set udg_integers04[2]=(udg_integers04[2]-1)
if(yZ())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[1]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(WZ())then
set udg_units02[9]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[9],false)
call SetUnitAcquireRange(udg_units02[9],8000.)
call SetUnitPositionLoc(udg_units02[9],udg_locations02[22])
call SetUnitOwner(udg_units02[9],Player(8),true)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[9],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(8))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[9]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[9])
call UnitAddItemByIdSwapped('I006',udg_units02[9])
call UnitAddItemByIdSwapped('I009',udg_units02[9])
set udg_integers04[2]=(udg_integers04[2]-1)
if(wZ())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[1]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(UZ())then
set udg_units02[10]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[10],false)
call SetUnitAcquireRange(udg_units02[10],8000.)
call SetUnitPositionLoc(udg_units02[10],udg_locations02[22])
call SetUnitOwner(udg_units02[10],Player(9),true)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[10],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(9))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[10]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[10])
call UnitAddItemByIdSwapped('I006',udg_units02[10])
call UnitAddItemByIdSwapped('I009',udg_units02[10])
set udg_integers04[2]=(udg_integers04[2]-1)
if(uZ())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[1]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(TZ())then
set udg_units02[11]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[11],false)
call SetUnitAcquireRange(udg_units02[11],8000.)
call SetUnitPositionLoc(udg_units02[11],udg_locations02[22])
call SetUnitOwner(udg_units02[11],Player(10),true)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[11],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(10))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[11]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[11])
call UnitAddItemByIdSwapped('I006',udg_units02[11])
call UnitAddItemByIdSwapped('I009',udg_units02[11])
set udg_integers04[2]=(udg_integers04[2]-1)
if(tZ())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[1]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(SZ())then
set udg_units02[12]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[12],false)
call SetUnitAcquireRange(udg_units02[12],8000.)
call SetUnitPositionLoc(udg_units02[12],udg_locations02[22])
call SetUnitOwner(udg_units02[12],Player(11),true)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[12],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(11))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[12]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[12])
call UnitAddItemByIdSwapped('I006',udg_units02[12])
call UnitAddItemByIdSwapped('I009',udg_units02[12])
set udg_integers04[2]=(udg_integers04[2]-1)
if(sZ())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("please single click "+(("|cFFFF0000"+I2S(udg_integers04[1]))+("|r"+" shinobi for enemy computers."))))
endif
else
if(QZ())then
set udg_units02[1]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[1],false)
call SetUnitAcquireRange(udg_units02[1],8000.)
call SetUnitPositionLoc(udg_units02[1],udg_locations02[21])
call SetUnitOwner(udg_units02[1],Player(0),true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[1],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[1]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[1])
call UnitAddItemByIdSwapped('I006',udg_units02[1])
call UnitAddItemByIdSwapped('I009',udg_units02[1])
set udg_integers04[1]=(udg_integers04[1]-1)
else
if(qZ())then
set udg_units02[2]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[2],false)
call SetUnitAcquireRange(udg_units02[2],8000.)
call SetUnitPositionLoc(udg_units02[2],udg_locations02[21])
call SetUnitOwner(udg_units02[2],Player(1),true)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[2],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(1))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[2]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[2])
call UnitAddItemByIdSwapped('I006',udg_units02[2])
call UnitAddItemByIdSwapped('I009',udg_units02[2])
set udg_integers04[1]=(udg_integers04[1]-1)
else
if(PZ())then
set udg_units02[3]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[3],false)
call SetUnitAcquireRange(udg_units02[3],8000.)
call SetUnitPositionLoc(udg_units02[3],udg_locations02[21])
call SetUnitOwner(udg_units02[3],Player(2),true)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[3],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(2))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[3]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[3])
call UnitAddItemByIdSwapped('I006',udg_units02[3])
call UnitAddItemByIdSwapped('I009',udg_units02[3])
set udg_integers04[1]=(udg_integers04[1]-1)
else
if(pZ())then
set udg_units02[4]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[4],false)
call SetUnitAcquireRange(udg_units02[4],8000.)
call SetUnitPositionLoc(udg_units02[4],udg_locations02[21])
call SetUnitOwner(udg_units02[4],Player(3),true)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[4],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(3))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[4]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[4])
call UnitAddItemByIdSwapped('I006',udg_units02[4])
call UnitAddItemByIdSwapped('I009',udg_units02[4])
set udg_integers04[1]=(udg_integers04[1]-1)
else
if(MZ())then
set udg_units02[5]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[5],false)
call SetUnitAcquireRange(udg_units02[5],8000.)
call SetUnitPositionLoc(udg_units02[5],udg_locations02[21])
call SetUnitOwner(udg_units02[5],Player(4),true)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[5],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(4))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[5]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[5])
call UnitAddItemByIdSwapped('I006',udg_units02[5])
call UnitAddItemByIdSwapped('I009',udg_units02[5])
set udg_integers04[1]=(udg_integers04[1]-1)
else
if(mZ())then
set udg_units02[6]=GetTriggerUnit()
call SetUnitInvulnerable(udg_units02[6],false)
call SetUnitAcquireRange(udg_units02[6],8000.)
call SetUnitPositionLoc(udg_units02[6],udg_locations02[21])
call SetUnitOwner(udg_units02[6],Player(5),true)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[6],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(5))+("|cFFFF0000's hero is |r"+GetHeroProperName(udg_units02[6]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[6])
call UnitAddItemByIdSwapped('I006',udg_units02[6])
call UnitAddItemByIdSwapped('I009',udg_units02[6])
set udg_integers04[1]=(udg_integers04[1]-1)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function d0 takes nothing returns boolean
return(GetPlayerController(Player(0))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(0))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function D0 takes nothing returns boolean
return(GetPlayerController(Player(1))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(1))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function f0 takes nothing returns boolean
return(GetPlayerController(Player(2))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(2))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function F0 takes nothing returns boolean
return(GetPlayerController(Player(3))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(3))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function g0 takes nothing returns boolean
return(GetPlayerController(Player(4))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(4))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function G0 takes nothing returns boolean
return(GetPlayerController(Player(5))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(5))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function h0 takes nothing returns boolean
return(GetPlayerController(Player(6))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(6))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(6),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function H0 takes nothing returns boolean
return(GetPlayerController(Player(7))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(7))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function j0 takes nothing returns boolean
return(GetPlayerController(Player(8))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(8))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function J0 takes nothing returns boolean
return(GetPlayerController(Player(9))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(9))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function k0 takes nothing returns boolean
return(GetPlayerController(Player(10))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(10))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function K0 takes nothing returns boolean
return(GetPlayerController(Player(11))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(Player(11))!=PLAYER_SLOT_STATE_EMPTY)and(GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED)==0)
endfunction
function l0 takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units02[bj_forLoopAIndex]=GroupPickRandomUnit(udg_group01)
call GroupRemoveUnit(udg_group01,udg_units02[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(d0())then
call SetUnitInvulnerable(udg_units02[1],false)
call SetUnitAcquireRange(udg_units02[1],8000.)
call SetUnitPositionLoc(udg_units02[1],udg_locations02[21])
call SetUnitOwner(udg_units02[1],Player(0),true)
call SetPlayerStateBJ(Player(0),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[1],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(0))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[1]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[1])
call UnitAddItemByIdSwapped('I006',udg_units02[1])
call UnitAddItemByIdSwapped('I009',udg_units02[1])
endif
if(D0())then
call SetUnitInvulnerable(udg_units02[2],false)
call SetUnitAcquireRange(udg_units02[2],8000.)
call SetUnitPositionLoc(udg_units02[2],udg_locations02[21])
call SetUnitOwner(udg_units02[2],Player(1),true)
call SetPlayerStateBJ(Player(1),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[2],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(1))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[2]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[2])
call UnitAddItemByIdSwapped('I006',udg_units02[2])
call UnitAddItemByIdSwapped('I009',udg_units02[2])
endif
if(f0())then
call SetUnitInvulnerable(udg_units02[3],false)
call SetUnitAcquireRange(udg_units02[3],8000.)
call SetUnitPositionLoc(udg_units02[3],udg_locations02[21])
call SetUnitOwner(udg_units02[3],Player(2),true)
call SetPlayerStateBJ(Player(2),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[3],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(2))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[3]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[3])
call UnitAddItemByIdSwapped('I006',udg_units02[3])
call UnitAddItemByIdSwapped('I009',udg_units02[3])
endif
if(F0())then
call SetUnitInvulnerable(udg_units02[4],false)
call SetUnitAcquireRange(udg_units02[4],8000.)
call SetUnitPositionLoc(udg_units02[4],udg_locations02[21])
call SetUnitOwner(udg_units02[4],Player(3),true)
call SetPlayerStateBJ(Player(3),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[4],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(3))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[4]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[4])
call UnitAddItemByIdSwapped('I006',udg_units02[4])
call UnitAddItemByIdSwapped('I009',udg_units02[4])
endif
if(g0())then
call SetUnitInvulnerable(udg_units02[5],false)
call SetUnitAcquireRange(udg_units02[5],8000.)
call SetUnitPositionLoc(udg_units02[5],udg_locations02[21])
call SetUnitOwner(udg_units02[5],Player(4),true)
call SetPlayerStateBJ(Player(4),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[5],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(4))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[5]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[5])
call UnitAddItemByIdSwapped('I006',udg_units02[5])
call UnitAddItemByIdSwapped('I009',udg_units02[5])
endif
if(G0())then
call SetUnitInvulnerable(udg_units02[6],false)
call SetUnitAcquireRange(udg_units02[6],8000.)
call SetUnitPositionLoc(udg_units02[6],udg_locations02[21])
call SetUnitOwner(udg_units02[6],Player(5),true)
call SetPlayerStateBJ(Player(5),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[6],851983,udg_locations02[22])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(5))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[6]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[6])
call UnitAddItemByIdSwapped('I006',udg_units02[6])
call UnitAddItemByIdSwapped('I009',udg_units02[6])
endif
if(h0())then
call SetUnitInvulnerable(udg_units02[7],false)
call SetUnitAcquireRange(udg_units02[7],8000.)
call SetUnitPositionLoc(udg_units02[7],udg_locations02[22])
call SetUnitOwner(udg_units02[7],Player(6),true)
call SetPlayerStateBJ(Player(6),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[7],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(6))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[7]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[7])
call UnitAddItemByIdSwapped('I006',udg_units02[7])
call UnitAddItemByIdSwapped('I009',udg_units02[7])
endif
if(H0())then
call SetUnitInvulnerable(udg_units02[8],false)
call SetUnitAcquireRange(udg_units02[8],8000.)
call SetUnitPositionLoc(udg_units02[8],udg_locations02[22])
call SetUnitOwner(udg_units02[8],Player(7),true)
call SetPlayerStateBJ(Player(7),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[8],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(7))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[8]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[8])
call UnitAddItemByIdSwapped('I006',udg_units02[8])
call UnitAddItemByIdSwapped('I009',udg_units02[8])
endif
if(j0())then
call SetUnitInvulnerable(udg_units02[9],false)
call SetUnitAcquireRange(udg_units02[9],8000.)
call SetUnitPositionLoc(udg_units02[9],udg_locations02[22])
call SetUnitOwner(udg_units02[9],Player(8),true)
call SetPlayerStateBJ(Player(8),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[9],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(8))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[9]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[9])
call UnitAddItemByIdSwapped('I006',udg_units02[9])
call UnitAddItemByIdSwapped('I009',udg_units02[9])
endif
if(J0())then
call SetUnitInvulnerable(udg_units02[10],false)
call SetUnitAcquireRange(udg_units02[10],8000.)
call SetUnitPositionLoc(udg_units02[10],udg_locations02[22])
call SetUnitOwner(udg_units02[10],Player(9),true)
call SetPlayerStateBJ(Player(9),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[10],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(9))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[10]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[10])
call UnitAddItemByIdSwapped('I006',udg_units02[10])
call UnitAddItemByIdSwapped('I009',udg_units02[10])
endif
if(k0())then
call SetUnitInvulnerable(udg_units02[11],false)
call SetUnitAcquireRange(udg_units02[11],8000.)
call SetUnitPositionLoc(udg_units02[11],udg_locations02[22])
call SetUnitOwner(udg_units02[11],Player(10),true)
call SetPlayerStateBJ(Player(10),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[11],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(10))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[11]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[11])
call UnitAddItemByIdSwapped('I006',udg_units02[11])
call UnitAddItemByIdSwapped('I009',udg_units02[11])
endif
if(K0())then
call SetUnitInvulnerable(udg_units02[12],false)
call SetUnitAcquireRange(udg_units02[12],8000.)
call SetUnitPositionLoc(udg_units02[12],udg_locations02[22])
call SetUnitOwner(udg_units02[12],Player(11),true)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_FOOD_USED,1)
call IssuePointOrderByIdLoc(udg_units02[12],851983,udg_locations02[21])
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(GetPlayerName(Player(11))+("|cFFFF0000 has chosen |r"+GetHeroProperName(udg_units02[12]))))
call UnitAddItemByIdSwapped('I00D',udg_units02[12])
call UnitAddItemByIdSwapped('I006',udg_units02[12])
call UnitAddItemByIdSwapped('I009',udg_units02[12])
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units02[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_group01)
call DestroyGroup(udg_group01)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function L0 takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO))and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)
endfunction
function m0 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function M0 takes nothing returns boolean
return(GetPlayerController(GetOwningPlayer(GetFilterUnit()))==MAP_CONTROL_USER)
endfunction
function p0 takes nothing returns boolean
return GetBooleanAnd(m0(),M0())
endfunction
function P0 takes nothing returns nothing
set udg_unit237=GetEnumUnit()
endfunction
function q0 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function Q0 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function s0 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function S0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit273)
endfunction
function t0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit256)
endfunction
function T0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit274)
endfunction
function u0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit262)
endfunction
function U0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit257)
endfunction
function w0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit250)
endfunction
function W0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit283)
endfunction
function y0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit282)
endfunction
function Y0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit287)
endfunction
function z0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit285)
endfunction
function Z0 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit276)
endfunction
function v1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit286)
endfunction
function e1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit268)
endfunction
function x1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit271)
endfunction
function o1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit277)
endfunction
function r1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit272)
endfunction
function i1 takes nothing returns boolean
return(GetUnitLifePercent(udg_unit237)>=75.)
endfunction
function a1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit249)
endfunction
function n1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit291)
endfunction
function V1 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function E1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit265)
endfunction
function X1 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function O1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit267)
endfunction
function R1 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO))and(GetUnitLifePercent(udg_unit237)>=75.)
endfunction
function I1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit251)
endfunction
function A1 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function N1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit263)
endfunction
function b1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit252)
endfunction
function B1 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function c1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit266)
endfunction
function C1 takes nothing returns boolean
return(GetUnitLifePercent(udg_unit237)<=75.)
endfunction
function d1 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function D1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit280)
endfunction
function f1 takes nothing returns boolean
return(GetUnitLifePercent(udg_unit237)<=75.)
endfunction
function F1 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function g1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit281)
endfunction
function G1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit279)
endfunction
function h1 takes nothing returns boolean
return(IsUnitType(udg_unit237,UNIT_TYPE_HERO)!=null)
endfunction
function H1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit278)
endfunction
function j1 takes nothing returns boolean
return(udg_unit237!=null)
endfunction
function J1 takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations02[484]=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(GB(1,XB(900.,udg_locations02[484],Condition(function p0))),function P0)
call DestroyGroup(GetLastCreatedGroup())
if(j1())then
set udg_locations02[485]=GetUnitLoc(udg_unit237)
if(H1())then
if(h1())then
call IssueTargetOrderById(udg_unit278,852095,udg_unit237)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit278,851971,GetEnumUnit())
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit278,852096)
else
set udg_locations02[485]=GetUnitLoc(GetEnumUnit())
call IssuePointOrderByIdLoc(udg_unit278,852592,udg_locations02[485])
endif
else
if(G1())then
if(q0())then
call IssueImmediateOrderById(udg_unit279,852127)
call TriggerSleepAction(4.)
call IssueImmediateOrderById(udg_unit279,852096)
else
call IssueImmediateOrderById(udg_unit279,852526)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit279,852123)
endif
else
if(g1())then
if(F1())then
if(f1())then
call IssuePointOrderByIdLoc(udg_unit281,852592,udg_locations02[485])
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit281,852095,udg_unit237)
call TriggerSleepAction(.5)
call RemoveLocation(udg_locations02[485])
set udg_locations02[485]=GetUnitLoc(udg_unit237)
call IssuePointOrderByIdLoc(udg_unit281,852652,udg_locations02[485])
else
call IssueTargetOrderById(udg_unit281,852668,udg_unit237)
endif
else
call IssueImmediateOrderById(udg_unit281,852126)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit281,852123)
endif
else
if(D1())then
if(d1())then
if(C1())then
call IssueTargetOrderById(udg_unit280,852501,udg_unit237)
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit280,852119,udg_unit237)
else
call IssueTargetOrderById(udg_unit280,852668,udg_unit237)
endif
else
call IssueImmediateOrderById(udg_unit280,852126)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit280,852123)
endif
else
if(c1())then
if(B1())then
call IssueImmediateOrderById(udg_unit266,852127)
else
call IssuePointOrderByIdLoc(udg_unit266,852592,udg_locations02[485])
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit266,852126)
endif
else
if(b1())then
call IssueImmediateOrderById(udg_unit252,852096)
else
if(N1())then
if(A1())then
call IssueTargetOrderById(udg_unit263,852119,udg_unit237)
call TriggerSleepAction(.5)
call RemoveLocation(udg_locations02[485])
set udg_locations02[485]=GetUnitLoc(udg_unit237)
call IssuePointOrderByIdLoc(udg_unit263,851971,udg_locations02[485])
call TriggerSleepAction(2.)
call IssueImmediateOrderById(udg_unit263,852096)
else
call IssuePointOrderByIdLoc(udg_unit263,852592,udg_locations02[485])
call TriggerSleepAction(.5)
call RemoveLocation(udg_locations02[485])
set udg_locations02[485]=GetUnitLoc(udg_unit237)
call IssuePointOrderByIdLoc(udg_unit263,852652,udg_locations02[485])
endif
else
if(I1())then
if(R1())then
call IssueTargetOrderById(udg_unit251,852095,udg_unit237)
else
call IssueImmediateOrderById(udg_unit251,852180)
call TriggerSleepAction(1.6)
call IssueImmediateOrderById(udg_unit251,852127)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit251,852183)
endif
else
if(O1())then
if(X1())then
call IssueTargetOrderById(udg_unit267,852095,udg_unit237)
else
call IssueImmediateOrderById(udg_unit267,852123)
call TriggerSleepAction(.7)
call IssueImmediateOrderById(udg_unit267,852097)
endif
else
if(E1())then
if(V1())then
call IssuePointOrderByIdLoc(udg_unit265,852555,udg_locations02[485])
call TriggerSleepAction(2.5)
call IssueTargetOrderById(udg_unit265,852222,udg_unit237)
call TriggerSleepAction(2.)
call IssueTargetOrderById(udg_unit265,852171,udg_unit237)
else
call IssueTargetOrderById(udg_unit265,852119,udg_unit237)
endif
else
if(n1())then
call IssueImmediateOrderById(udg_unit291,852127)
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit291,852095,udg_unit237)
else
if(a1())then
if(i1())then
call IssueImmediateOrderById(udg_unit249,852096)
else
call IssueImmediateOrderById(udg_unit249,852126)
endif
else
if(r1())then
call IssueImmediateOrderById(udg_unit272,852086)
call TriggerSleepAction(1.7)
call IssueTargetOrderById(udg_unit272,852119,udg_unit237)
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit272,852171,udg_unit237)
else
if(o1())then
call IssueImmediateOrderById(udg_unit277,852086)
call TriggerSleepAction(1.7)
call IssueTargetOrderById(udg_unit277,852119,udg_unit237)
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit277,852171,udg_unit237)
else
if(x1())then
call IssueTargetOrderById(udg_unit271,852223,udg_unit237)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit271,852095,udg_unit237)
else
if(e1())then
call IssueImmediateOrderById(udg_unit268,852123)
else
if(v1())then
call IssueTargetOrderById(udg_unit286,852095,udg_unit237)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit286,852231,udg_unit237)
call TriggerSleepAction(2.)
call UnitUseItem(udg_unit286,GetItemOfTypeFromUnitBJ(udg_unit286,'I009'))
call TriggerSleepAction(.25)
call IssueImmediateOrderById(udg_unit286,852096)
else
if(Z0())then
if(Q0())then
call IssuePointOrderByIdLoc(udg_unit276,852591,udg_locations02[485])
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit276,852556)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit276,852231,udg_unit237)
call TriggerSleepAction(.5)
call RemoveLocation(udg_locations02[485])
set udg_locations02[485]=GetUnitLoc(udg_unit237)
call IssuePointOrderByIdLoc(udg_unit276,852592,udg_locations02[485])
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit276,852106,udg_unit237)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit276,852096)
call RemoveLocation(udg_locations02[485])
set udg_locations02[485]=GetUnitLoc(udg_unit237)
call IssuePointOrderByIdLoc(udg_unit276,852591,udg_locations02[485])
call TriggerSleepAction(.5)
call UnitUseItem(udg_unit276,GetItemOfTypeFromUnitBJ(udg_unit276,'I009'))
call TriggerSleepAction(.25)
call RemoveLocation(udg_locations02[485])
set udg_locations02[485]=GetUnitLoc(udg_unit237)
call IssuePointOrderByIdLoc(udg_unit276,852592,udg_locations02[485])
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit276,852231,udg_unit237)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit276,852106,udg_unit237)
else
call IssueImmediateOrderById(udg_unit276,852556)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit276,852231,udg_unit237)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit276,852106,udg_unit237)
endif
else
if(z0())then
call IssuePointOrderByIdLoc(udg_unit285,852593,udg_locations02[485])
call TriggerSleepAction(.5)
call IssuePointOrderByIdLoc(udg_unit285,852218,udg_locations02[485])
else
if(Y0())then
call IssueImmediateOrderById(udg_unit287,852096)
else
if(y0())then
call IssuePointOrderByIdLoc(udg_unit282,852237,udg_locations02[485])
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit282,852480,udg_unit237)
else
if(W0())then
call IssueImmediateOrderById(udg_unit283,852127)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit283,852171,udg_unit237)
else
if(w0())then
call IssueImmediateOrderById(udg_unit250,852520)
else
if(U0())then
call IssueTargetOrderById(udg_unit257,852527,udg_unit237)
else
if(u0())then
call IssueTargetOrderById(udg_unit262,852226,udg_unit237)
else
if(T0())then
call IssuePointOrderByIdLoc(udg_unit274,852218,udg_locations02[485])
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit274,852096)
call TriggerSleepAction(.5)
call RemoveLocation(udg_locations02[485])
set udg_locations02[485]=GetUnitLoc(udg_unit237)
call IssuePointOrderByIdLoc(udg_unit274,851983,udg_locations02[485])
else
if(t0())then
if(s0())then
call IssueImmediateOrderById(udg_unit256,852096)
call TriggerSleepAction(.5)
call IssueTargetOrderById(bj_lastReplacedUnit,852095,udg_unit237)
call TriggerSleepAction(2.)
call IssueImmediateOrderById(bj_lastReplacedUnit,852096)
else
call IssueImmediateOrderById(udg_unit256,852097)
call TriggerSleepAction(1.)
call IssueTargetOrderById(udg_unit256,852095,udg_unit237)
endif
else
if(S0())then
call IssueImmediateOrderById(udg_unit273,852096)
else
call IssuePointOrderByIdLoc(GetTriggerUnit(),851983,udg_locations02[485])
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call RemoveLocation(udg_locations02[485])
endif
call RemoveLocation(udg_locations02[484])
set udg_unit237=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function k1 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function K1 takes nothing returns nothing
set udg_locations02[487]=GetUnitLoc(GetEnumUnit())
endfunction
function l1 takes nothing returns boolean
return(RectContainsUnit(udg_rect04,udg_unit258))and(GetPlayerController(GetOwningPlayer(udg_unit258))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(GetOwningPlayer(udg_unit258))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function L1 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function m1 takes nothing returns nothing
set udg_locations02[487]=GetUnitLoc(GetEnumUnit())
endfunction
function M1 takes nothing returns boolean
return(RectContainsUnit(udg_rect04,udg_unit287))and(GetPlayerController(GetOwningPlayer(udg_unit287))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(GetOwningPlayer(udg_unit287))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function p1 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit())))
endfunction
function P1 takes nothing returns nothing
set udg_locations02[487]=GetUnitLoc(GetEnumUnit())
endfunction
function q1 takes nothing returns boolean
return(RectContainsUnit(udg_rect04,udg_unit285))and(GetPlayerController(GetOwningPlayer(udg_unit285))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(GetOwningPlayer(udg_unit285))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Q1 takes nothing returns nothing
if(l1())then
set udg_locations02[486]=GetRandomLocInRect(udg_rect04)
call IssueImmediateOrderById(udg_unit258,852126)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit258,852596)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit258,852598)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit258,852183)
call ForGroupBJ(GB(1,XB(20000.,udg_locations02[486],Condition(function k1))),function K1)
call DestroyGroup(GetLastCreatedGroup())
call IssuePointOrderByIdLoc(udg_unit34,851983,udg_locations02[487])
call IssuePointOrderByIdLoc(udg_unit186,851983,udg_locations02[487])
call IssuePointOrderByIdLoc(udg_unit187,851983,udg_locations02[487])
call RemoveLocation(udg_locations02[486])
call RemoveLocation(udg_locations02[487])
endif
if(M1())then
set udg_locations02[486]=GetRandomLocInRect(udg_rect04)
call IssueImmediateOrderById(udg_unit287,852126)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit287,852596)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit287,852598)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit287,852183)
call ForGroupBJ(GB(1,XB(20000.,udg_locations02[486],Condition(function L1))),function m1)
call DestroyGroup(GetLastCreatedGroup())
call IssuePointOrderByIdLoc(udg_unit138,851983,udg_locations02[487])
call IssuePointOrderByIdLoc(udg_unit139,851983,udg_locations02[487])
call RemoveLocation(udg_locations02[486])
call RemoveLocation(udg_locations02[487])
endif
if(q1())then
set udg_locations02[486]=GetRandomLocInRect(udg_rect04)
call IssueImmediateOrderById(udg_unit285,852126)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit285,852598)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit285,852097)
call TriggerSleepAction(.5)
call IssueImmediateOrderById(udg_unit285,852183)
call ForGroupBJ(GB(1,XB(20000.,udg_locations02[486],Condition(function p1))),function P1)
call DestroyGroup(GetLastCreatedGroup())
call IssuePointOrderByIdLoc(udg_unit68,851983,udg_locations02[487])
call IssuePointOrderByIdLoc(udg_unit137,851983,udg_locations02[487])
call RemoveLocation(udg_locations02[486])
call RemoveLocation(udg_locations02[487])
endif
endfunction
function s1 takes nothing returns boolean
return(GetUnitLifePercent(GetTriggerUnit())<=30.)and(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_COMPUTER)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function S1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit283)or(GetTriggerUnit()==udg_unit266)or(GetTriggerUnit()==udg_unit275)or(GetTriggerUnit()==udg_unit282)or(GetTriggerUnit()==udg_unit271)or(GetTriggerUnit()==udg_unit279)or(GetTriggerUnit()==udg_unit257)or(GetTriggerUnit()==udg_unit262)
endfunction
function t1 takes nothing returns boolean
return(S1())
endfunction
function T1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit260)
endfunction
function u1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit284)
endfunction
function U1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit261)
endfunction
function w1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit252)
endfunction
function W1 takes nothing returns boolean
return(GetTriggerUnit()==udg_unit278)
endfunction
function y1 takes nothing returns nothing
if(W1())then
call IssueTargetOrderById(udg_unit278,852092,udg_unit278)
else
if(w1())then
call IssueTargetOrderById(udg_unit252,852092,udg_unit252)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit252,852160,udg_unit252)
else
if(U1())then
call IssueTargetOrderById(udg_unit261,852092,udg_unit261)
call TriggerSleepAction(.5)
call IssueTargetOrderById(udg_unit261,852160,udg_unit261)
else
if(u1())then
call IssueTargetOrderById(udg_unit284,852160,udg_unit284)
else
if(T1())then
call IssueImmediateOrderById(udg_unit260,852177)
else
if(t1())then
call IssueImmediateOrderById(GetTriggerUnit(),852096)
endif
endif
endif
endif
endif
endif
endfunction
function Y1 takes nothing returns nothing
local weathereffect we
local player p
local unit u
local integer unitID
local trigger t
local real life
local integer i
call SetCameraBounds(-5376.+GetCameraMargin(CAMERA_MARGIN_LEFT),-5632.+GetCameraMargin(CAMERA_MARGIN_BOTTOM),5760.-GetCameraMargin(CAMERA_MARGIN_RIGHT),5120.-GetCameraMargin(CAMERA_MARGIN_TOP),-5376.+GetCameraMargin(CAMERA_MARGIN_LEFT),5120.-GetCameraMargin(CAMERA_MARGIN_TOP),5760.-GetCameraMargin(CAMERA_MARGIN_RIGHT),-5632.+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("CityScapeDay")
call SetAmbientNightSound("CityScapeNight")
call SetMapMusic("Music",true,0)
set udg_sound01=CreateSound("Abilities\\Spells\\Human\\Flare\\FlareTarget3.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound01,"Flare3")
call SetSoundDuration(udg_sound01,946)
set udg_rect01=Rect(-4160.,-1344.,-3776.,-960.)
set udg_rect02=Rect(4288.,-1312.,4672.,-960.)
set udg_rect03=Rect(-768.,3584.,896.,4992.)
set udg_rect04=Rect(-4416.,-4800.,4928.,2368.)
set we=AddWeatherEffect(udg_rect04,'LRaa')
call EnableWeatherEffect(we,true)
set udg_rect05=Rect(-768.,4768.,896.,4992.)
set udg_rect06=Rect(128.,2080.,384.,2336.)
set udg_rect07=Rect(-1248.,4128.,-1056.,4320.)
set udg_rect08=Rect(-5280.,3360.,-1024.,5152.)
set udg_rect09=Rect(-2208.,3456.,-1024.,5056.)
set udg_rect10=Rect(-3488.,3456.,-2304.,5088.)
set udg_rect11=Rect(-4512.,3424.,-3584.,5088.)
set udg_rect12=Rect(-5216.,3680.,-4640.,4800.)
set p=Player(15)
set u=CreateUnit(p,'n00F',-4160.,-704.,270.)
set u=CreateUnit(p,'n00I',-4160.,-1600.,270.)
set u=CreateUnit(p,'n00G',-4160.,-1408.,270.)
set u=CreateUnit(p,'n00J',-4160.,-896.,270.)
set u=CreateUnit(p,'n00H',-4160.,-1152.,270.)
set u=CreateUnit(p,'n00H',4672.,-1152.,270.)
set u=CreateUnit(p,'n00G',4672.,-1408.,270.)
set u=CreateUnit(p,'n00J',4672.,-896.,270.)
set u=CreateUnit(p,'n00F',4672.,-704.,270.)
set u=CreateUnit(p,'n00I',4672.,-1600.,270.)
set u=CreateUnit(p,'ncop',256.,2176.,270.)
set u=CreateUnit(p,'ncop',-1152.,4224.,270.)
set u=CreateUnit(p,'ncnt',-4320.,4064.,270.)
set u=CreateUnit(p,'nct1',-4576.,4576.,270.)
set u=CreateUnit(p,'nct1',-3808.,4192.,270.)
set u=CreateUnit(p,'nct2',-4832.,3808.,270.)
set u=CreateUnit(p,'nct2',-4000.,4768.,270.)
set u=CreateUnit(p,'nct2',-2848.,3552.,270.)
set u=CreateUnit(p,'ncnt',-3104.,4448.,270.)
set u=CreateUnit(p,'nct2',-2400.,4704.,270.)
set u=CreateUnit(p,'nct1',-2592.,3936.,270.)
set u=CreateUnit(p,'nhns',-3968.,3584.,270.)
set p=Player(15)
set udg_unit274=CreateUnit(p,'E00I',256.9,4008.4,270.)
call SetHeroLevel(udg_unit274,'d',false)
call SetUnitState(udg_unit274,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit274,'A04Y')
call IssueImmediateOrder(udg_unit274,"")
call SelectHeroSkill(udg_unit274,'A03G')
call IssueImmediateOrder(udg_unit274,"")
call SelectHeroSkill(udg_unit274,'A04X')
call IssueImmediateOrder(udg_unit274,"")
call SelectHeroSkill(udg_unit274,'A04V')
call IssueImmediateOrder(udg_unit274,"")
call IssueImmediateOrder(udg_unit274,"")
call IssueImmediateOrder(udg_unit274,"")
call IssueImmediateOrder(udg_unit274,"")
call SelectHeroSkill(udg_unit274,'A03H')
call IssueImmediateOrder(udg_unit274,"")
set udg_unit253=CreateUnit(p,'H00C',-114.,4016.5,270.)
call SetHeroLevel(udg_unit253,'d',false)
call SetUnitState(udg_unit253,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit253,'A024')
call IssueImmediateOrder(udg_unit253,"")
call SelectHeroSkill(udg_unit253,'A078')
call IssueImmediateOrder(udg_unit253,"")
call SelectHeroSkill(udg_unit253,'A022')
call IssueImmediateOrder(udg_unit253,"")
call IssueImmediateOrder(udg_unit253,"")
call IssueImmediateOrder(udg_unit253,"")
call IssueImmediateOrder(udg_unit253,"")
call SelectHeroSkill(udg_unit253,'A0BM')
call IssueImmediateOrder(udg_unit253,"")
call SelectHeroSkill(udg_unit253,'A06M')
call IssueImmediateOrder(udg_unit253,"")
set udg_unit270=CreateUnit(p,'O00H',254.6,3864.2,270.)
call SetHeroLevel(udg_unit270,'d',false)
call SetUnitState(udg_unit270,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit270,'A03M')
call IssueImmediateOrder(udg_unit270,"")
call SelectHeroSkill(udg_unit270,'A03Z')
call IssueImmediateOrder(udg_unit270,"")
call SelectHeroSkill(udg_unit270,'A03X')
call IssueImmediateOrder(udg_unit270,"")
call IssueImmediateOrder(udg_unit270,"")
call IssueImmediateOrder(udg_unit270,"")
call IssueImmediateOrder(udg_unit270,"")
call IssueImmediateOrder(udg_unit270,"")
call IssueImmediateOrder(udg_unit270,"")
call IssueImmediateOrder(udg_unit270,"")
call SelectHeroSkill(udg_unit270,'A0E5')
call IssueImmediateOrder(udg_unit270,"")
call SelectHeroSkill(udg_unit270,'A0E6')
call IssueImmediateOrder(udg_unit270,"")
set udg_unit287=CreateUnit(p,'N002',487.2,4314.4,270.)
call SetHeroLevel(udg_unit287,'d',false)
call SetUnitState(udg_unit287,UNIT_STATE_MANA,18620)
call SelectHeroSkill(udg_unit287,'A0AB')
call IssueImmediateOrder(udg_unit287,"")
call SelectHeroSkill(udg_unit287,'A0AC')
call IssueImmediateOrder(udg_unit287,"")
call SelectHeroSkill(udg_unit287,'A0AD')
call IssueImmediateOrder(udg_unit287,"")
call IssueImmediateOrder(udg_unit287,"")
call IssueImmediateOrder(udg_unit287,"")
call IssueImmediateOrderById(udg_unit287,852204)
call SelectHeroSkill(udg_unit287,'A00K')
call IssueImmediateOrder(udg_unit287,"")
call SelectHeroSkill(udg_unit287,'A04Z')
call IssueImmediateOrder(udg_unit287,"")
set udg_unit264=CreateUnit(p,'U003',135.2,4012.,270.)
call SetHeroLevel(udg_unit264,'d',false)
call SetUnitState(udg_unit264,UNIT_STATE_MANA,18420)
call SelectHeroSkill(udg_unit264,'A02N')
call IssueImmediateOrder(udg_unit264,"")
call SelectHeroSkill(udg_unit264,'A00J')
call IssueImmediateOrder(udg_unit264,"")
call IssueImmediateOrder(udg_unit264,"")
call SelectHeroSkill(udg_unit264,'A02S')
call IssueImmediateOrder(udg_unit264,"")
call IssueImmediateOrder(udg_unit264,"")
call IssueImmediateOrder(udg_unit264,"")
call IssueImmediateOrder(udg_unit264,"")
call SelectHeroSkill(udg_unit264,'A006')
call IssueImmediateOrder(udg_unit264,"")
call IssueImmediateOrder(udg_unit264,"")
call IssueImmediateOrder(udg_unit264,"")
call IssueImmediateOrder(udg_unit264,"")
call SelectHeroSkill(udg_unit264,'A047')
call IssueImmediateOrder(udg_unit264,"")
set udg_unit285=CreateUnit(p,'E00L',559.9,4500.6,270.)
call SetHeroLevel(udg_unit285,'d',false)
call SetUnitState(udg_unit285,UNIT_STATE_MANA,19600)
call IssueImmediateOrder(udg_unit285,"")
call SelectHeroSkill(udg_unit285,'A00B')
call IssueImmediateOrder(udg_unit285,"")
call SelectHeroSkill(udg_unit285,'A09W')
call IssueImmediateOrder(udg_unit285,"")
call SelectHeroSkill(udg_unit285,'A09Z')
call IssueImmediateOrder(udg_unit285,"")
call SelectHeroSkill(udg_unit285,'A09T')
call IssueImmediateOrder(udg_unit285,"")
call IssueImmediateOrder(udg_unit285,"")
call IssueImmediateOrderById(udg_unit285,852204)
call SelectHeroSkill(udg_unit285,'A04Z')
call IssueImmediateOrder(udg_unit285,"")
set udg_unit284=CreateUnit(p,'H00V',-112.6,3892.1,270.)
call SetHeroLevel(udg_unit284,'d',false)
call SetUnitState(udg_unit284,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit284,'A01W')
call IssueImmediateOrder(udg_unit284,"")
call SelectHeroSkill(udg_unit284,'A05F')
call IssueImmediateOrder(udg_unit284,"")
call SelectHeroSkill(udg_unit284,'A078')
call IssueImmediateOrder(udg_unit284,"")
call SelectHeroSkill(udg_unit284,'A04G')
call SelectHeroSkill(udg_unit284,'A04G')
call SelectHeroSkill(udg_unit284,'A04G')
call SelectHeroSkill(udg_unit284,'A04G')
call SelectHeroSkill(udg_unit284,'A04G')
call SelectHeroSkill(udg_unit284,'A04G')
call SelectHeroSkill(udg_unit284,'A04G')
call SelectHeroSkill(udg_unit284,'A04G')
call SelectHeroSkill(udg_unit284,'A04G')
call SelectHeroSkill(udg_unit284,'A04G')
call IssueImmediateOrder(udg_unit284,"")
call SelectHeroSkill(udg_unit284,'A07X')
call IssueImmediateOrder(udg_unit284,"")
call IssueImmediateOrder(udg_unit284,"")
call IssueImmediateOrder(udg_unit284,"")
call IssueImmediateOrder(udg_unit284,"")
set udg_unit269=CreateUnit(p,'E005',-405.3,4502.1,270.)
call SetHeroLevel(udg_unit269,'d',false)
call SetUnitState(udg_unit269,UNIT_STATE_MANA,19600)
call IssueImmediateOrder(udg_unit269,"")
call SelectHeroSkill(udg_unit269,'A061')
call IssueImmediateOrder(udg_unit269,"")
call IssueImmediateOrder(udg_unit269,"")
call SelectHeroSkill(udg_unit269,'A065')
call IssueImmediateOrder(udg_unit269,"")
call IssueImmediateOrder(udg_unit269,"")
call IssueImmediateOrder(udg_unit269,"")
call SelectHeroSkill(udg_unit269,'A07P')
call IssueImmediateOrderById(udg_unit269,852191)
call SelectHeroSkill(udg_unit269,'A0BY')
call IssueImmediateOrder(udg_unit269,"")
call SelectHeroSkill(udg_unit269,'A0BX')
call IssueImmediateOrder(udg_unit269,"")
set udg_unit251=CreateUnit(p,'E006',-552.1,4501.6,270.)
call SetHeroLevel(udg_unit251,'d',false)
call SetUnitState(udg_unit251,UNIT_STATE_MANA,19600)
call SelectHeroSkill(udg_unit251,'A06A')
call IssueImmediateOrder(udg_unit251,"")
call SelectHeroSkill(udg_unit251,'A06Q')
call IssueImmediateOrderById(udg_unit251,852590)
call IssueImmediateOrder(udg_unit251,"")
call SelectHeroSkill(udg_unit251,'A0C0')
call IssueImmediateOrder(udg_unit251,"")
call SelectHeroSkill(udg_unit251,'A0C1')
call IssueImmediateOrder(udg_unit251,"")
call IssueImmediateOrderById(udg_unit251,852064)
set udg_unit279=CreateUnit(p,'N00B',-25.9,4864.,270.)
call SetHeroLevel(udg_unit279,'d',false)
call SetUnitState(udg_unit279,UNIT_STATE_MANA,44780)
call SelectHeroSkill(udg_unit279,'A06L')
call IssueImmediateOrder(udg_unit279,"")
call IssueImmediateOrder(udg_unit279,"")
call SelectHeroSkill(udg_unit279,'A01L')
call IssueImmediateOrder(udg_unit279,"")
call SelectHeroSkill(udg_unit279,'A05S')
call IssueImmediateOrder(udg_unit279,"")
call IssueImmediateOrder(udg_unit279,"")
call IssueImmediateOrder(udg_unit279,"")
call SelectHeroSkill(udg_unit279,'A0BC')
call IssueImmediateOrder(udg_unit279,"")
call SelectHeroSkill(udg_unit279,'A0BK')
call IssueImmediateOrder(udg_unit279,"")
set udg_unit278=CreateUnit(p,'N00D',-178.1,4855.2,270.)
call SetHeroLevel(udg_unit278,'d',false)
call SetUnitState(udg_unit278,UNIT_STATE_MANA,44780)
call SelectHeroSkill(udg_unit278,'A049')
call IssueImmediateOrder(udg_unit278,"")
call SelectHeroSkill(udg_unit278,'A01M')
call IssueImmediateOrder(udg_unit278,"")
call SelectHeroSkill(udg_unit278,'A07U')
call IssueImmediateOrder(udg_unit278,"")
call IssueImmediateOrder(udg_unit278,"")
call IssueImmediateOrder(udg_unit278,"")
call SelectHeroSkill(udg_unit278,'A00X')
call IssueImmediateOrder(udg_unit278,"")
call SelectHeroSkill(udg_unit278,'A010')
call IssueImmediateOrder(udg_unit278,"")
call IssueImmediateOrder(udg_unit278,"")
set udg_unit281=CreateUnit(p,'N00E',131.2,4872.2,270.)
call SetHeroLevel(udg_unit281,'d',false)
call SetUnitState(udg_unit281,UNIT_STATE_MANA,64780)
call SelectHeroSkill(udg_unit281,'A05I')
call IssueImmediateOrder(udg_unit281,"")
call SelectHeroSkill(udg_unit281,'A074')
call IssueImmediateOrder(udg_unit281,"")
call SelectHeroSkill(udg_unit281,'A073')
call IssueImmediateOrder(udg_unit281,"")
call SelectHeroSkill(udg_unit281,'A076')
call IssueImmediateOrder(udg_unit281,"")
call IssueImmediateOrder(udg_unit281,"")
call IssueImmediateOrder(udg_unit281,"")
call SelectHeroSkill(udg_unit281,'A071')
call IssueImmediateOrder(udg_unit281,"")
set udg_unit280=CreateUnit(p,'N00P',300.1,4884.5,270.)
call SetHeroLevel(udg_unit280,'d',false)
call SetUnitState(udg_unit280,UNIT_STATE_MANA,34780)
call IssueImmediateOrder(udg_unit280,"")
call SelectHeroSkill(udg_unit280,'A05I')
call IssueImmediateOrder(udg_unit280,"")
call SelectHeroSkill(udg_unit280,'A080')
call IssueImmediateOrder(udg_unit280,"")
call SelectHeroSkill(udg_unit280,'A081')
call IssueImmediateOrder(udg_unit280,"")
call SelectHeroSkill(udg_unit280,'A082')
call IssueImmediateOrder(udg_unit280,"")
call IssueImmediateOrder(udg_unit280,"")
call IssueImmediateOrder(udg_unit280,"")
set udg_unit276=CreateUnit(p,'E00K',132.9,3872.9,270.)
call SetHeroLevel(udg_unit276,'d',false)
call SetUnitState(udg_unit276,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit276,'A078')
call IssueImmediateOrder(udg_unit276,"")
call SelectHeroSkill(udg_unit276,'A016')
call IssueImmediateOrder(udg_unit276,"")
call SelectHeroSkill(udg_unit276,'A052')
call IssueImmediateOrder(udg_unit276,"")
call IssueImmediateOrder(udg_unit276,"")
call SelectHeroSkill(udg_unit276,'A0BN')
call IssueImmediateOrder(udg_unit276,"")
call IssueImmediateOrder(udg_unit276,"")
call IssueImmediateOrder(udg_unit276,"")
call SelectHeroSkill(udg_unit276,'A02U')
call IssueImmediateOrder(udg_unit276,"")
set udg_unit277=CreateUnit(p,'O00E',381.9,3872.6,270.)
call SetHeroLevel(udg_unit277,'d',false)
call SetUnitState(udg_unit277,UNIT_STATE_MANA,'g')
call SelectHeroSkill(udg_unit277,'A035')
call IssueImmediateOrder(udg_unit277,"")
call SelectHeroSkill(udg_unit277,'A05P')
call IssueImmediateOrder(udg_unit277,"")
call SelectHeroSkill(udg_unit277,'A032')
call IssueImmediateOrder(udg_unit277,"")
call SelectHeroSkill(udg_unit277,'A034')
call IssueImmediateOrder(udg_unit277,"")
call IssueImmediateOrder(udg_unit277,"")
call IssueImmediateOrder(udg_unit277,"")
call IssueImmediateOrder(udg_unit277,"")
call IssueImmediateOrder(udg_unit277,"")
call IssueImmediateOrder(udg_unit277,"")
call SelectHeroSkill(udg_unit277,'A0E1')
call IssueImmediateOrder(udg_unit277,"")
set udg_unit259=CreateUnit(p,'O009',-242.1,3884.6,270.)
call SetHeroLevel(udg_unit259,'d',false)
call SetUnitState(udg_unit259,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit259,'A042')
call IssueImmediateOrderById(udg_unit259,852602)
call SelectHeroSkill(udg_unit259,'A078')
call IssueImmediateOrder(udg_unit259,"")
call IssueImmediateOrder(udg_unit259,"")
call SelectHeroSkill(udg_unit259,'A01Z')
call IssueImmediateOrder(udg_unit259,"")
call SelectHeroSkill(udg_unit259,'A01U')
call IssueImmediateOrder(udg_unit259,"")
call IssueImmediateOrder(udg_unit259,"")
call SelectHeroSkill(udg_unit259,'A047')
call IssueImmediateOrder(udg_unit259,"")
call IssueImmediateOrder(udg_unit259,"")
call IssueImmediateOrder(udg_unit259,"")
call IssueImmediateOrder(udg_unit259,"")
call SelectHeroSkill(udg_unit259,'A0DY')
call IssueImmediateOrder(udg_unit259,"")
call SelectHeroSkill(udg_unit259,'A0EH')
call IssueImmediateOrder(udg_unit259,"")
set udg_unit256=CreateUnit(p,'H00F',78.3,3763.4,270.)
call SetHeroLevel(udg_unit256,'d',false)
call SetUnitState(udg_unit256,UNIT_STATE_MANA,114060)
call IssueImmediateOrder(udg_unit256,"")
call SelectHeroSkill(udg_unit256,'A04I')
call IssueImmediateOrder(udg_unit256,"")
call IssueImmediateOrder(udg_unit256,"")
call SelectHeroSkill(udg_unit256,'A04B')
call IssueImmediateOrder(udg_unit256,"")
call IssueImmediateOrder(udg_unit256,"")
call IssueImmediateOrder(udg_unit256,"")
call SelectHeroSkill(udg_unit256,'A09H')
call IssueImmediateOrder(udg_unit256,"")
call SelectHeroSkill(udg_unit256,'A0EC')
call IssueImmediateOrder(udg_unit256,"")
call SelectHeroSkill(udg_unit256,'A0EG')
call IssueImmediateOrder(udg_unit256,"")
set udg_unit261=CreateUnit(p,'E00B',-87.7,3736.2,270.)
call SetHeroLevel(udg_unit261,'d',false)
call SetUnitState(udg_unit261,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit261,'A01M')
call IssueImmediateOrder(udg_unit261,"")
call SelectHeroSkill(udg_unit261,'A07U')
call IssueImmediateOrder(udg_unit261,"")
call IssueImmediateOrder(udg_unit261,"")
call IssueImmediateOrder(udg_unit261,"")
call SelectHeroSkill(udg_unit261,'A089')
call IssueImmediateOrder(udg_unit261,"")
call SelectHeroSkill(udg_unit261,'A088')
call IssueImmediateOrder(udg_unit261,"")
call SelectHeroSkill(udg_unit261,'A008')
call IssueImmediateOrder(udg_unit261,"")
set udg_unit258=CreateUnit(p,'N000',382.2,4014.3,270.)
call SetHeroLevel(udg_unit258,'d',false)
call SetUnitState(udg_unit258,UNIT_STATE_MANA,14060)
call IssueImmediateOrderById(udg_unit258,852204)
call SelectHeroSkill(udg_unit258,'A005')
call IssueImmediateOrder(udg_unit258,"")
call SelectHeroSkill(udg_unit258,'A000')
call IssueImmediateOrder(udg_unit258,"")
call IssueImmediateOrderById(udg_unit258,852102)
call SelectHeroSkill(udg_unit258,'A08K')
call IssueImmediateOrder(udg_unit258,"")
call SelectHeroSkill(udg_unit258,'A0B6')
call IssueImmediateOrder(udg_unit258,"")
call SelectHeroSkill(udg_unit258,'A04Z')
call IssueImmediateOrder(udg_unit258,"")
set udg_unit275=CreateUnit(p,'E00H',17.6,3864.1,270.6)
call SetHeroLevel(udg_unit275,'d',false)
call SetUnitState(udg_unit275,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit275,'A078')
call IssueImmediateOrder(udg_unit275,"")
call SelectHeroSkill(udg_unit275,'A03X')
call IssueImmediateOrder(udg_unit275,"")
call IssueImmediateOrder(udg_unit275,"")
call IssueImmediateOrder(udg_unit275,"")
call IssueImmediateOrder(udg_unit275,"")
call IssueImmediateOrder(udg_unit275,"")
call SelectHeroSkill(udg_unit275,'A06X')
call IssueImmediateOrder(udg_unit275,"")
call IssueImmediateOrder(udg_unit275,"")
call IssueImmediateOrder(udg_unit275,"")
set udg_unit254=CreateUnit(p,'H009',1.9,4017.7,270.)
call SetHeroLevel(udg_unit254,'d',false)
call SetUnitState(udg_unit254,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit254,'A046')
call IssueImmediateOrder(udg_unit254,"")
call IssueImmediateOrder(udg_unit254,"")
call IssueImmediateOrder(udg_unit254,"")
call SelectHeroSkill(udg_unit254,'A008')
call IssueImmediateOrder(udg_unit254,"")
call IssueImmediateOrder(udg_unit254,"")
call SelectHeroSkill(udg_unit254,'A088')
call IssueImmediateOrder(udg_unit254,"")
call IssueImmediateOrder(udg_unit254,"")
call IssueImmediateOrder(udg_unit254,"")
call SelectHeroSkill(udg_unit254,'A033')
call IssueImmediateOrder(udg_unit254,"")
call SelectHeroSkill(udg_unit254,'A0DF')
call IssueImmediateOrder(udg_unit254,"")
call IssueImmediateOrder(udg_unit254,"")
call SelectHeroSkill(udg_unit254,'A08W')
call IssueImmediateOrder(udg_unit254,"")
set udg_unit255=CreateUnit(p,'H00B',-237.2,4039.6,270.)
call SetHeroLevel(udg_unit255,'d',false)
call SetUnitState(udg_unit255,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit255,'A05B')
call IssueImmediateOrder(udg_unit255,"")
call SelectHeroSkill(udg_unit255,'A044')
call IssueImmediateOrder(udg_unit255,"")
call SelectHeroSkill(udg_unit255,'A01V')
call SelectHeroSkill(udg_unit255,'A01V')
call SelectHeroSkill(udg_unit255,'A01V')
call SelectHeroSkill(udg_unit255,'A01V')
call SelectHeroSkill(udg_unit255,'A01V')
call SelectHeroSkill(udg_unit255,'A01V')
call SelectHeroSkill(udg_unit255,'A01V')
call SelectHeroSkill(udg_unit255,'A01V')
call SelectHeroSkill(udg_unit255,'A01V')
call SelectHeroSkill(udg_unit255,'A01V')
call IssueImmediateOrderById(udg_unit255,852102)
call SelectHeroSkill(udg_unit255,'A01Y')
call IssueImmediateOrder(udg_unit255,"")
call SelectHeroSkill(udg_unit255,'A03S')
call IssueImmediateOrder(udg_unit255,"")
call IssueImmediateOrder(udg_unit255,"")
call IssueImmediateOrder(udg_unit255,"")
set udg_unit263=CreateUnit(p,'N003',230.7,4709.1,270.)
call SetHeroLevel(udg_unit263,'d',false)
call SetUnitState(udg_unit263,UNIT_STATE_MANA,34780)
call SelectHeroSkill(udg_unit263,'A014')
call IssueImmediateOrder(udg_unit263,"")
call SelectHeroSkill(udg_unit263,'A003')
call IssueImmediateOrder(udg_unit263,"")
call IssueImmediateOrder(udg_unit263,"")
call IssueImmediateOrder(udg_unit263,"")
call SelectHeroSkill(udg_unit263,'A0A8')
call IssueImmediateOrder(udg_unit263,"")
call SelectHeroSkill(udg_unit263,'A02H')
call IssueImmediateOrder(udg_unit263,"")
call IssueImmediateOrder(udg_unit263,"")
call SelectHeroSkill(udg_unit263,'A05X')
call IssueImmediateOrder(udg_unit263,"")
set udg_unit272=CreateUnit(p,'O002',-79.2,4328.3,270.)
call SetHeroLevel(udg_unit272,'d',false)
call SetUnitState(udg_unit272,UNIT_STATE_MANA,'g')
call SelectHeroSkill(udg_unit272,'A035')
call IssueImmediateOrder(udg_unit272,"")
call SelectHeroSkill(udg_unit272,'A036')
call IssueImmediateOrder(udg_unit272,"")
call IssueImmediateOrder(udg_unit272,"")
call SelectHeroSkill(udg_unit272,'A034')
call IssueImmediateOrder(udg_unit272,"")
call IssueImmediateOrder(udg_unit272,"")
call IssueImmediateOrder(udg_unit272,"")
call SelectHeroSkill(udg_unit272,'A08T')
call IssueImmediateOrder(udg_unit272,"")
call IssueImmediateOrder(udg_unit272,"")
call SelectHeroSkill(udg_unit272,'A0E1')
call IssueImmediateOrder(udg_unit272,"")
set udg_unit271=CreateUnit(p,'E008',67.,4295.7,270.)
call SetHeroLevel(udg_unit271,'d',false)
call SetUnitState(udg_unit271,UNIT_STATE_MANA,16440)
call SelectHeroSkill(udg_unit271,'A07V')
call IssueImmediateOrder(udg_unit271,"")
call SelectHeroSkill(udg_unit271,'A04H')
call IssueImmediateOrder(udg_unit271,"")
call IssueImmediateOrder(udg_unit271,"")
call IssueImmediateOrder(udg_unit271,"")
call SelectHeroSkill(udg_unit271,'A084')
call IssueImmediateOrder(udg_unit271,"")
call SelectHeroSkill(udg_unit271,'A05S')
call IssueImmediateOrder(udg_unit271,"")
call SelectHeroSkill(udg_unit271,'A0BC')
call IssueImmediateOrder(udg_unit271,"")
set udg_unit283=CreateUnit(p,'O00G',-89.2,4162.2,270.)
call SetHeroLevel(udg_unit283,'d',false)
call SetUnitState(udg_unit283,UNIT_STATE_MANA,14260)
call SelectHeroSkill(udg_unit283,'A08Z')
call IssueImmediateOrder(udg_unit283,"")
call SelectHeroSkill(udg_unit283,'A033')
call IssueImmediateOrder(udg_unit283,"")
call SelectHeroSkill(udg_unit283,'A08X')
call IssueImmediateOrderById(udg_unit283,852102)
call SelectHeroSkill(udg_unit283,'A03U')
call IssueImmediateOrder(udg_unit283,"")
call IssueImmediateOrder(udg_unit283,"")
call SelectHeroSkill(udg_unit283,'A093')
call IssueImmediateOrder(udg_unit283,"")
call IssueImmediateOrder(udg_unit283,"")
call SelectHeroSkill(udg_unit283,'A04Z')
call IssueImmediateOrder(udg_unit283,"")
set udg_unit250=CreateUnit(p,'E00G',64.6,4165.,270.)
call SetHeroLevel(udg_unit250,'d',false)
call SetUnitState(udg_unit250,UNIT_STATE_MANA,16440)
call SelectHeroSkill(udg_unit250,'A03I')
call IssueImmediateOrder(udg_unit250,"")
call IssueImmediateOrder(udg_unit250,"")
call SelectHeroSkill(udg_unit250,'A03K')
call IssueImmediateOrder(udg_unit250,"")
call IssueImmediateOrder(udg_unit250,"")
call IssueImmediateOrder(udg_unit250,"")
call IssueImmediateOrder(udg_unit250,"")
call SelectHeroSkill(udg_unit250,'A02I')
call IssueImmediateOrder(udg_unit250,"")
call SelectHeroSkill(udg_unit250,'A07S')
call IssueImmediateOrder(udg_unit250,"")
call SelectHeroSkill(udg_unit250,'A03U')
call IssueImmediateOrder(udg_unit250,"")
call SelectHeroSkill(udg_unit250,'A04Z')
call IssueImmediateOrder(udg_unit250,"")
call IssueImmediateOrder(udg_unit250,"")
call IssueImmediateOrder(udg_unit250,"")
set udg_unit268=CreateUnit(p,'E000',209.6,4307.4,270.)
call SetHeroLevel(udg_unit268,'d',false)
call SetUnitState(udg_unit268,UNIT_STATE_MANA,16440)
call SelectHeroSkill(udg_unit268,'A00O')
call IssueImmediateOrder(udg_unit268,"")
call SelectHeroSkill(udg_unit268,'A028')
call IssueImmediateOrder(udg_unit268,"")
call SelectHeroSkill(udg_unit268,'A04T')
call IssueImmediateOrder(udg_unit268,"")
call IssueImmediateOrder(udg_unit268,"")
call SelectHeroSkill(udg_unit268,'A05S')
call IssueImmediateOrder(udg_unit268,"")
call IssueImmediateOrder(udg_unit268,"")
call SelectHeroSkill(udg_unit268,'A0B5')
call IssueImmediateOrder(udg_unit268,"")
set udg_unit267=CreateUnit(p,'E00E',-249.3,4487.1,270.)
call SetHeroLevel(udg_unit267,'d',false)
call SetUnitState(udg_unit267,UNIT_STATE_MANA,49600)
call SelectHeroSkill(udg_unit267,'A007')
call IssueImmediateOrder(udg_unit267,"")
call SelectHeroSkill(udg_unit267,'A026')
call IssueImmediateOrder(udg_unit267,"")
call SelectHeroSkill(udg_unit267,'A028')
call IssueImmediateOrder(udg_unit267,"")
call IssueImmediateOrder(udg_unit267,"")
call IssueImmediateOrder(udg_unit267,"")
call SelectHeroSkill(udg_unit267,'A05S')
call IssueImmediateOrder(udg_unit267,"")
call SelectHeroSkill(udg_unit267,'A0B4')
call IssueImmediateOrder(udg_unit267,"")
set udg_unit265=CreateUnit(p,'H002',-105.6,4498.6,270.)
call SetHeroLevel(udg_unit265,'d',false)
call SetUnitState(udg_unit265,UNIT_STATE_MANA,16640)
call SelectHeroSkill(udg_unit265,'A05A')
call IssueImmediateOrder(udg_unit265,"")
call SelectHeroSkill(udg_unit265,'A084')
call IssueImmediateOrder(udg_unit265,"")
call SelectHeroSkill(udg_unit265,'A031')
call IssueImmediateOrder(udg_unit265,"")
call SelectHeroSkill(udg_unit265,'A02Z')
call IssueImmediateOrder(udg_unit265,"")
call IssueImmediateOrder(udg_unit265,"")
call IssueImmediateOrder(udg_unit265,"")
call IssueImmediateOrder(udg_unit265,"")
call SelectHeroSkill(udg_unit265,'A0BJ')
call IssueImmediateOrder(udg_unit265,"")
set udg_unit262=CreateUnit(p,'O00C',386.4,4157.6,270.)
call SetHeroLevel(udg_unit262,'d',false)
call SetUnitState(udg_unit262,UNIT_STATE_MANA,14260)
call SelectHeroSkill(udg_unit262,'A091')
call IssueImmediateOrder(udg_unit262,"")
call SelectHeroSkill(udg_unit262,'A08W')
call IssueImmediateOrder(udg_unit262,"")
call IssueImmediateOrder(udg_unit262,"")
call IssueImmediateOrder(udg_unit262,"")
call SelectHeroSkill(udg_unit262,'A092')
call IssueImmediateOrder(udg_unit262,"")
call SelectHeroSkill(udg_unit262,'A094')
call IssueImmediateOrder(udg_unit262,"")
call SelectHeroSkill(udg_unit262,'A095')
call IssueImmediateOrder(udg_unit262,"")
call IssueImmediateOrder(udg_unit262,"")
call SelectHeroSkill(udg_unit262,'A03U')
call IssueImmediateOrder(udg_unit262,"")
call SelectHeroSkill(udg_unit262,'A04Z')
call IssueImmediateOrder(udg_unit262,"")
set udg_unit249=CreateUnit(p,'H00O',426.8,4494.8,270.)
call SetHeroLevel(udg_unit249,'d',false)
call SetUnitState(udg_unit249,UNIT_STATE_MANA,19600)
call SelectHeroSkill(udg_unit249,'A02K')
call IssueImmediateOrder(udg_unit249,"")
call IssueImmediateOrder(udg_unit249,"")
call SelectHeroSkill(udg_unit249,'A08G')
call IssueImmediateOrder(udg_unit249,"")
call SelectHeroSkill(udg_unit249,'A0AU')
call IssueImmediateOrder(udg_unit249,"")
call SelectHeroSkill(udg_unit249,'A0AW')
call IssueImmediateOrder(udg_unit249,"")
call SelectHeroSkill(udg_unit249,'A0AY')
call IssueImmediateOrder(udg_unit249,"")
call IssueImmediateOrder(udg_unit249,"")
set udg_unit260=CreateUnit(p,'N00M',-220.5,4309.5,270.)
call SetHeroLevel(udg_unit260,'d',false)
call SetUnitState(udg_unit260,UNIT_STATE_MANA,16440)
call SelectHeroSkill(udg_unit260,'A033')
call IssueImmediateOrder(udg_unit260,"")
call SelectHeroSkill(udg_unit260,'A05Z')
call IssueImmediateOrder(udg_unit260,"")
call IssueImmediateOrder(udg_unit260,"")
call IssueImmediateOrder(udg_unit260,"")
call SelectHeroSkill(udg_unit260,'A08M')
call IssueImmediateOrderById(udg_unit260,852198)
call SelectHeroSkill(udg_unit260,'A09F')
call IssueImmediateOrder(udg_unit260,"")
call SelectHeroSkill(udg_unit260,'A088')
call IssueImmediateOrder(udg_unit260,"")
call IssueImmediateOrder(udg_unit260,"")
call IssueImmediateOrder(udg_unit260,"")
set udg_unit282=CreateUnit(p,'O00B',-246.2,4169.2,270.)
call SetHeroLevel(udg_unit282,'d',false)
call SetUnitState(udg_unit282,UNIT_STATE_MANA,14260)
call SelectHeroSkill(udg_unit282,'A08P')
call IssueImmediateOrder(udg_unit282,"")
call IssueImmediateOrder(udg_unit282,"")
call SelectHeroSkill(udg_unit282,'A08Q')
call IssueImmediateOrder(udg_unit282,"")
call IssueImmediateOrder(udg_unit282,"")
call SelectHeroSkill(udg_unit282,'A08R')
call IssueImmediateOrder(udg_unit282,"")
call SelectHeroSkill(udg_unit282,'A08S')
call IssueImmediateOrder(udg_unit282,"")
call SelectHeroSkill(udg_unit282,'A08T')
call IssueImmediateOrder(udg_unit282,"")
call IssueImmediateOrder(udg_unit282,"")
call SelectHeroSkill(udg_unit282,'A03U')
call IssueImmediateOrder(udg_unit282,"")
call SelectHeroSkill(udg_unit282,'A04Z')
call IssueImmediateOrder(udg_unit282,"")
set udg_unit257=CreateUnit(p,'O00D',221.6,4160.8,270.)
call SetHeroLevel(udg_unit257,'d',false)
call SetUnitState(udg_unit257,UNIT_STATE_MANA,14260)
call SelectHeroSkill(udg_unit257,'A08V')
call IssueImmediateOrder(udg_unit257,"")
call IssueImmediateOrder(udg_unit257,"")
call IssueImmediateOrder(udg_unit257,"")
call SelectHeroSkill(udg_unit257,'A099')
call IssueImmediateOrder(udg_unit257,"")
call SelectHeroSkill(udg_unit257,'A09B')
call IssueImmediateOrder(udg_unit257,"")
call SelectHeroSkill(udg_unit257,'A09A')
call IssueImmediateOrder(udg_unit257,"")
call SelectHeroSkill(udg_unit257,'A09D')
call IssueImmediateOrder(udg_unit257,"")
call SelectHeroSkill(udg_unit257,'A03U')
call IssueImmediateOrder(udg_unit257,"")
call SelectHeroSkill(udg_unit257,'A04Z')
call IssueImmediateOrder(udg_unit257,"")
set udg_unit286=CreateUnit(p,'E00C',341.,4315.8,270.)
call SetHeroLevel(udg_unit286,'d',false)
call SetUnitState(udg_unit286,UNIT_STATE_MANA,16440)
call IssueImmediateOrder(udg_unit286,"")
call SelectHeroSkill(udg_unit286,'A09J')
call IssueImmediateOrder(udg_unit286,"")
call SelectHeroSkill(udg_unit286,'A09I')
call IssueImmediateOrder(udg_unit286,"")
call SelectHeroSkill(udg_unit286,'A09L')
call IssueImmediateOrder(udg_unit286,"")
call IssueImmediateOrder(udg_unit286,"")
call IssueImmediateOrderById(udg_unit286,852458)
call SelectHeroSkill(udg_unit286,'A0AR')
call IssueImmediateOrder(udg_unit286,"")
call SelectHeroSkill(udg_unit286,'A0AS')
call IssueImmediateOrder(udg_unit286,"")
call SelectHeroSkill(udg_unit286,'A07S')
call IssueImmediateOrder(udg_unit286,"")
set udg_unit252=CreateUnit(p,'E001',53.1,4694.2,270.)
call SetHeroLevel(udg_unit252,'d',false)
call SetUnitState(udg_unit252,UNIT_STATE_MANA,34780)
call SelectHeroSkill(udg_unit252,'A089')
call IssueImmediateOrder(udg_unit252,"")
call SelectHeroSkill(udg_unit252,'A01M')
call IssueImmediateOrder(udg_unit252,"")
call SelectHeroSkill(udg_unit252,'A088')
call IssueImmediateOrder(udg_unit252,"")
call SelectHeroSkill(udg_unit252,'A07U')
call IssueImmediateOrder(udg_unit252,"")
call IssueImmediateOrder(udg_unit252,"")
call IssueImmediateOrder(udg_unit252,"")
call SelectHeroSkill(udg_unit252,'A07R')
call IssueImmediateOrder(udg_unit252,"")
call IssueImmediateOrder(udg_unit252,"")
call SelectHeroSkill(udg_unit252,'A08V')
call IssueImmediateOrder(udg_unit252,"")
set udg_unit273=CreateUnit(p,'E00A',240.3,3731.6,270.)
call SetHeroLevel(udg_unit273,'d',false)
call SetUnitState(udg_unit273,UNIT_STATE_MANA,14060)
call SelectHeroSkill(udg_unit273,'A084')
call IssueImmediateOrder(udg_unit273,"")
call IssueImmediateOrder(udg_unit273,"")
call IssueImmediateOrder(udg_unit273,"")
call SelectHeroSkill(udg_unit273,'A0BG')
call IssueImmediateOrder(udg_unit273,"")
call SelectHeroSkill(udg_unit273,'A0BD')
call IssueImmediateOrder(udg_unit273,"")
call SelectHeroSkill(udg_unit273,'A0BQ')
call IssueImmediateOrder(udg_unit273,"")
call IssueImmediateOrder(udg_unit273,"")
set udg_unit266=CreateUnit(p,'U000',-129.7,4690.1,270.)
call SetHeroLevel(udg_unit266,'d',false)
call SetUnitState(udg_unit266,UNIT_STATE_MANA,34780)
call SelectHeroSkill(udg_unit266,'A05Q')
call IssueImmediateOrder(udg_unit266,"")
call SelectHeroSkill(udg_unit266,'A015')
call IssueImmediateOrder(udg_unit266,"")
call SelectHeroSkill(udg_unit266,'A01G')
call IssueImmediateOrder(udg_unit266,"")
call IssueImmediateOrder(udg_unit266,"")
call IssueImmediateOrder(udg_unit266,"")
call SelectHeroSkill(udg_unit266,'A08E')
call IssueImmediateOrder(udg_unit266,"")
call SelectHeroSkill(udg_unit266,'A08F')
call IssueImmediateOrder(udg_unit266,"")
call IssueImmediateOrder(udg_unit266,"")
set udg_unit288=CreateUnit(p,'E007',690.5,4494.9,268.42)
call SetHeroLevel(udg_unit288,'d',false)
call SetUnitState(udg_unit288,UNIT_STATE_MANA,19600)
call SelectHeroSkill(udg_unit288,'A0DM')
call IssueImmediateOrder(udg_unit288,"")
call SelectHeroSkill(udg_unit288,'A0DR')
call IssueImmediateOrder(udg_unit288,"")
call SelectHeroSkill(udg_unit288,'A0DI')
call IssueImmediateOrder(udg_unit288,"")
call SelectHeroSkill(udg_unit288,'A0DN')
call IssueImmediateOrder(udg_unit288,"")
call IssueImmediateOrder(udg_unit288,"")
call IssueImmediateOrder(udg_unit288,"")
call SelectHeroSkill(udg_unit288,'A0DP')
call IssueImmediateOrder(udg_unit288,"")
set udg_unit289=CreateUnit(p,'E00D',297.9,4493.2,270.)
call SetHeroLevel(udg_unit289,'d',false)
call SetUnitState(udg_unit289,UNIT_STATE_MANA,19600)
call SelectHeroSkill(udg_unit289,'A0CE')
call IssueImmediateOrder(udg_unit289,"")
call SelectHeroSkill(udg_unit289,'A0CC')
call IssueImmediateOrder(udg_unit289,"")
call SelectHeroSkill(udg_unit289,'A0CB')
call IssueImmediateOrder(udg_unit289,"")
call SelectHeroSkill(udg_unit289,'A050')
call IssueImmediateOrder(udg_unit289,"")
call SelectHeroSkill(udg_unit289,'A0CD')
call IssueImmediateOrder(udg_unit289,"")
call IssueImmediateOrder(udg_unit289,"")
call IssueImmediateOrder(udg_unit289,"")
set udg_unit293=CreateUnit(p,'H02R',29.8,4490.8,270.)
call SetHeroLevel(udg_unit293,'d',false)
call SetUnitState(udg_unit293,UNIT_STATE_MANA,800)
call SelectHeroSkill(udg_unit293,'A0EI')
call IssueImmediateOrder(udg_unit293,"")
call SelectHeroSkill(udg_unit293,'A0EJ')
call IssueImmediateOrder(udg_unit293,"")
call IssueImmediateOrder(udg_unit293,"")
set udg_unit290=CreateUnit(p,'H029',-344.2,4315.4,270.)
call SetHeroLevel(udg_unit290,'d',false)
call SetUnitState(udg_unit290,UNIT_STATE_MANA,16440)
call SelectHeroSkill(udg_unit290,'A010')
call IssueImmediateOrder(udg_unit290,"")
call SelectHeroSkill(udg_unit290,'A049')
call IssueImmediateOrder(udg_unit290,"")
call IssueImmediateOrder(udg_unit290,"")
call IssueImmediateOrder(udg_unit290,"")
call SelectHeroSkill(udg_unit290,'A0CI')
call IssueImmediateOrder(udg_unit290,"")
call SelectHeroSkill(udg_unit290,'A0CJ')
call IssueImmediateOrder(udg_unit290,"")
call SelectHeroSkill(udg_unit290,'A0DE')
call IssueImmediateOrder(udg_unit290,"")
call IssueImmediateOrder(udg_unit290,"")
set udg_unit291=CreateUnit(p,'E00J',167.7,4492.1,270.)
call SetHeroLevel(udg_unit291,'d',false)
call SetUnitState(udg_unit291,UNIT_STATE_MANA,19600)
call IssueImmediateOrder(udg_unit291,"")
call SelectHeroSkill(udg_unit291,'A084')
call IssueImmediateOrder(udg_unit291,"")
call SelectHeroSkill(udg_unit291,'A0D6')
call IssueImmediateOrder(udg_unit291,"")
call SelectHeroSkill(udg_unit291,'A0D8')
call IssueImmediateOrder(udg_unit291,"")
call SelectHeroSkill(udg_unit291,'A0CX')
call IssueImmediateOrder(udg_unit291,"")
call IssueImmediateOrder(udg_unit291,"")
call IssueImmediateOrder(udg_unit291,"")
call SelectHeroSkill(udg_unit291,'A0CH')
call IssueImmediateOrder(udg_unit291,"")
call IssueImmediateOrder(udg_unit291,"")
set u=CreateUnit(p,'uaco',255.4,2283.7,270.)
set udg_unit292=CreateUnit(p,'Ogld',-5143.5,4192.6,349.43)
call SetHeroLevel(udg_unit292,'d',false)
call SelectHeroSkill(udg_unit292,'A01M')
call IssueImmediateOrder(udg_unit292,"")
call SelectHeroSkill(udg_unit292,'A09J')
call IssueImmediateOrder(udg_unit292,"")
call SelectHeroSkill(udg_unit292,'A03G')
call IssueImmediateOrder(udg_unit292,"")
call SelectHeroSkill(udg_unit292,'A088')
call IssueImmediateOrder(udg_unit292,"")
call SelectHeroSkill(udg_unit292,'A05S')
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrderById(udg_unit292,852458)
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
call IssueImmediateOrder(udg_unit292,"")
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit292,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit292,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function yB)
set i=0
set udg_force01=CreateForce()
set i=0
loop
exitwhen(i>1)
set udg_integers01[i]=0
set udg_integers02[i]=0
set udg_integers03[i]=0
set udg_strings01[i]=""
set udg_integers04[i]=0
set udg_integers05[i]=0
set udg_timers01[i]=CreateTimer()
set udg_units01[i]=null
set udg_units02[i]=null
set udg_units03[i]=null
set udg_units04[i]=null
set udg_units05[i]=null
set udg_units06[i]=null
set udg_units07[i]=null
set udg_units08[i]=null
set udg_units09[i]=null
set udg_units10[i]=null
set udg_booleans01[i]=true
set udg_units11[i]=null
set udg_strings02[i]=""
set udg_units12[i]=null
set udg_units13[i]=null
set udg_strings03[i]=""
set udg_booleans02[i]=false
set udg_units14[i]=null
set udg_units15[i]=null
set udg_booleans03[i]=false
set udg_booleans04[i]=false
set udg_booleans05[i]=false
set udg_booleans06[i]=false
set udg_booleans07[i]=false
set udg_integers06[i]=0
set i=i+1
endloop
set udg_dialog01=DialogCreate()
set udg_force02=CreateForce()
set udg_group01=CreateGroup()
set udg_group02=CreateGroup()
set udg_group03=CreateGroup()
set udg_group04=CreateGroup()
set udg_group05=CreateGroup()
set udg_group06=CreateGroup()
set udg_group07=CreateGroup()
set udg_group08=CreateGroup()
set udg_group09=CreateGroup()
set udg_group10=CreateGroup()
set udg_group11=CreateGroup()
set udg_boolean01=true
set udg_group12=CreateGroup()
set udg_integer32=5
set udg_group13=CreateGroup()
set udg_group14=CreateGroup()
set udg_integer36=1
set udg_group15=CreateGroup()
set udg_group16=CreateGroup()
set udg_group17=CreateGroup()
set udg_integer42=36
set udg_boolean02=true
set udg_timer01=CreateTimer()
set udg_group18=CreateGroup()
set udg_trigger01=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger01,.1)
call TriggerAddAction(udg_trigger01,function bc)
set udg_trigger02=CreateTrigger()
call DisableTrigger(udg_trigger02)
call TriggerRegisterDialogEvent(udg_trigger02,udg_dialog01)
call TriggerAddAction(udg_trigger02,function cc)
set udg_trigger03=CreateTrigger()
call DisableTrigger(udg_trigger03)
call TriggerRegisterDialogEvent(udg_trigger03,udg_dialog01)
call TriggerAddAction(udg_trigger03,function Dc)
set udg_trigger04=CreateTrigger()
call DisableTrigger(udg_trigger04)
call TriggerRegisterDialogEvent(udg_trigger04,udg_dialog01)
call TriggerAddAction(udg_trigger04,function gc)
set udg_trigger05=CreateTrigger()
call DisableTrigger(udg_trigger05)
call TriggerRegisterDialogEvent(udg_trigger05,udg_dialog01)
call TriggerAddAction(udg_trigger05,function Lc)
set udg_trigger06=CreateTrigger()
call DisableTrigger(udg_trigger06)
call TriggerAddAction(udg_trigger06,function gd)
set udg_trigger07=CreateTrigger()
call DisableTrigger(udg_trigger07)
call TriggerRegisterLeaveRectSimple(udg_trigger07,udg_rect04)
call TriggerAddCondition(udg_trigger07,Condition(function Gd))
call TriggerAddAction(udg_trigger07,function Kd)
set udg_trigger08=CreateTrigger()
call DisableTrigger(udg_trigger08)
call TriggerRegisterAnyUnitEventBJ(udg_trigger08,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger08,Condition(function ld))
call TriggerAddAction(udg_trigger08,function md)
set udg_trigger09=CreateTrigger()
call DisableTrigger(udg_trigger09)
call TriggerAddAction(udg_trigger09,function ED)
set udg_trigger10=CreateTrigger()
call DisableTrigger(udg_trigger10)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(0),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(1),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(2),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(3),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(4),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(5),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(6),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(7),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(8),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(9),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(10),"kasi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(11),"kasi",true)
call TriggerAddAction(udg_trigger10,function AD)
set udg_trigger11=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger11,Player(0),"-",false)
call TriggerAddAction(udg_trigger11,function BD)
set udg_trigger12=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger12,bj_mapInitialPlayableArea)
call TriggerAddAction(udg_trigger12,function cD)
set udg_trigger13=CreateTrigger()
call DisableTrigger(udg_trigger13)
call TriggerRegisterTimerEventPeriodic(udg_trigger13,60.)
call TriggerAddAction(udg_trigger13,function CD)
set udg_trigger14=CreateTrigger()
call DisableTrigger(udg_trigger14)
call TriggerAddAction(udg_trigger14,function DD)
set udg_trigger15=CreateTrigger()
call DisableTrigger(udg_trigger15)
call TriggerRegisterAnyUnitEventBJ(udg_trigger15,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger15,Condition(function fD))
call TriggerAddAction(udg_trigger15,function gD)
set udg_trigger16=CreateTrigger()
call DisableTrigger(udg_trigger16)
call TriggerRegisterAnyUnitEventBJ(udg_trigger16,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger16,Condition(function GD))
call TriggerAddAction(udg_trigger16,function WD)
set udg_trigger17=CreateTrigger()
call DisableTrigger(udg_trigger17)
call TriggerAddAction(udg_trigger17,function cf)
set udg_trigger18=CreateTrigger()
call DisableTrigger(udg_trigger18)
call TriggerRegisterEnterRectSimple(udg_trigger18,udg_rect06)
call TriggerAddCondition(udg_trigger18,Condition(function Cf))
call TriggerAddAction(udg_trigger18,function Pf)
set udg_trigger19=CreateTrigger()
call DisableTrigger(udg_trigger19)
call TriggerRegisterEnterRectSimple(udg_trigger19,udg_rect06)
call TriggerAddCondition(udg_trigger19,Condition(function qf))
call TriggerAddAction(udg_trigger19,function Zf)
set udg_trigger20=CreateTrigger()
call DisableTrigger(udg_trigger20)
call TriggerRegisterDialogEvent(udg_trigger20,udg_dialog01)
call TriggerAddAction(udg_trigger20,function xF)
set udg_trigger21=CreateTrigger()
call TriggerAddCondition(udg_trigger21,Condition(function oF))
call TriggerAddAction(udg_trigger21,function rF)
set udg_trigger22=CreateTrigger()
call DisableTrigger(udg_trigger22)
call TriggerRegisterDialogEvent(udg_trigger22,udg_dialog01)
call TriggerAddAction(udg_trigger22,function nF)
set udg_trigger23=CreateTrigger()
call DisableTrigger(udg_trigger23)
call TriggerRegisterDialogEvent(udg_trigger23,udg_dialog01)
call TriggerAddAction(udg_trigger23,function OF)
set udg_trigger24=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(0),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(1),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(2),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(3),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(4),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(5),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(6),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(7),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(8),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(9),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(10),"go",true)
call TriggerRegisterPlayerChatEvent(udg_trigger24,Player(11),"go",true)
call TriggerAddCondition(udg_trigger24,Condition(function IF))
call TriggerAddAction(udg_trigger24,function AF)
set udg_trigger25=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_trigger25,udg_rect08)
call TriggerAddAction(udg_trigger25,function BF)
set udg_trigger26=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger26,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger26,function fF)
set udg_trigger27=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger27,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger27,Condition(function GF))
call TriggerAddAction(udg_trigger27,function hF)
set udg_trigger28=CreateTrigger()
call DisableTrigger(udg_trigger28)
call TriggerRegisterDialogEvent(udg_trigger28,udg_dialog01)
call TriggerAddAction(udg_trigger28,function pF)
set udg_trigger29=CreateTrigger()
call DisableTrigger(udg_trigger29)
call TriggerRegisterTimerExpireEvent(udg_trigger29,udg_timer01)
call TriggerAddAction(udg_trigger29,function PF)
set udg_trigger30=CreateTrigger()
call DisableTrigger(udg_trigger30)
call TriggerRegisterAnyUnitEventBJ(udg_trigger30,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger30,Condition(function qF))
call TriggerAddAction(udg_trigger30,function QF)
set udg_trigger31=CreateTrigger()
call DisableTrigger(udg_trigger31)
call TriggerRegisterDialogEvent(udg_trigger31,udg_dialog01)
call TriggerAddAction(udg_trigger31,function vg)
set udg_trigger32=CreateTrigger()
call DisableTrigger(udg_trigger32)
call TriggerAddAction(udg_trigger32,function xg)
set udg_trigger33=CreateTrigger()
call DisableTrigger(udg_trigger33)
call TriggerAddAction(udg_trigger33,function og)
set udg_trigger34=CreateTrigger()
call DisableTrigger(udg_trigger34)
call TriggerAddCondition(udg_trigger34,Condition(function rg))
call TriggerAddAction(udg_trigger34,function ig)
set udg_trigger35=CreateTrigger()
call DisableTrigger(udg_trigger35)
call TriggerRegisterDialogEvent(udg_trigger35,udg_dialog01)
call TriggerAddAction(udg_trigger35,function Eg)
set udg_trigger36=CreateTrigger()
call DisableTrigger(udg_trigger36)
call TriggerRegisterDialogEvent(udg_trigger36,udg_dialog01)
call TriggerAddAction(udg_trigger36,function Rg)
set udg_trigger37=CreateTrigger()
call DisableTrigger(udg_trigger37)
call TriggerRegisterTimerEventPeriodic(udg_trigger37,300.)
call TriggerAddAction(udg_trigger37,function Jg)
set udg_trigger38=CreateTrigger()
call DisableTrigger(udg_trigger38)
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(3))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(5))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(6))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(7))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(8))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(9))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(10))
call TriggerRegisterPlayerEventLeave(udg_trigger38,Player(11))
call TriggerAddAction(udg_trigger38,function lg)
set udg_trigger39=CreateTrigger()
call DisableTrigger(udg_trigger39)
call TriggerRegisterAnyUnitEventBJ(udg_trigger39,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger39,Condition(function Lg))
call TriggerAddAction(udg_trigger39,function vG)
set udg_trigger40=CreateTrigger()
call DisableTrigger(udg_trigger40)
call TriggerRegisterAnyUnitEventBJ(udg_trigger40,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger40,Condition(function eG))
call TriggerAddAction(udg_trigger40,function oG)
set udg_trigger41=CreateTrigger()
call DisableTrigger(udg_trigger41)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(7),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(8),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(9),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(10),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger41,Player(11),true)
call TriggerAddCondition(udg_trigger41,Condition(function rG))
call TriggerAddAction(udg_trigger41,function nG)
set udg_trigger42=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger42,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger42,Condition(function VG))
call TriggerAddAction(udg_trigger42,function CG)
set udg_trigger43=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger43,Player(0),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger43,Condition(function dG))
call TriggerAddAction(udg_trigger43,function FG)
set udg_trigger44=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger44,Player(1),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger44,Condition(function gG))
call TriggerAddAction(udg_trigger44,function HG)
set udg_trigger45=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger45,Player(2),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger45,Condition(function jG))
call TriggerAddAction(udg_trigger45,function KG)
set udg_trigger46=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger46,Player(3),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger46,Condition(function lG))
call TriggerAddAction(udg_trigger46,function MG)
set udg_trigger47=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger47,Player(4),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger47,Condition(function pG))
call TriggerAddAction(udg_trigger47,function QG)
set udg_trigger48=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger48,Player(5),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger48,Condition(function sG))
call TriggerAddAction(udg_trigger48,function TG)
set udg_trigger49=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger49,Player(6),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger49,Condition(function uG))
call TriggerAddAction(udg_trigger49,function WG)
set udg_trigger50=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger50,Player(7),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger50,Condition(function yG))
call TriggerAddAction(udg_trigger50,function ZG)
set udg_trigger51=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger51,Player(8),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger51,Condition(function vh))
call TriggerAddAction(udg_trigger51,function oh)
set udg_trigger52=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger52,Player(9),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger52,Condition(function rh))
call TriggerAddAction(udg_trigger52,function nh)
set udg_trigger53=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger53,Player(10),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger53,Condition(function Vh))
call TriggerAddAction(udg_trigger53,function Oh)
set udg_trigger54=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger54,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger54,Condition(function Rh))
call TriggerAddAction(udg_trigger54,function Nh)
set udg_trigger55=CreateTrigger()
call DisableTrigger(udg_trigger55)
call TriggerAddAction(udg_trigger55,function Bh)
set udg_trigger56=CreateTrigger()
call DisableTrigger(udg_trigger56)
call TriggerAddAction(udg_trigger56,function ch)
set udg_trigger57=CreateTrigger()
call TriggerAddAction(udg_trigger57,function oH)
set udg_trigger58=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger58,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger58,Condition(function rH))
call TriggerAddAction(udg_trigger58,function BH)
set udg_trigger59=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger59,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger59,Condition(function cH))
call TriggerAddAction(udg_trigger59,function KH)
set udg_trigger60=CreateTrigger()
call DisableTrigger(udg_trigger60)
call TriggerAddAction(udg_trigger60,function UH)
set udg_trigger61=CreateTrigger()
call DisableTrigger(udg_trigger61)
call TriggerAddAction(udg_trigger61,function nj)
set udg_trigger62=CreateTrigger()
call DisableTrigger(udg_trigger62)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger62,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger62,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger62,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger62,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger62,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger62,Player(5),true)
call TriggerAddCondition(udg_trigger62,Condition(function Vj))
call TriggerAddAction(udg_trigger62,function Bj)
set udg_trigger63=CreateTrigger()
call DisableTrigger(udg_trigger63)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger63,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger63,Player(7),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger63,Player(8),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger63,Player(9),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger63,Player(10),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger63,Player(11),true)
call TriggerAddCondition(udg_trigger63,Condition(function cj))
call TriggerAddAction(udg_trigger63,function Hj)
set udg_trigger64=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger64,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger64,Condition(function jj))
call TriggerAddAction(udg_trigger64,function Jj)
set udg_trigger65=CreateTrigger()
call TriggerAddCondition(udg_trigger65,Condition(function kj))
call TriggerAddAction(udg_trigger65,function Kj)
set udg_trigger66=CreateTrigger()
call TriggerAddCondition(udg_trigger66,Condition(function lj))
call TriggerAddAction(udg_trigger66,function Lj)
set udg_trigger67=CreateTrigger()
call DisableTrigger(udg_trigger67)
call TriggerRegisterAnyUnitEventBJ(udg_trigger67,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger67,function pj)
set udg_trigger68=CreateTrigger()
call TriggerAddCondition(udg_trigger68,Condition(function Pj))
call TriggerAddAction(udg_trigger68,function qj)
set udg_trigger69=CreateTrigger()
call DisableTrigger(udg_trigger69)
call TriggerRegisterTimerEventPeriodic(udg_trigger69,.02)
call TriggerAddAction(udg_trigger69,function Wj)
set udg_trigger70=CreateTrigger()
call TriggerAddCondition(udg_trigger70,Condition(function yj))
call TriggerAddAction(udg_trigger70,function vJ)
set udg_trigger71=CreateTrigger()
call DisableTrigger(udg_trigger71)
call TriggerRegisterTimerEventPeriodic(udg_trigger71,.02)
call TriggerAddAction(udg_trigger71,function oJ)
set udg_trigger72=CreateTrigger()
call TriggerAddCondition(udg_trigger72,Condition(function rJ))
call TriggerAddAction(udg_trigger72,function nJ)
set udg_trigger73=CreateTrigger()
call TriggerAddCondition(udg_trigger73,Condition(function VJ))
call TriggerAddAction(udg_trigger73,function EJ)
set udg_trigger74=CreateTrigger()
call TriggerAddCondition(udg_trigger74,Condition(function XJ))
call TriggerAddAction(udg_trigger74,function OJ)
set udg_trigger75=CreateTrigger()
call TriggerAddCondition(udg_trigger75,Condition(function RJ))
call TriggerAddAction(udg_trigger75,function IJ)
set udg_trigger76=CreateTrigger()
call TriggerAddCondition(udg_trigger76,Condition(function AJ))
call TriggerAddAction(udg_trigger76,function NJ)
set udg_trigger77=CreateTrigger()
call TriggerAddCondition(udg_trigger77,Condition(function bJ))
call TriggerAddAction(udg_trigger77,function BJ)
set udg_trigger78=CreateTrigger()
call TriggerAddCondition(udg_trigger78,Condition(function cJ))
call TriggerAddAction(udg_trigger78,function CJ)
set udg_trigger79=CreateTrigger()
call TriggerAddCondition(udg_trigger79,Condition(function dJ))
call TriggerAddAction(udg_trigger79,function DJ)
set udg_trigger80=CreateTrigger()
call TriggerAddCondition(udg_trigger80,Condition(function fJ))
call TriggerAddAction(udg_trigger80,function FJ)
set udg_trigger81=CreateTrigger()
call DisableTrigger(udg_trigger81)
call TriggerRegisterTimerEventPeriodic(udg_trigger81,.02)
call TriggerAddAction(udg_trigger81,function hJ)
set udg_trigger82=CreateTrigger()
call TriggerAddCondition(udg_trigger82,Condition(function HJ))
call TriggerAddAction(udg_trigger82,function jJ)
set udg_trigger83=CreateTrigger()
call TriggerAddCondition(udg_trigger83,Condition(function JJ))
call TriggerAddAction(udg_trigger83,function kJ)
set udg_trigger84=CreateTrigger()
call DisableTrigger(udg_trigger84)
call TriggerAddAction(udg_trigger84,function KJ)
set udg_trigger85=CreateTrigger()
call TriggerAddCondition(udg_trigger85,Condition(function lJ))
call TriggerAddAction(udg_trigger85,function mJ)
set udg_trigger86=CreateTrigger()
call TriggerAddCondition(udg_trigger86,Condition(function MJ))
call TriggerAddAction(udg_trigger86,function pJ)
set udg_trigger87=CreateTrigger()
call DisableTrigger(udg_trigger87)
call TriggerRegisterTimerEventPeriodic(udg_trigger87,.2)
call TriggerAddAction(udg_trigger87,function PJ)
set udg_trigger88=CreateTrigger()
call TriggerAddCondition(udg_trigger88,Condition(function qJ))
call TriggerAddAction(udg_trigger88,function QJ)
set udg_trigger89=CreateTrigger()
call DisableTrigger(udg_trigger89)
call TriggerRegisterTimerEventPeriodic(udg_trigger89,.05)
call TriggerAddAction(udg_trigger89,function TJ)
set udg_trigger90=CreateTrigger()
call TriggerAddCondition(udg_trigger90,Condition(function uJ))
call TriggerAddAction(udg_trigger90,function UJ)
set udg_trigger91=CreateTrigger()
call DisableTrigger(udg_trigger91)
call TriggerRegisterTimerEventPeriodic(udg_trigger91,.02)
call TriggerAddAction(udg_trigger91,function WJ)
set udg_trigger92=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger92,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger92,Condition(function yJ))
call TriggerAddAction(udg_trigger92,function ZJ)
set udg_trigger93=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger93,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger93,Condition(function vk))
call TriggerAddAction(udg_trigger93,function ek)
set udg_trigger94=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger94,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger94,Condition(function xk))
call TriggerAddAction(udg_trigger94,function ok)
set udg_trigger95=CreateTrigger()
call DisableTrigger(udg_trigger95)
call TriggerAddAction(udg_trigger95,function rk)
set udg_trigger96=CreateTrigger()
call DisableTrigger(udg_trigger96)
call TriggerAddAction(udg_trigger96,function ik)
set udg_trigger97=CreateTrigger()
call TriggerAddCondition(udg_trigger97,Condition(function ak))
call TriggerAddAction(udg_trigger97,function Rk)
set udg_trigger98=CreateTrigger()
call DisableTrigger(udg_trigger98)
call TriggerRegisterTimerEventPeriodic(udg_trigger98,.03)
call TriggerAddAction(udg_trigger98,function Ik)
set udg_trigger99=CreateTrigger()
call TriggerAddCondition(udg_trigger99,Condition(function Ak))
call TriggerAddAction(udg_trigger99,function dk)
set udg_trigger100=CreateTrigger()
call DisableTrigger(udg_trigger100)
call TriggerRegisterTimerEventPeriodic(udg_trigger100,.03)
call TriggerAddAction(udg_trigger100,function Dk)
set udg_trigger101=CreateTrigger()
call TriggerAddCondition(udg_trigger101,Condition(function fk))
call TriggerAddAction(udg_trigger101,function Fk)
set udg_trigger102=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger102,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger102,Condition(function gk))
call TriggerAddAction(udg_trigger102,function jk)
set udg_trigger103=CreateTrigger()
call TriggerAddCondition(udg_trigger103,Condition(function Jk))
call TriggerAddAction(udg_trigger103,function lk)
set udg_trigger104=CreateTrigger()
call TriggerAddCondition(udg_trigger104,Condition(function Lk))
call TriggerAddAction(udg_trigger104,function pk)
set udg_trigger105=CreateTrigger()
call TriggerAddCondition(udg_trigger105,Condition(function Pk))
call TriggerAddAction(udg_trigger105,function qk)
set udg_trigger106=CreateTrigger()
call TriggerAddCondition(udg_trigger106,Condition(function Qk))
call TriggerAddAction(udg_trigger106,function sk)
set udg_trigger107=CreateTrigger()
call TriggerAddCondition(udg_trigger107,Condition(function Sk))
call TriggerAddAction(udg_trigger107,function tk)
set udg_trigger108=CreateTrigger()
call DisableTrigger(udg_trigger108)
call TriggerAddCondition(udg_trigger108,Condition(function Tk))
call TriggerAddAction(udg_trigger108,function uk)
set udg_trigger109=CreateTrigger()
call DisableTrigger(udg_trigger109)
call TriggerRegisterTimerEventPeriodic(udg_trigger109,.02)
call TriggerAddAction(udg_trigger109,function Wk)
set udg_trigger110=CreateTrigger()
call DisableTrigger(udg_trigger110)
call TriggerAddCondition(udg_trigger110,Condition(function yk))
call TriggerAddAction(udg_trigger110,function Yk)
set udg_trigger111=CreateTrigger()
call DisableTrigger(udg_trigger111)
call TriggerAddCondition(udg_trigger111,Condition(function zk))
call TriggerAddAction(udg_trigger111,function Zk)
set udg_trigger112=CreateTrigger()
call DisableTrigger(udg_trigger112)
call TriggerRegisterTimerEventPeriodic(udg_trigger112,.02)
call TriggerAddAction(udg_trigger112,function xK)
set udg_trigger113=CreateTrigger()
call DisableTrigger(udg_trigger113)
call TriggerAddCondition(udg_trigger113,Condition(function oK))
call TriggerAddAction(udg_trigger113,function rK)
set udg_trigger114=CreateTrigger()
call TriggerAddCondition(udg_trigger114,Condition(function iK))
call TriggerAddAction(udg_trigger114,function aK)
set udg_trigger115=CreateTrigger()
call TriggerAddCondition(udg_trigger115,Condition(function nK))
call TriggerAddAction(udg_trigger115,function VK)
set udg_trigger116=CreateTrigger()
call DisableTrigger(udg_trigger116)
call TriggerRegisterTimerEventPeriodic(udg_trigger116,.02)
call TriggerAddAction(udg_trigger116,function XK)
set udg_trigger117=CreateTrigger()
call TriggerAddCondition(udg_trigger117,Condition(function OK))
call TriggerAddAction(udg_trigger117,function RK)
set udg_trigger118=CreateTrigger()
call TriggerAddCondition(udg_trigger118,Condition(function IK))
call TriggerAddAction(udg_trigger118,function AK)
set udg_trigger119=CreateTrigger()
call DisableTrigger(udg_trigger119)
call TriggerAddAction(udg_trigger119,function NK)
set udg_trigger120=CreateTrigger()
call TriggerAddCondition(udg_trigger120,Condition(function bK))
call TriggerAddAction(udg_trigger120,function CK)
set udg_trigger121=CreateTrigger()
call TriggerAddCondition(udg_trigger121,Condition(function dK))
call TriggerAddAction(udg_trigger121,function DK)
set udg_trigger122=CreateTrigger()
call DisableTrigger(udg_trigger122)
call TriggerRegisterTimerEventPeriodic(udg_trigger122,.02)
call TriggerAddAction(udg_trigger122,function fK)
set udg_trigger123=CreateTrigger()
call TriggerAddCondition(udg_trigger123,Condition(function FK))
call TriggerAddAction(udg_trigger123,function gK)
set udg_trigger124=CreateTrigger()
call DisableTrigger(udg_trigger124)
call TriggerRegisterTimerEventPeriodic(udg_trigger124,.02)
call TriggerAddAction(udg_trigger124,function GK)
set udg_trigger125=CreateTrigger()
call TriggerAddCondition(udg_trigger125,Condition(function hK))
call TriggerAddAction(udg_trigger125,function jK)
set udg_trigger126=CreateTrigger()
call TriggerAddCondition(udg_trigger126,Condition(function JK))
call TriggerAddAction(udg_trigger126,function lK)
set udg_trigger127=CreateTrigger()
call DisableTrigger(udg_trigger127)
call TriggerRegisterTimerEventPeriodic(udg_trigger127,.04)
call TriggerAddAction(udg_trigger127,function mK)
set udg_trigger128=CreateTrigger()
call TriggerAddCondition(udg_trigger128,Condition(function MK))
call TriggerAddAction(udg_trigger128,function qK)
set udg_trigger129=CreateTrigger()
call DisableTrigger(udg_trigger129)
call TriggerRegisterTimerEventPeriodic(udg_trigger129,.02)
call TriggerAddAction(udg_trigger129,function sK)
set udg_trigger130=CreateTrigger()
call TriggerAddCondition(udg_trigger130,Condition(function SK))
call TriggerAddAction(udg_trigger130,function tK)
set udg_trigger131=CreateTrigger()
call TriggerAddCondition(udg_trigger131,Condition(function TK))
call TriggerAddAction(udg_trigger131,function uK)
set udg_trigger132=CreateTrigger()
call DisableTrigger(udg_trigger132)
call TriggerRegisterTimerEventPeriodic(udg_trigger132,.02)
call TriggerAddAction(udg_trigger132,function WK)
set udg_trigger133=CreateTrigger()
call TriggerAddCondition(udg_trigger133,Condition(function yK))
call TriggerAddAction(udg_trigger133,function YK)
set udg_trigger134=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger134,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger134,Condition(function zK))
call TriggerAddAction(udg_trigger134,function el)
set udg_trigger135=CreateTrigger()
call TriggerAddCondition(udg_trigger135,Condition(function xl))
call TriggerAddAction(udg_trigger135,function ol)
set udg_trigger136=CreateTrigger()
call DisableTrigger(udg_trigger136)
call TriggerRegisterTimerEventPeriodic(udg_trigger136,.05)
call TriggerAddAction(udg_trigger136,function Vl)
set udg_trigger137=CreateTrigger()
call TriggerAddCondition(udg_trigger137,Condition(function El))
call TriggerAddAction(udg_trigger137,function Xl)
set udg_trigger138=CreateTrigger()
call DisableTrigger(udg_trigger138)
call TriggerRegisterTimerEventPeriodic(udg_trigger138,.02)
call TriggerAddAction(udg_trigger138,function Ol)
set udg_trigger139=CreateTrigger()
call TriggerAddCondition(udg_trigger139,Condition(function Rl))
call TriggerAddAction(udg_trigger139,function Al)
set udg_trigger140=CreateTrigger()
call DisableTrigger(udg_trigger140)
call TriggerRegisterTimerEventPeriodic(udg_trigger140,.02)
call TriggerAddAction(udg_trigger140,function Cl)
set udg_trigger141=CreateTrigger()
call TriggerAddCondition(udg_trigger141,Condition(function dl))
call TriggerAddAction(udg_trigger141,function Gl)
set udg_trigger142=CreateTrigger()
call DisableTrigger(udg_trigger142)
call TriggerRegisterTimerEventPeriodic(udg_trigger142,.02)
call TriggerAddAction(udg_trigger142,function hl)
set udg_trigger143=CreateTrigger()
call TriggerAddCondition(udg_trigger143,Condition(function Hl))
call TriggerAddAction(udg_trigger143,function jl)
set udg_trigger144=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger144,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger144,Condition(function Jl))
call TriggerAddAction(udg_trigger144,function kl)
set udg_trigger145=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger145,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger145,Condition(function Kl))
call TriggerAddAction(udg_trigger145,function ll)
set udg_trigger146=CreateTrigger()
call TriggerAddCondition(udg_trigger146,Condition(function Ll))
call TriggerAddAction(udg_trigger146,function ml)
set udg_trigger147=CreateTrigger()
call TriggerAddCondition(udg_trigger147,Condition(function Ml))
call TriggerAddAction(udg_trigger147,function pl)
set udg_trigger148=CreateTrigger()
call DisableTrigger(udg_trigger148)
call TriggerRegisterTimerEventPeriodic(udg_trigger148,.02)
call TriggerAddAction(udg_trigger148,function Pl)
set udg_trigger149=CreateTrigger()
call TriggerAddCondition(udg_trigger149,Condition(function ql))
call TriggerAddAction(udg_trigger149,function Wl)
set udg_trigger150=CreateTrigger()
call DisableTrigger(udg_trigger150)
call TriggerRegisterTimerEventPeriodic(udg_trigger150,.02)
call TriggerAddAction(udg_trigger150,function Zl)
set udg_trigger151=CreateTrigger()
call TriggerAddCondition(udg_trigger151,Condition(function vL))
call TriggerAddAction(udg_trigger151,function eL)
set udg_trigger152=CreateTrigger()
call DisableTrigger(udg_trigger152)
call TriggerRegisterTimerEventPeriodic(udg_trigger152,.02)
call TriggerAddAction(udg_trigger152,function rL)
set udg_trigger153=CreateTrigger()
call TriggerAddCondition(udg_trigger153,Condition(function iL))
call TriggerAddAction(udg_trigger153,function VL)
set udg_trigger154=CreateTrigger()
call TriggerAddCondition(udg_trigger154,Condition(function EL))
call TriggerAddAction(udg_trigger154,function XL)
set udg_trigger155=CreateTrigger()
call TriggerAddCondition(udg_trigger155,Condition(function OL))
call TriggerAddAction(udg_trigger155,function RL)
set udg_trigger156=CreateTrigger()
call TriggerAddCondition(udg_trigger156,Condition(function IL))
call TriggerAddAction(udg_trigger156,function AL)
set udg_trigger157=CreateTrigger()
call DisableTrigger(udg_trigger157)
call TriggerRegisterTimerEventPeriodic(udg_trigger157,.02)
call TriggerAddAction(udg_trigger157,function bL)
set udg_trigger158=CreateTrigger()
call TriggerAddCondition(udg_trigger158,Condition(function BL))
call TriggerAddAction(udg_trigger158,function cL)
set udg_trigger159=CreateTrigger()
call DisableTrigger(udg_trigger159)
call TriggerRegisterTimerEventPeriodic(udg_trigger159,.02)
call TriggerAddAction(udg_trigger159,function GL)
set udg_trigger160=CreateTrigger()
call TriggerAddCondition(udg_trigger160,Condition(function hL))
call TriggerAddAction(udg_trigger160,function HL)
set udg_trigger161=CreateTrigger()
call DisableTrigger(udg_trigger161)
call TriggerRegisterTimerEventPeriodic(udg_trigger161,.05)
call TriggerAddAction(udg_trigger161,function LL)
set udg_trigger162=CreateTrigger()
call TriggerAddCondition(udg_trigger162,Condition(function mL))
call TriggerAddAction(udg_trigger162,function pL)
set udg_trigger163=CreateTrigger()
call DisableTrigger(udg_trigger163)
call TriggerRegisterTimerEventPeriodic(udg_trigger163,.02)
call TriggerAddAction(udg_trigger163,function QL)
set udg_trigger164=CreateTrigger()
call DisableTrigger(udg_trigger164)
call TriggerRegisterTimerEventPeriodic(udg_trigger164,.02)
call TriggerAddAction(udg_trigger164,function sL)
set udg_trigger165=CreateTrigger()
call TriggerAddCondition(udg_trigger165,Condition(function SL))
call TriggerAddAction(udg_trigger165,function uL)
set udg_trigger166=CreateTrigger()
call TriggerAddCondition(udg_trigger166,Condition(function UL))
call TriggerAddAction(udg_trigger166,function wL)
set udg_trigger167=CreateTrigger()
call TriggerAddCondition(udg_trigger167,Condition(function WL))
call TriggerAddAction(udg_trigger167,function yL)
set udg_trigger168=CreateTrigger()
call DisableTrigger(udg_trigger168)
call TriggerAddCondition(udg_trigger168,Condition(function YL))
call TriggerAddAction(udg_trigger168,function zL)
set udg_trigger169=CreateTrigger()
call DisableTrigger(udg_trigger169)
call TriggerRegisterAnyUnitEventBJ(udg_trigger169,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger169,Condition(function ZL))
call TriggerAddAction(udg_trigger169,function vm)
set udg_trigger170=CreateTrigger()
call TriggerAddCondition(udg_trigger170,Condition(function em))
call TriggerAddAction(udg_trigger170,function om)
set udg_trigger171=CreateTrigger()
call TriggerAddCondition(udg_trigger171,Condition(function rm))
call TriggerAddAction(udg_trigger171,function Vm)
set udg_trigger172=CreateTrigger()
call DisableTrigger(udg_trigger172)
call TriggerRegisterAnyUnitEventBJ(udg_trigger172,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger172,Condition(function Em))
call TriggerAddAction(udg_trigger172,function Om)
set udg_trigger173=CreateTrigger()
call TriggerAddCondition(udg_trigger173,Condition(function Rm))
call TriggerAddAction(udg_trigger173,function Im)
set udg_trigger174=CreateTrigger()
call DisableTrigger(udg_trigger174)
call TriggerRegisterTimerEventPeriodic(udg_trigger174,.02)
call TriggerAddAction(udg_trigger174,function Am)
set udg_trigger175=CreateTrigger()
call DisableTrigger(udg_trigger175)
call TriggerAddCondition(udg_trigger175,Condition(function Nm))
call TriggerAddAction(udg_trigger175,function bm)
set udg_trigger176=CreateTrigger()
call TriggerAddCondition(udg_trigger176,Condition(function Bm))
call TriggerAddAction(udg_trigger176,function dm)
set udg_trigger177=CreateTrigger()
call DisableTrigger(udg_trigger177)
call TriggerRegisterTimerEventPeriodic(udg_trigger177,.01)
call TriggerAddAction(udg_trigger177,function fm)
set udg_trigger178=CreateTrigger()
call TriggerAddCondition(udg_trigger178,Condition(function Fm))
call TriggerAddAction(udg_trigger178,function Gm)
set udg_trigger179=CreateTrigger()
call DisableTrigger(udg_trigger179)
call TriggerRegisterTimerEventPeriodic(udg_trigger179,.01)
call TriggerAddAction(udg_trigger179,function Hm)
set udg_trigger180=CreateTrigger()
call TriggerAddCondition(udg_trigger180,Condition(function jm))
call TriggerAddAction(udg_trigger180,function km)
set udg_trigger181=CreateTrigger()
call DisableTrigger(udg_trigger181)
call TriggerRegisterTimerEventPeriodic(udg_trigger181,.01)
call TriggerAddAction(udg_trigger181,function lm)
set udg_trigger182=CreateTrigger()
call TriggerAddCondition(udg_trigger182,Condition(function Lm))
call TriggerAddAction(udg_trigger182,function Mm)
set udg_trigger183=CreateTrigger()
call DisableTrigger(udg_trigger183)
call TriggerRegisterTimerEventPeriodic(udg_trigger183,.01)
call TriggerAddAction(udg_trigger183,function Pm)
set udg_trigger184=CreateTrigger()
call TriggerAddCondition(udg_trigger184,Condition(function qm))
call TriggerAddAction(udg_trigger184,function Qm)
set udg_trigger185=CreateTrigger()
call TriggerAddCondition(udg_trigger185,Condition(function sm))
call TriggerAddAction(udg_trigger185,function Sm)
set udg_trigger186=CreateTrigger()
call TriggerAddCondition(udg_trigger186,Condition(function tm))
call TriggerAddAction(udg_trigger186,function um)
set udg_trigger187=CreateTrigger()
call DisableTrigger(udg_trigger187)
call TriggerRegisterTimerEventPeriodic(udg_trigger187,.01)
call TriggerAddAction(udg_trigger187,function Wm)
set udg_trigger188=CreateTrigger()
call DisableTrigger(udg_trigger188)
call TriggerRegisterTimerEventPeriodic(udg_trigger188,.2)
call TriggerAddAction(udg_trigger188,function eM)
set udg_trigger189=CreateTrigger()
call TriggerAddCondition(udg_trigger189,Condition(function xM))
call TriggerAddAction(udg_trigger189,function iM)
set udg_trigger190=CreateTrigger()
call DisableTrigger(udg_trigger190)
call TriggerAddAction(udg_trigger190,function nM)
set udg_trigger191=CreateTrigger()
call DisableTrigger(udg_trigger191)
call TriggerAddCondition(udg_trigger191,Condition(function VM))
call TriggerAddAction(udg_trigger191,function EM)
set udg_trigger192=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger192,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger192,Condition(function XM))
call TriggerAddAction(udg_trigger192,function OM)
set udg_trigger193=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger193,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger193,Condition(function RM))
call TriggerAddAction(udg_trigger193,function IM)
set udg_trigger194=CreateTrigger()
call TriggerAddCondition(udg_trigger194,Condition(function AM))
call TriggerAddAction(udg_trigger194,function NM)
set udg_trigger195=CreateTrigger()
call DisableTrigger(udg_trigger195)
call TriggerRegisterAnyUnitEventBJ(udg_trigger195,EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER)
call TriggerAddCondition(udg_trigger195,Condition(function bM))
call TriggerAddAction(udg_trigger195,function BM)
set udg_trigger196=CreateTrigger()
call DisableTrigger(udg_trigger196)
call TriggerRegisterAnyUnitEventBJ(udg_trigger196,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
call TriggerAddCondition(udg_trigger196,Condition(function cM))
call TriggerAddAction(udg_trigger196,function CM)
set udg_trigger197=CreateTrigger()
call TriggerAddCondition(udg_trigger197,Condition(function dM))
call TriggerAddAction(udg_trigger197,function DM)
set udg_trigger198=CreateTrigger()
call DisableTrigger(udg_trigger198)
call TriggerRegisterTimerEventPeriodic(udg_trigger198,.08)
call TriggerAddAction(udg_trigger198,function gM)
set udg_trigger199=CreateTrigger()
call TriggerAddCondition(udg_trigger199,Condition(function GM))
call TriggerAddAction(udg_trigger199,function hM)
set udg_trigger200=CreateTrigger()
call DisableTrigger(udg_trigger200)
call TriggerRegisterTimerEventPeriodic(udg_trigger200,.08)
call TriggerAddAction(udg_trigger200,function JM)
set udg_trigger201=CreateTrigger()
call TriggerAddCondition(udg_trigger201,Condition(function kM))
call TriggerAddAction(udg_trigger201,function KM)
set udg_trigger202=CreateTrigger()
call DisableTrigger(udg_trigger202)
call TriggerRegisterTimerEventPeriodic(udg_trigger202,.08)
call TriggerAddAction(udg_trigger202,function mM)
set udg_trigger203=CreateTrigger()
call TriggerAddCondition(udg_trigger203,Condition(function MM))
call TriggerAddAction(udg_trigger203,function pM)
set udg_trigger204=CreateTrigger()
call DisableTrigger(udg_trigger204)
call TriggerRegisterTimerEventPeriodic(udg_trigger204,.08)
call TriggerAddAction(udg_trigger204,function QM)
set udg_trigger205=CreateTrigger()
call TriggerAddCondition(udg_trigger205,Condition(function sM))
call TriggerAddAction(udg_trigger205,function SM)
set udg_trigger206=CreateTrigger()
call DisableTrigger(udg_trigger206)
call TriggerRegisterAnyUnitEventBJ(udg_trigger206,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger206,Condition(function tM))
call TriggerAddAction(udg_trigger206,function TM)
set udg_trigger207=CreateTrigger()
call TriggerAddCondition(udg_trigger207,Condition(function uM))
call TriggerAddAction(udg_trigger207,function UM)
set udg_trigger208=CreateTrigger()
call TriggerAddCondition(udg_trigger208,Condition(function wM))
call TriggerAddAction(udg_trigger208,function yM)
set udg_trigger209=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger209,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger209,Condition(function YM))
call TriggerAddAction(udg_trigger209,function vp)
set udg_trigger210=CreateTrigger()
call TriggerAddCondition(udg_trigger210,Condition(function ep))
call TriggerAddAction(udg_trigger210,function xp)
set udg_trigger211=CreateTrigger()
call DisableTrigger(udg_trigger211)
call TriggerAddAction(udg_trigger211,function rp)
set udg_trigger212=CreateTrigger()
call TriggerAddCondition(udg_trigger212,Condition(function ip))
call TriggerAddAction(udg_trigger212,function Op)
set udg_trigger213=CreateTrigger()
call TriggerAddCondition(udg_trigger213,Condition(function Rp))
call TriggerAddAction(udg_trigger213,function Ip)
set udg_trigger214=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger214,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger214,Condition(function Np))
call TriggerAddAction(udg_trigger214,function Fp)
set udg_trigger215=CreateTrigger()
call TriggerAddCondition(udg_trigger215,Condition(function gp))
call TriggerAddAction(udg_trigger215,function Gp)
set udg_trigger216=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger216,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger216,Condition(function hp))
call TriggerAddAction(udg_trigger216,function jp)
set udg_trigger217=CreateTrigger()
call TriggerAddCondition(udg_trigger217,Condition(function Jp))
call TriggerAddAction(udg_trigger217,function kp)
set udg_trigger218=CreateTrigger()
call DisableTrigger(udg_trigger218)
call TriggerAddAction(udg_trigger218,function Kp)
set udg_trigger219=CreateTrigger()
call DisableTrigger(udg_trigger219)
call TriggerRegisterTimerEventPeriodic(udg_trigger219,.1)
call TriggerAddAction(udg_trigger219,function lp)
set udg_trigger220=CreateTrigger()
call TriggerAddCondition(udg_trigger220,Condition(function Lp))
call TriggerAddAction(udg_trigger220,function mp)
set udg_trigger221=CreateTrigger()
call DisableTrigger(udg_trigger221)
call TriggerRegisterAnyUnitEventBJ(udg_trigger221,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger221,Condition(function Mp))
call TriggerAddAction(udg_trigger221,function pp)
set udg_trigger222=CreateTrigger()
call DisableTrigger(udg_trigger222)
call TriggerAddCondition(udg_trigger222,Condition(function Pp))
call TriggerAddAction(udg_trigger222,function sp)
set udg_trigger223=CreateTrigger()
call TriggerAddCondition(udg_trigger223,Condition(function Sp))
call TriggerAddAction(udg_trigger223,function tp)
set udg_trigger224=CreateTrigger()
call DisableTrigger(udg_trigger224)
call TriggerRegisterTimerEventPeriodic(udg_trigger224,.02)
call TriggerAddAction(udg_trigger224,function up)
set udg_trigger225=CreateTrigger()
call TriggerAddCondition(udg_trigger225,Condition(function Up))
call TriggerAddAction(udg_trigger225,function zp)
set udg_trigger226=CreateTrigger()
call TriggerAddCondition(udg_trigger226,Condition(function Zp))
call TriggerAddAction(udg_trigger226,function VP)
set udg_trigger227=CreateTrigger()
call DisableTrigger(udg_trigger227)
call TriggerRegisterTimerEventPeriodic(udg_trigger227,.02)
call TriggerAddAction(udg_trigger227,function EP)
set udg_trigger228=CreateTrigger()
call TriggerAddCondition(udg_trigger228,Condition(function XP))
call TriggerAddAction(udg_trigger228,function RP)
set udg_trigger229=CreateTrigger()
call TriggerAddCondition(udg_trigger229,Condition(function IP))
call TriggerAddAction(udg_trigger229,function AP)
set udg_trigger230=CreateTrigger()
call TriggerRegisterUnitLifeEvent(udg_trigger230,udg_unit251,LESS_THAN,1.)
call TriggerAddAction(udg_trigger230,function FP)
set udg_trigger231=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger231,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger231,Condition(function GP))
call TriggerAddAction(udg_trigger231,function jP)
set udg_trigger232=CreateTrigger()
call TriggerAddCondition(udg_trigger232,Condition(function JP))
call TriggerAddAction(udg_trigger232,function MP)
set udg_trigger233=CreateTrigger()
call TriggerAddCondition(udg_trigger233,Condition(function pP))
call TriggerAddAction(udg_trigger233,function PP)
set udg_trigger234=CreateTrigger()
call TriggerAddCondition(udg_trigger234,Condition(function qP))
call TriggerAddAction(udg_trigger234,function TP)
set udg_trigger235=CreateTrigger()
call DisableTrigger(udg_trigger235)
call TriggerRegisterUnitEvent(udg_trigger235,udg_unit251,EVENT_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger235,Condition(function uP))
call TriggerAddAction(udg_trigger235,function wP)
set udg_trigger236=CreateTrigger()
call TriggerAddCondition(udg_trigger236,Condition(function WP))
call TriggerAddAction(udg_trigger236,function zP)
set udg_trigger237=CreateTrigger()
call TriggerAddCondition(udg_trigger237,Condition(function ZP))
call TriggerAddAction(udg_trigger237,function vq)
set udg_trigger238=CreateTrigger()
call TriggerAddCondition(udg_trigger238,Condition(function eq))
call TriggerAddAction(udg_trigger238,function xq)
set udg_trigger239=CreateTrigger()
call TriggerAddCondition(udg_trigger239,Condition(function oq))
call TriggerAddAction(udg_trigger239,function rq)
set udg_trigger240=CreateTrigger()
call TriggerAddCondition(udg_trigger240,Condition(function iq))
call TriggerAddAction(udg_trigger240,function nq)
set udg_trigger241=CreateTrigger()
call DisableTrigger(udg_trigger241)
call TriggerRegisterTimerEventPeriodic(udg_trigger241,.02)
call TriggerAddAction(udg_trigger241,function Vq)
set udg_trigger242=CreateTrigger()
call DisableTrigger(udg_trigger242)
call TriggerRegisterAnyUnitEventBJ(udg_trigger242,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger242,Condition(function Eq))
call TriggerAddAction(udg_trigger242,function Xq)
set udg_trigger243=CreateTrigger()
call TriggerAddCondition(udg_trigger243,Condition(function Oq))
call TriggerAddAction(udg_trigger243,function cq)
set udg_trigger244=CreateTrigger()
call TriggerAddCondition(udg_trigger244,Condition(function Cq))
call TriggerAddAction(udg_trigger244,function Dq)
set udg_trigger245=CreateTrigger()
call DisableTrigger(udg_trigger245)
call TriggerRegisterUnitEvent(udg_trigger245,udg_unit269,EVENT_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger245,Condition(function fq))
call TriggerAddAction(udg_trigger245,function Fq)
set udg_trigger246=CreateTrigger()
call TriggerAddCondition(udg_trigger246,Condition(function gq))
call TriggerAddAction(udg_trigger246,function Hq)
set udg_trigger247=CreateTrigger()
call DisableTrigger(udg_trigger247)
call TriggerAddAction(udg_trigger247,function kq)
set udg_trigger248=CreateTrigger()
call TriggerAddCondition(udg_trigger248,Condition(function Kq))
call TriggerAddAction(udg_trigger248,function pq)
set udg_trigger249=CreateTrigger()
call TriggerRegisterUnitLifeEvent(udg_trigger249,udg_unit269,LESS_THAN_OR_EQUAL,1.)
call TriggerAddAction(udg_trigger249,function tq)
set udg_trigger250=CreateTrigger()
call TriggerAddCondition(udg_trigger250,Condition(function Tq))
call TriggerAddAction(udg_trigger250,function uq)
set udg_trigger251=CreateTrigger()
call TriggerAddCondition(udg_trigger251,Condition(function Uq))
call TriggerAddAction(udg_trigger251,function yq)
set udg_trigger252=CreateTrigger()
call TriggerAddCondition(udg_trigger252,Condition(function Yq))
call TriggerAddAction(udg_trigger252,function zq)
set udg_trigger253=CreateTrigger()
call TriggerAddCondition(udg_trigger253,Condition(function Zq))
call TriggerAddAction(udg_trigger253,function rQ)
set udg_trigger254=CreateTrigger()
call DisableTrigger(udg_trigger254)
call TriggerRegisterAnyUnitEventBJ(udg_trigger254,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger254,Condition(function iQ))
call TriggerAddAction(udg_trigger254,function nQ)
set udg_trigger255=CreateTrigger()
call DisableTrigger(udg_trigger255)
call TriggerRegisterTimerEventPeriodic(udg_trigger255,1.)
call TriggerAddAction(udg_trigger255,function VQ)
set udg_trigger256=CreateTrigger()
call TriggerAddCondition(udg_trigger256,Condition(function EQ))
call TriggerAddAction(udg_trigger256,function XQ)
set udg_trigger257=CreateTrigger()
call DisableTrigger(udg_trigger257)
call TriggerAddAction(udg_trigger257,function OQ)
set udg_trigger258=CreateTrigger()
call DisableTrigger(udg_trigger258)
call TriggerAddAction(udg_trigger258,function RQ)
set udg_trigger259=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger259,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger259,Condition(function IQ))
call TriggerAddAction(udg_trigger259,function NQ)
set udg_trigger260=CreateTrigger()
call TriggerAddCondition(udg_trigger260,Condition(function bQ))
call TriggerAddAction(udg_trigger260,function BQ)
set udg_trigger261=CreateTrigger()
call TriggerAddCondition(udg_trigger261,Condition(function cQ))
call TriggerAddAction(udg_trigger261,function CQ)
set udg_trigger262=CreateTrigger()
call DisableTrigger(udg_trigger262)
call TriggerRegisterTimerEventPeriodic(udg_trigger262,.5)
call TriggerAddAction(udg_trigger262,function DQ)
set udg_trigger263=CreateTrigger()
call TriggerAddCondition(udg_trigger263,Condition(function fQ))
call TriggerAddAction(udg_trigger263,function FQ)
set udg_trigger264=CreateTrigger()
call DisableTrigger(udg_trigger264)
call TriggerRegisterTimerEventPeriodic(udg_trigger264,.02)
call TriggerAddAction(udg_trigger264,function GQ)
set udg_trigger265=CreateTrigger()
call DisableTrigger(udg_trigger265)
call TriggerRegisterTimerEventPeriodic(udg_trigger265,.02)
call TriggerAddAction(udg_trigger265,function hQ)
set udg_trigger266=CreateTrigger()
call TriggerAddCondition(udg_trigger266,Condition(function HQ))
call TriggerAddAction(udg_trigger266,function jQ)
set udg_trigger267=CreateTrigger()
call DisableTrigger(udg_trigger267)
call TriggerRegisterTimerEventPeriodic(udg_trigger267,.02)
call TriggerAddAction(udg_trigger267,function kQ)
set udg_trigger268=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger268,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger268,Condition(function KQ))
call TriggerAddAction(udg_trigger268,function PQ)
set udg_trigger269=CreateTrigger()
call DisableTrigger(udg_trigger269)
call TriggerRegisterTimerEventPeriodic(udg_trigger269,.02)
call TriggerAddAction(udg_trigger269,function sQ)
set udg_trigger270=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger270,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger270,Condition(function SQ))
call TriggerAddAction(udg_trigger270,function TQ)
set udg_trigger271=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger271,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger271,Condition(function uQ))
call TriggerAddAction(udg_trigger271,function UQ)
set udg_trigger272=CreateTrigger()
call TriggerAddCondition(udg_trigger272,Condition(function wQ))
call TriggerAddAction(udg_trigger272,function WQ)
set udg_trigger273=CreateTrigger()
call DisableTrigger(udg_trigger273)
call TriggerRegisterTimerEventPeriodic(udg_trigger273,.02)
call TriggerAddAction(udg_trigger273,function ZQ)
set udg_trigger274=CreateTrigger()
call TriggerAddCondition(udg_trigger274,Condition(function vs))
call TriggerAddAction(udg_trigger274,function es)
set udg_trigger275=CreateTrigger()
call TriggerAddCondition(udg_trigger275,Condition(function xs))
call TriggerAddAction(udg_trigger275,function rs)
set udg_trigger276=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger276,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger276,Condition(function is))
call TriggerAddAction(udg_trigger276,function as)
set udg_trigger277=CreateTrigger()
call DisableTrigger(udg_trigger277)
call TriggerRegisterUnitEvent(udg_trigger277,udg_unit266,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger277,Condition(function ns))
call TriggerAddAction(udg_trigger277,function Vs)
set udg_trigger278=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger278,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger278,Condition(function Es))
call TriggerAddAction(udg_trigger278,function Xs)
set udg_trigger279=CreateTrigger()
call DisableTrigger(udg_trigger279)
call TriggerRegisterUnitEvent(udg_trigger279,udg_unit281,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger279,Condition(function Os))
call TriggerAddAction(udg_trigger279,function Rs)
set udg_trigger280=CreateTrigger()
call TriggerAddCondition(udg_trigger280,Condition(function Is))
call TriggerAddAction(udg_trigger280,function As)
set udg_trigger281=CreateTrigger()
call TriggerAddCondition(udg_trigger281,Condition(function Ns))
call TriggerAddAction(udg_trigger281,function bs)
set udg_trigger282=CreateTrigger()
call TriggerAddCondition(udg_trigger282,Condition(function Bs))
call TriggerAddAction(udg_trigger282,function Cs)
set udg_trigger283=CreateTrigger()
call TriggerAddCondition(udg_trigger283,Condition(function ds))
call TriggerAddAction(udg_trigger283,function hs)
set udg_trigger284=CreateTrigger()
call DisableTrigger(udg_trigger284)
call TriggerRegisterTimerEventPeriodic(udg_trigger284,.02)
call TriggerAddAction(udg_trigger284,function Js)
set udg_trigger285=CreateTrigger()
call TriggerAddCondition(udg_trigger285,Condition(function ks))
call TriggerAddAction(udg_trigger285,function ps)
set udg_trigger286=CreateTrigger()
call DisableTrigger(udg_trigger286)
call TriggerRegisterTimerEventPeriodic(udg_trigger286,.02)
call TriggerAddAction(udg_trigger286,function Qs)
set udg_trigger287=CreateTrigger()
call TriggerAddCondition(udg_trigger287,Condition(function ss))
call TriggerAddAction(udg_trigger287,function ws)
set udg_trigger288=CreateTrigger()
call DisableTrigger(udg_trigger288)
call TriggerRegisterTimerEventPeriodic(udg_trigger288,.02)
call TriggerAddAction(udg_trigger288,function Ys)
set udg_trigger289=CreateTrigger()
call TriggerAddCondition(udg_trigger289,Condition(function zs))
call TriggerAddAction(udg_trigger289,function Zs)
set udg_trigger290=CreateTrigger()
call DisableTrigger(udg_trigger290)
call TriggerRegisterTimerEventPeriodic(udg_trigger290,.02)
call TriggerAddAction(udg_trigger290,function vS)
set udg_trigger291=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger291,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger291,Condition(function eS))
call TriggerAddAction(udg_trigger291,function NS)
set udg_trigger292=CreateTrigger()
call DisableTrigger(udg_trigger292)
call TriggerRegisterTimerEventPeriodic(udg_trigger292,.02)
call TriggerAddAction(udg_trigger292,function dS)
set udg_trigger293=CreateTrigger()
call TriggerAddCondition(udg_trigger293,Condition(function DS))
call TriggerAddAction(udg_trigger293,function gS)
set udg_trigger294=CreateTrigger()
call TriggerAddCondition(udg_trigger294,Condition(function GS))
call TriggerAddAction(udg_trigger294,function jS)
set udg_trigger295=CreateTrigger()
call DisableTrigger(udg_trigger295)
call TriggerRegisterAnyUnitEventBJ(udg_trigger295,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger295,Condition(function JS))
call TriggerAddAction(udg_trigger295,function lS)
set udg_trigger296=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger296,udg_unit271,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger296,udg_unit267,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger296,udg_unit268,EVENT_UNIT_DEATH)
call TriggerRegisterUnitManaEvent(udg_trigger296,udg_unit271,LESS_THAN,1600.)
call TriggerRegisterUnitManaEvent(udg_trigger296,udg_unit268,LESS_THAN,1600.)
call TriggerRegisterUnitManaEvent(udg_trigger296,udg_unit267,LESS_THAN,1600.)
call TriggerAddCondition(udg_trigger296,Condition(function LS))
call TriggerAddAction(udg_trigger296,function mS)
set udg_trigger297=CreateTrigger()
call TriggerAddCondition(udg_trigger297,Condition(function MS))
call TriggerAddAction(udg_trigger297,function pS)
set udg_trigger298=CreateTrigger()
call DisableTrigger(udg_trigger298)
call TriggerRegisterUnitEvent(udg_trigger298,udg_unit271,EVENT_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger298,Condition(function PS))
call TriggerAddAction(udg_trigger298,function qS)
set udg_trigger299=CreateTrigger()
call TriggerAddCondition(udg_trigger299,Condition(function QS))
call TriggerAddAction(udg_trigger299,function sS)
set udg_trigger300=CreateTrigger()
call DisableTrigger(udg_trigger300)
call TriggerRegisterUnitEvent(udg_trigger300,udg_unit267,EVENT_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger300,Condition(function SS))
call TriggerAddAction(udg_trigger300,function tS)
set udg_trigger301=CreateTrigger()
call TriggerAddCondition(udg_trigger301,Condition(function TS))
call TriggerAddAction(udg_trigger301,function uS)
set udg_trigger302=CreateTrigger()
call DisableTrigger(udg_trigger302)
call TriggerRegisterUnitEvent(udg_trigger302,udg_unit268,EVENT_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger302,Condition(function US))
call TriggerAddAction(udg_trigger302,function wS)
set udg_trigger303=CreateTrigger()
call TriggerAddCondition(udg_trigger303,Condition(function WS))
call TriggerAddAction(udg_trigger303,function yS)
set udg_trigger304=CreateTrigger()
call TriggerAddCondition(udg_trigger304,Condition(function YS))
call TriggerAddAction(udg_trigger304,function zS)
set udg_trigger305=CreateTrigger()
call DisableTrigger(udg_trigger305)
call TriggerRegisterTimerEventPeriodic(udg_trigger305,.1)
call TriggerAddCondition(udg_trigger305,Condition(function ZS))
call TriggerAddAction(udg_trigger305,function vt)
set udg_trigger306=CreateTrigger()
call TriggerAddCondition(udg_trigger306,Condition(function et))
call TriggerAddAction(udg_trigger306,function xt)
set udg_trigger307=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger307,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger307,Condition(function ot))
call TriggerAddAction(udg_trigger307,function rt)
set udg_trigger308=CreateTrigger()
call DisableTrigger(udg_trigger308)
call TriggerRegisterTimerEventPeriodic(udg_trigger308,.02)
call TriggerAddAction(udg_trigger308,function it)
set udg_trigger309=CreateTrigger()
call TriggerAddCondition(udg_trigger309,Condition(function at))
call TriggerAddAction(udg_trigger309,function Et)
set udg_trigger310=CreateTrigger()
call TriggerAddCondition(udg_trigger310,Condition(function Xt))
call TriggerAddAction(udg_trigger310,function Nt)
set udg_trigger311=CreateTrigger()
call TriggerAddCondition(udg_trigger311,Condition(function bt))
call TriggerAddAction(udg_trigger311,function ft)
set udg_trigger312=CreateTrigger()
call DisableTrigger(udg_trigger312)
call TriggerRegisterTimerEventPeriodic(udg_trigger312,.02)
call TriggerAddAction(udg_trigger312,function Ht)
set udg_trigger313=CreateTrigger()
call TriggerAddCondition(udg_trigger313,Condition(function jt))
call TriggerAddAction(udg_trigger313,function Jt)
set udg_trigger314=CreateTrigger()
call DisableTrigger(udg_trigger314)
call TriggerRegisterTimerEventPeriodic(udg_trigger314,.02)
call TriggerAddAction(udg_trigger314,function kt)
set udg_trigger315=CreateTrigger()
call TriggerAddCondition(udg_trigger315,Condition(function Kt))
call TriggerAddAction(udg_trigger315,function St)
set udg_trigger316=CreateTrigger()
call TriggerAddCondition(udg_trigger316,Condition(function Tt))
call TriggerAddAction(udg_trigger316,function Ut)
set udg_trigger317=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger317,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger317,Condition(function wt))
call TriggerAddAction(udg_trigger317,function vT)
set udg_trigger318=CreateTrigger()
call TriggerAddCondition(udg_trigger318,Condition(function eT))
call TriggerAddAction(udg_trigger318,function xT)
set udg_trigger319=CreateTrigger()
call DisableTrigger(udg_trigger319)
call TriggerRegisterTimerEventPeriodic(udg_trigger319,.02)
call TriggerAddAction(udg_trigger319,function oT)
set udg_trigger320=CreateTrigger()
call TriggerAddCondition(udg_trigger320,Condition(function rT))
call TriggerAddAction(udg_trigger320,function XT)
set udg_trigger321=CreateTrigger()
call DisableTrigger(udg_trigger321)
call TriggerRegisterTimerEventPeriodic(udg_trigger321,.02)
call TriggerAddAction(udg_trigger321,function BT)
set udg_trigger322=CreateTrigger()
call TriggerAddCondition(udg_trigger322,Condition(function cT))
call TriggerAddAction(udg_trigger322,function CT)
set udg_trigger323=CreateTrigger()
call DisableTrigger(udg_trigger323)
call TriggerRegisterTimerEventPeriodic(udg_trigger323,.02)
call TriggerAddAction(udg_trigger323,function DT)
set udg_trigger324=CreateTrigger()
call TriggerAddCondition(udg_trigger324,Condition(function fT))
call TriggerAddAction(udg_trigger324,function FT)
set udg_trigger325=CreateTrigger()
call DisableTrigger(udg_trigger325)
call TriggerRegisterTimerEventPeriodic(udg_trigger325,.02)
call TriggerAddAction(udg_trigger325,function hT)
set udg_trigger326=CreateTrigger()
call TriggerAddCondition(udg_trigger326,Condition(function HT))
call TriggerAddAction(udg_trigger326,function jT)
set udg_trigger327=CreateTrigger()
call DisableTrigger(udg_trigger327)
call TriggerRegisterTimerEventPeriodic(udg_trigger327,.02)
call TriggerAddAction(udg_trigger327,function KT)
set udg_trigger328=CreateTrigger()
call TriggerAddCondition(udg_trigger328,Condition(function lT))
call TriggerAddAction(udg_trigger328,function mT)
set udg_trigger329=CreateTrigger()
call DisableTrigger(udg_trigger329)
call TriggerRegisterTimerEventPeriodic(udg_trigger329,.02)
call TriggerAddAction(udg_trigger329,function pT)
set udg_trigger330=CreateTrigger()
call TriggerAddCondition(udg_trigger330,Condition(function PT))
call TriggerAddAction(udg_trigger330,function QT)
set udg_trigger331=CreateTrigger()
call DisableTrigger(udg_trigger331)
call TriggerAddAction(udg_trigger331,function sT)
set udg_trigger332=CreateTrigger()
call DisableTrigger(udg_trigger332)
call TriggerRegisterTimerEventPeriodic(udg_trigger332,.02)
call TriggerAddAction(udg_trigger332,function ST)
set udg_trigger333=CreateTrigger()
call TriggerAddAction(udg_trigger333,function tT)
set udg_trigger334=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger334,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger334,Condition(function TT))
call TriggerAddAction(udg_trigger334,function uT)
set udg_trigger335=CreateTrigger()
call TriggerAddCondition(udg_trigger335,Condition(function UT))
call TriggerAddAction(udg_trigger335,function yT)
set udg_trigger336=CreateTrigger()
call DisableTrigger(udg_trigger336)
call TriggerRegisterTimerEventPeriodic(udg_trigger336,.02)
call TriggerAddAction(udg_trigger336,function vu)
set udg_trigger337=CreateTrigger()
call TriggerAddCondition(udg_trigger337,Condition(function eu))
call TriggerAddAction(udg_trigger337,function ou)
set udg_trigger338=CreateTrigger()
call DisableTrigger(udg_trigger338)
call TriggerRegisterTimerEventPeriodic(udg_trigger338,.2)
call TriggerAddAction(udg_trigger338,function nu)
set udg_trigger339=CreateTrigger()
call TriggerAddCondition(udg_trigger339,Condition(function Vu))
call TriggerAddAction(udg_trigger339,function Eu)
set udg_trigger340=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger340,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger340,Condition(function Xu))
call TriggerAddAction(udg_trigger340,function Ou)
set udg_trigger341=CreateTrigger()
call TriggerAddCondition(udg_trigger341,Condition(function Ru))
call TriggerAddAction(udg_trigger341,function Iu)
set udg_trigger342=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger342,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger342,Condition(function Au))
call TriggerAddAction(udg_trigger342,function Nu)
set udg_trigger343=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger343,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger343,Condition(function bu))
call TriggerAddAction(udg_trigger343,function Fu)
set udg_trigger344=CreateTrigger()
call TriggerAddCondition(udg_trigger344,Condition(function gu))
call TriggerAddAction(udg_trigger344,function Gu)
set udg_trigger345=CreateTrigger()
call DisableTrigger(udg_trigger345)
call TriggerRegisterTimerEventPeriodic(udg_trigger345,.02)
call TriggerAddAction(udg_trigger345,function pu)
set udg_trigger346=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger346,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger346,Condition(function Pu))
call TriggerAddAction(udg_trigger346,function qu)
set udg_trigger347=CreateTrigger()
call TriggerAddCondition(udg_trigger347,Condition(function Qu))
call TriggerAddAction(udg_trigger347,function su)
set udg_trigger348=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger348,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger348,Condition(function Su))
call TriggerAddAction(udg_trigger348,function Tu)
set udg_trigger349=CreateTrigger()
call TriggerAddCondition(udg_trigger349,Condition(function uu))
call TriggerAddAction(udg_trigger349,function wu)
set udg_trigger350=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger350,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger350,Condition(function Wu))
call TriggerAddAction(udg_trigger350,function zu)
set udg_trigger351=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger351,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger351,Condition(function Zu))
call TriggerAddAction(udg_trigger351,function eU)
set udg_trigger352=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger352,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger352,Condition(function rU))
call TriggerAddAction(udg_trigger352,function AU)
set udg_trigger353=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger353,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger353,Condition(function BU))
call TriggerAddAction(udg_trigger353,function DU)
set udg_trigger354=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger354,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger354,Condition(function fU))
call TriggerAddAction(udg_trigger354,function hU)
set udg_trigger355=CreateTrigger()
call TriggerAddCondition(udg_trigger355,Condition(function HU))
call TriggerAddAction(udg_trigger355,function jU)
set udg_trigger356=CreateTrigger()
call TriggerAddCondition(udg_trigger356,Condition(function JU))
call TriggerAddAction(udg_trigger356,function kU)
set udg_trigger357=CreateTrigger()
call TriggerAddCondition(udg_trigger357,Condition(function KU))
call TriggerAddAction(udg_trigger357,function lU)
set udg_trigger358=CreateTrigger()
call TriggerAddCondition(udg_trigger358,Condition(function LU))
call TriggerAddAction(udg_trigger358,function mU)
set udg_trigger359=CreateTrigger()
call TriggerAddCondition(udg_trigger359,Condition(function MU))
call TriggerAddAction(udg_trigger359,function pU)
set udg_trigger360=CreateTrigger()
call DisableTrigger(udg_trigger360)
call TriggerAddCondition(udg_trigger360,Condition(function PU))
call TriggerAddAction(udg_trigger360,function qU)
set udg_trigger361=CreateTrigger()
call DisableTrigger(udg_trigger361)
call TriggerAddAction(udg_trigger361,function QU)
set udg_trigger362=CreateTrigger()
call TriggerAddCondition(udg_trigger362,Condition(function sU))
call TriggerAddAction(udg_trigger362,function tU)
set udg_trigger363=CreateTrigger()
call TriggerAddCondition(udg_trigger363,Condition(function TU))
call TriggerAddAction(udg_trigger363,function uU)
set udg_trigger364=CreateTrigger()
call TriggerAddCondition(udg_trigger364,Condition(function UU))
call TriggerAddAction(udg_trigger364,function wU)
set udg_trigger365=CreateTrigger()
call TriggerAddCondition(udg_trigger365,Condition(function WU))
call TriggerAddAction(udg_trigger365,function ZU)
set udg_trigger366=CreateTrigger()
call DisableTrigger(udg_trigger366)
call TriggerAddAction(udg_trigger366,function xw)
set udg_trigger367=CreateTrigger()
call TriggerAddCondition(udg_trigger367,Condition(function ow))
call TriggerAddAction(udg_trigger367,function rw)
set udg_trigger368=CreateTrigger()
call DisableTrigger(udg_trigger368)
call TriggerRegisterTimerEventPeriodic(udg_trigger368,.02)
call TriggerAddAction(udg_trigger368,function aw)
set udg_trigger369=CreateTrigger()
call TriggerAddCondition(udg_trigger369,Condition(function nw))
call TriggerAddAction(udg_trigger369,function Vw)
set udg_trigger370=CreateTrigger()
call DisableTrigger(udg_trigger370)
call TriggerAddCondition(udg_trigger370,Condition(function Ew))
call TriggerAddAction(udg_trigger370,function Rw)
set udg_trigger371=CreateTrigger()
call TriggerAddAction(udg_trigger371,function Nw)
set udg_trigger372=CreateTrigger()
call TriggerAddCondition(udg_trigger372,Condition(function bw))
call TriggerAddAction(udg_trigger372,function Cw)
set udg_trigger373=CreateTrigger()
call TriggerAddCondition(udg_trigger373,Condition(function dw))
call TriggerAddAction(udg_trigger373,function Dw)
set udg_trigger374=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger374,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger374,Condition(function fw))
call TriggerAddAction(udg_trigger374,function Gw)
set udg_trigger375=CreateTrigger()
call DisableTrigger(udg_trigger375)
call TriggerRegisterAnyUnitEventBJ(udg_trigger375,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger375,Condition(function hw))
call TriggerAddAction(udg_trigger375,function jw)
set udg_trigger376=CreateTrigger()
call TriggerAddCondition(udg_trigger376,Condition(function Jw))
call TriggerAddAction(udg_trigger376,function lw)
set udg_trigger377=CreateTrigger()
call TriggerAddCondition(udg_trigger377,Condition(function Lw))
call TriggerAddAction(udg_trigger377,function mw)
set udg_trigger378=CreateTrigger()
call DisableTrigger(udg_trigger378)
call TriggerRegisterTimerEventPeriodic(udg_trigger378,.02)
call TriggerAddAction(udg_trigger378,function Pw)
set udg_trigger379=CreateTrigger()
call DisableTrigger(udg_trigger379)
call TriggerRegisterTimerEventPeriodic(udg_trigger379,.02)
call TriggerAddAction(udg_trigger379,function qw)
set udg_trigger380=CreateTrigger()
call TriggerAddCondition(udg_trigger380,Condition(function Qw))
call TriggerAddAction(udg_trigger380,function sw)
set udg_trigger381=CreateTrigger()
call DisableTrigger(udg_trigger381)
call TriggerRegisterTimerEventPeriodic(udg_trigger381,.02)
call TriggerAddAction(udg_trigger381,function Tw)
set udg_trigger382=CreateTrigger()
call DisableTrigger(udg_trigger382)
call TriggerRegisterTimerEventPeriodic(udg_trigger382,.02)
call TriggerAddAction(udg_trigger382,function uw)
set udg_trigger383=CreateTrigger()
call TriggerAddCondition(udg_trigger383,Condition(function Uw))
call TriggerAddAction(udg_trigger383,function ww)
set udg_trigger384=CreateTrigger()
call DisableTrigger(udg_trigger384)
call TriggerRegisterTimerEventPeriodic(udg_trigger384,.2)
call TriggerAddAction(udg_trigger384,function Yw)
set udg_trigger385=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger385,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger385,Condition(function zw))
call TriggerAddAction(udg_trigger385,function Zw)
set udg_trigger386=CreateTrigger()
call DisableTrigger(udg_trigger386)
call TriggerRegisterTimerEventPeriodic(udg_trigger386,.02)
call TriggerAddAction(udg_trigger386,function xW)
set udg_trigger387=CreateTrigger()
call TriggerAddCondition(udg_trigger387,Condition(function oW))
call TriggerAddAction(udg_trigger387,function nW)
set udg_trigger388=CreateTrigger()
call DisableTrigger(udg_trigger388)
call TriggerAddAction(udg_trigger388,function EW)
set udg_trigger389=CreateTrigger()
call TriggerAddCondition(udg_trigger389,Condition(function XW))
call TriggerAddAction(udg_trigger389,function OW)
set udg_trigger390=CreateTrigger()
call TriggerAddCondition(udg_trigger390,Condition(function RW))
call TriggerAddAction(udg_trigger390,function IW)
set udg_trigger391=CreateTrigger()
call DisableTrigger(udg_trigger391)
call TriggerRegisterTimerEventPeriodic(udg_trigger391,.02)
call TriggerAddAction(udg_trigger391,function CW)
set udg_trigger392=CreateTrigger()
call DisableTrigger(udg_trigger392)
call TriggerRegisterAnyUnitEventBJ(udg_trigger392,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger392,Condition(function dW))
call TriggerAddAction(udg_trigger392,function DW)
set udg_trigger393=CreateTrigger()
call TriggerAddCondition(udg_trigger393,Condition(function fW))
call TriggerAddAction(udg_trigger393,function FW)
set udg_trigger394=CreateTrigger()
call TriggerAddCondition(udg_trigger394,Condition(function gW))
call TriggerAddAction(udg_trigger394,function GW)
set udg_trigger395=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger395,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger395,Condition(function hW))
call TriggerAddAction(udg_trigger395,function JW)
set udg_trigger396=CreateTrigger()
call DisableTrigger(udg_trigger396)
call TriggerRegisterTimerEventPeriodic(udg_trigger396,.02)
call TriggerAddAction(udg_trigger396,function kW)
set udg_trigger397=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger397,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger397,Condition(function KW))
call TriggerAddAction(udg_trigger397,function mW)
set udg_trigger398=CreateTrigger()
call DisableTrigger(udg_trigger398)
call TriggerRegisterTimerEventPeriodic(udg_trigger398,.02)
call TriggerAddAction(udg_trigger398,function pW)
set udg_trigger399=CreateTrigger()
call TriggerAddCondition(udg_trigger399,Condition(function PW))
call TriggerAddAction(udg_trigger399,function qW)
set udg_trigger400=CreateTrigger()
call DisableTrigger(udg_trigger400)
call TriggerRegisterTimerEventPeriodic(udg_trigger400,.5)
call TriggerAddAction(udg_trigger400,function SW)
set udg_trigger401=CreateTrigger()
call TriggerAddCondition(udg_trigger401,Condition(function tW))
call TriggerAddAction(udg_trigger401,function TW)
set udg_trigger402=CreateTrigger()
call DisableTrigger(udg_trigger402)
call TriggerRegisterTimerEventPeriodic(udg_trigger402,.5)
call TriggerAddAction(udg_trigger402,function wW)
set udg_trigger403=CreateTrigger()
call TriggerAddCondition(udg_trigger403,Condition(function WW))
call TriggerAddAction(udg_trigger403,function YW)
set udg_trigger404=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger404,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger404,Condition(function zW))
call TriggerAddAction(udg_trigger404,function ay)
set udg_trigger405=CreateTrigger()
call DisableTrigger(udg_trigger405)
call TriggerRegisterTimerEventPeriodic(udg_trigger405,.02)
call TriggerAddAction(udg_trigger405,function Ry)
set udg_trigger406=CreateTrigger()
call TriggerAddAction(udg_trigger406,function Dy)
set udg_trigger407=CreateTrigger()
call TriggerAddCondition(udg_trigger407,Condition(function fy))
call TriggerAddAction(udg_trigger407,function Fy)
set udg_trigger408=CreateTrigger()
call DisableTrigger(udg_trigger408)
call TriggerRegisterTimerEventPeriodic(udg_trigger408,.2)
call TriggerAddAction(udg_trigger408,function Gy)
set udg_trigger409=CreateTrigger()
call TriggerAddCondition(udg_trigger409,Condition(function hy))
call TriggerAddAction(udg_trigger409,function jy)
set udg_trigger410=CreateTrigger()
call DisableTrigger(udg_trigger410)
call TriggerRegisterTimerEventPeriodic(udg_trigger410,.2)
call TriggerAddAction(udg_trigger410,function ky)
set udg_trigger411=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger411,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger411,Condition(function Ky))
call TriggerAddAction(udg_trigger411,function Sy)
set udg_trigger412=CreateTrigger()
call TriggerAddCondition(udg_trigger412,Condition(function ty))
call TriggerAddAction(udg_trigger412,function VY)
set udg_trigger413=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger413,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddAction(udg_trigger413,function KY)
set udg_trigger414=CreateTrigger()
call DisableTrigger(udg_trigger414)
call TriggerRegisterAnyUnitEventBJ(udg_trigger414,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger414,Condition(function lY))
call TriggerAddAction(udg_trigger414,function zz)
set udg_trigger415=CreateTrigger()
call DisableTrigger(udg_trigger415)
call TriggerRegisterAnyUnitEventBJ(udg_trigger415,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger415,Condition(function eZ))
call TriggerAddAction(udg_trigger415,function nZ)
set udg_trigger416=CreateTrigger()
call DisableTrigger(udg_trigger416)
call TriggerRegisterAnyUnitEventBJ(udg_trigger416,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(udg_trigger416,Condition(function RZ))
call TriggerAddAction(udg_trigger416,function AZ)
set udg_trigger417=CreateTrigger()
call DisableTrigger(udg_trigger417)
call TriggerRegisterEnterRectSimple(udg_trigger417,udg_rect01)
call TriggerAddCondition(udg_trigger417,Condition(function BZ))
call TriggerAddAction(udg_trigger417,function FZ)
set udg_trigger418=CreateTrigger()
call DisableTrigger(udg_trigger418)
call TriggerRegisterEnterRectSimple(udg_trigger418,udg_rect02)
call TriggerAddCondition(udg_trigger418,Condition(function hZ))
call TriggerAddAction(udg_trigger418,function lZ)
set udg_trigger419=CreateTrigger()
call DisableTrigger(udg_trigger419)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(7),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(8),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(9),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(10),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger419,Player(11),true)
call TriggerAddCondition(udg_trigger419,Condition(function LZ))
call TriggerAddAction(udg_trigger419,function C0)
set udg_trigger420=CreateTrigger()
call DisableTrigger(udg_trigger420)
call TriggerAddAction(udg_trigger420,function l0)
set udg_trigger421=CreateTrigger()
call DisableTrigger(udg_trigger421)
call TriggerAddCondition(udg_trigger421,Condition(function L0))
call TriggerAddAction(udg_trigger421,function J1)
set udg_trigger422=CreateTrigger()
call DisableTrigger(udg_trigger422)
call TriggerRegisterTimerEventPeriodic(udg_trigger422,30.)
call TriggerAddAction(udg_trigger422,function Q1)
set udg_trigger423=CreateTrigger()
call DisableTrigger(udg_trigger423)
call TriggerAddCondition(udg_trigger423,Condition(function s1))
call TriggerAddAction(udg_trigger423,function y1)
endfunction
function Z1 takes nothing returns nothing
call QuestSetDescription(udg_quests01[1],"The killer gets 1000 gold, the victim get 500 gold and 1 wood.")
call QuestSetDescription(udg_quests01[2],"TRIGSTR_099")
call QuestSetDescription(udg_quests01[3],"")
call QuestSetDescription(udg_quests01[4],"TRIGSTR_104")
call QuestSetDescription(udg_quests01[5],"TRIGSTR_107")
call QuestSetDescription(udg_quests01[6],"TRIGSTR_108")
call QuestSetDescription(udg_quests01[7],"TRIGSTR_118")
endfunction
function e2 takes nothing returns nothing
call CreateQuestBJ(2,"Version 3.8","TRIGSTR_097","ReplaceableTextures\\CommandButtons\\BTNScrollOfHaste.blp")
endfunction
function o2 takes nothing returns nothing
call PlaySoundBJ(udg_sound02)
call TriggerSleepAction(70.)
call TriggerExecute(GetTriggeringTrigger())
endfunction
function main2 takes nothing returns nothing
local integer i
local integer QB
local integer sB
local version v
local integer kB
call SetCameraBounds(-5376.+GetCameraMargin(CAMERA_MARGIN_LEFT),-5632.+GetCameraMargin(CAMERA_MARGIN_BOTTOM),5760.-GetCameraMargin(CAMERA_MARGIN_RIGHT),5120.-GetCameraMargin(CAMERA_MARGIN_TOP),-5376.+GetCameraMargin(CAMERA_MARGIN_LEFT),5120.-GetCameraMargin(CAMERA_MARGIN_TOP),5760.-GetCameraMargin(CAMERA_MARGIN_RIGHT),-5632.+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("CityScapeDay")
call SetAmbientNightSound("CityScapeNight")
call SetMapMusic("Music",true,0)
set udg_sound02=CreateSound("fight.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound02,68720)
call SetSoundChannel(udg_sound02,0)
call SetSoundVolume(udg_sound02,127)
call SetSoundPitch(udg_sound02,1.)
call ConfigureNeutralVictim()
set udg_boolexpr01=Filter(function PB)
set filterIssueHauntOrderAtLocBJ=Filter(function IssueHauntOrderAtLocBJFilter)
set filterEnumDestructablesInCircleBJ=Filter(function aB)
set filterGetUnitsInRectOfPlayer=Filter(function GetUnitsInRectOfPlayerFilter)
set filterGetUnitsOfTypeIdAll=Filter(function GetUnitsOfTypeIdAllFilter)
set filterGetUnitsOfPlayerAndTypeId=Filter(function GetUnitsOfPlayerAndTypeIdFilter)
set filterMeleeTrainedUnitIsHeroBJ=Filter(function MeleeTrainedUnitIsHeroBJFilter)
set filterLivingPlayerUnitsOfTypeId=Filter(function LivingPlayerUnitsOfTypeIdFilter)
set QB=0
loop
exitwhen QB==16
set bj_FORCE_PLAYER[QB]=CreateForce()
call ForceAddPlayer(bj_FORCE_PLAYER[QB],Player(QB))
set QB=QB+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 QB=0
loop
exitwhen QB>=bj_MAX_QUEUED_TRIGGERS
set bj_queuedExecTriggers[QB]=null
set bj_queuedExecUseConds[QB]=false
set QB=QB+1
endloop
set bj_isSinglePlayer=false
set sB=0
set QB=0
loop
exitwhen QB>=12
if(GetPlayerController(Player(QB))==MAP_CONTROL_USER and GetPlayerSlotState(Player(QB))==PLAYER_SLOT_STATE_PLAYING)then
set sB=sB+1
endif
set QB=QB+1
endloop
set bj_isSinglePlayer=(sB==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)
call DelayedSuspendDecayCreate()
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 InitRescuableBehaviorBJ()
call InitDNCSounds()
call InitMapRects()
call InitSummonableCaps()
set kB=0
loop
set bj_stockAllowedPermanent[kB]=false
set bj_stockAllowedCharged[kB]=false
set bj_stockAllowedArtifact[kB]=false
set kB=kB+1
exitwhen kB>10
endloop
call SetAllItemTypeSlots(11)
call SetAllUnitTypeSlots(11)
set bj_stockUpdateTimer=CreateTimer()
call TimerStart(bj_stockUpdateTimer,bj_STOCK_RESTOCK_INITIAL_DELAY,false,function MB)
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 udg_force01=CreateForce()
set i=0
loop
exitwhen(i>1)
set udg_integers01[i]=0
set udg_integers02[i]=0
set udg_integers03[i]=0
set udg_strings01[i]=""
set udg_integers04[i]=0
set udg_integers05[i]=0
set udg_timers01[i]=CreateTimer()
set udg_booleans01[i]=false
set udg_strings02[i]=""
set udg_strings03[i]=""
set udg_booleans02[i]=false
set udg_booleans03[i]=false
set udg_booleans04[i]=false
set udg_booleans05[i]=false
set udg_booleans06[i]=false
set udg_booleans07[i]=false
set udg_integers06[i]=0
set i=i+1
endloop
set udg_dialog01=DialogCreate()
set udg_force02=CreateForce()
set udg_group01=CreateGroup()
set udg_group02=CreateGroup()
set udg_group03=CreateGroup()
set udg_group04=CreateGroup()
set udg_group05=CreateGroup()
set udg_group06=CreateGroup()
set udg_group07=CreateGroup()
set udg_group08=CreateGroup()
set udg_group09=CreateGroup()
set udg_group10=CreateGroup()
set udg_group11=CreateGroup()
set udg_group12=CreateGroup()
set udg_group13=CreateGroup()
set udg_group14=CreateGroup()
set udg_group15=CreateGroup()
set udg_group16=CreateGroup()
set udg_group17=CreateGroup()
set udg_timer01=CreateTimer()
set udg_group18=CreateGroup()
set udg_trigger424=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger424,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger424,Condition(function uB))
call TriggerAddAction(udg_trigger424,function wB)
call ExecuteFunc("Y1")
set Tb=CreateTrigger()
call TriggerRegisterTimerEventSingle(Tb,.2)
call TriggerAddAction(Tb,function Z1)
set ub=CreateTrigger()
call TriggerAddAction(ub,function e2)
set Ub=CreateTrigger()
call TriggerRegisterTimerEventSingle(Ub,5)
call TriggerAddAction(Ub,function o2)
endfunction
function config takes nothing returns nothing
call SetMapName("TRIGSTR_2260")
call SetMapDescription("TRIGSTR_2476")
call SetPlayers(12)
call SetTeams(12)
call SetGamePlacement(MAP_PLACEMENT_TEAMS_TOGETHER)
call DefineStartLocation(0,64.,4288.)
call DefineStartLocation(1,64.,4288.)
call DefineStartLocation(2,64.,4288.)
call DefineStartLocation(3,64.,4288.)
call DefineStartLocation(4,64.,4288.)
call DefineStartLocation(5,64.,4288.)
call DefineStartLocation(6,64.,4288.)
call DefineStartLocation(7,64.,4288.)
call DefineStartLocation(8,64.,4288.)
call DefineStartLocation(9,64.,4288.)
call DefineStartLocation(10,64.,4288.)
call DefineStartLocation(11,64.,4288.)
call SetPlayerStartLocation(Player(0),0)
call ForcePlayerStartLocation(Player(0),0)
call SetPlayerColor(Player(0),ConvertPlayerColor(0))
call SetPlayerRacePreference(Player(0),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(0),false)
call SetPlayerController(Player(0),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(1),1)
call ForcePlayerStartLocation(Player(1),1)
call SetPlayerColor(Player(1),ConvertPlayerColor(1))
call SetPlayerRacePreference(Player(1),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(1),false)
call SetPlayerController(Player(1),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(2),2)
call ForcePlayerStartLocation(Player(2),2)
call SetPlayerColor(Player(2),ConvertPlayerColor(2))
call SetPlayerRacePreference(Player(2),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(2),false)
call SetPlayerController(Player(2),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(3),3)
call ForcePlayerStartLocation(Player(3),3)
call SetPlayerColor(Player(3),ConvertPlayerColor(3))
call SetPlayerRacePreference(Player(3),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(3),false)
call SetPlayerController(Player(3),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(4),4)
call ForcePlayerStartLocation(Player(4),4)
call SetPlayerColor(Player(4),ConvertPlayerColor(4))
call SetPlayerRacePreference(Player(4),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(4),false)
call SetPlayerController(Player(4),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(5),5)
call ForcePlayerStartLocation(Player(5),5)
call SetPlayerColor(Player(5),ConvertPlayerColor(5))
call SetPlayerRacePreference(Player(5),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(5),false)
call SetPlayerController(Player(5),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(6),6)
call ForcePlayerStartLocation(Player(6),6)
call SetPlayerColor(Player(6),ConvertPlayerColor(6))
call SetPlayerRacePreference(Player(6),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(6),false)
call SetPlayerController(Player(6),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(7),7)
call ForcePlayerStartLocation(Player(7),7)
call SetPlayerColor(Player(7),ConvertPlayerColor(7))
call SetPlayerRacePreference(Player(7),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(7),false)
call SetPlayerController(Player(7),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(8),8)
call ForcePlayerStartLocation(Player(8),8)
call SetPlayerColor(Player(8),ConvertPlayerColor(8))
call SetPlayerRacePreference(Player(8),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(8),false)
call SetPlayerController(Player(8),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(9),9)
call ForcePlayerStartLocation(Player(9),9)
call SetPlayerColor(Player(9),ConvertPlayerColor(9))
call SetPlayerRacePreference(Player(9),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(9),false)
call SetPlayerController(Player(9),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(10),10)
call ForcePlayerStartLocation(Player(10),10)
call SetPlayerColor(Player(10),ConvertPlayerColor(10))
call SetPlayerRacePreference(Player(10),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(10),false)
call SetPlayerController(Player(10),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player(11),11)
call ForcePlayerStartLocation(Player(11),11)
call SetPlayerColor(Player(11),ConvertPlayerColor(11))
call SetPlayerRacePreference(Player(11),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(11),false)
call SetPlayerController(Player(11),MAP_CONTROL_USER)
call SetPlayerTeam(Player(0),0)
call SetPlayerState(Player(0),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(1),0)
call SetPlayerState(Player(1),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(2),0)
call SetPlayerState(Player(2),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(3),0)
call SetPlayerState(Player(3),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(4),0)
call SetPlayerState(Player(4),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(5),0)
call SetPlayerState(Player(5),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(4),true)
call SetPlayerTeam(Player(6),1)
call SetPlayerState(Player(6),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(7),1)
call SetPlayerState(Player(7),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(8),1)
call SetPlayerState(Player(8),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(9),1)
call SetPlayerState(Player(9),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(10),1)
call SetPlayerState(Player(10),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerTeam(Player(11),1)
call SetPlayerState(Player(11),PLAYER_STATE_ALLIED_VICTORY,1)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(10),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(10),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(10),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(10),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(10),Player(11),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(11),Player(10),true)
call SetStartLocPrioCount(4,7)
call SetStartLocPrio(4,0,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,1,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,2,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,3,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,4,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,5,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,6,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(5,7)
call SetStartLocPrio(5,0,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,1,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,2,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,3,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,4,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,5,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,6,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(6,7)
call SetStartLocPrio(6,0,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,1,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,2,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,3,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,4,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,5,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,6,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(7,7)
call SetStartLocPrio(7,0,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,1,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,2,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,3,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,4,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,5,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,6,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(8,7)
call SetStartLocPrio(8,0,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,1,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,2,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,3,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,4,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,5,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,6,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(9,7)
call SetStartLocPrio(9,0,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,1,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,2,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,3,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,4,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,5,10,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,6,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(10,7)
call SetStartLocPrio(10,0,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,1,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,2,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,3,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,4,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,5,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(10,6,11,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(11,7)
call SetStartLocPrio(11,0,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,1,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,2,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,3,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,4,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,5,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(11,6,10,MAP_LOC_PRIO_HIGH)
endfunction
function InitTrig_init takes nothing returns nothing
call ExecuteFunc("main2")
endfunction