// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
Name | Type | is_array | initial_value |
boolean01 | boolean | No | |
boolean02 | boolean | No | |
boolean03 | boolean | No | |
boolean04 | boolean | No | |
boolean05 | boolean | No | |
boolean06 | boolean | No | |
booleans01 | boolean | Yes | |
booleans02 | boolean | Yes | |
booleans03 | boolean | Yes | |
booleans04 | boolean | Yes | |
booleans05 | boolean | Yes | |
button01 | button | No | |
button02 | button | No | |
buttons01 | button | Yes | |
dialog01 | dialog | No | |
dialog02 | dialog | No | |
effect01 | effect | No | |
effect02 | effect | No | |
effect03 | effect | 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 | |
group20 | group | No | |
group21 | group | No | |
group22 | group | No | |
group23 | group | No | |
group24 | group | No | |
group25 | group | No | |
group26 | group | No | |
group27 | group | No | |
group28 | group | No | |
group29 | group | No | |
group30 | group | No | |
group31 | group | No | |
group32 | group | No | |
group33 | group | No | |
group34 | group | No | |
group35 | group | No | |
group36 | group | No | |
group37 | group | No | |
group38 | group | No | |
group39 | group | No | |
group40 | group | No | |
group41 | group | No | |
group42 | group | No | |
group43 | group | No | |
groups01 | group | Yes | |
groups02 | group | Yes | |
groups03 | group | Yes | |
groups04 | group | Yes | |
groups05 | group | Yes | |
groups06 | group | Yes | |
groups07 | group | Yes | |
groups08 | group | Yes | |
groups09 | group | Yes | |
groups10 | group | Yes | |
groups11 | group | Yes | |
groups12 | group | Yes | |
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 | |
integer54 | integer | No | |
integer55 | integer | No | |
integer56 | integer | No | |
integer57 | integer | No | |
integer58 | integer | No | |
integers01 | integer | Yes | |
integers02 | integer | Yes | |
integers03 | integer | Yes | |
integers04 | integer | Yes | |
integers05 | integer | Yes | |
integers06 | integer | Yes | |
integers07 | integer | Yes | |
integers08 | integer | Yes | |
integers09 | integer | Yes | |
integers10 | integer | Yes | |
integers11 | integer | Yes | |
integers12 | integer | Yes | |
integers13 | integer | Yes | |
items01 | item | Yes | |
items02 | item | Yes | |
location01 | location | No | |
location02 | location | No | |
location03 | location | No | |
location04 | location | No | |
location05 | location | No | |
location06 | location | No | |
location07 | location | No | |
location08 | location | No | |
location09 | location | No | |
location10 | location | No | |
location11 | location | No | |
location12 | location | No | |
location13 | location | No | |
location14 | location | No | |
location15 | location | No | |
location16 | location | No | |
location17 | location | No | |
location18 | location | No | |
location19 | location | No | |
location20 | location | No | |
location21 | location | No | |
location22 | location | No | |
location23 | location | No | |
location24 | location | No | |
location25 | location | No | |
location26 | location | No | |
location27 | location | No | |
location28 | location | No | |
location29 | location | No | |
location30 | location | No | |
location31 | location | No | |
locations01 | location | Yes | |
locations02 | location | Yes | |
locations03 | location | Yes | |
locations04 | location | Yes | |
locations05 | location | Yes | |
locations06 | location | Yes | |
locations07 | location | Yes | |
locations08 | location | Yes | |
locations09 | location | Yes | |
locations10 | location | Yes | |
locations11 | location | Yes | |
locations12 | location | Yes | |
locations13 | location | Yes | |
locations14 | location | Yes | |
locations15 | location | Yes | |
locations16 | location | Yes | |
locations17 | location | Yes | |
locations18 | location | Yes | |
locations19 | location | Yes | |
locations20 | location | Yes | |
locations21 | location | Yes | |
locations22 | location | Yes | |
locations23 | location | Yes | |
locations24 | location | Yes | |
locations25 | location | Yes | |
locations26 | location | Yes | |
locations27 | location | Yes | |
locations28 | location | Yes | |
locations29 | location | Yes | |
players01 | player | 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 | |
reals01 | real | Yes | |
reals02 | real | Yes | |
reals03 | real | Yes | |
reals04 | real | Yes | |
rect01 | rect | No | |
rect02 | rect | No | |
rect03 | rect | No | |
rect04 | rect | No | |
rect05 | rect | No | |
rect06 | rect | No | |
rect07 | rect | No | |
rect08 | rect | No | |
rect09 | rect | No | |
rect10 | rect | No | |
rect11 | rect | No | |
rect12 | rect | No | |
rect13 | rect | No | |
rect14 | rect | No | |
rect15 | rect | No | |
rect16 | rect | No | |
rect17 | rect | No | |
rect18 | rect | No | |
rect19 | rect | No | |
rect20 | rect | No | |
rect21 | rect | No | |
rect22 | rect | No | |
rect23 | rect | No | |
rect24 | rect | No | |
rect25 | rect | No | |
rect26 | rect | No | |
rect27 | rect | No | |
rect28 | rect | No | |
rect29 | rect | No | |
rect30 | rect | No | |
rect31 | rect | No | |
rect32 | rect | No | |
rect33 | rect | No | |
rect34 | rect | No | |
rect35 | rect | No | |
rect36 | rect | No | |
rect37 | rect | No | |
rect38 | rect | No | |
rect39 | rect | No | |
rect40 | rect | No | |
rect41 | rect | No | |
rect42 | rect | No | |
rect43 | rect | No | |
rect44 | rect | No | |
rect45 | rect | No | |
rect46 | rect | No | |
rect47 | rect | No | |
rect48 | rect | No | |
rect49 | rect | No | |
rect50 | rect | No | |
rect51 | rect | No | |
rect52 | rect | No | |
rect53 | rect | No | |
rect54 | rect | No | |
rect55 | rect | No | |
rect56 | rect | No | |
rect57 | rect | No | |
rect58 | rect | No | |
rect59 | rect | No | |
rect60 | rect | No | |
rect61 | rect | No | |
rect62 | rect | No | |
rect63 | rect | No | |
rect64 | rect | No | |
rect65 | rect | No | |
rect66 | rect | No | |
rect67 | rect | No | |
rect68 | rect | No | |
rect69 | rect | No | |
rect70 | rect | No | |
rect71 | rect | No | |
rect72 | rect | No | |
rect73 | rect | No | |
rect74 | rect | No | |
rect75 | rect | No | |
rect76 | rect | No | |
rect77 | rect | No | |
rect78 | rect | No | |
rect79 | rect | No | |
rect80 | rect | No | |
rect81 | rect | No | |
rect82 | rect | No | |
rect83 | rect | No | |
rect84 | rect | No | |
rect85 | rect | No | |
rect86 | rect | No | |
rect87 | rect | No | |
rect88 | rect | No | |
rect89 | rect | No | |
sound01 | sound | No | |
sound02 | sound | No | |
sound03 | sound | No | |
sound04 | sound | No | |
sound05 | sound | No | |
sound06 | sound | No | |
sound07 | sound | No | |
sound08 | sound | No | |
sound09 | sound | No | |
sound10 | sound | No | |
sound11 | sound | No | |
sound12 | sound | No | |
sound13 | sound | No | |
sound14 | sound | No | |
sound15 | sound | No | |
sound16 | sound | No | |
sound17 | sound | No | |
sound18 | sound | No | |
sound19 | sound | No | |
sound20 | sound | No | |
sound21 | sound | No | |
sound22 | sound | No | |
sound23 | sound | No | |
sound24 | sound | No | |
sound25 | sound | No | |
sound26 | sound | No | |
sound27 | sound | No | |
sound28 | sound | No | |
sound29 | sound | No | |
sound30 | sound | No | |
sound31 | sound | No | |
sound32 | sound | No | |
sound33 | sound | No | |
sound34 | sound | No | |
sound35 | sound | No | |
sound36 | sound | No | |
sound37 | sound | No | |
sound38 | sound | No | |
sound39 | sound | No | |
sound40 | sound | No | |
sound41 | sound | No | |
sound42 | sound | No | |
sound43 | sound | No | |
sound44 | sound | No | |
sound45 | sound | No | |
sound46 | sound | No | |
sound47 | sound | No | |
sound48 | sound | No | |
sound49 | sound | No | |
sound50 | sound | No | |
sound51 | sound | No | |
sound52 | sound | No | |
sound53 | sound | No | |
sound54 | sound | No | |
sound55 | sound | No | |
sound56 | sound | No | |
sound57 | sound | No | |
sound58 | sound | No | |
sound59 | sound | No | |
sound60 | sound | No | |
sound61 | sound | No | |
sound62 | sound | No | |
sound63 | sound | No | |
sound64 | sound | No | |
sound65 | sound | No | |
sound66 | sound | No | |
sound67 | sound | No | |
sound68 | sound | No | |
sound69 | sound | No | |
sound70 | sound | No | |
sound71 | sound | No | |
sound72 | sound | No | |
timer01 | timer | No | |
timer02 | timer | No | |
timer03 | timer | No | |
timer04 | timer | No | |
timerdialog01 | timerdialog | No | |
timerdialog02 | timerdialog | No | |
timerdialog03 | timerdialog | No | |
timerdialog04 | timerdialog | No | |
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 | |
trigger428 | trigger | No | |
trigger429 | trigger | No | |
trigger43 | trigger | No | |
trigger430 | trigger | No | |
trigger431 | trigger | No | |
trigger432 | trigger | No | |
trigger433 | trigger | No | |
trigger434 | trigger | No | |
trigger435 | trigger | No | |
trigger436 | trigger | No | |
trigger437 | trigger | No | |
trigger438 | trigger | No | |
trigger439 | trigger | No | |
trigger44 | trigger | No | |
trigger440 | trigger | No | |
trigger441 | trigger | No | |
trigger442 | trigger | No | |
trigger443 | trigger | No | |
trigger444 | trigger | No | |
trigger445 | trigger | No | |
trigger446 | trigger | No | |
trigger447 | trigger | No | |
trigger448 | trigger | No | |
trigger449 | trigger | No | |
trigger45 | trigger | No | |
trigger450 | trigger | No | |
trigger451 | trigger | No | |
trigger452 | trigger | No | |
trigger453 | trigger | No | |
trigger454 | trigger | No | |
trigger455 | trigger | No | |
trigger456 | trigger | No | |
trigger457 | trigger | No | |
trigger458 | trigger | No | |
trigger459 | trigger | No | |
trigger46 | trigger | No | |
trigger460 | trigger | No | |
trigger461 | trigger | No | |
trigger462 | trigger | No | |
trigger463 | trigger | No | |
trigger464 | trigger | No | |
trigger465 | trigger | No | |
trigger466 | trigger | No | |
trigger467 | trigger | No | |
trigger468 | trigger | No | |
trigger469 | trigger | No | |
trigger47 | trigger | No | |
trigger470 | trigger | No | |
trigger471 | trigger | No | |
trigger472 | trigger | No | |
trigger473 | trigger | No | |
trigger474 | trigger | No | |
trigger475 | trigger | No | |
trigger476 | trigger | No | |
trigger477 | trigger | No | |
trigger478 | trigger | No | |
trigger479 | trigger | No | |
trigger48 | trigger | No | |
trigger480 | trigger | No | |
trigger481 | trigger | No | |
trigger482 | trigger | No | |
trigger483 | trigger | No | |
trigger484 | trigger | No | |
trigger485 | trigger | No | |
trigger486 | trigger | No | |
trigger487 | trigger | No | |
trigger488 | trigger | No | |
trigger489 | trigger | No | |
trigger49 | trigger | No | |
trigger490 | trigger | No | |
trigger491 | trigger | No | |
trigger492 | trigger | No | |
trigger493 | trigger | No | |
trigger494 | trigger | No | |
trigger495 | trigger | No | |
trigger496 | trigger | No | |
trigger497 | trigger | No | |
trigger498 | trigger | No | |
trigger499 | trigger | No | |
trigger50 | trigger | No | |
trigger500 | trigger | No | |
trigger501 | trigger | No | |
trigger502 | trigger | No | |
trigger503 | trigger | No | |
trigger504 | trigger | No | |
trigger505 | trigger | No | |
trigger506 | trigger | No | |
trigger507 | trigger | No | |
trigger508 | trigger | No | |
trigger509 | trigger | No | |
trigger51 | trigger | No | |
trigger510 | trigger | No | |
trigger511 | trigger | No | |
trigger512 | trigger | No | |
trigger513 | trigger | No | |
trigger514 | trigger | No | |
trigger515 | trigger | No | |
trigger516 | trigger | No | |
trigger517 | trigger | No | |
trigger518 | trigger | No | |
trigger519 | trigger | No | |
trigger52 | trigger | No | |
trigger520 | trigger | No | |
trigger521 | trigger | No | |
trigger522 | trigger | No | |
trigger523 | trigger | No | |
trigger524 | trigger | No | |
trigger525 | trigger | No | |
trigger526 | trigger | No | |
trigger527 | trigger | No | |
trigger528 | trigger | No | |
trigger529 | trigger | No | |
trigger53 | trigger | No | |
trigger530 | trigger | No | |
trigger531 | trigger | No | |
trigger532 | trigger | No | |
trigger533 | trigger | No | |
trigger534 | trigger | No | |
trigger535 | trigger | No | |
trigger536 | trigger | No | |
trigger537 | trigger | No | |
trigger538 | trigger | No | |
trigger539 | trigger | No | |
trigger54 | trigger | No | |
trigger540 | trigger | No | |
trigger541 | trigger | No | |
trigger542 | trigger | No | |
trigger543 | trigger | No | |
trigger544 | trigger | No | |
trigger545 | trigger | No | |
trigger546 | trigger | No | |
trigger547 | trigger | No | |
trigger548 | trigger | No | |
trigger549 | trigger | No | |
trigger55 | trigger | No | |
trigger550 | trigger | No | |
trigger551 | trigger | No | |
trigger552 | trigger | No | |
trigger553 | trigger | No | |
trigger554 | trigger | No | |
trigger555 | trigger | No | |
trigger556 | trigger | No | |
trigger557 | trigger | No | |
trigger558 | trigger | No | |
trigger559 | trigger | No | |
trigger56 | trigger | No | |
trigger560 | trigger | No | |
trigger561 | trigger | No | |
trigger562 | trigger | No | |
trigger563 | trigger | No | |
trigger564 | trigger | No | |
trigger565 | trigger | No | |
trigger566 | trigger | No | |
trigger567 | trigger | No | |
trigger568 | trigger | No | |
trigger569 | trigger | No | |
trigger57 | trigger | No | |
trigger570 | trigger | No | |
trigger571 | trigger | No | |
trigger572 | trigger | No | |
trigger573 | trigger | No | |
trigger574 | trigger | No | |
trigger575 | trigger | No | |
trigger576 | trigger | No | |
trigger577 | trigger | No | |
trigger578 | trigger | No | |
trigger579 | trigger | No | |
trigger58 | trigger | No | |
trigger580 | trigger | No | |
trigger581 | trigger | No | |
trigger582 | trigger | No | |
trigger583 | trigger | No | |
trigger584 | trigger | No | |
trigger585 | trigger | No | |
trigger586 | trigger | No | |
trigger587 | trigger | No | |
trigger588 | trigger | No | |
trigger589 | trigger | No | |
trigger59 | trigger | No | |
trigger590 | trigger | No | |
trigger591 | trigger | No | |
trigger592 | trigger | No | |
trigger593 | trigger | No | |
trigger594 | trigger | No | |
trigger595 | trigger | No | |
trigger596 | trigger | No | |
trigger597 | trigger | No | |
trigger598 | trigger | No | |
trigger599 | trigger | No | |
trigger60 | trigger | No | |
trigger600 | trigger | No | |
trigger601 | trigger | No | |
trigger602 | trigger | No | |
trigger603 | trigger | No | |
trigger604 | trigger | No | |
trigger605 | trigger | No | |
trigger606 | trigger | No | |
trigger607 | trigger | No | |
trigger608 | trigger | No | |
trigger609 | trigger | No | |
trigger61 | trigger | No | |
trigger610 | trigger | No | |
trigger611 | trigger | No | |
trigger612 | trigger | No | |
trigger613 | trigger | No | |
trigger614 | trigger | No | |
trigger615 | trigger | No | |
trigger616 | trigger | No | |
trigger617 | trigger | No | |
trigger618 | trigger | No | |
trigger619 | 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 | |
unit11 | unit | No | |
unit12 | unit | No | |
unit13 | unit | No | |
unit14 | unit | No | |
unit15 | unit | No | |
unit16 | unit | No | |
unit17 | unit | No | |
unit18 | unit | No | |
unit19 | unit | No | |
unit20 | unit | No | |
unit21 | unit | No | |
unit22 | unit | No | |
unit23 | unit | No | |
unit24 | unit | No | |
unit25 | unit | No | |
unit26 | unit | No | |
unit27 | unit | No | |
unit28 | unit | No | |
unit29 | unit | No | |
unit30 | unit | No | |
unit31 | unit | No | |
unit32 | unit | No | |
unit33 | unit | No | |
unit34 | unit | No | |
unit35 | unit | No | |
unit36 | unit | No | |
unit37 | unit | No | |
unit38 | unit | No | |
unit39 | unit | No | |
unit40 | unit | No | |
unit41 | unit | No | |
unit42 | unit | No | |
unit43 | unit | No | |
unit44 | unit | No | |
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 | |
units01 | unit | Yes | |
units02 | unit | Yes | |
units03 | unit | Yes | |
units04 | unit | Yes | |
units05 | unit | Yes | |
units06 | unit | Yes | |
units07 | unit | Yes | |
units08 | unit | Yes | |
units09 | unit | Yes | |
units10 | unit | Yes | |
units11 | unit | Yes | |
units12 | unit | Yes | |
units13 | unit | Yes | |
units14 | unit | Yes | |
units15 | unit | Yes | |
units16 | unit | Yes | |
units17 | unit | Yes | |
units18 | unit | Yes | |
units19 | unit | Yes | |
units20 | unit | Yes | |
units21 | unit | Yes | |
units22 | unit | Yes | |
units23 | unit | Yes | |
units24 | unit | Yes | |
units25 | unit | Yes | |
units26 | unit | Yes | |
units27 | unit | Yes | |
units28 | unit | Yes | |
units29 | unit | Yes | |
units30 | unit | Yes | |
units31 | unit | Yes | |
units32 | unit | Yes | |
units33 | unit | Yes | |
units34 | unit | Yes | |
units35 | unit | Yes | |
units36 | unit | Yes | |
units37 | unit | Yes | |
units38 | unit | Yes | |
units39 | unit | Yes | |
units40 | unit | Yes | |
units41 | unit | Yes | |
units42 | unit | Yes | |
units43 | unit | Yes | |
units44 | unit | Yes | |
units45 | unit | Yes | |
units46 | unit | Yes | |
units47 | unit | Yes | |
units48 | unit | Yes | |
units49 | unit | Yes | |
units50 | unit | Yes | |
units51 | unit | Yes | |
units52 | unit | Yes | |
units53 | unit | Yes | |
units54 | unit | Yes | |
units55 | unit | Yes | |
units56 | unit | Yes | |
weathereffect01 | weathereffect | No | |
weathereffects01 | weathereffect | Yes |
// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
function InitGlobals2 takes nothing returns nothing
local integer i=0
set udg_integer01=0
set udg_integer02=0
set udg_integer03=0
set udg_integer04=0
set udg_integer05=0
set udg_integer06=0
set i=0
loop
exitwhen(i>1)
set udg_integers01[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers02[i]=0
set i=i+1
endloop
set udg_integer08=0
set udg_timer01=CreateTimer()
set udg_integer09=0
set udg_group01=CreateGroup()
set udg_real01=0
set udg_group02=CreateGroup()
set udg_group03=CreateGroup()
set udg_real02=0
set udg_group04=CreateGroup()
set udg_integer11=0
set udg_integer12=0
set udg_boolean01=false
set udg_dialog01=DialogCreate()
set udg_boolean02=false
set udg_timer02=CreateTimer()
set udg_integer13=0
set udg_real03=0
set i=0
loop
exitwhen(i>1)
set udg_groups01[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals01[i]=0
set i=i+1
endloop
set udg_real04=0
set udg_group05=CreateGroup()
set udg_integer17=0
set udg_boolean03=false
set udg_integer18=0
set udg_real05=0
set udg_integer19=0
set udg_group06=CreateGroup()
set i=0
loop
exitwhen(i>13)
set udg_groups02[i]=CreateGroup()
set i=i+1
endloop
set udg_integer20=0
set udg_integer21=0
set udg_integer22=0
set udg_real06=0
set udg_integer23=0
set udg_timer03=CreateTimer()
set udg_real07=0
set udg_group07=CreateGroup()
set udg_group08=CreateGroup()
set udg_integer25=0
set udg_group09=CreateGroup()
set udg_real08=0
set i=0
loop
exitwhen(i>2)
set udg_groups03[i]=CreateGroup()
set i=i+1
endloop
set udg_group10=CreateGroup()
set udg_group11=CreateGroup()
set udg_boolean04=false
set i=0
loop
exitwhen(i>1)
set udg_groups04[i]=CreateGroup()
set i=i+1
endloop
set udg_integer28=0
set udg_group12=CreateGroup()
set udg_integer30=0
set udg_group13=CreateGroup()
set udg_group14=CreateGroup()
set udg_real09=0
set udg_group15=CreateGroup()
set udg_integer31=0
set i=0
loop
exitwhen(i>5)
set udg_groups05[i]=CreateGroup()
set i=i+1
endloop
set udg_real10=0
set udg_group16=CreateGroup()
set udg_group17=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_reals02[i]=0
set i=i+1
endloop
set udg_group18=CreateGroup()
set udg_group19=CreateGroup()
set i=0
loop
exitwhen(i>10)
set udg_integers09[i]=0
set i=i+1
endloop
set udg_real11=0
set udg_group20=CreateGroup()
set udg_group21=CreateGroup()
set udg_real12=0
set udg_real13=0
set udg_dialog02=DialogCreate()
set udg_integer33=0
set i=0
loop
exitwhen(i>1)
set udg_booleans01[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_booleans02[i]=false
set i=i+1
endloop
set udg_integer34=0
set udg_integer35=0
set i=0
loop
exitwhen(i>1)
set udg_integers10[i]=0
set i=i+1
endloop
set udg_integer36=0
set udg_integer37=0
set udg_integer38=0
set udg_real14=0
set udg_group22=CreateGroup()
set udg_integer40=0
set udg_real15=0
set udg_group23=CreateGroup()
set udg_integer41=0
set udg_integer42=0
set udg_group24=CreateGroup()
set udg_group25=CreateGroup()
set i=0
loop
exitwhen(i>3)
set udg_groups06[i]=CreateGroup()
set i=i+1
endloop
set udg_real16=0
set udg_real17=0
set udg_group26=CreateGroup()
set udg_real18=0
set udg_timer04=CreateTimer()
set i=0
loop
exitwhen(i>5)
set udg_groups07[i]=CreateGroup()
set i=i+1
endloop
set udg_real19=0
set i=0
loop
exitwhen(i>2)
set udg_groups08[i]=CreateGroup()
set i=i+1
endloop
set udg_group27=CreateGroup()
set udg_group28=CreateGroup()
set udg_integer43=0
set i=0
loop
exitwhen(i>2)
set udg_groups09[i]=CreateGroup()
set i=i+1
endloop
set udg_integer44=0
set i=0
loop
exitwhen(i>1)
set udg_integers11[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_booleans03[i]=false
set i=i+1
endloop
set udg_integer46=0
set udg_real20=0
set udg_group29=CreateGroup()
set udg_real21=0
set udg_group30=CreateGroup()
set udg_real22=0
set udg_integer48=0
set i=0
loop
exitwhen(i>3)
set udg_groups10[i]=CreateGroup()
set i=i+1
endloop
set udg_integer49=0
set udg_integer50=0
set udg_group31=CreateGroup()
set udg_group32=CreateGroup()
set udg_group33=CreateGroup()
set udg_group34=CreateGroup()
set udg_group35=CreateGroup()
set udg_group36=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_reals03[i]=0
set i=i+1
endloop
set udg_group37=CreateGroup()
set udg_integer52=0
set udg_group38=CreateGroup()
set udg_group39=CreateGroup()
set udg_real23=0
set i=0
loop
exitwhen(i>1)
set udg_reals04[i]=0
set i=i+1
endloop
set udg_integer53=0
set udg_group40=CreateGroup()
set udg_integer54=0
set udg_boolean05=false
set udg_group41=CreateGroup()
set udg_group42=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_groups11[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_booleans04[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers12[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers13[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_booleans05[i]=false
set i=i+1
endloop
set udg_integer56=0
set i=0
loop
exitwhen(i>5)
set udg_groups12[i]=CreateGroup()
set i=i+1
endloop
set udg_real24=0
set udg_group43=CreateGroup()
set udg_integer58=0
set udg_boolean06=false
endfunction
function ItemTable000000_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I03G',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000001_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I01X',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000002_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I03F',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000003_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I03E',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000004_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I03D',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000005_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I03C',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function ItemTable000006_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I03B',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function CreateAllItems takes nothing returns nothing
local integer itemID
call CreateItem('kpin',-4605.7,4883.5)
call CreateItem('mcou',-4536.6,-135.8)
endfunction
function CreateUnitsForPlayer0 takes nothing returns nothing
local player p=Player(0)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'necr',2472.4,4152.6,0.000)
endfunction
function CreateUnitsForPlayer1 takes nothing returns nothing
local player p=Player(1)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'necr',2481.1,3934.7,0.000)
endfunction
function CreateUnitsForPlayer2 takes nothing returns nothing
local player p=Player(2)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'necr',2481.4,3708.4,0.000)
endfunction
function CreateUnitsForPlayer3 takes nothing returns nothing
local player p=Player(3)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'necr',3661.7,2264.6,90.000)
endfunction
function CreateUnitsForPlayer4 takes nothing returns nothing
local player p=Player(4)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'necr',3869.5,2274.3,90.000)
endfunction
function CreateUnitsForPlayer5 takes nothing returns nothing
local player p=Player(5)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'necr',4071.4,2272.3,90.000)
endfunction
function CreateBuildingsForPlayer9 takes nothing returns nothing
local player p=Player(9)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit55=CreateUnit(p,'hcas',3136.0,2944.0,270.000)
set u=CreateUnit(p,'hgtw',2624.0,2816.0,270.000)
set u=CreateUnit(p,'hgtw',3200.0,2432.0,270.000)
set u=CreateUnit(p,'hgtw',3648.0,2944.0,270.000)
set u=CreateUnit(p,'hgtw',3072.0,3456.0,270.000)
set u=CreateUnit(p,'hgtw',1408.0,3072.0,270.000)
set u=CreateUnit(p,'hgtw',1472.0,2432.0,270.000)
set u=CreateUnit(p,'hgtw',1728.0,2048.0,270.000)
set u=CreateUnit(p,'hgtw',2304.0,1536.0,270.000)
set u=CreateUnit(p,'hgtw',2688.0,1408.0,270.000)
set u=CreateUnit(p,'hgtw',3328.0,1408.0,270.000)
endfunction
function CreateUnitsForPlayer9 takes nothing returns nothing
local player p=Player(9)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit71=CreateUnit(p,'Hpb1',3397.8,2777.6,166.350)
call SetHeroLevel(udg_unit71,100,false)
endfunction
function CreateUnitsForPlayer10 takes nothing returns nothing
local player p=Player(10)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'n00I',-4955.8,-5101.5,50.680)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'n00H',-4824.5,-1439.3,295.519)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'n00F',-3466.8,-2846.8,226.952)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'n00G',-3437.9,-4761.5,160.490)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'nftr',-3939.7,-1171.5,316.713)
set u=CreateUnit(p,'nftr',-4238.3,-1523.0,332.742)
set udg_unit53=CreateUnit(p,'Hart',4985.8,-5166.5,180.640)
call SetUnitState(udg_unit53,UNIT_STATE_MANA,0)
set udg_unit52=CreateUnit(p,'Harf',4994.0,-3646.4,180.830)
call SetUnitState(udg_unit52,UNIT_STATE_MANA,0)
set udg_unit54=CreateUnit(p,'Hmbr',5071.6,-659.8,193.330)
call SetUnitState(udg_unit54,UNIT_STATE_MANA,0)
set udg_unit45=CreateUnit(p,'Hapm',5025.2,-2070.7,180.920)
call SetUnitState(udg_unit45,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'nitr',-201.0,-2207.6,279.039)
set u=CreateUnit(p,'ndqs',-3167.1,-166.7,34.380)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'ndqp',2078.6,-3633.6,80.148)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'ngnv',-2353.0,1849.3,257.370)
set u=CreateUnit(p,'nrvd',-1848.3,3393.9,180.730)
set u=CreateUnit(p,'nrvd',-1846.2,2871.7,180.220)
set u=CreateUnit(p,'nrvd',-2703.4,3042.2,90.000)
set u=CreateUnit(p,'nrvd',-3333.5,3221.2,90.000)
set u=CreateUnit(p,'nrvd',-3064.7,3994.7,0.000)
set u=CreateUnit(p,'nitr',-2612.5,1712.7,222.832)
set u=CreateUnit(p,'nitr',-3033.6,931.3,316.240)
set u=CreateUnit(p,'nitr',-2925.7,549.3,67.480)
set u=CreateUnit(p,'nitr',-3198.3,534.8,216.866)
set u=CreateUnit(p,'nitr',-3223.2,114.5,154.659)
set u=CreateUnit(p,'nitr',-2961.1,-168.9,196.442)
set u=CreateUnit(p,'nitr',-2544.7,-170.5,327.425)
set u=CreateUnit(p,'nitr',-1869.8,-182.6,193.102)
set u=CreateUnit(p,'nitr',-1892.7,-748.6,28.994)
set u=CreateUnit(p,'nitr',-1348.1,-427.2,18.050)
set u=CreateUnit(p,'nitr',-1774.0,-1302.3,240.311)
set u=CreateUnit(p,'nitr',-1472.1,-1799.9,90.387)
set u=CreateUnit(p,'nitr',-2010.8,-1308.3,103.571)
set u=CreateUnit(p,'nitr',-1658.5,-887.4,206.791)
set u=CreateUnit(p,'nitr',-370.6,-2073.3,56.471)
set u=CreateUnit(p,'nitr',135.5,-1676.6,279.039)
set u=CreateUnit(p,'nitr',141.2,-2148.9,158.186)
set u=CreateUnit(p,'nitr',300.7,-2721.2,202.264)
set u=CreateUnit(p,'nitr',670.0,-3163.8,94.156)
set u=CreateUnit(p,'nitr',1095.4,-3474.7,269.019)
set u=CreateUnit(p,'nitr',1621.3,-3365.1,20.787)
set u=CreateUnit(p,'nitr',2029.4,-3239.7,83.839)
set u=CreateUnit(p,'nitr',2199.8,-2973.1,25.994)
set u=CreateUnit(p,'nitr',1962.6,-2843.7,162.394)
set u=CreateUnit(p,'nitr',2261.8,-3340.2,293.465)
set u=CreateUnit(p,'nitr',3117.4,-3257.3,49.682)
set u=CreateUnit(p,'nitr',3096.9,-2830.6,244.409)
set u=CreateUnit(p,'nitr',2757.3,-2082.0,107.153)
set u=CreateUnit(p,'nitr',2454.4,-2358.7,252.517)
set u=CreateUnit(p,'nitr',3152.1,-2213.5,262.867)
set u=CreateUnit(p,'nftr',-4676.6,-1532.7,45.452)
set u=CreateUnit(p,'nftr',-4643.4,-1999.7,95.243)
set u=CreateUnit(p,'nftr',-4423.8,-2592.9,137.509)
set u=CreateUnit(p,'nftr',-4931.6,-3058.4,277.721)
set u=CreateUnit(p,'nftr',-4938.3,-3482.7,302.661)
set u=CreateUnit(p,'nftr',-4351.7,-3548.7,25.116)
set u=CreateUnit(p,'nftr',-3507.7,-3525.2,19.589)
set u=CreateUnit(p,'nftr',-3546.8,-3690.9,100.869)
set u=CreateUnit(p,'nftr',-3701.0,-4530.5,167.821)
set u=CreateUnit(p,'nftr',-3729.7,-4594.2,128.665)
set u=CreateUnit(p,'nftr',-3844.9,-5128.6,117.063)
set u=CreateUnit(p,'nftr',-3965.6,-5165.2,348.200)
set u=CreateUnit(p,'nftr',-4570.6,-4813.0,20.886)
set u=CreateUnit(p,'nftr',-4701.2,-4684.7,237.202)
set u=CreateUnit(p,'nftr',-2584.8,-3247.4,221.326)
set u=CreateUnit(p,'nftr',-2595.8,-3419.5,36.058)
set u=CreateUnit(p,'nftr',-3180.5,-2345.0,178.797)
set u=CreateUnit(p,'nftr',-3380.5,-1885.5,92.716)
set u=CreateUnit(p,'nftr',-3362.7,-1636.1,329.303)
set u=CreateUnit(p,'nitr',-807.4,-2189.2,279.039)
set u=CreateUnit(p,'nitr',-45.7,-2596.0,279.039)
set u=CreateUnit(p,'nrvd',-3085.9,4747.2,0.000)
set u=CreateUnit(p,'nrvd',-2812.1,4455.7,0.000)
set u=CreateUnit(p,'nrvd',-2846.7,3977.9,0.000)
set u=CreateUnit(p,'nrvd',-3040.7,4402.2,0.000)
set u=CreateUnit(p,'nrvd',-3136.4,2902.5,90.000)
set u=CreateUnit(p,'nrvd',-2916.6,2789.4,90.810)
set u=CreateUnit(p,'nrvd',-2639.0,4187.8,0.000)
set u=CreateUnit(p,'nrvd',-2578.9,4719.8,0.000)
set u=CreateUnit(p,'nrvd',-2434.0,4437.9,0.000)
set u=CreateUnit(p,'nrvd',-2195.3,4763.9,0.000)
set u=CreateUnit(p,'nrvd',-2220.0,4107.3,0.000)
set u=CreateUnit(p,'nrvd',-1760.9,4405.0,0.400)
set u=CreateUnit(p,'nrvd',-2153.2,4454.6,0.400)
set u=CreateUnit(p,'nrvd',-1386.4,4764.4,0.400)
set u=CreateUnit(p,'nrvd',-1381.7,4521.6,0.400)
set u=CreateUnit(p,'nrvd',-1384.7,4233.8,0.400)
set u=CreateUnit(p,'nrvd',-1063.1,4356.9,0.400)
set u=CreateUnit(p,'nrvd',-1068.5,4684.7,0.400)
set u=CreateUnit(p,'nrvd',-818.5,4499.4,0.400)
set u=CreateUnit(p,'ngno',3008.7,-1863.1,270.920)
set u=CreateUnit(p,'nitr',-2530.8,1528.1,222.832)
set u=CreateUnit(p,'nitr',-2930.2,1377.6,222.832)
set u=CreateUnit(p,'nitr',-2946.2,711.1,222.832)
endfunction
function CreateNeutralPassiveBuildings2 takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'n00R',832.0,-4352.0,270.000)
set u=CreateUnit(p,'n00S',1152.0,-4352.0,270.000)
set u=CreateUnit(p,'ncop',-5184.0,3136.0,270.000)
set u=CreateUnit(p,'ncp3',4608.0,4416.0,270.000)
set u=CreateUnit(p,'n004',4352.0,3584.0,270.000)
set u=CreateUnit(p,'n005',4800.0,3584.0,270.000)
set u=CreateUnit(p,'n003',5184.0,3584.0,270.000)
set u=CreateUnit(p,'n001',3584.0,3904.0,270.000)
set udg_unit51=CreateUnit(p,'n000',3584.0,4416.0,270.000)
set u=CreateUnit(p,'ncop',-3904.0,3136.0,270.000)
set u=CreateUnit(p,'ncop',-3904.0,3520.0,270.000)
set u=CreateUnit(p,'ncop',-5184.0,3520.0,270.000)
set u=CreateUnit(p,'ncop',-5184.0,3904.0,270.000)
set u=CreateUnit(p,'ncop',-5184.0,4288.0,270.000)
set u=CreateUnit(p,'ncop',-3904.0,4288.0,270.000)
set u=CreateUnit(p,'ncop',-3904.0,3904.0,270.000)
set u=CreateUnit(p,'ncop',-3904.0,4672.0,270.000)
set u=CreateUnit(p,'ncop',-5184.0,4672.0,270.000)
set u=CreateUnit(p,'ncop',-5056.0,3328.0,270.000)
set u=CreateUnit(p,'ncop',-4032.0,3328.0,270.000)
set u=CreateUnit(p,'ncop',-5056.0,4480.0,270.000)
set u=CreateUnit(p,'ncop',-4032.0,4480.0,270.000)
set u=CreateUnit(p,'n009',5184.0,3072.0,270.000)
set udg_unit65=CreateUnit(p,'n00A',3968.0,3584.0,270.000)
set u=CreateUnit(p,'n00B',3584.0,4864.0,270.000)
set u=CreateUnit(p,'n00N',3008.0,4928.0,270.000)
set u=CreateUnit(p,'nfoh',-1024.0,-1856.0,270.000)
endfunction
function CreateNeutralPassive2 takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit85=CreateUnit(p,'E023',4147.3,4479.9,270.260)
set udg_unit86=CreateUnit(p,'E024',4371.0,4320.9,270.940)
set udg_unit87=CreateUnit(p,'N00P',4213.5,4650.6,270.250)
set udg_unit88=CreateUnit(p,'E006',4388.3,4760.5,270.410)
set udg_unit89=CreateUnit(p,'E02L',4075.1,4633.2,270.860)
set u=CreateUnit(p,'n00T',1335.3,-4480.7,180.000)
set u=CreateUnit(p,'n00U',1339.0,-4726.5,180.640)
set udg_unit58=CreateUnit(p,'N006',4526.5,4083.3,330.120)
set udg_unit50=CreateUnit(p,'nalb',5310.9,4630.1,53.659)
set udg_unit49=CreateUnit(p,'nalb',4973.0,5073.0,271.799)
set udg_unit59=CreateUnit(p,'O001',5074.7,4371.6,270.600)
set udg_unit57=CreateUnit(p,'O000',4712.5,4092.4,245.900)
set udg_unit60=CreateUnit(p,'E000',4500.8,4760.5,270.650)
set udg_unit61=CreateUnit(p,'E001',4872.0,4778.0,270.890)
set udg_unit62=CreateUnit(p,'E002',4075.2,4334.5,270.090)
set udg_unit42=CreateUnit(p,'nalb',5299.2,4739.3,125.435)
set udg_unit41=CreateUnit(p,'nalb',5275.1,4953.3,266.558)
set udg_unit40=CreateUnit(p,'nalb',5276.0,4985.8,186.587)
set udg_unit39=CreateUnit(p,'nalb',5303.6,4514.6,231.533)
set udg_unit38=CreateUnit(p,'nalb',5130.4,5008.6,216.602)
set udg_unit43=CreateUnit(p,'nalb',5229.0,5041.2,94.277)
set udg_unit44=CreateUnit(p,'nalb',5255.8,5015.5,284.588)
set udg_unit46=CreateUnit(p,'nalb',5082.1,5081.7,286.785)
set udg_unit47=CreateUnit(p,'nalb',5330.2,4905.8,3.351)
set udg_unit48=CreateUnit(p,'nalb',5164.6,5043.5,257.396)
set u=CreateUnit(p,'nech',782.9,-4756.5,143.277)
set u=CreateUnit(p,'nech',926.9,-4815.4,89.970)
set udg_unit73=CreateUnit(p,'H00I',4749.2,4231.5,270.040)
set udg_unit74=CreateUnit(p,'E00L',4476.9,4229.4,270.090)
set udg_unit75=CreateUnit(p,'H00K',5030.9,4171.5,235.540)
set udg_unit84=CreateUnit(p,'H005',-1071.9,3165.9,180.970)
set u=CreateUnit(p,'nech',874.9,-4969.5,168.426)
set u=CreateUnit(p,'nech',1067.8,-5012.7,238.400)
set u=CreateUnit(p,'nech',1116.4,-4869.3,85.707)
set u=CreateUnit(p,'nech',1076.7,-4707.8,348.640)
set u=CreateUnit(p,'nech',886.2,-4629.0,306.693)
set u=CreateUnit(p,'nech',959.0,-5130.7,138.454)
set u=CreateUnit(p,'nech',838.4,-5189.0,160.790)
set udg_unit56=CreateUnit(p,'E00P',4314.3,4500.1,270.820)
set udg_unit81=CreateUnit(p,'H00O',5039.9,4525.3,290.820)
set u=CreateUnit(p,'hmpr',3222.0,-3259.1,160.390)
set udg_unit67=CreateUnit(p,'hsor',-1144.2,-2479.6,70.190)
set udg_unit82=CreateUnit(p,'H00P',4312.3,4165.4,280.340)
set udg_unit64=CreateUnit(p,'E00Y',4752.4,4771.2,270.440)
set udg_unit63=CreateUnit(p,'H00Q',4133.5,4157.4,300.390)
set udg_unit83=CreateUnit(p,'H003',4622.8,4761.0,270.250)
set udg_unit80=CreateUnit(p,'Hmkg',3533.3,3293.4,230.180)
set udg_unit77=CreateUnit(p,'E020',4234.9,4320.9,270.900)
set udg_unit76=CreateUnit(p,'E016',4902.4,4531.4,270.650)
set udg_unit79=CreateUnit(p,'E01L',4881.5,4183.2,270.730)
set udg_unit70=CreateUnit(p,'e01O',4606.3,4416.5,270.830)
set udg_unit78=CreateUnit(p,'E01Q',-5057.6,-3486.1,219.280)
call SetHeroLevel(udg_unit78,100,false)
set udg_unit72=CreateUnit(p,'E01R',-4633.0,-3504.8,180.270)
call SetHeroLevel(udg_unit72,100,false)
set udg_unit66=CreateUnit(p,'E01S',-4629.7,-3619.7,180.830)
call SetHeroLevel(udg_unit66,100,false)
set udg_unit69=CreateUnit(p,'E01T',-4611.9,-3778.3,180.160)
call SetHeroLevel(udg_unit69,100,false)
set udg_unit68=CreateUnit(p,'E01U',-4503.1,-3197.3,200.890)
call SetHeroLevel(udg_unit68,100,false)
set u=CreateUnit(p,'nech',1130.8,-5193.0,57.109)
set udg_unit90=CreateUnit(p,'n00V',1284.0,-5410.7,140.170)
set u=CreateUnit(p,'nech',793.7,-4904.0,89.970)
set u=CreateUnit(p,'nech',997.4,-4940.6,89.970)
set udg_unit91=CreateUnit(p,'E02M',4890.0,4374.2,230.060)
endfunction
function CreateRegions2 takes nothing returns nothing
local weathereffect we
set udg_rect01=Rect(4000.0,4000.0,5216.0,4928.0)
set udg_rect02=Rect(2176.0,1984.0,4160.0,3712.0)
set udg_rect03=Rect(3360.0,3200.0,3648.0,3616.0)
set udg_rect04=Rect(-704.0,-1248.0,-160.0,-576.0)
set udg_rect05=Rect(704.0,-2336.0,1280.0,-1792.0)
set udg_rect06=Rect(-1920.0,512.0,-1344.0,1216.0)
set udg_rect07=Rect(1856.0,-5664.0,3584.0,-4320.0)
set udg_rect08=Rect(3200.0,-5216.0,3488.0,-4736.0)
set udg_rect09=Rect(2016.0,-5312.0,2272.0,-4864.0)
set udg_rect10=Rect(4128.0,1984.0,5312.0,3744.0)
set udg_rect11=Rect(2272.0,3712.0,3712.0,4992.0)
set udg_rect12=Rect(1120.0,3712.0,1920.0,4960.0)
set udg_rect13=Rect(3936.0,320.0,5408.0,1440.0)
set udg_rect14=Rect(4864.0,-5344.0,5088.0,-4992.0)
set udg_rect15=Rect(4896.0,-3744.0,5088.0,-3456.0)
set udg_rect16=Rect(4928.0,-2208.0,5120.0,-1920.0)
set udg_rect17=Rect(4992.0,-864.0,5152.0,-480.0)
set udg_rect18=Rect(4000.0,-832.0,4192.0,-480.0)
set udg_rect19=Rect(4000.0,-2240.0,4160.0,-1920.0)
set udg_rect20=Rect(4032.0,-3744.0,4192.0,-3488.0)
set udg_rect21=Rect(3968.0,-5312.0,4160.0,-5024.0)
set udg_rect22=Rect(-5248.0,3456.0,-5120.0,3584.0)
set udg_rect23=Rect(-5248.0,3072.0,-5120.0,3200.0)
set udg_rect24=Rect(-5120.0,3264.0,-4992.0,3392.0)
set udg_rect25=Rect(-5248.0,3840.0,-5120.0,3968.0)
set udg_rect26=Rect(-5248.0,4224.0,-5120.0,4352.0)
set udg_rect27=Rect(-5120.0,4416.0,-4992.0,4544.0)
set udg_rect28=Rect(-5248.0,4608.0,-5120.0,4736.0)
set udg_rect29=Rect(-4096.0,4416.0,-3968.0,4544.0)
set udg_rect30=Rect(-3968.0,4608.0,-3840.0,4736.0)
set udg_rect31=Rect(-3968.0,4224.0,-3840.0,4352.0)
set udg_rect32=Rect(-3968.0,3840.0,-3840.0,3968.0)
set udg_rect33=Rect(-3968.0,3456.0,-3840.0,3584.0)
set udg_rect34=Rect(-4096.0,3264.0,-3968.0,3392.0)
set udg_rect35=Rect(-3968.0,3072.0,-3840.0,3200.0)
set udg_rect36=Rect(-5184.0,3072.0,-3872.0,3232.0)
set udg_rect37=Rect(-5216.0,3456.0,-3904.0,3616.0)
set udg_rect38=Rect(-5184.0,3616.0,-3872.0,3776.0)
set udg_rect39=Rect(-5280.0,2912.0,-3808.0,3072.0)
set udg_rect40=Rect(-5216.0,3840.0,-3904.0,4000.0)
set udg_rect41=Rect(-5184.0,4192.0,-3872.0,4352.0)
set udg_rect42=Rect(-5152.0,4416.0,-3840.0,4576.0)
set udg_rect43=Rect(-4864.0,1664.0,-4480.0,1792.0)
set udg_rect44=Rect(-4736.0,1024.0,-4352.0,1152.0)
set udg_rect45=Rect(-5280.0,768.0,-4736.0,896.0)
set udg_rect46=Rect(-4352.0,512.0,-3808.0,640.0)
set udg_rect47=Rect(-5280.0,384.0,-4736.0,512.0)
set udg_rect48=Rect(-4736.0,128.0,-4352.0,256.0)
set udg_rect49=Rect(-4224.0,1408.0,-3808.0,1536.0)
set udg_rect50=Rect(-4224.0,1664.0,-3808.0,1792.0)
set udg_rect51=Rect(-4096.0,1024.0,-3808.0,1152.0)
set udg_rect52=Rect(-5280.0,1280.0,-4736.0,1408.0)
set udg_rect53=Rect(-5280.0,1920.0,-4992.0,2048.0)
set udg_rect54=Rect(-4608.0,384.0,-4480.0,640.0)
set udg_rect55=Rect(-4608.0,768.0,-4480.0,896.0)
set udg_rect56=Rect(-4224.0,768.0,-4096.0,896.0)
set udg_rect57=Rect(-4608.0,1280.0,-4352.0,1536.0)
set udg_rect58=Rect(-4480.0,1920.0,-4224.0,2048.0)
set udg_rect59=Rect(-4992.0,128.0,-4864.0,256.0)
set udg_rect60=Rect(-4224.0,256.0,-3968.0,384.0)
set udg_rect61=Rect(-4768.0,2496.0,-4576.0,2752.0)
set udg_rect62=Rect(-2432.0,-5728.0,-1312.0,-4096.0)
set udg_rect63=Rect(-3264.0,-256.0,-3072.0,-32.0)
set udg_rect64=Rect(1984.0,-3712.0,2144.0,-3520.0)
set udg_rect65=Rect(640.0,4416.0,832.0,4704.0)
set udg_rect66=Rect(-736.0,256.0,-512.0,512.0)
set udg_rect67=Rect(1216.0,-800.0,1568.0,-384.0)
set udg_rect68=Rect(1408.0,-352.0,2016.0,-64.0)
set udg_rect69=Rect(-64.0,864.0,416.0,1216.0)
set udg_rect70=Rect(-5088.0,-5248.0,-4832.0,-4960.0)
set udg_rect71=Rect(-3616.0,-4896.0,-3296.0,-4608.0)
set udg_rect72=Rect(2816.0,4544.0,3264.0,4960.0)
set udg_rect73=Rect(4832.0,2496.0,5216.0,3008.0)
set udg_rect74=Rect(-1472.0,-5728.0,-448.0,-4160.0)
set udg_rect75=Rect(-3680.0,-2944.0,-3296.0,-2560.0)
set udg_rect76=Rect(-5056.0,-1600.0,-4640.0,-1152.0)
set udg_rect77=Rect(-320.0,-5728.0,1728.0,-4064.0)
set udg_rect78=Rect(-384.0,-3104.0,-32.0,-2624.0)
set udg_rect79=Rect(-2272.0,-1888.0,-1952.0,-1344.0)
set udg_rect80=Rect(3904.0,-5536.0,5280.0,-4576.0)
set udg_rect81=Rect(3904.0,-4128.0,5280.0,-3040.0)
set udg_rect82=Rect(3904.0,-2624.0,5280.0,-1632.0)
set udg_rect83=Rect(3904.0,-1056.0,5280.0,-224.0)
set udg_rect84=Rect(-3360.0,3904.0,960.0,4960.0)
set udg_rect85=Rect(-1728.0,2752.0,-1504.0,3488.0)
set udg_rect86=Rect(-2560.0,1632.0,-2272.0,1952.0)
set udg_rect87=Rect(2784.0,-2080.0,3168.0,-1632.0)
set udg_rect88=Rect(-64.0,-4512.0,160.0,-4256.0)
set udg_rect89=Rect(704.0,-5248.0,1280.0,-4544.0)
endfunction
function Trig_tq_Func005Func003Func003Func003C takes nothing returns boolean
if(not(udg_integer21==4))then
return false
endif
return true
endfunction
function Trig_tq_Func005Func003Func003C takes nothing returns boolean
if(not(udg_integer21==3))then
return false
endif
return true
endfunction
function Trig_tq_Func005Func003C takes nothing returns boolean
if(not(udg_integer21==2))then
return false
endif
return true
endfunction
function Trig_tq_Func005C takes nothing returns boolean
if(not(udg_integer21==1))then
return false
endif
return true
endfunction
function Trig_tq_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"TRIGSTR_3410")
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"TRIGSTR_2808")
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"TRIGSTR_7238")
set udg_integer21=(udg_integer21+1)
if(Trig_tq_Func005C())then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"TRIGSTR_6645")
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'RAhr')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
set udg_weathereffect01=GetLastCreatedWeatherEffect()
set udg_integer44=1
call TriggerSleepAction(400.00)
set udg_integer44=0
call RemoveWeatherEffect(udg_weathereffect01)
else
if(Trig_tq_Func005Func003C())then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"TRIGSTR_6646")
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'SNhs')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
set udg_weathereffect01=GetLastCreatedWeatherEffect()
set udg_integer48=1
call TriggerSleepAction(400.00)
set udg_integer48=0
call RemoveWeatherEffect(udg_weathereffect01)
else
if(Trig_tq_Func005Func003Func003C())then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,"TRIGSTR_6647")
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'SNbs')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
set udg_weathereffect01=GetLastCreatedWeatherEffect()
set udg_integer48=1
call TriggerSleepAction(400.00)
set udg_integer48=0
call RemoveWeatherEffect(udg_weathereffect01)
else
if(Trig_tq_Func005Func003Func003Func003C())then
call AddWeatherEffectSaveLast(GetPlayableMapRect(),'LRma')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
set udg_weathereffect01=GetLastCreatedWeatherEffect()
call TriggerSleepAction(400.00)
call RemoveWeatherEffect(udg_weathereffect01)
else
set udg_integer21=0
endif
endif
endif
endif
endfunction
function Trig_rwmb_Actions takes nothing returns nothing
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Naruto Castle Defense v2.3T5","Thank you for supporting this translated map by BladeSaint. Do support the original map by Bobby at hyrzjb.uuu9.com if you understand Chinese or have the chinese patch.","ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Mission Objective","Defend against 30 waves of creeps and bosses, and the final boss wave of Uchiha Madara to complete the game.","ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Command","HG:Teleport to Base","ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Note","Do support versions updated only by BladeSaint. There may be people editing purely for a few minutes and claiming all the credit. You know who you are.","ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp")
call CreateQuestBJ(bj_QUESTTYPE_REQ_DISCOVERED,"Tips","1.Form the Jade of Kage asap as it gives bonus stats at random kills 2.The Ticket to the Secret Cave only drop twice from Gaara and Kimimaro. Do not waste it if you do not know how to use. 3.Unlock the God's item series with the Stone of Nu Wa.","ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp")
endfunction
function Trig_CSH_Func001A takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(PLAYER_NEUTRAL_PASSIVE),true)
call SetUnitInvulnerable(GetEnumUnit(),true)
call ShowUnitHide(GetEnumUnit())
endfunction
function Trig_CSH_Func006A takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect01)
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect11)
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect02)
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect10)
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect07)
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect62)
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect74)
call CreateFogModifierRectBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,udg_rect77)
call SetPlayerState(GetEnumPlayer(),PLAYER_STATE_GIVES_BOUNTY,1)
call SetPlayerAbilityAvailable(GetEnumPlayer(),'A00W',false)
call SetPlayerAbilityAvailable(GetEnumPlayer(),'A08A',false)
call SetPlayerAbilityAvailable(GetEnumPlayer(),'A01F',false)
call SetPlayerAbilityAvailable(GetEnumPlayer(),'A012',false)
call SetPlayerAbilityAvailable(GetEnumPlayer(),'A00S',false)
call SetPlayerAbilityAvailable(GetEnumPlayer(),'A08Z',false)
call SetPlayerAbilityAvailable(GetEnumPlayer(),'A00R',false)
call SetPlayerAbilityAvailable(GetEnumPlayer(),'A01G',false)
endfunction
function Trig_CSH_Func007A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function Trig_CSH_Func015A takes nothing returns nothing
call SetDestructableInvulnerable(GetEnumDestructable(),true)
endfunction
function Trig_CSH_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(9),'hgtw'),function Trig_CSH_Func001A)
call ShowUnitHide(udg_unit71)
call ShowUnitHide(udg_unit90)
call ShowUnitHide(udg_unit80)
call SetTimeOfDay(6.00)
call ForForce(GetPlayersAll(),function Trig_CSH_Func006A)
call ForGroupBJ(GetUnitsInRectAll(udg_rect01),function Trig_CSH_Func007A)
call UnitRemoveAbility(udg_unit84,'A08J')
call ShowUnitHide(udg_unit84)
call ShowUnitHide(udg_unit78)
call ShowUnitHide(udg_unit68)
call ShowUnitHide(udg_unit72)
call ShowUnitHide(udg_unit66)
call ShowUnitHide(udg_unit69)
call EnumDestructablesInRectAll(GetPlayableMapRect(),function Trig_CSH_Func015A)
endfunction
function Trig_wuCDmoshi_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(udg_booleans05[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false))then
return false
endif
return true
endfunction
function Trig_wuCDmoshi_Actions takes nothing returns nothing
set udg_booleans05[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
set udg_units56[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=GetTriggerUnit()
call TriggerSleepAction(20.00)
call UnitResetCooldown(udg_units56[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
set udg_units56[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=null
set udg_booleans05[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
endfunction
function Trig_nandu1111111_Func009Func002002 takes nothing returns nothing
call AdjustPlayerStateBJ(700,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_nandu1111111_Func009C takes nothing returns boolean
if(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_nandu1111111_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),1.00,"TRIGSTR_8028")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,"TRIGSTR_8029")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(GetPlayersAll(),30.00,"TRIGSTR_8030")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("Wait |cffff0000"+(GetPlayerName(Player(0))+" |rto choose the game's options!")))
call ShowUnitHide(udg_unit83)
if(Trig_nandu1111111_Func009C())then
call DialogSetMessage(udg_dialog02,"Please select game difficulty")
call DialogAddButtonBJ(udg_dialog02,"Genin")
set udg_buttons01[1]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Chuunin")
set udg_buttons01[2]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Jounin")
set udg_buttons01[3]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Anbu")
set udg_buttons01[4]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Kage")
set udg_buttons01[5]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Extreme")
set udg_buttons01[6]=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog02,Player(0))
else
call DialogClear(udg_dialog02)
call ForForce(GetPlayersAllies(Player(9)),function Trig_nandu1111111_Func009Func002002)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_6920")
call SetPlayerTechResearchedSwap('R001',7,Player(10))
call SetPlayerTechResearchedSwap('R001',7,Player(11))
call SetPlayerTechResearchedSwap('R002',6,Player(10))
call SetPlayerTechResearchedSwap('R002',6,Player(11))
call SetPlayerTechResearchedSwap('R002',6,Player(PLAYER_NEUTRAL_AGGRESSIVE))
call EnableTrigger(udg_trigger09)
call EnableTrigger(udg_trigger10)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_6921")
set udg_integer33=2
call TriggerSleepAction(100.00)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_6922")
call DisableTrigger(udg_trigger09)
call DisableTrigger(udg_trigger10)
call TriggerExecute(udg_trigger11)
call TriggerExecute(udg_trigger19)
call TriggerExecute(udg_trigger55)
endif
endfunction
function Trig_nandu2222222_Func001Func001Func001Func001Func001Func001Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(300,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_nandu2222222_Func001Func001Func001Func001Func001Func001Func015A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
call SetUnitOwner(GetEnumUnit(),Player(9),true)
call ShowUnitShow(GetEnumUnit())
endfunction
function Trig_nandu2222222_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[6]))then
return false
endif
return true
endfunction
function Trig_nandu2222222_Func001Func001Func001Func001Func001Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(400,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_nandu2222222_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[5]))then
return false
endif
return true
endfunction
function Trig_nandu2222222_Func001Func001Func001Func001Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(500,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_nandu2222222_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[4]))then
return false
endif
return true
endfunction
function Trig_nandu2222222_Func001Func001Func001Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(600,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_nandu2222222_Func001Func001Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[3]))then
return false
endif
return true
endfunction
function Trig_nandu2222222_Func001Func001Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(800,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_nandu2222222_Func001Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[2]))then
return false
endif
return true
endfunction
function Trig_nandu2222222_Func001Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(1000,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_nandu2222222_Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[1]))then
return false
endif
return true
endfunction
function Trig_nandu2222222_Func004C takes nothing returns boolean
if(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_nandu2222222_Actions takes nothing returns nothing
if(Trig_nandu2222222_Func001C())then
call DestroyTrigger(GetTriggeringTrigger())
call DialogClear(udg_dialog02)
call ForForce(GetPlayersAllies(Player(9)),function Trig_nandu2222222_Func001Func004002)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The game difficulty is now Genin. All players get 1000 gold each.")
call DisplayTimedTextToForce(GetPlayersAll(),30,"Please choose a hero within 100 seconds.")
set udg_integer33=1
else
if(Trig_nandu2222222_Func001Func001C())then
call DestroyTrigger(GetTriggeringTrigger())
call DialogClear(udg_dialog02)
call ForForce(GetPlayersAllies(Player(9)),function Trig_nandu2222222_Func001Func001Func004002)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The game difficulty is now Chuunin. All players get 800 gold each.")
call SetPlayerTechResearchedSwap('R001',5,Player(10))
call SetPlayerTechResearchedSwap('R001',5,Player(11))
call SetPlayerTechResearchedSwap('R002',5,Player(10))
call SetPlayerTechResearchedSwap('R002',5,Player(11))
call SetPlayerTechResearchedSwap('R002',5,Player(PLAYER_NEUTRAL_AGGRESSIVE))
call EnableTrigger(udg_trigger29)
set udg_integer33=2
else
if(Trig_nandu2222222_Func001Func001Func001C())then
call DestroyTrigger(GetTriggeringTrigger())
call DialogClear(udg_dialog02)
call ForForce(GetPlayersAllies(Player(9)),function Trig_nandu2222222_Func001Func001Func001Func004002)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The game difficulty is now Jounin. All players get 600 gold each.")
call SetPlayerTechResearchedSwap('R001',11,Player(10))
call SetPlayerTechResearchedSwap('R001',11,Player(11))
call SetPlayerTechResearchedSwap('R002',11,Player(10))
call SetPlayerTechResearchedSwap('R002',11,Player(11))
call SetPlayerTechResearchedSwap('R002',11,Player(PLAYER_NEUTRAL_AGGRESSIVE))
call EnableTrigger(udg_trigger29)
set udg_integer33=3
else
if(Trig_nandu2222222_Func001Func001Func001Func001C())then
call DestroyTrigger(GetTriggeringTrigger())
call DialogClear(udg_dialog02)
call ForForce(GetPlayersAllies(Player(9)),function Trig_nandu2222222_Func001Func001Func001Func001Func004002)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The game difficulty is now Anbu. All players get 500 gold each.")
call UnitAddAbility(udg_unit55,'AId2')
call SetPlayerTechResearchedSwap('R001',16,Player(10))
call SetPlayerTechResearchedSwap('R001',16,Player(11))
call SetPlayerTechResearchedSwap('R002',14,Player(10))
call SetPlayerTechResearchedSwap('R002',14,Player(11))
call SetPlayerTechResearchedSwap('R002',14,Player(PLAYER_NEUTRAL_AGGRESSIVE))
call EnableTrigger(udg_trigger29)
set udg_integer33=4
else
if(Trig_nandu2222222_Func001Func001Func001Func001Func001C())then
call DestroyTrigger(GetTriggeringTrigger())
call DialogClear(udg_dialog02)
call ForForce(GetPlayersAllies(Player(9)),function Trig_nandu2222222_Func001Func001Func001Func001Func001Func004002)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The game difficulty is now Kage. All players get 400 gold each.")
call UnitAddAbility(udg_unit55,'AId3')
call SetPlayerTechResearchedSwap('R001',20,Player(10))
call SetPlayerTechResearchedSwap('R001',20,Player(11))
call SetPlayerTechResearchedSwap('R002',16,Player(10))
call SetPlayerTechResearchedSwap('R002',19,Player(11))
call SetPlayerTechResearchedSwap('R002',19,Player(PLAYER_NEUTRAL_AGGRESSIVE))
call EnableTrigger(udg_trigger29)
set udg_integer33=5
set udg_integer23=1
else
if(Trig_nandu2222222_Func001Func001Func001Func001Func001Func001C())then
call DestroyTrigger(GetTriggeringTrigger())
call DialogClear(udg_dialog02)
call ForForce(GetPlayersAllies(Player(9)),function Trig_nandu2222222_Func001Func001Func001Func001Func001Func001Func004002)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The game difficulty is now Extreme. All players get 300 gold each.")
call UnitAddAbility(udg_unit55,'AId4')
call SetPlayerTechResearchedSwap('R001',25,Player(10))
call SetPlayerTechResearchedSwap('R001',25,Player(11))
call SetPlayerTechResearchedSwap('R002',20,Player(10))
call SetPlayerTechResearchedSwap('R002',25,Player(11))
call SetPlayerTechResearchedSwap('R002',25,Player(PLAYER_NEUTRAL_AGGRESSIVE))
call EnableTrigger(udg_trigger29)
set udg_integer33=6
set udg_integer23=2
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(PLAYER_NEUTRAL_PASSIVE),'hgtw'),function Trig_nandu2222222_Func001Func001Func001Func001Func001Func001Func015A)
else
call DoNothing()
endif
endif
endif
endif
endif
endif
call DisplayTextToForce(GetPlayersAll(),"Wait for host to select PK duration")
call TriggerSleepAction(1.00)
if(Trig_nandu2222222_Func004C())then
call EnableTrigger(udg_trigger07)
call DialogSetMessage(udg_dialog02,"PK Duration upon winning")
call DialogAddButtonBJ(udg_dialog02,"15 minutes")
set udg_buttons01[1]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"30 minutes")
set udg_buttons01[2]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"1 hour")
set udg_buttons01[3]=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog02,Player(0))
else
call DoNothing()
endif
endfunction
function Trig_nandu3333333_Func002Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[3]))then
return false
endif
return true
endfunction
function Trig_nandu3333333_Func002C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[2]))then
return false
endif
return true
endfunction
function Trig_nandu3333333_Func004C takes nothing returns boolean
if(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction
function Trig_nandu3333333_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_nandu3333333_Func002C())then
call DialogClear(udg_dialog02)
call DisplayTextToForce(GetPlayersAll(),"Host has chosen the PK duration to be 30 minutes")
set udg_integer56=900
else
if(Trig_nandu3333333_Func002Func001C())then
call DialogClear(udg_dialog02)
call DisplayTextToForce(GetPlayersAll(),"Host has chosen the PK duration to be 1 hour")
set udg_integer56=2700
else
call DialogClear(udg_dialog02)
call DisplayTextToForce(GetPlayersAll(),"Host has chosen the PK duration to be 15 minutes")
endif
endif
call TriggerSleepAction(1.00)
if(Trig_nandu3333333_Func004C())then
call EnableTrigger(udg_trigger08)
call DialogSetMessage(udg_dialog02,"Select Game Mode")
call DialogAddButtonBJ(udg_dialog02,"Fun Mode -Low Skill CD, but high difficulty-")
set udg_buttons01[1]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Normal Mode")
set udg_buttons01[2]=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog02,Player(0))
else
call DoNothing()
endif
endfunction
function Trig_nandu4444444_Func002C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[1]))then
return false
endif
return true
endfunction
function Trig_nandu4444444_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_nandu4444444_Func002C())then
call DialogClear(udg_dialog02)
call DisplayTextToForce(GetPlayersAll(),"Host has chosen |cffff0000Fun Mode! Training Room 2 is closed and an additional Challenge your image room has been unlocked.|r")
call EnableTrigger(udg_trigger04)
call SetPlayerTechResearchedSwap('R001',(GetPlayerTechCountSimple('R001',Player(10))+10),Player(10))
call SetPlayerTechResearchedSwap('R001',(GetPlayerTechCountSimple('R001',Player(11))+10),Player(11))
call SetPlayerTechResearchedSwap('R002',(GetPlayerTechCountSimple('R002',Player(10))+12),Player(10))
call SetPlayerTechResearchedSwap('R002',(GetPlayerTechCountSimple('R002',Player(11))+12),Player(11))
call SetPlayerTechResearchedSwap('R002',(GetPlayerTechCountSimple('R002',Player(PLAYER_NEUTRAL_AGGRESSIVE))+12),Player(PLAYER_NEUTRAL_AGGRESSIVE))
call EnableTrigger(udg_trigger617)
call EnableTrigger(udg_trigger29)
call DisableTrigger(udg_trigger401)
else
call DialogClear(udg_dialog02)
call DisplayTextToForce(GetPlayersAll(),"Host selected Normal Mode")
endif
call EnableTrigger(udg_trigger09)
call EnableTrigger(udg_trigger10)
call DisplayTimedTextToForce(GetPlayersAll(),30,"Players can choose a hero by double clicking it, or randoming by double clicking the question mark. After 100 seconds, you can no longer choose any hero.")
call TriggerSleepAction(100.00)
call DisableTrigger(udg_trigger09)
call DisableTrigger(udg_trigger10)
call TriggerExecute(udg_trigger11)
call TriggerExecute(udg_trigger19)
call TriggerExecute(udg_trigger55)
call DisplayTimedTextToForce(GetPlayersAll(),30,"You can no longer choose a hero")
endfunction
function Trig_xuanze111111_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_PASSIVE)))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function Trig_xuanze111111_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'phea')==true))then
return false
endif
return true
endfunction
function Trig_xuanze111111_Actions takes nothing returns nothing
if(Trig_xuanze111111_Func001C())then
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect03))
call SetUnitOwner(GetTriggerUnit(),GetTriggerPlayer(),true)
set udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]=true
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("|cffff0000"+(GetPlayerName(GetTriggerPlayer())+("|r chose |cff00ff00"+(GetHeroProperName(GetTriggerUnit())+" |r and enter the Ninja village!")))))
call SetUnitInvulnerable(GetTriggerUnit(),false)
call UnitAddItemByIdSwapped('ankh',GetTriggerUnit())
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(GetTriggerUnit()),0.50)
set udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]=GetTriggerUnit()
set udg_locations17[GetConvertedPlayerId(GetTriggerPlayer())]=GetRectCenter(udg_rect03)
set udg_integer34=(udg_integer34+1)
else
call UnitAddItemByIdSwapped('phea',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,5.00,("You want to choose:|cff00ff00"+(GetHeroProperName(GetTriggerUnit())+"|r ?Double click it then!")))
call TriggerSleepAction(0.30)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'phea'))
endif
endfunction
function Trig_xuanze222222_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit70))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function Trig_xuanze222222_Func001Func002002001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_xuanze222222_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'phea')==true))then
return false
endif
return true
endfunction
function Trig_xuanze222222_Actions takes nothing returns nothing
if(Trig_xuanze222222_Func001C())then
set udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_unit36=GroupPickRandomUnit(GetUnitsInRectMatching(udg_rect01,Condition(function Trig_xuanze222222_Func001Func002002001002)))
call SetUnitPositionLoc(udg_unit36,GetRectCenter(udg_rect03))
call SetUnitOwner(udg_unit36,GetTriggerPlayer(),true)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("|cffff0000"+(GetPlayerName(GetTriggerPlayer())+("|r randomly chose |cff00ff00"+(GetHeroProperName(udg_unit36)+" |r and entered the Ninja village!")))))
call SetUnitInvulnerable(udg_unit36,false)
call UnitAddItemByIdSwapped('ankh',udg_unit36)
call UnitAddItemByIdSwapped('bspd',udg_unit36)
call UnitAddItemByIdSwapped('rhth',udg_unit36)
call UnitAddItemByIdSwapped('pmna',udg_unit36)
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_unit36),0.50)
set udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]=udg_unit36
set udg_locations17[GetConvertedPlayerId(GetTriggerPlayer())]=GetRectCenter(udg_rect03)
set udg_integer34=(udg_integer34+1)
set udg_unit36=null
else
endif
call UnitAddItemByIdSwapped('phea',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,5.00,"TRIGSTR_6292")
call TriggerSleepAction(0.30)
set udg_booleans01[GetConvertedPlayerId(GetTriggerPlayer())]=false
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'phea'))
endfunction
function Trig_MB1_Func001001 takes nothing returns boolean
return(udg_integer33==1)
endfunction
function Trig_MB1_Func002001 takes nothing returns boolean
return(udg_integer33==2)
endfunction
function Trig_MB1_Func003001 takes nothing returns boolean
return(udg_integer33==3)
endfunction
function Trig_MB1_Func004001 takes nothing returns boolean
return(udg_integer33==4)
endfunction
function Trig_MB1_Func005001 takes nothing returns boolean
return(udg_integer33==5)
endfunction
function Trig_MB1_Func006001 takes nothing returns boolean
return(udg_integer33==6)
endfunction
function Trig_MB1_Func020C takes nothing returns boolean
if(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(0))]==true))then
return false
endif
return true
endfunction
function Trig_MB1_Func021C takes nothing returns boolean
if(not(GetPlayerController(Player(1))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(1))]==true))then
return false
endif
return true
endfunction
function Trig_MB1_Func022C takes nothing returns boolean
if(not(GetPlayerController(Player(2))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(2))]==true))then
return false
endif
return true
endfunction
function Trig_MB1_Func026C takes nothing returns boolean
if(not(GetPlayerController(Player(3))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(3))]==true))then
return false
endif
return true
endfunction
function Trig_MB1_Func027C takes nothing returns boolean
if(not(GetPlayerController(Player(4))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(4))]==true))then
return false
endif
return true
endfunction
function Trig_MB1_Func028C takes nothing returns boolean
if(not(GetPlayerController(Player(5))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(5))]==true))then
return false
endif
return true
endfunction
function Trig_MB1_Actions takes nothing returns nothing
if(Trig_MB1_Func001001())then
call CreateMultiboardBJ(7,9,"Game Mode: Genin")
else
call DoNothing()
endif
if(Trig_MB1_Func002001())then
call CreateMultiboardBJ(7,9,"Game Mode: Chuunin")
else
call DoNothing()
endif
if(Trig_MB1_Func003001())then
call CreateMultiboardBJ(7,9,"Game Mode: Jounin")
else
call DoNothing()
endif
if(Trig_MB1_Func004001())then
call CreateMultiboardBJ(7,9,"Game Mode: Anbu")
else
call DoNothing()
endif
if(Trig_MB1_Func005001())then
call CreateMultiboardBJ(7,9,"Game Mode: Kage")
else
call DoNothing()
endif
if(Trig_MB1_Func006001())then
call CreateMultiboardBJ(7,9,"Game Mode: Extreme")
else
call DoNothing()
endif
call MultiboardDisplayBJ(true,GetLastCreatedMultiboard())
call MultiboardMinimizeBJ(false,GetLastCreatedMultiboard())
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,1,"Hero")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,1,"Enemy Kills")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,1,"Boss Kills")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,1,"Rank")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),5,1,"Deaths")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),6,1,"Points")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,1,"Status")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=11
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer35=GetForLoopIndexA()
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=12
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),GetForLoopIndexB(),udg_integer35,true,false)
call MultiboardSetItemWidthBJ(GetLastCreatedMultiboard(),GetForLoopIndexB(),udg_integer35,7.00)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),GetForLoopIndexA(),1,"ReplaceableTextures\\CommandButtons\\BTNAttackGround.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),GetForLoopIndexA(),1,true,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),1,GetForLoopIndexA(),"ReplaceableTextures\\CommandButtons\\BTNCancel.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,GetForLoopIndexA(),true,true)
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),2,GetForLoopIndexA(),"ReplaceableTextures\\CommandButtons\\BTNHoldPosition.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,GetForLoopIndexA(),true,true)
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),3,GetForLoopIndexA(),"ReplaceableTextures\\CommandButtons\\BTNAttack.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),3,GetForLoopIndexA(),true,true)
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),5,GetForLoopIndexA(),"ReplaceableTextures\\WorldEditUI\\StartingLocation.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),5,GetForLoopIndexA(),true,true)
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),6,GetForLoopIndexA(),"ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedUp.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),6,GetForLoopIndexA(),true,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=6
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),1,GetForLoopIndexA(),"ReplaceableTextures\\CommandButtons\\BTNCancel.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,GetForLoopIndexA(),true,true)
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),2,GetForLoopIndexA(),"ReplaceableTextures\\CommandButtons\\BTNHoldPosition.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),2,GetForLoopIndexA(),true,true)
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),3,GetForLoopIndexA(),"ReplaceableTextures\\CommandButtons\\BTNAttack.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),3,GetForLoopIndexA(),true,true)
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),5,GetForLoopIndexA(),"ReplaceableTextures\\WorldEditUI\\StartingLocation.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),5,GetForLoopIndexA(),true,true)
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),6,GetForLoopIndexA(),"ReplaceableTextures\\CommandButtons\\BTNReplay-SpeedDown.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),6,GetForLoopIndexA(),true,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_MB1_Func020C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,2,("|CFF00FFFF"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(0))])+" |R")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,2,"Genin")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,2,"Playing")
else
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,2,"Not playing")
endif
if(Trig_MB1_Func021C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,3,("|CFF00FFFF"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(1))])+" |R")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,3,"Genin")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,3,"Playing")
else
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,3,"Not playing")
endif
if(Trig_MB1_Func022C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,4,("|CFF00FFFF"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(2))])+" |R")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,4,"Genin")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,4,"Playing")
else
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,4,"Not playing")
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,5,"Current Wave")
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),1,5,"ReplaceableTextures\\CommandButtons\\BTNPatrol.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,5,true,true)
if(Trig_MB1_Func026C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,6,("|CFF00FFFF"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(3))])+" |R")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,6,"Genin")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,6,"Playing")
else
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,6,"Not playing")
endif
if(Trig_MB1_Func027C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,7,("|CFF00FFFF"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(4))])+" |R")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,7,"Genin")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,7,"Playing")
else
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,7,"Not playing")
endif
if(Trig_MB1_Func028C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,8,("|CFF00FFFF"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(5))])+" |R")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,8,"Genin")
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,8,"Playing")
else
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,8,"Not playing")
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),1,9,"TRIGSTR_5742")
call MultiboardSetItemIconBJ(GetLastCreatedMultiboard(),1,9,"ReplaceableTextures\\CommandButtons\\BTNMove.blp")
call MultiboardSetItemStyleBJ(GetLastCreatedMultiboard(),1,9,true,true)
call MultiboardMinimizeBJ(false,GetLastCreatedMultiboard())
call EnableTrigger(udg_trigger17)
endfunction
function Trig_MB2_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(11))==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function Trig_MB2_Func001Func002C takes nothing returns boolean
if(not(udg_integers10[1]==100))then
return false
endif
return true
endfunction
function Trig_MB2_Func001Func003C takes nothing returns boolean
if(not(udg_integers10[1]==400))then
return false
endif
return true
endfunction
function Trig_MB2_Func001Func004C takes nothing returns boolean
if(not(udg_integers10[1]==1000))then
return false
endif
return true
endfunction
function Trig_MB2_Func001Func005C takes nothing returns boolean
if(not(udg_integers10[1]==2000))then
return false
endif
return true
endfunction
function Trig_MB2_Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return false
endif
return true
endfunction
function Trig_MB2_Func002Func002C takes nothing returns boolean
if(not(udg_integers10[2]==100))then
return false
endif
return true
endfunction
function Trig_MB2_Func002Func003C takes nothing returns boolean
if(not(udg_integers10[2]==400))then
return false
endif
return true
endfunction
function Trig_MB2_Func002Func004C takes nothing returns boolean
if(not(udg_integers10[2]==1000))then
return false
endif
return true
endfunction
function Trig_MB2_Func002Func005C takes nothing returns boolean
if(not(udg_integers10[2]==2000))then
return false
endif
return true
endfunction
function Trig_MB2_Func002C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return false
endif
return true
endfunction
function Trig_MB2_Func003Func002C takes nothing returns boolean
if(not(udg_integers10[3]==100))then
return false
endif
return true
endfunction
function Trig_MB2_Func003Func003C takes nothing returns boolean
if(not(udg_integers10[3]==400))then
return false
endif
return true
endfunction
function Trig_MB2_Func003Func004C takes nothing returns boolean
if(not(udg_integers10[3]==1000))then
return false
endif
return true
endfunction
function Trig_MB2_Func003Func005C takes nothing returns boolean
if(not(udg_integers10[3]==2000))then
return false
endif
return true
endfunction
function Trig_MB2_Func003C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return false
endif
return true
endfunction
function Trig_MB2_Func004Func002C takes nothing returns boolean
if(not(udg_integers10[4]==100))then
return false
endif
return true
endfunction
function Trig_MB2_Func004Func003C takes nothing returns boolean
if(not(udg_integers10[4]==400))then
return false
endif
return true
endfunction
function Trig_MB2_Func004Func004C takes nothing returns boolean
if(not(udg_integers10[4]==1000))then
return false
endif
return true
endfunction
function Trig_MB2_Func004Func005C takes nothing returns boolean
if(not(udg_integers10[4]==2000))then
return false
endif
return true
endfunction
function Trig_MB2_Func004C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return false
endif
return true
endfunction
function Trig_MB2_Func005Func002C takes nothing returns boolean
if(not(udg_integers10[5]==100))then
return false
endif
return true
endfunction
function Trig_MB2_Func005Func003C takes nothing returns boolean
if(not(udg_integers10[5]==400))then
return false
endif
return true
endfunction
function Trig_MB2_Func005Func004C takes nothing returns boolean
if(not(udg_integers10[5]==1000))then
return false
endif
return true
endfunction
function Trig_MB2_Func005Func005C takes nothing returns boolean
if(not(udg_integers10[5]==2000))then
return false
endif
return true
endfunction
function Trig_MB2_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return false
endif
return true
endfunction
function Trig_MB2_Func006Func002C takes nothing returns boolean
if(not(udg_integers10[6]==100))then
return false
endif
return true
endfunction
function Trig_MB2_Func006Func003C takes nothing returns boolean
if(not(udg_integers10[6]==400))then
return false
endif
return true
endfunction
function Trig_MB2_Func006Func004C takes nothing returns boolean
if(not(udg_integers10[6]==1000))then
return false
endif
return true
endfunction
function Trig_MB2_Func006Func005C takes nothing returns boolean
if(not(udg_integers10[6]==2000))then
return false
endif
return true
endfunction
function Trig_MB2_Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(5)))then
return false
endif
return true
endfunction
function Trig_MB2_Actions takes nothing returns nothing
if(Trig_MB2_Func001C())then
set udg_integers10[1]=(udg_integers10[1]+1)
if(Trig_MB2_Func001Func002C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,2,"Chuunin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,10)
call AdjustPlayerStateBJ(3000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(0))])+" |rhas ranked up to[|cffff0000Chuunin|r]Reward |cffff0000All Stats +10.Gold 3000|r !")))
else
endif
if(Trig_MB2_Func001Func003C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,2,"Jounin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,30)
call AdjustPlayerStateBJ(8000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(0))])+" |rhas ranked up to[|cffff0000Jounin|r]Reward |cffff0000All Stats +30.Gold 8000|r !")))
else
endif
if(Trig_MB2_Func001Func004C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,2,"Anbu")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,80)
call AdjustPlayerStateBJ(25000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(0))])+" |rhas ranked up to[|cffff0000Anbu|r]Reward |cffff0000All Stats +80.Gold 25000|r !")))
else
endif
if(Trig_MB2_Func001Func005C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,2,"Kage")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(0))],bj_MODIFYMETHOD_ADD,300)
call AdjustPlayerStateBJ(50000,Player(0),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(0))])+" |rhas ranked up to[|cffff0000Kage|r]Reward |cffff0000All Stats +300.Gold 50000|r !")))
else
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,2,I2S(udg_integers10[1]))
else
endif
if(Trig_MB2_Func002C())then
set udg_integers10[2]=(udg_integers10[2]+1)
if(Trig_MB2_Func002Func002C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,3,"Chuunin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,10)
call AdjustPlayerStateBJ(3000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(1))])+" |rhas ranked up to[|cffff0000Chuunin|r]Reward |cffff0000All Stats +10.Hold 3000|r !")))
else
endif
if(Trig_MB2_Func002Func003C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,3,"Jounin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,30)
call AdjustPlayerStateBJ(8000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(1))])+" |rhas ranked up to[|cffff0000Jounin|r]Reward |cffff0000All Stats +30.Gold 8000|r !")))
else
endif
if(Trig_MB2_Func002Func004C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,3,"Anbu")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,80)
call AdjustPlayerStateBJ(25000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(1))])+" |rhas ranked up to[|cffff0000Anbu|r]Reward |cffff0000All Stats +80.Gold 25000|r !")))
else
endif
if(Trig_MB2_Func002Func005C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,3,"Kage")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(1))],bj_MODIFYMETHOD_ADD,300)
call AdjustPlayerStateBJ(50000,Player(1),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(1))])+" |rhas ranked up to[|cffff0000Kage|r]Reward |cffff0000All Stats +300.Gold 50000|r !")))
else
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,3,I2S(udg_integers10[2]))
else
endif
if(Trig_MB2_Func003C())then
set udg_integers10[3]=(udg_integers10[3]+1)
if(Trig_MB2_Func003Func002C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,4,"Chuunin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,10)
call AdjustPlayerStateBJ(3000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(2))])+" |rhas ranked up to[|cffff0000Chuunin|r]Reward |cffff0000All Stats +10.Gold 3000|r !")))
else
endif
if(Trig_MB2_Func003Func003C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,4,"Jounin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,30)
call AdjustPlayerStateBJ(8000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(2))])+" |rhas ranked up to[|cffff0000Jounin|r]Reward |cffff0000All Stats +30.Gold 8000|r !")))
else
endif
if(Trig_MB2_Func003Func004C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,4,"Anbu")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,80)
call AdjustPlayerStateBJ(25000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(2))])+" |rhas ranked up to[|cffff0000Anbu|r]Reward |cffff0000All Stats +80.Gold 25000|r !")))
else
endif
if(Trig_MB2_Func003Func005C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,4,"Kage")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(2))],bj_MODIFYMETHOD_ADD,300)
call AdjustPlayerStateBJ(50000,Player(2),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(2))])+" |rhas ranked up to[|cffff0000Kage|r]Reward |cffff0000All Stats +300.Gold 50000|r !")))
else
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,4,I2S(udg_integers10[3]))
else
endif
if(Trig_MB2_Func004C())then
set udg_integers10[4]=(udg_integers10[4]+1)
if(Trig_MB2_Func004Func002C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,6,"Chuunin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,10)
call AdjustPlayerStateBJ(3000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(3))])+" |rhas ranked up to[|cffff0000Jounin|r]Reward |cffff0000All Stats +10.Gold 3000|r !")))
else
endif
if(Trig_MB2_Func004Func003C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,6,"Jounin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,30)
call AdjustPlayerStateBJ(8000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(3))])+" |rhas ranked up to[|cffff0000Jounin|r]Reward |cffff0000All Stats +30.Gold 8000|r !")))
else
endif
if(Trig_MB2_Func004Func004C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,6,"Anbu")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,80)
call AdjustPlayerStateBJ(25000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(3))])+" |rhas ranked up to[|cffff0000Anbu|r]Reward |cffff0000All Stats +80.Gold 25000|r !")))
else
endif
if(Trig_MB2_Func004Func005C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,6,"Kage")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(3))],bj_MODIFYMETHOD_ADD,300)
call AdjustPlayerStateBJ(50000,Player(3),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(3))])+" |rhas ranked up to[|cffff0000Kage|r]Reward |cffff0000All Stats +300.Gold 50000|r !")))
else
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,6,I2S(udg_integers10[4]))
else
endif
if(Trig_MB2_Func005C())then
set udg_integers10[5]=(udg_integers10[5]+1)
if(Trig_MB2_Func005Func002C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,7,"Chuunin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,10)
call AdjustPlayerStateBJ(3000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(4))])+" |rhas ranked up to[|cffff0000Chuunin|r]Reward |cffff0000All Stats +10.Gold 3000|r !")))
else
endif
if(Trig_MB2_Func005Func003C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,7,"Jounin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,30)
call AdjustPlayerStateBJ(8000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(4))])+" |rhas ranked up to[|cffff0000Jounin|r]Reward |cffff0000All Stats +30.Gold 8000|r !")))
else
endif
if(Trig_MB2_Func005Func004C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,7,"Anbu")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,80)
call AdjustPlayerStateBJ(25000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(4))])+" |rhas ranked up to[|cffff0000Anbu|r]Reward |cffff0000All Stats +80.Gold 25000|r !")))
else
endif
if(Trig_MB2_Func005Func005C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,7,"Kage")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(4))],bj_MODIFYMETHOD_ADD,300)
call AdjustPlayerStateBJ(50000,Player(4),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(4))])+" |rhas ranked up to[|cffff0000Kage|r]Reward |cffff0000All Stats +300.Gold 50000|r !")))
else
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,7,I2S(udg_integers10[5]))
else
endif
if(Trig_MB2_Func006C())then
set udg_integers10[6]=(udg_integers10[6]+1)
if(Trig_MB2_Func006Func002C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,8,"Chuunin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,10)
call AdjustPlayerStateBJ(3000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(5))])+" |rhas ranked up to[|cffff0000Chuunin|r]Reward |cffff0000All Stats +10.Gold 3000|r !")))
else
endif
if(Trig_MB2_Func006Func003C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,8,"Jounin")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,30)
call AdjustPlayerStateBJ(8000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(5))])+" |rhas ranked up to[|cffff0000Jounin|r]Reward |cffff0000All Stats +30.Gold 8000|r !")))
else
endif
if(Trig_MB2_Func006Func004C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,8,"Anbu")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,80)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,80)
call AdjustPlayerStateBJ(25000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(5))])+" |rhas ranked up to[|cffff0000Anbu|r]Reward |cffff0000All Stats +80.Gold 25000|r !")))
else
endif
if(Trig_MB2_Func006Func005C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,8,"Kage")
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,300)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(Player(5))],bj_MODIFYMETHOD_ADD,300)
call AdjustPlayerStateBJ(50000,Player(5),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congratulations!:|cffff0000"+(GetHeroProperName(udg_units30[GetConvertedPlayerId(Player(5))])+" |rhas ranked up to[|cffff0000Kage|r]Reward |cffff0000All Stats +300.Gold 50000|r !")))
else
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),2,8,I2S(udg_integers10[6]))
else
endif
endfunction
function Trig_MB3_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(11))==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_MB3_Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return false
endif
return true
endfunction
function Trig_MB3_Func002C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return false
endif
return true
endfunction
function Trig_MB3_Func003C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return false
endif
return true
endfunction
function Trig_MB3_Func004C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return false
endif
return true
endfunction
function Trig_MB3_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return false
endif
return true
endfunction
function Trig_MB3_Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(5)))then
return false
endif
return true
endfunction
function Trig_MB3_Actions takes nothing returns nothing
if(Trig_MB3_Func001C())then
set udg_integers10[7]=(udg_integers10[7]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,2,I2S(udg_integers10[7]))
else
endif
if(Trig_MB3_Func002C())then
set udg_integers10[8]=(udg_integers10[8]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,3,I2S(udg_integers10[8]))
else
endif
if(Trig_MB3_Func003C())then
set udg_integers10[9]=(udg_integers10[9]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,4,I2S(udg_integers10[9]))
else
endif
if(Trig_MB3_Func004C())then
set udg_integers10[10]=(udg_integers10[10]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,6,I2S(udg_integers10[10]))
else
endif
if(Trig_MB3_Func005C())then
set udg_integers10[11]=(udg_integers10[11]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,7,I2S(udg_integers10[11]))
else
endif
if(Trig_MB3_Func006C())then
set udg_integers10[12]=(udg_integers10[12]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,8,I2S(udg_integers10[12]))
else
endif
endfunction
function Trig_MB4_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(9))==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_MB4_Func003C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(0)))then
return false
endif
return true
endfunction
function Trig_MB4_Func004C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(1)))then
return false
endif
return true
endfunction
function Trig_MB4_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(2)))then
return false
endif
return true
endfunction
function Trig_MB4_Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(3)))then
return false
endif
return true
endfunction
function Trig_MB4_Func007C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(4)))then
return false
endif
return true
endfunction
function Trig_MB4_Func008C takes nothing returns boolean
if(not(GetOwningPlayer(GetKillingUnitBJ())==Player(5)))then
return false
endif
return true
endfunction
function Trig_MB4_Actions takes nothing returns nothing
if(Trig_MB4_Func003C())then
set udg_integers10[13]=(udg_integers10[13]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),6,2,I2S(udg_integers10[13]))
else
endif
if(Trig_MB4_Func004C())then
set udg_integers10[14]=(udg_integers10[14]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),6,3,I2S(udg_integers10[14]))
else
endif
if(Trig_MB4_Func005C())then
set udg_integers10[15]=(udg_integers10[15]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),6,4,I2S(udg_integers10[15]))
else
endif
if(Trig_MB4_Func006C())then
set udg_integers10[16]=(udg_integers10[16]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),6,6,I2S(udg_integers10[16]))
else
endif
if(Trig_MB4_Func007C())then
set udg_integers10[17]=(udg_integers10[17]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),6,7,I2S(udg_integers10[17]))
else
endif
if(Trig_MB4_Func008C())then
set udg_integers10[18]=(udg_integers10[18]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),6,8,I2S(udg_integers10[18]))
else
endif
endfunction
function Trig_MB5_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(PLAYER_NEUTRAL_PASSIVE)))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='O006'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='O005'))then
return false
endif
return true
endfunction
function Trig_MB5_Func008002 takes nothing returns nothing
call AdjustPlayerStateBJ(50,GetEnumPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function Trig_MB5_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),8.00,(GetHeroProperName(GetTriggerUnit())+(" |c00ff3300got killed by|r"+(GetHeroProperName(GetKillingUnitBJ())+" |c00ff3300|r"))))
call DisplayTimedTextToForce(GetPlayersAll(),8.00,("increases "+("50"+(" lumber |c00ff3300"+(GetHeroProperName(GetKillingUnitBJ())+"|r to his ally")))))
call ForForce(GetPlayersAllies(GetOwningPlayer(GetKillingUnitBJ())),function Trig_MB5_Func008002)
call TriggerSleepAction(20.00)
call ReviveHeroLoc(GetTriggerUnit(),GetRandomLocInRect(udg_rect02),true)
call SetUnitManaPercentBJ(GetTriggerUnit(),100)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(GetHeroProperName(GetTriggerUnit())+"|c00ff0000has revived!|r"))
endfunction
function Trig_MB6_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='O006'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='O005'))then
return false
endif
return true
endfunction
function Trig_MB6_Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(0)))then
return false
endif
return true
endfunction
function Trig_MB6_Func002C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(1)))then
return false
endif
return true
endfunction
function Trig_MB6_Func003C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(2)))then
return false
endif
return true
endfunction
function Trig_MB6_Func004C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(3)))then
return false
endif
return true
endfunction
function Trig_MB6_Func005C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(4)))then
return false
endif
return true
endfunction
function Trig_MB6_Func006C takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(5)))then
return false
endif
return true
endfunction
function Trig_MB6_Actions takes nothing returns nothing
if(Trig_MB6_Func001C())then
set udg_integers10[20]=(udg_integers10[20]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),5,2,I2S(udg_integers10[20]))
else
endif
if(Trig_MB6_Func002C())then
set udg_integers10[21]=(udg_integers10[21]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),5,3,I2S(udg_integers10[21]))
else
endif
if(Trig_MB6_Func003C())then
set udg_integers10[22]=(udg_integers10[22]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),5,4,I2S(udg_integers10[22]))
else
endif
if(Trig_MB6_Func004C())then
set udg_integers10[23]=(udg_integers10[23]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),5,6,I2S(udg_integers10[23]))
else
endif
if(Trig_MB6_Func005C())then
set udg_integers10[24]=(udg_integers10[24]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),5,7,I2S(udg_integers10[24]))
else
endif
if(Trig_MB6_Func006C())then
set udg_integers10[25]=(udg_integers10[25]+1)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),5,8,I2S(udg_integers10[25]))
else
endif
endfunction
function Trig_shijian1111_Func002Func004C takes nothing returns boolean
if(not(udg_integer37>=59))then
return false
endif
return true
endfunction
function Trig_shijian1111_Func002C takes nothing returns boolean
if(not(udg_integer36>=60))then
return false
endif
return true
endfunction
function Trig_shijian1111_Actions takes nothing returns nothing
set udg_integer36=(udg_integer36+1)
if(Trig_shijian1111_Func002C())then
set udg_integer36=0
set udg_integer37=(udg_integer37+1)
if(Trig_shijian1111_Func002Func004C())then
set udg_integer37=0
set udg_integer38=(udg_integer38+1)
else
call DoNothing()
endif
else
call DoNothing()
endif
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,9,(I2S(udg_integer38)+(":"+(I2S(udg_integer37)+(":"+I2S(udg_integer36))))))
endfunction
function Trig_LKYX111111_Func002001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_LKYX111111_Func002Func003Func001Func001Func001C takes nothing returns boolean
if(not(GetEnumUnit()==udg_units43[5]))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func002Func003Func001Func001C takes nothing returns boolean
if(not(GetEnumUnit()==udg_units43[4]))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func002Func003Func001C takes nothing returns boolean
if(not(GetEnumUnit()==udg_units43[3]))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func002Func003C takes nothing returns boolean
if(not(GetEnumUnit()==udg_units43[1]))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func002A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect03))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitRemoveItemFromSlotSwapped(GetForLoopIndexA(),GetEnumUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_LKYX111111_Func002Func003C())then
set udg_units43[1]=null
call RemoveItem(udg_items02[1])
set udg_items02[1]=null
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_7208")
else
if(Trig_LKYX111111_Func002Func003Func001C())then
set udg_units43[3]=null
call RemoveItem(udg_items02[3])
set udg_items02[3]=null
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_7207")
else
if(Trig_LKYX111111_Func002Func003Func001Func001C())then
set udg_units43[4]=null
call RemoveItem(udg_items02[4])
set udg_items02[4]=null
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_7206")
else
if(Trig_LKYX111111_Func002Func003Func001Func001Func001C())then
set udg_units43[5]=null
call RemoveItem(udg_items02[5])
set udg_items02[5]=null
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_7205")
else
endif
endif
endif
endif
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_LKYX111111_Func003A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_LKYX111111_Func005C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_LEFT))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(0))]==true))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func006C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_LEFT))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(1))]==true))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func007C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_LEFT))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(2))]==true))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func008C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_LEFT))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(3))]==true))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func009C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_LEFT))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(4))]==true))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func010C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_LEFT))then
return false
endif
if(not(udg_booleans02[GetConvertedPlayerId(Player(5))]==true))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Func011C takes nothing returns boolean
if(not(udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
return true
endfunction
function Trig_LKYX111111_Actions takes nothing returns nothing
call TriggerSleepAction(3.00)
call ForGroupBJ(GetUnitsOfPlayerMatching(GetTriggerPlayer(),Condition(function Trig_LKYX111111_Func002001002)),function Trig_LKYX111111_Func002A)
call ForGroupBJ(GetUnitsOfPlayerAll(GetTriggerPlayer()),function Trig_LKYX111111_Func003A)
call DisplayTimedTextToForce(GetPlayersAll(),30,("|cff00ff00"+(GetPlayerName(GetTriggerPlayer())+"|r is a coward that left the game before it ends!")))
if(Trig_LKYX111111_Func005C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,2,"TRIGSTR_5743")
else
call DoNothing()
endif
if(Trig_LKYX111111_Func006C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,3,"TRIGSTR_5744")
else
call DoNothing()
endif
if(Trig_LKYX111111_Func007C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,4,"TRIGSTR_5745")
else
call DoNothing()
endif
if(Trig_LKYX111111_Func008C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,6,"TRIGSTR_5746")
else
call DoNothing()
endif
if(Trig_LKYX111111_Func009C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,7,"TRIGSTR_5747")
else
call DoNothing()
endif
if(Trig_LKYX111111_Func010C())then
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),7,8,"TRIGSTR_5748")
else
call DoNothing()
endif
if(Trig_LKYX111111_Func011C())then
set udg_integer34=(udg_integer34-1)
call TriggerExecute(udg_trigger19)
else
call DoNothing()
endif
endfunction
function Trig_jingyan_Func001Func001Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),300.00)
endfunction
function Trig_jingyan_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_integer34==6))then
return false
endif
return true
endfunction
function Trig_jingyan_Func001Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),275.00)
endfunction
function Trig_jingyan_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_integer34==5))then
return false
endif
return true
endfunction
function Trig_jingyan_Func001Func001Func001Func001Func003A takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),250.00)
endfunction
function Trig_jingyan_Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_integer34==4))then
return false
endif
return true
endfunction
function Trig_jingyan_Func001Func001Func001Func003A takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),200.00)
endfunction
function Trig_jingyan_Func001Func001Func001C takes nothing returns boolean
if(not(udg_integer34==3))then
return false
endif
return true
endfunction
function Trig_jingyan_Func001Func001Func003A takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),150.00)
endfunction
function Trig_jingyan_Func001Func001C takes nothing returns boolean
if(not(udg_integer34==2))then
return false
endif
return true
endfunction
function Trig_jingyan_Func001Func003A takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),100)
endfunction
function Trig_jingyan_Func001C takes nothing returns boolean
if(not(udg_integer34==1))then
return false
endif
return true
endfunction
function Trig_jingyan_Actions takes nothing returns nothing
if(Trig_jingyan_Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30.00,("Current number of players playing |cffff0000"+(I2S(udg_integer34)+" |rEXP rate |cff00ff00100%|r")))
call ForForce(GetPlayersAllies(Player(9)),function Trig_jingyan_Func001Func003A)
else
if(Trig_jingyan_Func001Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30.00,("Current number of players playing |cffff0000"+(I2S(udg_integer34)+" |rEXP rate |cff00ff00150%|r")))
call ForForce(GetPlayersAllies(Player(9)),function Trig_jingyan_Func001Func001Func003A)
else
if(Trig_jingyan_Func001Func001Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30.00,("Current number of players playing |cffff0000"+(I2S(udg_integer34)+" |rEXP rate |cff00ff00200%|r")))
call ForForce(GetPlayersAllies(Player(9)),function Trig_jingyan_Func001Func001Func001Func003A)
else
if(Trig_jingyan_Func001Func001Func001Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30.00,("Current number of players playing |cffff0000"+(I2S(udg_integer34)+" |rEXP rate |cff00ff00250%|r")))
call ForForce(GetPlayersAllies(Player(9)),function Trig_jingyan_Func001Func001Func001Func001Func003A)
else
if(Trig_jingyan_Func001Func001Func001Func001Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30.00,("Current number of players playing |cffff0000"+(I2S(udg_integer34)+" |rEXP rate |cff00ff00275%|r")))
call ForForce(GetPlayersAllies(Player(9)),function Trig_jingyan_Func001Func001Func001Func001Func001Func003A)
else
if(Trig_jingyan_Func001Func001Func001Func001Func001Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30.00,("Current number of players playing |cffff0000"+(I2S(udg_integer34)+" |rEXP rate |cff00ff00300%|r")))
call ForForce(GetPlayersAllies(Player(9)),function Trig_jingyan_Func001Func001Func001Func001Func001Func001Func003A)
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endfunction
function Trig_XN1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A000'))then
return false
endif
return true
endfunction
function Trig_XN1_Actions takes nothing returns nothing
set udg_integer01=1
loop
exitwhen udg_integer01>6
set udg_items01[1]=UnitItemInSlotBJ(udg_unit50,udg_integer01)
set udg_items01[2]=UnitItemInSlotBJ(GetTriggerUnit(),udg_integer01)
call UnitAddItemSwapped(udg_items01[1],udg_unit49)
call UnitAddItemSwapped(udg_items01[2],udg_unit50)
set udg_integer01=udg_integer01+1
endloop
set udg_integer01=1
loop
exitwhen udg_integer01>6
set udg_items01[1]=UnitItemInSlotBJ(udg_unit49,udg_integer01)
call UnitAddItemSwapped(udg_items01[1],GetTriggerUnit())
set udg_integer01=udg_integer01+1
endloop
endfunction
function Trig_XN2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A000'))then
return false
endif
return true
endfunction
function Trig_XN2_Actions takes nothing returns nothing
set udg_integer02=1
loop
exitwhen udg_integer02>6
set udg_items01[3]=UnitItemInSlotBJ(udg_unit42,udg_integer02)
set udg_items01[4]=UnitItemInSlotBJ(GetTriggerUnit(),udg_integer02)
call UnitAddItemSwapped(udg_items01[3],udg_unit41)
call UnitAddItemSwapped(udg_items01[4],udg_unit42)
set udg_integer02=udg_integer02+1
endloop
set udg_integer02=1
loop
exitwhen udg_integer02>6
set udg_items01[3]=UnitItemInSlotBJ(udg_unit41,udg_integer02)
call UnitAddItemSwapped(udg_items01[3],GetTriggerUnit())
set udg_integer02=udg_integer02+1
endloop
endfunction
function Trig_XN3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A000'))then
return false
endif
return true
endfunction
function Trig_XN3_Actions takes nothing returns nothing
set udg_integer03=1
loop
exitwhen udg_integer03>6
set udg_items01[5]=UnitItemInSlotBJ(udg_unit40,udg_integer03)
set udg_items01[6]=UnitItemInSlotBJ(GetTriggerUnit(),udg_integer03)
call UnitAddItemSwapped(udg_items01[5],udg_unit39)
call UnitAddItemSwapped(udg_items01[6],udg_unit40)
set udg_integer03=udg_integer03+1
endloop
set udg_integer03=1
loop
exitwhen udg_integer03>6
set udg_items01[5]=UnitItemInSlotBJ(udg_unit39,udg_integer03)
call UnitAddItemSwapped(udg_items01[5],GetTriggerUnit())
set udg_integer03=udg_integer03+1
endloop
endfunction
function Trig_XN4_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A000'))then
return false
endif
return true
endfunction
function Trig_XN4_Actions takes nothing returns nothing
set udg_integer04=1
loop
exitwhen udg_integer04>6
set udg_items01[7]=UnitItemInSlotBJ(udg_unit38,udg_integer04)
set udg_items01[8]=UnitItemInSlotBJ(GetTriggerUnit(),udg_integer04)
call UnitAddItemSwapped(udg_items01[7],udg_unit43)
call UnitAddItemSwapped(udg_items01[8],udg_unit38)
set udg_integer04=udg_integer04+1
endloop
set udg_integer04=1
loop
exitwhen udg_integer04>6
set udg_items01[7]=UnitItemInSlotBJ(udg_unit43,udg_integer04)
call UnitAddItemSwapped(udg_items01[7],GetTriggerUnit())
set udg_integer04=udg_integer04+1
endloop
endfunction
function Trig_XN5_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A000'))then
return false
endif
return true
endfunction
function Trig_XN5_Actions takes nothing returns nothing
set udg_integer05=1
loop
exitwhen udg_integer05>6
set udg_items01[9]=UnitItemInSlotBJ(udg_unit44,udg_integer05)
set udg_items01[10]=UnitItemInSlotBJ(GetTriggerUnit(),udg_integer05)
call UnitAddItemSwapped(udg_items01[9],udg_unit46)
call UnitAddItemSwapped(udg_items01[10],udg_unit44)
set udg_integer05=udg_integer05+1
endloop
set udg_integer05=1
loop
exitwhen udg_integer05>6
set udg_items01[9]=UnitItemInSlotBJ(udg_unit46,udg_integer05)
call UnitAddItemSwapped(udg_items01[9],GetTriggerUnit())
set udg_integer05=udg_integer05+1
endloop
endfunction
function Trig_XN6_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A000'))then
return false
endif
return true
endfunction
function Trig_XN6_Actions takes nothing returns nothing
set udg_integer06=1
loop
exitwhen udg_integer06>6
set udg_items01[11]=UnitItemInSlotBJ(udg_unit47,udg_integer06)
set udg_items01[12]=UnitItemInSlotBJ(GetTriggerUnit(),udg_integer06)
call UnitAddItemSwapped(udg_items01[11],udg_unit48)
call UnitAddItemSwapped(udg_items01[12],udg_unit47)
set udg_integer06=udg_integer06+1
endloop
set udg_integer06=1
loop
exitwhen udg_integer06>6
set udg_items01[11]=UnitItemInSlotBJ(udg_unit48,udg_integer06)
call UnitAddItemSwapped(udg_items01[11],GetTriggerUnit())
set udg_integer06=udg_integer06+1
endloop
endfunction
function Trig_TZ1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetManipulatedItem())=='I040'))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_TZ1_Func001Func010Func001C takes nothing returns boolean
if((udg_units17[1]==udg_unit57))then
return true
endif
if((udg_units17[1]==udg_unit63))then
return true
endif
if((udg_units17[1]==udg_unit75))then
return true
endif
if((udg_units17[1]==udg_unit64))then
return true
endif
if((udg_units17[1]==udg_unit77))then
return true
endif
if((udg_units17[1]==udg_unit85))then
return true
endif
if((udg_units17[1]==udg_unit89))then
return true
endif
if((udg_units17[1]==udg_unit91))then
return true
endif
return false
endfunction
function Trig_TZ1_Func001Func010C takes nothing returns boolean
if(not Trig_TZ1_Func001Func010Func001C())then
return false
endif
return true
endfunction
function Trig_TZ1_Func001C takes nothing returns boolean
if(not(udg_boolean03==false))then
return false
endif
return true
endfunction
function Trig_TZ1_Actions takes nothing returns nothing
if(Trig_TZ1_Func001C())then
set udg_boolean03=true
set udg_units17[1]=GetTriggerUnit()
set udg_locations05[23]=GetRectCenter(udg_rect62)
call SetUnitPositionLoc(udg_units17[1],udg_locations05[23])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units17[1]),udg_locations05[23],0)
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_units17[1]),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations05[23],bj_UNIT_FACING)
call SetHeroLevelBJ(GetLastCreatedUnit(),GetUnitLevel(udg_units17[1]),false)
set udg_units17[2]=GetLastCreatedUnit()
if(Trig_TZ1_Func001Func010C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units17[2],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units17[1],false)*3))
else
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units17[2],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units17[1],false)*5))
endif
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units17[2],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units17[1],false)*5))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units17[2],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units17[1],false)*5))
call EnableTrigger(udg_trigger27)
call EnableTrigger(udg_trigger28)
call RemoveLocation(udg_locations05[23])
else
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[1]),0,0,"TRIGSTR_2185")
endif
endfunction
function Trig_TZ2_Func009C takes nothing returns boolean
if((GetTriggerUnit()==udg_units17[1]))then
return true
endif
if((GetTriggerUnit()==udg_units17[2]))then
return true
endif
return false
endfunction
function Trig_TZ2_Conditions takes nothing returns boolean
if(not Trig_TZ2_Func009C())then
return false
endif
if(not(udg_boolean03==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TZ2_Func004Func005Func001C takes nothing returns boolean
if(not(GetRandomInt(1,3)==3))then
return false
endif
return true
endfunction
function Trig_TZ2_Func004Func005C takes nothing returns boolean
if(not(GetRandomInt(1,3)==2))then
return false
endif
return true
endfunction
function Trig_TZ2_Func004C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units17[2]))then
return false
endif
return true
endfunction
function Trig_TZ2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger28)
set udg_locations05[24]=GetRectCenter(udg_rect03)
if(Trig_TZ2_Func004C())then
if(Trig_TZ2_Func004Func005C())then
call AdjustPlayerStateBJ(20000,GetOwningPlayer(udg_units17[1]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[1]),0,0,"You are rewarded with 20,000 gold")
else
if(Trig_TZ2_Func004Func005Func001C())then
call AdjustPlayerStateBJ(10000,GetOwningPlayer(udg_units17[1]),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXPSwapped(2000,udg_units17[1],false)
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[1]),0,0,"You are rewarded with 2000 EXP and 10,000 gold")
else
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units17[1],bj_MODIFYMETHOD_ADD,20)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units17[1],bj_MODIFYMETHOD_ADD,20)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units17[1],bj_MODIFYMETHOD_ADD,20)
call AdjustPlayerStateBJ(2000,GetOwningPlayer(udg_units17[1]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[1]),0,0,"You are rewarded with 2000 gold and +20 to all stats")
endif
endif
call TriggerSleepAction(2)
call SetUnitPositionLoc(udg_units17[1],udg_locations05[24])
else
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[1]),0,0,"TRIGSTR_2186")
call RemoveUnit(udg_units17[2])
call TriggerSleepAction(2)
call SetUnitPositionLoc(udg_units17[1],udg_locations05[24])
endif
set udg_boolean03=false
set udg_units17[1]=null
set udg_units17[2]=null
call RemoveLocation(udg_locations05[24])
endfunction
function Trig_TZ3_Func011C takes nothing returns boolean
if((GetTriggerUnit()==udg_units17[1]))then
return true
endif
if((GetTriggerUnit()==udg_units17[2]))then
return true
endif
return false
endfunction
function Trig_TZ3_Conditions takes nothing returns boolean
if(not Trig_TZ3_Func011C())then
return false
endif
return true
endfunction
function Trig_TZ3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger27)
set udg_locations05[24]=GetRectCenter(udg_rect03)
call SetUnitPositionLoc(udg_units17[1],udg_locations05[24])
call RemoveUnit(udg_units17[2])
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[1]),0,0,"TRIGSTR_2188")
set udg_boolean03=false
set udg_units17[1]=null
set udg_units17[2]=null
call RemoveLocation(udg_locations05[24])
endfunction
function Trig_TZ4_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetManipulatedItem())=='I056'))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_TZ4_Func001Func010Func001C takes nothing returns boolean
if((udg_units17[7]==udg_unit57))then
return true
endif
if((udg_units17[7]==udg_unit63))then
return true
endif
if((udg_units17[7]==udg_unit75))then
return true
endif
if((udg_units17[7]==udg_unit64))then
return true
endif
if((udg_units17[7]==udg_unit77))then
return true
endif
if((udg_units17[7]==udg_unit85))then
return true
endif
if((udg_units17[7]==udg_unit89))then
return true
endif
if((udg_units17[7]==udg_unit91))then
return true
endif
return false
endfunction
function Trig_TZ4_Func001Func010C takes nothing returns boolean
if(not Trig_TZ4_Func001Func010Func001C())then
return false
endif
return true
endfunction
function Trig_TZ4_Func001C takes nothing returns boolean
if(not(udg_boolean04==false))then
return false
endif
return true
endfunction
function Trig_TZ4_Actions takes nothing returns nothing
if(Trig_TZ4_Func001C())then
set udg_boolean04=true
set udg_units17[7]=GetTriggerUnit()
set udg_locations05[88]=GetRectCenter(udg_rect74)
call SetUnitPositionLoc(udg_units17[7],udg_locations05[88])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units17[7]),udg_locations05[88],0)
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_units17[7]),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations05[88],bj_UNIT_FACING)
call SetHeroLevelBJ(GetLastCreatedUnit(),GetUnitLevel(udg_units17[7]),false)
set udg_units17[8]=GetLastCreatedUnit()
if(Trig_TZ4_Func001Func010C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units17[8],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units17[7],false)*6))
else
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units17[8],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units17[7],false)*10))
endif
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units17[8],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units17[7],false)*10))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units17[8],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units17[7],false)*10))
call EnableTrigger(udg_trigger30)
call EnableTrigger(udg_trigger31)
call RemoveLocation(udg_locations05[88])
else
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[7]),0,0,"TRIGSTR_4166")
endif
endfunction
function Trig_TZ5_Func009C takes nothing returns boolean
if((GetTriggerUnit()==udg_units17[7]))then
return true
endif
if((GetTriggerUnit()==udg_units17[8]))then
return true
endif
return false
endfunction
function Trig_TZ5_Conditions takes nothing returns boolean
if(not Trig_TZ5_Func009C())then
return false
endif
if(not(udg_boolean04==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TZ5_Func004Func005Func001C takes nothing returns boolean
if(not(GetRandomInt(1,3)==3))then
return false
endif
return true
endfunction
function Trig_TZ5_Func004Func005C takes nothing returns boolean
if(not(GetRandomInt(1,3)==2))then
return false
endif
return true
endfunction
function Trig_TZ5_Func004C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units17[8]))then
return false
endif
return true
endfunction
function Trig_TZ5_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger31)
set udg_locations05[89]=GetRectCenter(udg_rect03)
if(Trig_TZ5_Func004C())then
if(Trig_TZ5_Func004Func005C())then
call AdjustPlayerStateBJ(40000,GetOwningPlayer(udg_units17[7]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[7]),0,0,"TRIGSTR_4170")
else
if(Trig_TZ5_Func004Func005Func001C())then
call AdjustPlayerStateBJ(20000,GetOwningPlayer(udg_units17[7]),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXPSwapped(4000,udg_units17[7],false)
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[7]),0,0,"TRIGSTR_4168")
else
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units17[7],bj_MODIFYMETHOD_ADD,40)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units17[7],bj_MODIFYMETHOD_ADD,40)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units17[7],bj_MODIFYMETHOD_ADD,40)
call AdjustPlayerStateBJ(4000,GetOwningPlayer(udg_units17[7]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[7]),0,0,"TRIGSTR_4169")
endif
endif
call TriggerSleepAction(2)
call SetUnitPositionLoc(udg_units17[7],udg_locations05[89])
else
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[7]),0,0,"TRIGSTR_4167")
call RemoveUnit(udg_units17[8])
call TriggerSleepAction(2)
call SetUnitPositionLoc(udg_units17[7],udg_locations05[89])
endif
set udg_boolean04=false
set udg_units17[7]=null
set udg_units17[8]=null
call RemoveLocation(udg_locations05[89])
endfunction
function Trig_TZ6_Func011C takes nothing returns boolean
if((GetTriggerUnit()==udg_units17[7]))then
return true
endif
if((GetTriggerUnit()==udg_units17[8]))then
return true
endif
return false
endfunction
function Trig_TZ6_Conditions takes nothing returns boolean
if(not Trig_TZ6_Func011C())then
return false
endif
return true
endfunction
function Trig_TZ6_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger30)
set udg_locations05[89]=GetRectCenter(udg_rect03)
call SetUnitPositionLoc(udg_units17[7],udg_locations05[89])
call RemoveUnit(udg_units17[8])
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[7]),0,0,"TRIGSTR_4171")
set udg_boolean04=false
set udg_units17[7]=null
set udg_units17[8]=null
call RemoveLocation(udg_locations05[89])
endfunction
function Trig_zisha_Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_zisha_Func003A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_zisha_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("|cff00ff00"+(GetPlayerName(GetTriggerPlayer())+"|r 输入自杀密码15秒后死亡,玩家遇到什么BUG或者想死的可以输入|cff00ff00 请作者赐死 |r自杀")))
call TriggerSleepAction(15.00)
call ForGroupBJ(GetUnitsOfPlayerMatching(GetTriggerPlayer(),Condition(function Trig_zisha_Func003001002)),function Trig_zisha_Func003A)
endfunction
function Trig_hygj_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit55))then
return false
endif
return true
endfunction
function Trig_hygj_Func001C takes nothing returns boolean
if(not(IsUnitAlly(GetAttacker(),Player(9))==true))then
return false
endif
return true
endfunction
function Trig_hygj_Actions takes nothing returns nothing
if(Trig_hygj_Func001C())then
call KillUnit(GetAttacker())
call DisplayTimedTextToForce(GetPlayersAll(),3.00,"How stupid! Stupid people shall die!")
else
call DisableTrigger(GetTriggeringTrigger())
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(udg_unit55),5.00,bj_MINIMAPPINGSTYLE_FLASHY,0.00,100.00,0.00)
call DisplayTimedTextToForce(GetPlayersAll(),3.00,"TRIGSTR_2190")
call DisplayTimedTextToForce(GetPlayersAll(),3.00,"TRIGSTR_2191")
call DisplayTimedTextToForce(GetPlayersAll(),2.00,("Base current HP left:|cffff0000"+(R2S(GetUnitState(udg_unit55,UNIT_STATE_LIFE))+" |rPlayers please come help to defend!")))
call TriggerSleepAction(5.00)
call EnableTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_jinbitaiduo_Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)-800000))
call AdjustPlayerStateBJ(80,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("|cff00FF00As"+(GetPlayerName(GetTriggerPlayer())+"Gold exceeds 800k,it has been converted to 80 lumber")))
endfunction
function Trig_jbduihuan_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I041'))then
return false
endif
return true
endfunction
function Trig_jbduihuan_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(100000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_heyao_Func001Func001C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I001'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I06Q'))then
return true
endif
return false
endfunction
function Trig_heyao_Func001Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao_Func001Func003A takes nothing returns nothing
if(Trig_heyao_Func001Func003Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+1000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao_Func001C takes nothing returns boolean
if(not Trig_heyao_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_heyao_Func002Func001C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I002'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I06T'))then
return true
endif
return false
endfunction
function Trig_heyao_Func002Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao_Func002Func003A takes nothing returns nothing
if(Trig_heyao_Func002Func003Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+2000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao_Func002C takes nothing returns boolean
if(not Trig_heyao_Func002Func001C())then
return false
endif
return true
endfunction
function Trig_heyao_Func003Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao_Func003Func003A takes nothing returns nothing
if(Trig_heyao_Func003Func003Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+3000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao_Func003C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I003'))then
return false
endif
return true
endfunction
function Trig_heyao_Func004Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao_Func004Func003A takes nothing returns nothing
if(Trig_heyao_Func004Func003Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+4000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao_Func004C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I004'))then
return false
endif
return true
endfunction
function Trig_heyao_Func005Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao_Func005Func003A takes nothing returns nothing
if(Trig_heyao_Func005Func003Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+5000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao_Func005C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I000'))then
return false
endif
return true
endfunction
function Trig_heyao_Func006Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao_Func006Func003A takes nothing returns nothing
if(Trig_heyao_Func006Func003Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+10000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao_Func006C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I03U'))then
return false
endif
return true
endfunction
function Trig_heyao_Func007Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao_Func007Func003A takes nothing returns nothing
if(Trig_heyao_Func007Func003Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+20000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao_Func007C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I03V'))then
return false
endif
return true
endfunction
function Trig_heyao_Func008Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao_Func008Func003A takes nothing returns nothing
if(Trig_heyao_Func008Func003Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+30000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao_Func008C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I03W'))then
return false
endif
return true
endfunction
function Trig_heyao_Func009Func003Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao_Func009Func003A takes nothing returns nothing
if(Trig_heyao_Func009Func003Func001C())then
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+50000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao_Func009C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05T'))then
return false
endif
return true
endfunction
function Trig_heyao_Actions takes nothing returns nothing
if(Trig_heyao_Func001C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao_Func001Func003A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao_Func002C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao_Func002Func003A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao_Func003C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao_Func003Func003A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao_Func004C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao_Func004Func003A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao_Func005C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao_Func005Func003A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao_Func006C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao_Func006Func003A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao_Func007C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao_Func007Func003A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao_Func008C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao_Func008Func003A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao_Func009C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao_Func009Func003A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
endfunction
function Trig_heyao2_Func001Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao2_Func001Func002A takes nothing returns nothing
if(Trig_heyao2_Func001Func002Func001C())then
call SetUnitManaBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_MANA)+500.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao2_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I005'))then
return false
endif
return true
endfunction
function Trig_heyao2_Func003Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao2_Func003Func002A takes nothing returns nothing
if(Trig_heyao2_Func003Func002Func001C())then
call SetUnitManaBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_MANA)+1000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao2_Func003C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I006'))then
return false
endif
return true
endfunction
function Trig_heyao2_Func004Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao2_Func004Func002A takes nothing returns nothing
if(Trig_heyao2_Func004Func002Func001C())then
call SetUnitManaBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_MANA)+1500.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao2_Func004C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I007'))then
return false
endif
return true
endfunction
function Trig_heyao2_Func005Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao2_Func005Func002A takes nothing returns nothing
if(Trig_heyao2_Func005Func002Func001C())then
call SetUnitManaBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_MANA)+2000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao2_Func005C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I008'))then
return false
endif
return true
endfunction
function Trig_heyao2_Func006Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao2_Func006Func002A takes nothing returns nothing
if(Trig_heyao2_Func006Func002Func001C())then
call SetUnitManaBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_MANA)+2500.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao2_Func006C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I009'))then
return false
endif
return true
endfunction
function Trig_heyao2_Func007Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao2_Func007Func002A takes nothing returns nothing
if(Trig_heyao2_Func007Func002Func001C())then
call SetUnitManaBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_MANA)+5000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao2_Func007C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I057'))then
return false
endif
return true
endfunction
function Trig_heyao2_Func008Func002Func001C takes nothing returns boolean
if(not(IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_heyao2_Func008Func002A takes nothing returns nothing
if(Trig_heyao2_Func008Func002Func001C())then
call SetUnitManaBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_MANA)+10000.00))
else
call DoNothing()
endif
endfunction
function Trig_heyao2_Func008C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I058'))then
return false
endif
return true
endfunction
function Trig_heyao2_Actions takes nothing returns nothing
if(Trig_heyao2_Func001C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao2_Func001Func002A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao2_Func003C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao2_Func003Func002A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao2_Func004C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao2_Func004Func002A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao2_Func005C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao2_Func005Func002A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao2_Func006C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao2_Func006Func002A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao2_Func007C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao2_Func007Func002A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
if(Trig_heyao2_Func008C())then
call ForGroupBJ(GetUnitsOfPlayerAll(GetOwningPlayer(GetManipulatingUnit())),function Trig_heyao2_Func008Func002A)
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
endfunction
function Trig_buneng_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetAttackedUnitBJ(),GetOwningPlayer(GetAttacker()))==true))then
return false
endif
if(not(GetOwningPlayer(GetAttackedUnitBJ())!=Player(PLAYER_NEUTRAL_PASSIVE)))then
return false
endif
if(not(GetOwningPlayer(GetAttackedUnitBJ())!=Player(9)))then
return false
endif
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_buneng_Actions takes nothing returns nothing
call IssueImmediateOrder(GetAttacker(),"stop")
endfunction
function Trig_diudongxi_Func002C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='bzbe'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='bzbf'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I03R'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I03S'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='bspd'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I00A'))then
return true
endif
return false
endfunction
function Trig_diudongxi_Conditions takes nothing returns boolean
if(not Trig_diudongxi_Func002C())then
return false
endif
return true
endfunction
function Trig_diudongxi_Actions takes nothing returns nothing
call RemoveItem(GetManipulatedItem())
endfunction
function Trig_FH_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())!=Player(PLAYER_NEUTRAL_PASSIVE)))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='O006'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='O005'))then
return false
endif
return true
endfunction
function Trig_FH_Func004C takes nothing returns boolean
if(not(GetRandomInt(1,5)==3))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06R')==true))then
return false
endif
return true
endfunction
function Trig_FH_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),2.00,(GetHeroProperName(GetTriggerUnit())+(" |c00ff3300got killed by|r"+(GetHeroProperName(GetKillingUnitBJ())+" |c00ff3300|r"))))
if(Trig_FH_Func004C())then
call ReviveHeroLoc(GetTriggerUnit(),GetUnitLoc(GetTriggerUnit()),true)
call SetUnitManaPercentBJ(GetTriggerUnit(),100)
call SetUnitInvulnerable(GetTriggerUnit(),false)
call SelectUnitForPlayerSingle(GetTriggerUnit(),GetOwningPlayer(GetTriggerUnit()))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(GetHeroProperName(GetTriggerUnit())+"|c00ff0000[千年神物]幸运腰带.神秘力量使你复活了!|r"))
else
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(GetHeroProperName(GetTriggerUnit())+" |c00ff0000has died.wait 20 seconds to revive|r"))
call TriggerSleepAction(20.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rect03),0)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect03),true)
call SetUnitManaPercentBJ(GetTriggerUnit(),100)
call SetUnitInvulnerable(GetTriggerUnit(),false)
call SelectUnitForPlayerSingle(GetTriggerUnit(),GetOwningPlayer(GetTriggerUnit()))
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+"|c00ff0000has revived!|r"))
endif
endfunction
function Trig_fh2_Func002C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit58))then
return false
endif
if(not(GetUnitAbilityLevel(GetTriggerUnit(),'A01H')>=1))then
return false
endif
return true
endfunction
function Trig_fh2_Func003C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit59))then
return false
endif
if(not(GetUnitAbilityLevel(GetTriggerUnit(),'A011')>=1))then
return false
endif
return true
endfunction
function Trig_fh2_Func004C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit62))then
return false
endif
if(not(GetUnitAbilityLevel(GetTriggerUnit(),'A00X')>=1))then
return false
endif
return true
endfunction
function Trig_fh2_Func005C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit56))then
return false
endif
if(not(GetUnitAbilityLevel(GetTriggerUnit(),'A00X')>=1))then
return false
endif
return true
endfunction
function Trig_fh2_Actions takes nothing returns nothing
if(Trig_fh2_Func002C())then
call TriggerExecute(udg_trigger165)
else
endif
if(Trig_fh2_Func003C())then
call TriggerExecute(udg_trigger160)
else
endif
if(Trig_fh2_Func004C())then
call TriggerExecute(udg_trigger140)
else
endif
if(Trig_fh2_Func005C())then
call TriggerExecute(udg_trigger146)
else
endif
endfunction
function Trig_HG_Conditions takes nothing returns boolean
if(not(udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return false
endif
return true
endfunction
function Trig_HG_Func002C takes nothing returns boolean
if(not(RectContainsUnit(udg_rect07,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return false
endif
return true
endfunction
function Trig_HG_Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetEnumUnit())!='nitr')
endfunction
function Trig_HG_Func003002 takes nothing returns nothing
call IssueImmediateOrder(GetEnumUnit(),"stop")
endfunction
function Trig_HG_Func005002 takes nothing returns nothing
call IssueImmediateOrder(GetEnumUnit(),"stop")
endfunction
function Trig_HG_Actions takes nothing returns nothing
if(Trig_HG_Func002C())then
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10.00,"TRIGSTR_7134")
else
call SetUnitPositionLoc(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],udg_locations17[GetConvertedPlayerId(GetTriggerPlayer())])
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetUnitLoc(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]),0)
call SelectUnitForPlayerSingle(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
endif
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(10),Condition(function Trig_HG_Func003001002)),function Trig_HG_Func003002)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsOfPlayerAll(Player(PLAYER_NEUTRAL_AGGRESSIVE)),function Trig_HG_Func005002)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function Trig_HG2_Conditions takes nothing returns boolean
if(not(udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
return true
endfunction
function Trig_HG2_Func001Func006C takes nothing returns boolean
if((RectContainsUnit(udg_rect02,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((RectContainsUnit(udg_rect10,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((RectContainsUnit(udg_rect11,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
return false
endfunction
function Trig_HG2_Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return false
endif
if(not Trig_HG2_Func001Func006C())then
return false
endif
return true
endfunction
function Trig_HG2_Actions takes nothing returns nothing
if(Trig_HG2_Func001C())then
call RemoveLocation(udg_locations17[GetConvertedPlayerId(GetTriggerPlayer())])
set udg_locations17[GetConvertedPlayerId(GetTriggerPlayer())]=GetUnitLoc(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,3.00,"TRIGSTR_7136")
else
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,3.00,"TRIGSTR_7135")
endif
endfunction
function Trig_TL_Conditions takes nothing returns boolean
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TL_Func001Func001C takes nothing returns boolean
if(not(GetItemLifeBJ(GetManipulatedItem())!=75.00))then
return false
endif
if(not(GetManipulatedItem()!=UnitItemInSlotBJ(GetManipulatingUnit(),GetForLoopIndexB())))then
return false
endif
if(not(GetItemLifeBJ(UnitItemInSlotBJ(GetManipulatingUnit(),GetForLoopIndexB()))==GetItemLifeBJ(GetManipulatedItem())))then
return false
endif
return true
endfunction
function Trig_TL_Actions takes nothing returns nothing
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if(Trig_TL_Func001Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"TRIGSTR_096")
else
call DoNothing()
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endfunction
function Trig_jinengpiaofuzi_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetSpellAbilityId()!='A000'))then
return false
endif
if(not(GetSpellAbilityId()!='A00W'))then
return false
endif
if(not(GetSpellAbilityId()!='A08A'))then
return false
endif
if(not(GetSpellAbilityId()!='A012'))then
return false
endif
if(not(GetSpellAbilityId()!='A01F'))then
return false
endif
if(not(GetSpellAbilityId()!='A001'))then
return false
endif
if(not(GetSpellAbilityId()!='A002'))then
return false
endif
if(not(GetSpellAbilityId()!='A00B'))then
return false
endif
return true
endfunction
function Trig_jinengpiaofuzi_Actions takes nothing returns nothing
call CreateTextTagLocBJ((GetAbilityName(GetSpellAbilityId())+" !"),GetUnitLoc(GetTriggerUnit()),0,10.50,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
endfunction
function Trig_wupindiejia_Conditions takes nothing returns boolean
if(not(GetItemCharges(GetManipulatedItem())>=1))then
return false
endif
if(not(GetItemType(GetManipulatedItem())==ITEM_TYPE_CHARGED))then
return false
endif
return true
endfunction
function Trig_wupindiejia_Func005C takes nothing returns boolean
if(not(CheckItemStatus(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_integer07),bj_ITEM_STATUS_OWNED)==true))then
return false
endif
return true
endfunction
function Trig_wupindiejia_Func006C takes nothing returns boolean
if(not(CheckItemStatus(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_integer07),bj_ITEM_STATUS_OWNED)==false))then
return false
endif
return true
endfunction
function Trig_wupindiejia_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer07=GetItemTypeId(GetManipulatedItem())
set udg_integers01[0]=GetItemCharges(GetManipulatedItem())
call RemoveItem(GetManipulatedItem())
if(Trig_wupindiejia_Func005C())then
set udg_integers02[0]=GetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_integer07))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_integer07))
call UnitAddItemByIdSwapped(udg_integer07,GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_integer07),(udg_integers01[0]+udg_integers02[0]))
else
endif
if(Trig_wupindiejia_Func006C())then
call UnitAddItemByIdSwapped(udg_integer07,GetTriggerUnit())
call SetItemCharges(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_integer07),udg_integers01[0])
else
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_BOSS_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetTriggerUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_BOSS_Func002Func001Func005Func001C takes nothing returns boolean
if(not(GetRandomInt(1,100)==5))then
return false
endif
return true
endfunction
function Trig_BOSS_Func002Func001Func005C takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_BOSS_Func002Func001C takes nothing returns boolean
if(not(GetRandomInt(1,20)==5))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(udg_integer08>=18))then
return false
endif
return true
endfunction
function Trig_BOSS_Func002C takes nothing returns boolean
if(not(GetRandomInt(1,20)==5))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(udg_integer08<18))then
return false
endif
return true
endfunction
function Trig_BOSS_Actions takes nothing returns nothing
set udg_locations01[40]=GetUnitLoc(GetTriggerUnit())
if(Trig_BOSS_Func002C())then
call CreateItemLoc(udg_integers07[GetRandomInt(2,5)],udg_locations01[40])
else
if(Trig_BOSS_Func002Func001C())then
call CreateItemLoc(udg_integers07[GetRandomInt(2,9)],udg_locations01[40])
else
if(Trig_BOSS_Func002Func001Func005C())then
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[40])
else
if(Trig_BOSS_Func002Func001Func005Func001C())then
call CreateItemLoc(ChooseRandomItemExBJ(16,ITEM_TYPE_POWERUP),udg_locations01[40])
else
call DoNothing()
endif
endif
endif
endif
call RemoveLocation(udg_locations01[40])
endfunction
function Trig_dw_Func005C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='Obla'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Nbbc'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Ogrh'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Opgh'))then
return true
endif
return false
endfunction
function Trig_dw_Conditions takes nothing returns boolean
if(not Trig_dw_Func005C())then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function Trig_dw_Func003001 takes nothing returns boolean
return(GetRandomInt(1,10)==5)
endfunction
function Trig_dw_Actions takes nothing returns nothing
set udg_locations01[42]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[42])
if(Trig_dw_Func003001())then
call CreateItemLoc('I04X',udg_locations01[42])
else
call DoNothing()
endif
call RemoveLocation(udg_locations01[42])
endfunction
function Trig_zhuha_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(11))==true))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetRandomInt(1,80)==50))then
return false
endif
if(not(udg_integer08>=12))then
return false
endif
return true
endfunction
function Trig_zhuha_Func007C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_unit90)==true))then
return false
endif
return true
endfunction
function Trig_zhuha_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call ShowUnitShow(udg_unit90)
call SetUnitOwner(udg_unit90,Player(10),true)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_8241")
call PingMinimapLocForForce(GetPlayersAll(),GetUnitLoc(udg_unit90),30.00)
call TriggerSleepAction(200.00)
if(Trig_zhuha_Func007C())then
call RemoveUnit(udg_unit90)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_8242")
else
endif
endfunction
function Trig_syin_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(11))==true))then
return false
endif
return true
endfunction
function Trig_syin_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound66)
endfunction
function Trig_syin3_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(9))==true))then
return false
endif
return true
endfunction
function Trig_syin3_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound55)
endfunction
function Trig_shezhi_Actions takes nothing returns nothing
set udg_integers03[1]='hfoo'
set udg_integers03[2]='hrif'
set udg_integers03[3]='hkni'
set udg_integers03[4]='hhes'
set udg_integers03[5]='ogru'
set udg_integers03[6]='ohun'
set udg_integers03[7]='orai'
set udg_integers03[8]='okod'
set udg_integers03[9]='otau'
set udg_integers03[10]='oshm'
set udg_integers03[11]='emtg'
set udg_integers03[12]='earc'
set udg_integers03[13]='nnsw'
set udg_integers03[14]='nnrg'
set udg_integers03[15]='nmyr'
set udg_integers03[16]='nsnp'
set udg_integers03[17]='nanc'
set udg_integers03[18]='nban'
set udg_integers03[19]='nbrg'
set udg_integers03[20]='nrog'
set udg_integers03[21]='nass'
set udg_integers03[22]='nenf'
set udg_integers03[23]='nrel'
set udg_integers03[24]='nfgu'
set udg_integers03[25]='nelb'
set udg_integers03[26]='nfov'
set udg_integers03[27]='nsko'
set udg_integers03[28]='nsoc'
set udg_integers03[29]='nska'
set udg_integers03[30]='nskf'
endfunction
function Trig_BOSSshezhi_Actions takes nothing returns nothing
set udg_integers04[1]='Huth'
set udg_integers04[2]='Emoo'
set udg_integers04[3]='Emns'
set udg_integers04[4]='Etyr'
set udg_integers04[5]='Hamg'
set udg_integers04[6]='H007'
set udg_integers04[7]='Hpal'
endfunction
function Trig_BOSSxiao_Actions takes nothing returns nothing
set udg_integers05[1]='Obla'
set udg_integers05[2]='Nbbc'
set udg_integers05[3]='Opgh'
set udg_integers05[4]='Ogrh'
endfunction
function Trig_shuiguajishiqi_Actions takes nothing returns nothing
set udg_integer08=(udg_integer08+1)
call StartTimerBJ(udg_timer01,false,105.00)
call CreateTimerDialogBJ(udg_timer01,("The "+(I2S(udg_integer08)+" Wave of Attack")))
set udg_timerdialog01=GetLastCreatedTimerDialogBJ()
endfunction
function Trig_chubin_Func007A takes nothing returns nothing
call IssuePointOrderLoc(GetEnumUnit(),"attack",udg_locations01[30])
endfunction
function Trig_chubin_Func010Func001C takes nothing returns boolean
if(not(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_chubin_Func010A takes nothing returns nothing
if(Trig_chubin_Func010Func001C())then
call AdjustPlayerStateBJ((1000*udg_integer08),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
endfunction
function Trig_chubin_Func011Func010C takes nothing returns boolean
if((udg_integer08==4))then
return true
endif
if((udg_integer08==8))then
return true
endif
if((udg_integer08==12))then
return true
endif
if((udg_integer08==14))then
return true
endif
if((udg_integer08==18))then
return true
endif
if((udg_integer08==22))then
return true
endif
if((udg_integer08==26))then
return true
endif
return false
endfunction
function Trig_chubin_Func011C takes nothing returns boolean
if(not Trig_chubin_Func011Func010C())then
return false
endif
return true
endfunction
function Trig_chubin_Func012C takes nothing returns boolean
if(not(udg_integer08==30))then
return false
endif
return true
endfunction
function Trig_chubin_Func013C takes nothing returns boolean
if(not(udg_integer08==8))then
return false
endif
return true
endfunction
function Trig_chubin_Func014Func001Func006C takes nothing returns boolean
if((udg_integer08==3))then
return true
endif
if((udg_integer08==5))then
return true
endif
if((udg_integer08==7))then
return true
endif
if((udg_integer08==9))then
return true
endif
if((udg_integer08==11))then
return true
endif
if((udg_integer08==13))then
return true
endif
if((udg_integer08==15))then
return true
endif
if((udg_integer08==17))then
return true
endif
if((udg_integer08==19))then
return true
endif
if((udg_integer08==21))then
return true
endif
if((udg_integer08==23))then
return true
endif
if((udg_integer08==25))then
return true
endif
if((udg_integer08==27))then
return true
endif
return false
endfunction
function Trig_chubin_Func014Func001C takes nothing returns boolean
if(not(udg_integer23==2))then
return false
endif
if(not Trig_chubin_Func014Func001Func006C())then
return false
endif
return true
endfunction
function Trig_chubin_Func014Func007C takes nothing returns boolean
if((udg_integer08==5))then
return true
endif
if((udg_integer08==13))then
return true
endif
if((udg_integer08==17))then
return true
endif
if((udg_integer08==22))then
return true
endif
if((udg_integer08==27))then
return true
endif
return false
endfunction
function Trig_chubin_Func014C takes nothing returns boolean
if(not(udg_integer23==1))then
return false
endif
if(not Trig_chubin_Func014Func007C())then
return false
endif
return true
endfunction
function Trig_chubin_Func018Func002001 takes nothing returns boolean
return(GetUnitAbilityLevel(GetLastCreatedUnit(),'A04M')>=1)
endfunction
function Trig_chubin_Func018Func005001 takes nothing returns boolean
return(GetUnitAbilityLevel(GetLastCreatedUnit(),'A04M')>=1)
endfunction
function Trig_chubin_Func018Func008001 takes nothing returns boolean
return(GetUnitAbilityLevel(GetLastCreatedUnit(),'A04M')>=1)
endfunction
function Trig_chubin_Func018C takes nothing returns boolean
if(not(GetRandomInt(1,2)==1))then
return false
endif
return true
endfunction
function Trig_chubin_Func024C takes nothing returns boolean
if(not(udg_integer08>=30))then
return false
endif
return true
endfunction
function Trig_chubin_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog01)
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),3,5,("The |cff00ff00 "+(I2S(udg_integer08)+" |rWave.")))
call MultiboardSetItemValueBJ(GetLastCreatedMultiboard(),4,5,("Left with |cff00ff00"+(I2S((30-udg_integer08))+" |rWave.")))
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_5446")
call DisplayTextToForce(GetPlayersAll(),("A new wave started. Players will get |cffffcc00"+(I2S((1000*udg_integer08))+" |rof gold reward!")))
set udg_locations01[30]=GetRectCenter(udg_rect02)
call ForGroupBJ(GetUnitsInRectOfPlayer(GetPlayableMapRect(),Player(11)),function Trig_chubin_Func007A)
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_locations01[30])
call ForForce(GetPlayersAllies(Player(9)),function Trig_chubin_Func010A)
if(Trig_chubin_Func011C())then
set udg_integer12=(udg_integer12+1)
set udg_locations01[4]=GetRectCenter(udg_rect04)
call CreateNUnitsAtLoc(1,udg_integers04[udg_integer12],Player(11),udg_locations01[4],bj_UNIT_FACING)
call SetHeroLevelBJ(GetLastCreatedUnit(),(udg_integer08*2),false)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
call RemoveLocation(udg_locations01[4])
else
endif
if(Trig_chubin_Func012C())then
set udg_locations01[4]=GetRectCenter(udg_rect06)
call CreateNUnitsAtLoc(1,'Eevi',Player(11),udg_locations01[4],bj_UNIT_FACING)
call SetHeroLevelBJ(GetLastCreatedUnit(),(udg_integer08*2),false)
call RemoveLocation(udg_locations01[4])
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
set udg_locations01[4]=GetRectCenter(udg_rect05)
call CreateNUnitsAtLoc(1,'Eill',Player(11),udg_locations01[4],bj_UNIT_FACING)
call SetHeroLevelBJ(GetLastCreatedUnit(),(udg_integer08*2),false)
call RemoveLocation(udg_locations01[4])
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
call StartTimerBJ(udg_timer04,false,1800.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),"TRIGSTR_7091")
set udg_timerdialog04=GetLastCreatedTimerDialogBJ()
call EnableTrigger(udg_trigger72)
else
endif
if(Trig_chubin_Func013C())then
set udg_locations01[4]=GetRectCenter(udg_rect06)
call CreateNUnitsAtLoc(1,udg_integers04[1],Player(11),udg_locations01[4],bj_UNIT_FACING)
call SetHeroLevelBJ(GetLastCreatedUnit(),(udg_integer08*2),false)
call RemoveLocation(udg_locations01[4])
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Be careful:|cffff0000"+(GetHeroProperName(GetLastCreatedUnit())+" |ris invading Konoha!")))
else
endif
if(Trig_chubin_Func014C())then
call StartTimerBJ(udg_timer03,false,60.00)
call CreateTimerDialogBJ(udg_timer03,"TRIGSTR_3427")
set udg_timerdialog03=GetLastCreatedTimerDialogBJ()
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_3428")
else
if(Trig_chubin_Func014Func001C())then
call StartTimerBJ(udg_timer03,false,60.00)
call CreateTimerDialogBJ(udg_timer03,"TRIGSTR_6918")
set udg_timerdialog03=GetLastCreatedTimerDialogBJ()
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_6919")
else
endif
endif
set udg_locations01[1]=GetRectCenter(udg_rect06)
set udg_locations01[2]=GetRectCenter(udg_rect04)
set udg_locations01[3]=GetRectCenter(udg_rect05)
if(Trig_chubin_Func018C())then
call CreateNUnitsAtLoc(1,udg_integers05[GetRandomInt(1,4)],Player(11),udg_locations01[2],bj_UNIT_FACING)
if(Trig_chubin_Func018Func008001())then
call SetUnitAbilityLevel(GetLastCreatedUnit(),'A04M',udg_integer08)
else
call DoNothing()
endif
call SetHeroLevelBJ(GetLastCreatedUnit(),(udg_integer08*2),false)
else
call CreateNUnitsAtLoc(1,udg_integers05[GetRandomInt(1,4)],Player(11),udg_locations01[1],bj_UNIT_FACING)
if(Trig_chubin_Func018Func002001())then
call SetUnitAbilityLevel(GetLastCreatedUnit(),'A04M',udg_integer08)
else
call DoNothing()
endif
call SetHeroLevelBJ(GetLastCreatedUnit(),(udg_integer08*2),false)
call CreateNUnitsAtLoc(1,udg_integers05[GetRandomInt(1,4)],Player(11),udg_locations01[3],bj_UNIT_FACING)
if(Trig_chubin_Func018Func005001())then
call SetUnitAbilityLevel(GetLastCreatedUnit(),'A04M',udg_integer08)
else
call DoNothing()
endif
call SetHeroLevelBJ(GetLastCreatedUnit(),(udg_integer08*2),false)
endif
call TriggerSleepAction(0.10)
set udg_integer09=1
loop
exitwhen udg_integer09>50
call CreateNUnitsAtLoc(1,udg_integers03[udg_integer08],Player(11),udg_locations01[1],bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,udg_integers03[udg_integer08],Player(11),udg_locations01[2],bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,udg_integers03[udg_integer08],Player(11),udg_locations01[3],bj_UNIT_FACING)
call TriggerSleepAction(1.60)
set udg_integer09=udg_integer09+1
endloop
call RemoveLocation(udg_locations01[1])
call RemoveLocation(udg_locations01[2])
call RemoveLocation(udg_locations01[3])
if(Trig_chubin_Func024C())then
call DisableTrigger(GetTriggeringTrigger())
call DestroyTrigger(udg_trigger55)
else
call TriggerExecute(udg_trigger55)
endif
endfunction
function Trig_CCC_Func002001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func002Func001001003 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),Player(11))==true)
endfunction
function Trig_CCC_Func002Func001A takes nothing returns nothing
call IssuePointOrderLoc(GetEnumUnit(),"attack",udg_locations01[30])
endfunction
function Trig_CCC_Func002A takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_CCC_Func002Func001001003)),function Trig_CCC_Func002Func001A)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function Trig_CCC_Func004001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func004Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func004A takes nothing returns nothing
if(Trig_CCC_Func004Func001C())then
call IssuePointOrderLoc(GetEnumUnit(),"attack",udg_locations01[30])
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func006001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func006Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func006A takes nothing returns nothing
if(Trig_CCC_Func006Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5601",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func008001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func008Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func008A takes nothing returns nothing
if(Trig_CCC_Func008Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5605",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func010001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func010Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func010A takes nothing returns nothing
if(Trig_CCC_Func010Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5685",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func012001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func012Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func012A takes nothing returns nothing
if(Trig_CCC_Func012Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5686",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func014001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func014Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func014A takes nothing returns nothing
if(Trig_CCC_Func014Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5687",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func016001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func016Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func016A takes nothing returns nothing
if(Trig_CCC_Func016Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5688",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func018001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func018Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func018A takes nothing returns nothing
if(Trig_CCC_Func018Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5689",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func020001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func020Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func020A takes nothing returns nothing
if(Trig_CCC_Func020Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5690",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func022001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func022Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func022A takes nothing returns nothing
if(Trig_CCC_Func022Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5691",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func024001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_CCC_Func024Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnumUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_CCC_Func024A takes nothing returns nothing
if(Trig_CCC_Func024Func001C())then
call CreateTextTagLocBJ("TRIGSTR_5692",GetUnitLoc(GetEnumUnit()),0,11.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect04))
else
call DoNothing()
endif
endfunction
function Trig_CCC_Func026001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_CCC_Func026Func001Func001C takes nothing returns boolean
if((GetUnitTypeId(GetEnumUnit())=='h00A'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='h008'))then
return true
endif
return false
endfunction
function Trig_CCC_Func026Func001C takes nothing returns boolean
if(not Trig_CCC_Func026Func001Func001C())then
return false
endif
return true
endfunction
function Trig_CCC_Func026A takes nothing returns nothing
if(Trig_CCC_Func026Func001C())then
call IssuePointOrderLoc(GetEnumUnit(),"attack",udg_locations01[30])
else
call DoNothing()
endif
endfunction
function Trig_CCC_Actions takes nothing returns nothing
set udg_locations01[30]=GetRectCenter(udg_rect02)
call ForGroupBJ(GetUnitsOfPlayerMatching(Player(11),Condition(function Trig_CCC_Func002001002)),function Trig_CCC_Func002A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_CCC_Func004001002)),function Trig_CCC_Func004A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect12,Condition(function Trig_CCC_Func006001002)),function Trig_CCC_Func006A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect13,Condition(function Trig_CCC_Func008001002)),function Trig_CCC_Func008A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect62,Condition(function Trig_CCC_Func010001002)),function Trig_CCC_Func010A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect74,Condition(function Trig_CCC_Func012001002)),function Trig_CCC_Func012A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect83,Condition(function Trig_CCC_Func014001002)),function Trig_CCC_Func014A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect82,Condition(function Trig_CCC_Func016001002)),function Trig_CCC_Func016A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect81,Condition(function Trig_CCC_Func018001002)),function Trig_CCC_Func018A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect80,Condition(function Trig_CCC_Func020001002)),function Trig_CCC_Func020A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect84,Condition(function Trig_CCC_Func022001002)),function Trig_CCC_Func022A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(udg_rect01,Condition(function Trig_CCC_Func024001002)),function Trig_CCC_Func024A)
call DestroyGroup(GetLastCreatedGroup())
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_CCC_Func026001002)),function Trig_CCC_Func026A)
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_locations01[30])
endfunction
function Trig_a_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(11))==true))then
return false
endif
return true
endfunction
function Trig_a_Actions takes nothing returns nothing
set udg_locations01[4]=GetRectCenter(udg_rect02)
call IssuePointOrderLoc(GetTriggerUnit(),"attack",udg_locations01[4])
call RemoveLocation(udg_locations01[4])
endfunction
function Trig_b_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(11))==true))then
return false
endif
return true
endfunction
function Trig_b_Actions takes nothing returns nothing
set udg_locations01[5]=GetRectCenter(udg_rect02)
call IssuePointOrderLoc(GetTriggerUnit(),"attack",udg_locations01[5])
call RemoveLocation(udg_locations01[5])
endfunction
function Trig_c_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(11))==true))then
return false
endif
return true
endfunction
function Trig_c_Actions takes nothing returns nothing
set udg_locations01[6]=GetRectCenter(udg_rect02)
call IssuePointOrderLoc(GetTriggerUnit(),"attack",udg_locations01[6])
call RemoveLocation(udg_locations01[6])
endfunction
function Trig_touxi_Func003Func001C takes nothing returns boolean
if(not(GetPlayerController(GetEnumPlayer())==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_touxi_Func003A takes nothing returns nothing
if(Trig_touxi_Func003Func001C())then
call AdjustPlayerStateBJ((500*udg_integer08),GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
endfunction
function Trig_touxi_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog03)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"TRIGSTR_3429")
call ForForce(GetPlayersAllies(Player(9)),function Trig_touxi_Func003A)
set udg_locations01[50]=GetRectCenter(udg_rect72)
set udg_locations01[51]=GetRectCenter(udg_rect73)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,udg_integers03[(udg_integer08+1)],Player(11),udg_locations01[50],bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,udg_integers03[(udg_integer08+1)],Player(11),udg_locations01[51],bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_wal_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Hamg'))then
return false
endif
return true
endfunction
function Trig_wal_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound11)
set udg_location09=GetUnitLoc(GetTriggerUnit())
call CreateTextTagLocBJ("Shukaku awakes!",udg_location09,0,10.50,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'H002',Player(11),udg_location09,GetUnitFacing(GetTriggerUnit()))
call IssuePointOrderLoc(GetLastCreatedUnit(),"attack",GetRectCenter(udg_rect02))
call RemoveLocation(udg_location09)
endfunction
function Trig_U_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Eevi'))then
return false
endif
return true
endfunction
function Trig_U_Func006A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(GetTriggerUnit()),0.50)
endfunction
function Trig_U_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
set udg_location09=GetUnitLoc(GetTriggerUnit())
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUTIN,3.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",100.00,100.00,100.00,0)
call TriggerSleepAction(2.00)
call PauseAllUnitsBJ(true)
call ForForce(GetPlayersAll(),function Trig_U_Func006A)
call CinematicModeBJ(true,GetPlayersAll())
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),GetTriggerUnit(),GetHeroProperName(GetTriggerUnit()),null,"I'll be long dead if I don't have this. Behold my ultimate technique! Susano!!!",bj_TIMETYPE_ADD,0.00,true)
call CreateNUnitsAtLoc(1,'h00A',Player(11),udg_location09,GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',180.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
call CinematicModeBJ(false,GetPlayersAll())
call PauseAllUnitsBJ(false)
call RemoveLocation(udg_location09)
call EnableTrigger(udg_trigger69)
endfunction
function Trig_U_______u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='h00A'))then
return false
endif
return true
endfunction
function Trig_U_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
set udg_location09=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'Eevi',Player(11),udg_location09,GetUnitFacing(GetTriggerUnit()))
call SetUnitLifePercentBJ(GetLastCreatedUnit(),30.00)
call SetHeroLevelBJ(GetLastCreatedUnit(),(udg_integer08*2),false)
call RemoveLocation(udg_location09)
endfunction
function Trig_U______________u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H002'))then
return false
endif
return true
endfunction
function Trig_U______________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
set udg_location09=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc('I03Z',udg_location09)
call RemoveLocation(udg_location09)
endfunction
function Trig_U____________________________u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H007'))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function Trig_U____________________________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
set udg_location09=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc('I03O',udg_location09)
call RemoveLocation(udg_location09)
endfunction
function Trig_U___________________________________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit53))then
return false
endif
return true
endfunction
function Trig_U___________________________________u_Func001C takes nothing returns boolean
if(not(GetRandomInt(1,10)==5))then
return false
endif
return true
endfunction
function Trig_U___________________________________u_Actions takes nothing returns nothing
if(Trig_U___________________________________u_Func001C())then
call DestroyTrigger(GetTriggeringTrigger())
set udg_location09=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc('I03O',udg_location09)
call RemoveLocation(udg_location09)
else
call DoNothing()
endif
endfunction
function Trig_ZX_Func001Func002001 takes nothing returns boolean
return(GetRandomInt(1,3)==2)
endfunction
function Trig_ZX_Func001Func003C takes nothing returns boolean
if((GetUnitTypeId(GetAttacker())=='h00A'))then
return true
endif
if((GetUnitTypeId(GetAttacker())=='Eill'))then
return true
endif
return false
endfunction
function Trig_ZX_Func001C takes nothing returns boolean
if(not Trig_ZX_Func001Func003C())then
return false
endif
if(not(IsUnitIllusionBJ(GetAttacker())==false))then
return false
endif
return true
endfunction
function Trig_ZX_Func002Func002001 takes nothing returns boolean
return(GetRandomInt(1,3)==2)
endfunction
function Trig_ZX_Func002Func003C takes nothing returns boolean
if((GetUnitTypeId(GetAttacker())=='Eill'))then
return true
endif
return false
endfunction
function Trig_ZX_Func002C takes nothing returns boolean
if(not Trig_ZX_Func002Func003C())then
return false
endif
if(not(IsUnitIllusionBJ(GetAttacker())==true))then
return false
endif
return true
endfunction
function Trig_ZX_Actions takes nothing returns nothing
if(Trig_ZX_Func001C())then
if(Trig_ZX_Func001Func002001())then
call SetUnitManaBJ(GetAttackedUnitBJ(),0)
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_ZX_Func002C())then
if(Trig_ZX_Func002Func002001())then
call SetUnitManaBJ(GetAttackedUnitBJ(),(GetUnitStateSwap(UNIT_STATE_MANA,GetAttackedUnitBJ())-2000.00))
else
call DoNothing()
endif
else
call DoNothing()
endif
endfunction
function Trig_hhhhhhhhhhh1_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Eevi'))then
return false
endif
return true
endfunction
function Trig_hhhhhhhhhhh1_Func008A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(udg_unit67),3.00)
endfunction
function Trig_hhhhhhhhhhh1_Func015A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(udg_unit78),3.00)
endfunction
function Trig_hhhhhhhhhhh1_Func020A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(GetTriggerUnit()),3.00)
endfunction
function Trig_hhhhhhhhhhh1_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger72)
call DestroyTimerDialog(udg_timerdialog04)
call CinematicModeBJ(true,GetPlayersAll())
call PauseAllUnitsBJ(true)
call TriggerSleepAction(2)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),GetTriggerUnit(),GetHeroProperName(GetTriggerUnit()),null,"Tell you guys something. Jiraiya has died in the Hidden Rain village. If you do not believe me, check it out at the Informant yourself.",bj_TIMETYPE_ADD,10.00,true)
call ForForce(GetPlayersAll(),function Trig_hhhhhhhhhhh1_Func008A)
call TriggerSleepAction(5.00)
call ShowUnitShow(udg_unit78)
call ShowUnitShow(udg_unit68)
call ShowUnitShow(udg_unit72)
call ShowUnitShow(udg_unit66)
call ShowUnitShow(udg_unit69)
call ForForce(GetPlayersAll(),function Trig_hhhhhhhhhhh1_Func015A)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit78,GetHeroProperName(udg_unit78),null,"From now on we will be named Taka, and our only aim is to destroy Konoha!",bj_TIMETYPE_ADD,10.00,true)
call SetUnitFacingTimed(udg_unit78,0.00,1.50)
call TriggerSleepAction(3.00)
call ForForce(GetPlayersAll(),function Trig_hhhhhhhhhhh1_Func020A)
call TriggerSleepAction(5.00)
call ShowUnitHide(udg_unit78)
call ShowUnitHide(udg_unit68)
call ShowUnitHide(udg_unit72)
call ShowUnitHide(udg_unit66)
call ShowUnitHide(udg_unit69)
call TriggerSleepAction(2)
call PauseAllUnitsBJ(false)
call CinematicModeBJ(false,GetPlayersAll())
call StartTimerBJ(udg_timer04,false,900.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),"Check about Jiraiya")
set udg_timerdialog04=GetLastCreatedTimerDialogBJ()
call EnableTrigger(udg_trigger70)
call EnableTrigger(udg_trigger72)
call EnableTrigger(udg_trigger71)
call EnableTrigger(udg_trigger510)
call DisplayTimedTextToForce(GetPlayersAll(),30,"|cff00ff00 Hurry up and check if the words by Itachi holds true.")
call PingMinimapLocForForceEx(GetPlayersAll(),GetUnitLoc(udg_unit67),20.00,bj_MINIMAPPINGSTYLE_FLASHY,100,0.00,0.00)
endfunction
function Trig_hhhhhhhhhhh2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitAlly(GetTriggerUnit(),Player(9))==true))then
return false
endif
return true
endfunction
function Trig_hhhhhhhhhhh2_Func007A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(udg_unit84),3.00)
endfunction
function Trig_hhhhhhhhhhh2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger50)
call CinematicModeBJ(true,GetPlayersAll())
call PauseAllUnitsBJ(true)
call ShowUnitShow(udg_unit84)
call PauseTimerBJ(true,udg_timer04)
call ForForce(GetPlayersAll(),function Trig_hhhhhhhhhhh2_Func007A)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit84,GetHeroProperName(udg_unit84),null,"Another intruder?",bj_TIMETYPE_ADD,10.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),GetTriggerUnit(),GetHeroProperName(GetTriggerUnit()),null,"I am here to ask about Jiraiya.",bj_TIMETYPE_ADD,10.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit84,GetHeroProperName(udg_unit84),null,"Jiraiya sensei? He's already dead? In order to kill him, I specially used this body of mine!",bj_TIMETYPE_ADD,10.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),GetTriggerUnit(),GetHeroProperName(GetTriggerUnit()),null,"You shall die.",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit84,GetHeroProperName(udg_unit84),null,"TRIGSTR_6423",bj_TIMETYPE_ADD,2.00,true)
call TriggerSleepAction(1.00)
call PauseAllUnitsBJ(false)
call CinematicModeBJ(false,GetPlayersAll())
call SetUnitOwner(udg_unit84,Player(10),true)
call DisplayTimedTextToForce(GetPlayersAll(),30,"Kill the Pain before you to obtain more information! If the time is up, the game will end.")
call DisplayTimedTextToForce(GetPlayersAll(),30,"Kill the Pain before you to obtain more information! If the time is up, the game will end.")
call DisplayTimedTextToForce(GetPlayersAll(),30,"Kill the Pain before you to obtain more information! If the time is up, the game will end.")
call PauseTimerBJ(false,udg_timer04)
endfunction
function Trig_wal2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit84))then
return false
endif
return true
endfunction
function Trig_wal2_Func010A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(udg_unit84),3.00)
endfunction
function Trig_wal2_Func023A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(udg_unit80),3.00)
endfunction
function Trig_wal2_Func099C takes nothing returns boolean
if(not(udg_integer33>=5))then
return false
endif
return true
endfunction
function Trig_wal2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger72)
call DestroyTimerDialog(udg_timerdialog04)
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUTIN,7.00,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call TriggerSleepAction(5.00)
call CinematicModeBJ(true,GetPlayersAll())
call PauseAllUnitsBJ(true)
call ShowUnitShow(udg_unit80)
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUTIN,30.00,"ReplaceableTextures\\CameraMasks\\DiagonalSlash_mask.blp",0,0,0,0)
call ForForce(GetPlayersAll(),function Trig_wal2_Func010A)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"I am the one who killed Jiraiya, but so what? People who do not understand pain will never know what is peace!",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"Many people have died here, and their pain makes me grow. Ignorant kids will only grow up when they understand what is Pain!",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"However for me, I have been through extreme pain that no one can imagine, and thus I have grown more than the normal. I have become... GOD!",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"I want to bring a halt to this never-ending war. This is the task of GOD. How can we stop the war as fast as possible? Simple. Ultimate destruction. With that, everybody will truely experience the fear.",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"This fear will bring about resistance, and there will be no war anymore. This peaceful world is now finally approaching!",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"I want all of you to experience this Pain as well!",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call ForForce(GetPlayersAll(),function Trig_wal2_Func023A)
call TriggerSleepAction(3.00)
call UnitAddAbility(udg_unit80,'Amrf')
call SetUnitFlyHeight(udg_unit80,200.00,200.00)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"Pain will make the world grow like me, and in order to make that happen, we need an explanation from GOD. This world is still young, to let it grow it must experience Pain!",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"All of you are just avoiding to kill, but you all are just normal people who pursue peace. If you don't kill, be prepared to get killed then. ",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"Feel the pain! Experience the pain! Accept the pain! Understand the pain! People who don't understand pain will never know what is peace!",bj_TIMETYPE_ADD,5.00,true)
call TriggerSleepAction(1.00)
call SetUnitAnimation(udg_unit80,"spell")
call PlaySoundBJ(udg_sound65)
call CreateTextTagLocBJ(("Shinra Tensei "+" !"),GetUnitLoc(udg_unit80),0,10.50,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),5)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nw2w',GetOwningPlayer(udg_unit80),GetUnitLoc(udg_unit55),bj_UNIT_FACING)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit55),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.30)
call ShowUnitHide(udg_unit55)
call ResetUnitAnimation(udg_unit80)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"Your country is too big. You have to war with other countries in order to protect your own interests. As a result, small countries like mine has to suffer!",bj_TIMETYPE_ADD,20.00,true)
call TriggerSleepAction(1.00)
call SetUnitOwner(udg_unit80,Player(11),true)
call SetUnitAnimation(udg_unit80,"spell five")
call SetUnitFlyHeight(udg_unit80,0.00,150.00)
call CreateTextTagLocBJ(("Kuchiyose no Jutsu.Six Paths of Pain"+" !"),GetUnitLoc(udg_unit80),0,10.50,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),5)
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUTIN,5.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",0,0,0,0)
call CreateNUnitsAtLoc(1,'H005',Player(11),PolarProjectionBJ(GetUnitLoc(udg_unit80),GetRandomReal(200.00,300.00),GetRandomReal(0,1)),GetUnitFacing(udg_unit80))
call UnitAddItemByIdSwapped(udg_integers08[GetRandomInt(13,24)],GetLastCreatedUnit())
call PauseUnit(GetLastCreatedUnit(),true)
set udg_units35[1]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'H00S',Player(11),PolarProjectionBJ(GetUnitLoc(udg_unit80),GetRandomReal(200.00,300.00),GetRandomReal(0,1)),GetUnitFacing(udg_unit80))
call UnitAddItemByIdSwapped(udg_integers08[GetRandomInt(13,24)],GetLastCreatedUnit())
call PauseUnit(GetLastCreatedUnit(),true)
set udg_units35[3]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'H00R',Player(11),PolarProjectionBJ(GetUnitLoc(udg_unit80),GetRandomReal(200.00,300.00),GetRandomReal(0,1)),GetUnitFacing(udg_unit80))
call UnitAddItemByIdSwapped(udg_integers08[GetRandomInt(13,24)],GetLastCreatedUnit())
call PauseUnit(GetLastCreatedUnit(),true)
set udg_units35[4]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'H00T',Player(11),PolarProjectionBJ(GetUnitLoc(udg_unit80),GetRandomReal(200.00,300.00),GetRandomReal(0,1)),GetUnitFacing(udg_unit80))
call UnitAddItemByIdSwapped(udg_integers08[GetRandomInt(13,24)],GetLastCreatedUnit())
call PauseUnit(GetLastCreatedUnit(),true)
set udg_units35[5]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'H006',Player(11),PolarProjectionBJ(GetUnitLoc(udg_unit80),GetRandomReal(200.00,300.00),GetRandomDirectionDeg()),GetUnitFacing(udg_unit80))
call UnitAddItemByIdSwapped(udg_integers08[GetRandomInt(13,24)],GetLastCreatedUnit())
call PauseUnit(GetLastCreatedUnit(),true)
set udg_units35[2]=GetLastCreatedUnit()
call SetUnitAnimation(GetLastCreatedUnit(),"spell two")
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call EnableTrigger(udg_trigger75)
call EnableTrigger(udg_trigger76)
call EnableTrigger(udg_trigger77)
call TriggerSleepAction(0.10)
call UnitRemoveAbility(udg_unit80,'Amrf')
call ResetUnitAnimation(udg_unit80)
call PauseAllUnitsBJ(false)
call CinematicModeBJ(false,GetPlayersAll())
if(Trig_wal2_Func099C())then
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_6585")
call StartTimerBJ(udg_timer04,false,1800.00)
else
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_6264")
call StartTimerBJ(udg_timer04,false,1200.00)
endif
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),"Stop Pain")
set udg_timerdialog04=GetLastCreatedTimerDialogBJ()
call EnableTrigger(udg_trigger72)
call EnableTrigger(udg_trigger73)
call EnableTrigger(udg_trigger104)
call EnableTrigger(udg_trigger105)
endfunction
function Trig_SBaaaaaa_Func013A takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"TRIGSTR_6271")
endfunction
function Trig_SBaaaaaa_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetPlayersAll(),60.00,"TRIGSTR_6265")
call TriggerSleepAction(20.00)
call DisplayTextToForce(GetPlayersAll(),"Game ending in 5..")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Game ending in 4..")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Game ending in 3..")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Game ending in 2..")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Game ending in 1..")
call TriggerSleepAction(1.00)
call ForForce(GetPlayersAllies(Player(9)),function Trig_SBaaaaaa_Func013A)
endfunction
function Trig_wal_______u_Func002C takes nothing returns boolean
if((GetTriggerUnit()==udg_unit80))then
return true
endif
if((GetTriggerUnit()==udg_units35[1]))then
return true
endif
if((GetTriggerUnit()==udg_units35[3]))then
return true
endif
if((GetTriggerUnit()==udg_units35[4]))then
return true
endif
if((GetTriggerUnit()==udg_units35[5]))then
return true
endif
return false
endfunction
function Trig_wal_______u_Conditions takes nothing returns boolean
if(not Trig_wal_______u_Func002C())then
return false
endif
if(not(IsUnitDeadBJ(udg_unit80)==true))then
return false
endif
if(not(IsUnitDeadBJ(udg_units35[1])==true))then
return false
endif
if(not(IsUnitDeadBJ(udg_units35[3])==true))then
return false
endif
if(not(IsUnitDeadBJ(udg_units35[4])==true))then
return false
endif
if(not(IsUnitDeadBJ(udg_units35[5])==true))then
return false
endif
return true
endfunction
function Trig_wal_______u_Func021A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(GetTriggerUnit()),3.00)
endfunction
function Trig_wal_______u_Func042C takes nothing returns boolean
if(not(udg_integer33>=4))then
return false
endif
return true
endfunction
function Trig_wal_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger72)
call DestroyTimerDialog(udg_timerdialog04)
call DisableTrigger(udg_trigger76)
call DisableTrigger(udg_trigger77)
set udg_units35[1]=null
set udg_units35[3]=null
set udg_units35[4]=null
set udg_units35[5]=null
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUTIN,7.00,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call SetUnitPositionLoc(udg_unit68,GetUnitLoc(GetTriggerUnit()))
call TriggerSleepAction(2)
call CinematicModeBJ(true,GetPlayersAll())
call PauseAllUnitsBJ(true)
call ForForce(GetPlayersAll(),function Trig_wal_______u_Func021A)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"I created an underground organization that possessed the power to destroy a country within an instant. With pain, the world will then stop all wars and march towards peace.",bj_TIMETYPE_ADD,20.00,true)
call TriggerSleepAction(2)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"You and I hold the same dream, which is to bring about peace. The only difference is that we adopted different methods.",bj_TIMETYPE_ADD,30.00,true)
call TriggerSleepAction(2)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"I uphold what I think peace is, and you uphold what you think peace is. That is all to it.",bj_TIMETYPE_ADD,30.00,true)
call TriggerSleepAction(2)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit80,GetHeroProperName(udg_unit80),null,"One day, I will try to eliminate this curse. If peace really exist, let me realise it!",bj_TIMETYPE_ADD,10.00,true)
call TriggerSleepAction(1.00)
call ShowUnitShow(udg_unit68)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit68,GetHeroProperName(udg_unit68),null,"All of you are just so useless. Pain may have been dead, but there is still ME! Uchiha Madara!",bj_TIMETYPE_ADD,10.00,true)
call TriggerSleepAction(1.00)
call ShowUnitHide(udg_unit68)
call PauseAllUnitsBJ(false)
call CinematicModeBJ(false,GetPlayersAll())
call TriggerSleepAction(2)
call ShowUnitShow(udg_unit55)
call DisplayTimedTextToForce(GetPlayersAll(),30,"After 30 seconds, Uchiha Madara will lead Taka to invade Konoha! Be prepared!")
call DisplayTimedTextToForce(GetPlayersAll(),30,"After 30 seconds, Uchiha Madara will lead Taka to invade Konoha! Be prepared!")
call DisplayTimedTextToForce(GetPlayersAll(),30,"After 30 seconds, Uchiha Madara will lead Taka to invade Konoha! Be prepared!")
call TriggerSleepAction(30.00)
if(Trig_wal_______u_Func042C())then
call StartTimerBJ(udg_timer04,false,1200.00)
else
call StartTimerBJ(udg_timer04,false,1000.00)
endif
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),"Stop Sasuke and Madara")
set udg_timerdialog04=GetLastCreatedTimerDialogBJ()
call EnableTrigger(udg_trigger72)
call EnableTrigger(udg_trigger74)
call SetUnitOwner(udg_unit78,Player(11),true)
call SetUnitOwner(udg_unit68,Player(11),true)
call SetUnitOwner(udg_unit72,Player(11),true)
call SetUnitOwner(udg_unit66,Player(11),true)
call SetUnitOwner(udg_unit69,Player(11),true)
call ShowUnitShow(udg_unit78)
call ShowUnitShow(udg_unit68)
call ShowUnitShow(udg_unit72)
call ShowUnitShow(udg_unit66)
call ShowUnitShow(udg_unit69)
call SetUnitPositionLoc(udg_unit78,GetRectCenter(udg_rect04))
call SetUnitPositionLoc(udg_unit72,GetRectCenter(udg_rect04))
call SetUnitPositionLoc(udg_unit68,GetRectCenter(udg_rect04))
call SetUnitPositionLoc(udg_unit66,GetRectCenter(udg_rect06))
call SetUnitPositionLoc(udg_unit69,GetRectCenter(udg_rect05))
call DisplayTimedTextToForce(GetPlayersAll(),30,"Uchiha Madara and Taka are on their way to invade Konoha now. Be prepared for the battle!")
call DisplayTimedTextToForce(GetPlayersAll(),30,"Uchiha Madara and Taka are on their way to invade Konoha now. Be prepared for the battle!")
call DisplayTimedTextToForce(GetPlayersAll(),30,"Uchiha Madara and Taka are on their way to invade Konoha now. Be prepared for the battle!")
endfunction
function Trig_wal______________u_Func002C takes nothing returns boolean
if((GetTriggerUnit()==udg_unit78))then
return true
endif
if((GetTriggerUnit()==udg_unit69))then
return true
endif
if((GetTriggerUnit()==udg_unit66))then
return true
endif
if((GetTriggerUnit()==udg_unit72))then
return true
endif
if((GetTriggerUnit()==udg_unit68))then
return true
endif
return false
endfunction
function Trig_wal______________u_Conditions takes nothing returns boolean
if(not Trig_wal______________u_Func002C())then
return false
endif
if(not(IsUnitDeadBJ(udg_unit78)==true))then
return false
endif
if(not(IsUnitDeadBJ(udg_unit68)==true))then
return false
endif
if(not(IsUnitDeadBJ(udg_unit72)==true))then
return false
endif
if(not(IsUnitDeadBJ(udg_unit66)==true))then
return false
endif
if(not(IsUnitDeadBJ(udg_unit69)==true))then
return false
endif
return true
endfunction
function Trig_wal______________u_Func014A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(GetTriggerUnit()),3.00)
endfunction
function Trig_wal______________u_Func028Func002Func002Func001Func005A takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_wal______________u_Func028Func002Func002Func001C takes nothing returns boolean
if(not(udg_integer34==1))then
return false
endif
return true
endfunction
function Trig_wal______________u_Func028Func002Func002Func003Func001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_wal______________u_Func028Func002Func002Func003Func001Func001C takes nothing returns boolean
if(not(GetEnumUnit()!=udg_unit71))then
return false
endif
return true
endfunction
function Trig_wal______________u_Func028Func002Func002Func003Func001A takes nothing returns nothing
if(Trig_wal______________u_Func028Func002Func002Func003Func001Func001C())then
call UnitAddAbility(GetEnumUnit(),'A05B')
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'ankh'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'I01O'))
else
endif
endfunction
function Trig_wal______________u_Func028Func002Func002Func003A takes nothing returns nothing
call ForGroupBJ(GetUnitsOfPlayerMatching(GetEnumPlayer(),Condition(function Trig_wal______________u_Func028Func002Func002Func003Func001001002)),function Trig_wal______________u_Func028Func002Func002Func003Func001A)
endfunction
function Trig_wal______________u_Func028Func002Func002Func009A takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_wal______________u_Func028Func002Func002C takes nothing returns boolean
if(not(udg_integer34==2))then
return false
endif
return true
endfunction
function Trig_wal______________u_Func028Func002C takes nothing returns boolean
if(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_integer34>=3))then
return false
endif
return true
endfunction
function Trig_wal______________u_Func028C takes nothing returns boolean
if(not(GetPlayerController(Player(0))==MAP_CONTROL_USER))then
return false
endif
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
if(not(udg_integer34==6))then
return false
endif
return true
endfunction
function Trig_wal______________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger72)
call DestroyTimerDialog(udg_timerdialog04)
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUTIN,7.00,"ReplaceableTextures\\CameraMasks\\Black_mask.blp",0,0,0,0)
call TriggerSleepAction(2)
call CinematicModeBJ(true,GetPlayersAll())
call PauseAllUnitsBJ(true)
call ForForce(GetPlayersAll(),function Trig_wal______________u_Func014A)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit68,GetHeroProperName(udg_unit68),null,"Damn. It is Dong Dong who wants to give you a chance. Count yourself lucky.",bj_TIMETYPE_ADD,20.00,true)
call TriggerSleepAction(2)
call PauseAllUnitsBJ(false)
call CinematicModeBJ(false,GetPlayersAll())
call TriggerSleepAction(2)
call ShowUnitShow(udg_unit55)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_6390")
call TriggerSleepAction(10.00)
call DisableTrigger(udg_trigger50)
call StopSoundBJ(udg_sound66,true)
call PlaySoundBJ(udg_sound55)
call EnableTrigger(udg_trigger51)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"Wait for host to select PK mode")
if(Trig_wal______________u_Func028C())then
call EnableTrigger(udg_trigger78)
call DialogSetMessage(udg_dialog02,"Please select PK mode")
call DialogAddButtonBJ(udg_dialog02,"Team PK 3v3")
set udg_buttons01[7]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Free For All")
set udg_buttons01[8]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Purchase ticket to PvP")
set udg_buttons01[9]=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog02,Player(0))
else
if(Trig_wal______________u_Func028Func002C())then
call EnableTrigger(udg_trigger78)
call DialogSetMessage(udg_dialog02,"Please select PK mode")
call DialogAddButtonBJ(udg_dialog02,"Free For All")
set udg_buttons01[8]=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Purchase ticket to PvP")
set udg_buttons01[9]=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog02,Player(0))
else
if(Trig_wal______________u_Func028Func002Func002C())then
call DisplayTimedTextToForce(GetPlayersAll(),30,("Current online players:|cffff0000"+(I2S(udg_integer34)+" |rThe number of players is insufficient to unlock the mass PK mode. Players can only PVP using the option at the castle.")))
call ForForce(GetPlayersAllies(Player(9)),function Trig_wal______________u_Func028Func002Func002Func003A)
call EnableTrigger(udg_trigger14)
call EnableTrigger(udg_trigger15)
call TriggerSleepAction(900.00)
call DisplayTimedTextToForce(GetPlayersAll(),30,"Game will end in 30 seconds")
call TriggerSleepAction(20.00)
call ForForce(GetPlayersAllies(Player(9)),function Trig_wal______________u_Func028Func002Func002Func009A)
else
if(Trig_wal______________u_Func028Func002Func002Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30,("Current online players:|cffff0000"+(I2S(udg_integer34)+" |rThe number of players is insufficient to unlock the mass PK mode. ")))
call DisplayTimedTextToForce(GetPlayersAll(),30,"Game will end in 30 seconds")
call TriggerSleepAction(20.00)
call ForForce(GetPlayersAllies(Player(9)),function Trig_wal______________u_Func028Func002Func002Func001Func005A)
else
call DoNothing()
endif
endif
endif
endif
endfunction
function Trig_fuhuo_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units35[2]))then
return false
endif
return true
endfunction
function Trig_fuhuo_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call UnitRemoveAbility(udg_unit80,'A08J')
call UnitRemoveAbility(udg_units35[1],'A08J')
call UnitRemoveAbility(udg_units35[3],'A08J')
call UnitRemoveAbility(udg_units35[4],'A08J')
call UnitRemoveAbility(udg_units35[5],'A08J')
set udg_units35[2]=null
endfunction
function Trig_rjdcskz_Func007C takes nothing returns boolean
if((GetTriggerUnit()==udg_unit80))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H006'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H005'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00S'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00R'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00T'))then
return true
endif
return false
endfunction
function Trig_rjdcskz_Conditions takes nothing returns boolean
if(not Trig_rjdcskz_Func007C())then
return false
endif
return true
endfunction
function Trig_rjdcskz_Func005Func003C takes nothing returns boolean
if((GetTriggerUnit()==udg_unit80))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H006'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H005'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00S'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00R'))then
return true
endif
return false
endfunction
function Trig_rjdcskz_Func005C takes nothing returns boolean
if(not Trig_rjdcskz_Func005Func003C())then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(udg_units35[5]),GetUnitLoc(GetTriggerUnit()))<=500.00))then
return false
endif
return true
endfunction
function Trig_rjdcskz_Func006A takes nothing returns nothing
call IssuePointOrderLoc(GetEnumUnit(),"carrionswarm",GetUnitLoc(GetAttacker()))
endfunction
function Trig_rjdcskz_Actions takes nothing returns nothing
call IssueTargetOrder(udg_units35[1],"thunderbolt",GetAttacker())
call IssueTargetOrder(udg_units35[3],"thunderbolt",GetAttacker())
call IssueTargetOrder(udg_units35[2],"healingwave",GetTriggerUnit())
call IssuePointOrderLoc(udg_units35[4],"carrionswarm",GetUnitLoc(GetAttacker()))
if(Trig_rjdcskz_Func005C())then
call IssueImmediateOrder(udg_units35[5],"thunderclap")
else
call DoNothing()
endif
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'nlpr'),function Trig_rjdcskz_Func006A)
endfunction
function Trig_rjdcskz2_Func001C takes nothing returns boolean
if((GetTriggerUnit()==udg_unit80))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H006'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H005'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00S'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00R'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00T'))then
return true
endif
return false
endfunction
function Trig_rjdcskz2_Conditions takes nothing returns boolean
if(not Trig_rjdcskz2_Func001C())then
return false
endif
return true
endfunction
function Trig_rjdcskz2_Actions takes nothing returns nothing
call IssueImmediateOrder(udg_units35[1],"waterelemental")
call IssueTargetOrder(udg_units35[2],"manaburn",GetAttacker())
call IssueTargetOrder(udg_units35[2],"rejuvination",GetTriggerUnit())
endfunction
function Trig_zhpk1_Func003Func017A takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'ankh'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'I01O'))
endfunction
function Trig_zhpk1_Func003Func018A takes nothing returns nothing
call ShowUnitHide(GetEnumUnit())
endfunction
function Trig_zhpk1_Func003Func019Func001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_zhpk1_Func003Func019Func001Func001C takes nothing returns boolean
if(not(GetEnumUnit()!=udg_unit71))then
return false
endif
return true
endfunction
function Trig_zhpk1_Func003Func019Func001A takes nothing returns nothing
if(Trig_zhpk1_Func003Func019Func001Func001C())then
call UnitAddAbility(GetEnumUnit(),'A05B')
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'ankh'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'I01O'))
else
endif
endfunction
function Trig_zhpk1_Func003Func019A takes nothing returns nothing
call ForGroupBJ(GetUnitsOfPlayerMatching(GetEnumPlayer(),Condition(function Trig_zhpk1_Func003Func019Func001001002)),function Trig_zhpk1_Func003Func019Func001A)
endfunction
function Trig_zhpk1_Func003Func054A takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_zhpk1_Func003Func056Func004Func001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_zhpk1_Func003Func056Func004Func001Func001C takes nothing returns boolean
if(not(GetEnumUnit()!=udg_unit71))then
return false
endif
return true
endfunction
function Trig_zhpk1_Func003Func056Func004Func001A takes nothing returns nothing
if(Trig_zhpk1_Func003Func056Func004Func001Func001C())then
call UnitAddAbility(GetEnumUnit(),'A05B')
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'ankh'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'I01O'))
else
endif
endfunction
function Trig_zhpk1_Func003Func056Func004A takes nothing returns nothing
call ForGroupBJ(GetUnitsOfPlayerMatching(GetEnumPlayer(),Condition(function Trig_zhpk1_Func003Func056Func004Func001001002)),function Trig_zhpk1_Func003Func056Func004Func001A)
endfunction
function Trig_zhpk1_Func003Func056Func011A takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_zhpk1_Func003Func056Func028A takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'ankh'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'I01O'))
endfunction
function Trig_zhpk1_Func003Func056Func029A takes nothing returns nothing
call ShowUnitHide(GetEnumUnit())
endfunction
function Trig_zhpk1_Func003Func056Func030Func001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_zhpk1_Func003Func056Func030Func001Func001C takes nothing returns boolean
if(not(GetEnumUnit()!=udg_unit71))then
return false
endif
return true
endfunction
function Trig_zhpk1_Func003Func056Func030Func001A takes nothing returns nothing
if(Trig_zhpk1_Func003Func056Func030Func001Func001C())then
call UnitAddAbility(GetEnumUnit(),'A05B')
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'ankh'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'I01O'))
else
endif
endfunction
function Trig_zhpk1_Func003Func056Func030A takes nothing returns nothing
call ForGroupBJ(GetUnitsOfPlayerMatching(GetEnumPlayer(),Condition(function Trig_zhpk1_Func003Func056Func030Func001001002)),function Trig_zhpk1_Func003Func056Func030Func001A)
endfunction
function Trig_zhpk1_Func003Func056Func079A takes nothing returns nothing
call CustomVictoryBJ(GetEnumPlayer(),true,true)
endfunction
function Trig_zhpk1_Func003Func056C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[9]))then
return false
endif
return true
endfunction
function Trig_zhpk1_Func003C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_buttons01[7]))then
return false
endif
return true
endfunction
function Trig_zhpk1_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
if(Trig_zhpk1_Func003C())then
call DialogClear(udg_dialog02)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_6337")
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6338")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6339")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6340")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6341")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6342")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6343")
call ShowUnitHide(udg_unit55)
call ShowUnitHide(udg_unit65)
call ShowUnitHide(udg_unit51)
call ForGroupBJ(GetUnitsOfTypeIdAll('nalb'),function Trig_zhpk1_Func003Func017A)
call ForGroupBJ(GetUnitsOfTypeIdAll('necr'),function Trig_zhpk1_Func003Func018A)
call ForForce(GetPlayersAllies(Player(9)),function Trig_zhpk1_Func003Func019A)
call EnableTrigger(udg_trigger14)
call DisableTrigger(udg_trigger40)
call DisableTrigger(udg_trigger403)
call DisableTrigger(udg_trigger42)
call EnableTrigger(udg_trigger15)
call SetPlayerAllianceStateBJ(Player(0),Player(3),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(0),Player(4),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(0),Player(5),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(1),Player(3),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(1),Player(4),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(1),Player(5),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(2),Player(3),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(2),Player(4),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(2),Player(5),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(3),Player(0),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(4),Player(0),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(5),Player(0),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(3),Player(1),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(4),Player(1),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(5),Player(1),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(3),Player(2),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(4),Player(2),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(5),Player(2),bj_ALLIANCE_UNALLIED)
call TriggerSleepAction((900.00+I2R(udg_integer56)))
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6344")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6345")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6346")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6347")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6348")
call TriggerSleepAction(5.00)
call ForForce(GetPlayersAllies(Player(9)),function Trig_zhpk1_Func003Func054A)
else
if(Trig_zhpk1_Func003Func056C())then
call DialogClear(udg_dialog02)
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_6335")
call ForForce(GetPlayersAllies(Player(9)),function Trig_zhpk1_Func003Func056Func004A)
call EnableTrigger(udg_trigger14)
call EnableTrigger(udg_trigger15)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The mass PK has started, KILL THEM ALL! After 20 min the PK will end.")
call TriggerSleepAction((900.00+I2R(udg_integer56)))
call DisplayTimedTextToForce(GetPlayersAll(),30,"TRIGSTR_6336")
call TriggerSleepAction(20.00)
call ForForce(GetPlayersAllies(Player(9)),function Trig_zhpk1_Func003Func056Func011A)
else
call DialogClear(udg_dialog02)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_6318")
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6319")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6320")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6321")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6322")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6323")
call TriggerSleepAction(1.00)
call ShowUnitHide(udg_unit55)
call ShowUnitHide(udg_unit65)
call ShowUnitHide(udg_unit51)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_6324")
call ForGroupBJ(GetUnitsOfTypeIdAll('nalb'),function Trig_zhpk1_Func003Func056Func028A)
call ForGroupBJ(GetUnitsOfTypeIdAll('necr'),function Trig_zhpk1_Func003Func056Func029A)
call ForForce(GetPlayersAllies(Player(9)),function Trig_zhpk1_Func003Func056Func030A)
call EnableTrigger(udg_trigger14)
call DisableTrigger(udg_trigger40)
call DisableTrigger(udg_trigger42)
call DisableTrigger(udg_trigger403)
call EnableTrigger(udg_trigger15)
call SetPlayerAllianceStateBJ(Player(0),Player(1),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(0),Player(2),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(0),Player(3),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(0),Player(4),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(0),Player(5),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(1),Player(0),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(1),Player(2),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(1),Player(3),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(1),Player(4),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(1),Player(5),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(2),Player(0),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(2),Player(1),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(2),Player(3),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(2),Player(4),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(2),Player(5),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(3),Player(0),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(3),Player(1),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(3),Player(2),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(3),Player(4),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(3),Player(5),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(4),Player(0),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(4),Player(1),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(4),Player(2),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(4),Player(3),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(4),Player(5),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(5),Player(0),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(5),Player(1),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(5),Player(2),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(5),Player(3),bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(Player(5),Player(4),bj_ALLIANCE_UNALLIED)
call DisplayTimedTextToForce(GetPlayersAll(),30,"The mass PK has started! KILL THEM ALL! After 20 min the PK will end")
call TriggerSleepAction((900.00+I2R(udg_integer56)))
call DisplayTextToForce(GetPlayersAll(),"Mass PK ending in 5...")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Mass PK ending in 4...")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Mass PK ending in 3...")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Mass PK ending in 2...")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Mass PK ending in 1...")
call DisplayTimedTextToForce(GetPlayersAll(),30,"Game will end in soon")
call TriggerSleepAction(5.00)
call ForForce(GetPlayersAllies(Player(9)),function Trig_zhpk1_Func003Func056Func079A)
endif
endif
endfunction
function Trig_DDL1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AG'))then
return false
endif
return true
endfunction
function Trig_DDL1_Func016Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DDL1_Func016Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units52[1]))==true)
endfunction
function Trig_DDL1_Func016Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL1_Func016Func002001003001(),Trig_DDL1_Func016Func002001003002())
endfunction
function Trig_DDL1_Func016Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units52[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units52[1],true))*35.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_DDL1_Func016Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DDL1_Func016Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units52[1]))==true)
endfunction
function Trig_DDL1_Func016Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL1_Func016Func003001003001(),Trig_DDL1_Func016Func003001003002())
endfunction
function Trig_DDL1_Func016Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units52[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units52[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_DDL1_Func016C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit88,'I01A')==true))then
return false
endif
return true
endfunction
function Trig_DDL1_Actions takes nothing returns nothing
set udg_units52[1]=GetTriggerUnit()
set udg_locations26[1]=GetSpellTargetLoc()
call CreateNUnitsAtLoc(1,'e00U',GetOwningPlayer(GetTriggerUnit()),udg_locations26[1],GetUnitFacing(GetTriggerUnit()))
call SetUnitFlyHeight(GetLastCreatedUnit(),0.00,500.00)
set udg_units52[2]=GetLastCreatedUnit()
call TriggerSleepAction(0.80)
call PlaySoundBJ(udg_sound36)
call AddSpecialEffectLocBJ(udg_locations26[2],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units52[1]),30.00)
call RemoveUnit(udg_units52[2])
set udg_units52[2]=null
call AddSpecialEffectLocBJ(udg_locations26[1],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations26[1],256,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations26[1],256,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations26[1],400.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations26[1],400.00,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_DDL1_Func016C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(420.00,udg_locations26[1],Condition(function Trig_DDL1_Func016Func002001003)),function Trig_DDL1_Func016Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(420.00,udg_locations26[1],Condition(function Trig_DDL1_Func016Func003001003)),function Trig_DDL1_Func016Func003A)
endif
call RemoveLocation(udg_locations26[1])
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units52[1]))
set udg_units52[1]=null
endfunction
function Trig_DDL3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AE'))then
return false
endif
return true
endfunction
function Trig_DDL3_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit88,'I06J')==true))then
return false
endif
return true
endfunction
function Trig_DDL3_Actions takes nothing returns nothing
set udg_units52[3]=null
set udg_units52[3]=GetSpellTargetUnit()
call GroupClear(udg_group42)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'nchg',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(1.00,300.00),GetUnitFacing(GetTriggerUnit())),GetUnitLoc(udg_units52[3]))
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',10.00)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
call IssueTargetOrder(GetLastCreatedUnit(),"attack",udg_units52[3])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_DDL3_Func005C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'nchg',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(1.00,300.00),GetUnitFacing(GetTriggerUnit())),GetUnitLoc(udg_units52[3]))
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',10.00)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endfunction
function Trig_DDL4_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='nchg'))then
return false
endif
return true
endfunction
function Trig_DDL4_Func005001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DDL4_Func005001003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group42)==false)
endfunction
function Trig_DDL4_Func005001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL4_Func005001003001001(),Trig_DDL4_Func005001003001002())
endfunction
function Trig_DDL4_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit88))==true)
endfunction
function Trig_DDL4_Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL4_Func005001003001(),Trig_DDL4_Func005001003002())
endfunction
function Trig_DDL4_Func005A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group42)
call UnitDamageTargetBJ(udg_unit88,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit88,true))*I2R(GetUnitAbilityLevel(udg_unit88,'A0AE'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_DDL4_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_DDL4_Func005001003)),function Trig_DDL4_Func005A)
endfunction
function Trig_DDL5_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AF'))then
return false
endif
return true
endfunction
function Trig_DDL5_Actions takes nothing returns nothing
set udg_units52[4]=GetTriggerUnit()
set udg_units52[5]=GetSpellTargetUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'e007',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())
set udg_units52[6]=GetLastCreatedUnit()
call SetUnitPathing(udg_units09[6],false)
call TriggerSleepAction(0.30)
call EnableTrigger(udg_trigger83)
endfunction
function Trig_DDL6_Func001Func001C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(GetUnitLoc(udg_units52[5]),150.00,150.00),udg_units52[6])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units52[5])==true))then
return true
endif
return false
endfunction
function Trig_DDL6_Func001Func005Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DDL6_Func001Func005Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units52[4]))==true)
endfunction
function Trig_DDL6_Func001Func005Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL6_Func001Func005Func002001003001(),Trig_DDL6_Func001Func005Func002001003002())
endfunction
function Trig_DDL6_Func001Func005Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units52[4],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units52[4],true))*I2R(GetUnitAbilityLevel(udg_units52[4],'A0AF')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units52[4],true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_DDL6_Func001Func005Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DDL6_Func001Func005Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units52[4]))==true)
endfunction
function Trig_DDL6_Func001Func005Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL6_Func001Func005Func003001003001(),Trig_DDL6_Func001Func005Func003001003002())
endfunction
function Trig_DDL6_Func001Func005Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units52[4],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units52[4],true))*I2R(GetUnitAbilityLevel(udg_units52[4],'A0AF'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_DDL6_Func001Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit88,'I014')==true))then
return false
endif
return true
endfunction
function Trig_DDL6_Func001C takes nothing returns boolean
if(not Trig_DDL6_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_DDL6_Actions takes nothing returns nothing
if(Trig_DDL6_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call ShowUnitHide(udg_units52[6])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units52[6]),400.00,400.00)),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_DDL6_Func001Func005C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_units52[6]),Condition(function Trig_DDL6_Func001Func005Func002001003)),function Trig_DDL6_Func001Func005Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_units52[6]),Condition(function Trig_DDL6_Func001Func005Func003001003)),function Trig_DDL6_Func001Func005Func003A)
endif
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units52[4]),20.00)
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units52[4]))
call RemoveUnit(udg_units52[6])
set udg_units52[4]=null
set udg_units52[5]=null
set udg_units52[6]=null
else
call SetUnitPositionLocFacingLocBJ(udg_units52[6],PolarProjectionBJ(GetUnitLoc(udg_units52[6]),27.00,AngleBetweenPoints(GetUnitLoc(udg_units52[6]),GetUnitLoc(udg_units52[5]))),GetUnitLoc(udg_units52[5]))
endif
endfunction
function Trig_DDL7_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AI'))then
return false
endif
return true
endfunction
function Trig_DDL7_Func008Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DDL7_Func008Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units52[11]))==true)
endfunction
function Trig_DDL7_Func008Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL7_Func008Func001001003001(),Trig_DDL7_Func008Func001001003002())
endfunction
function Trig_DDL7_Func008Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units52[11],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units52[11],true))*I2R(GetUnitAbilityLevel(udg_units52[11],'A0AI')))/7.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_DDL7_Actions takes nothing returns nothing
set udg_locations26[3]=GetSpellTargetLoc()
set udg_units52[11]=GetTriggerUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'e02J',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),udg_locations26[3])
set udg_units52[12]=GetLastCreatedUnit()
call IssuePointOrderLoc(udg_units52[12],"clusterrockets",udg_locations26[3])
call TriggerSleepAction(0.10)
call EnableTrigger(udg_trigger85)
set udg_integer55=1
loop
exitwhen udg_integer55>7
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations26[3],Condition(function Trig_DDL7_Func008Func001001003)),function Trig_DDL7_Func008Func001A)
call TriggerSleepAction(0.18)
set udg_integer55=udg_integer55+1
endloop
call DisableTrigger(udg_trigger85)
call RemoveLocation(udg_locations26[3])
call RemoveUnit(udg_units52[12])
set udg_units52[11]=null
set udg_units52[12]=null
endfunction
function Trig_DDL8_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations26[3],GetRandomReal(1.00,350.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_DDL9_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AH'))then
return false
endif
return true
endfunction
function Trig_DDL9_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound37)
set udg_units52[8]=GetTriggerUnit()
set udg_locations26[2]=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,'e00Q',GetOwningPlayer(GetTriggerUnit()),udg_locations26[2],udg_locations26[2])
set udg_units52[9]=GetLastCreatedUnit()
call SetUnitAnimation(GetLastCreatedUnit(),"four")
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.40)
call EnableTrigger(udg_trigger87)
endfunction
function Trig_DDL10_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units52[9]))then
return false
endif
return true
endfunction
function Trig_DDL10_Func002Func001Func007Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DDL10_Func002Func001Func007Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit88))==true)
endfunction
function Trig_DDL10_Func002Func001Func007Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL10_Func002Func001Func007Func002001003001(),Trig_DDL10_Func002Func001Func007Func002001003002())
endfunction
function Trig_DDL10_Func002Func001Func007Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit88,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit88,true))*7.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_DDL10_Func002Func001Func007Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DDL10_Func002Func001Func007Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit88))==true)
endfunction
function Trig_DDL10_Func002Func001Func007Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL10_Func002Func001Func007Func003001003001(),Trig_DDL10_Func002Func001Func007Func003001003002())
endfunction
function Trig_DDL10_Func002Func001Func007Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit88,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit88,true))*5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_DDL10_Func002Func001Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit88,'I06J')==true))then
return false
endif
return true
endfunction
function Trig_DDL10_Actions takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units52[8]),17.00)
set udg_integer32=1
loop
exitwhen udg_integer32>20
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00J',GetOwningPlayer(udg_units52[8]),PolarProjectionBJ(udg_locations26[2],GetRandomReal(100.00,800.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_DDL10_Func002Func001Func007C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_DDL10_Func002Func001Func007Func002001003)),function Trig_DDL10_Func002Func001Func007Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_DDL10_Func002Func001Func007Func003001003)),function Trig_DDL10_Func002Func001Func007Func003A)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.00)
set udg_integer32=udg_integer32+1
endloop
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units52[8]))
call RemoveLocation(udg_locations26[2])
set udg_units52[8]=null
set udg_units52[9]=null
endfunction
function Trig_DDL11_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AK'))then
return false
endif
return true
endfunction
function Trig_DDL11_Func008001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DDL11_Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit88))==true)
endfunction
function Trig_DDL11_Func008001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DDL11_Func008001003001(),Trig_DDL11_Func008001003002())
endfunction
function Trig_DDL11_Func008A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit88,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit88,true))*100.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_DDL11_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound37)
set udg_locations26[5]=GetUnitLoc(GetTriggerUnit())
call PauseUnit(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"spell four")
call TriggerSleepAction(2)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e02K',GetOwningPlayer(GetTriggerUnit()),udg_locations26[5],udg_locations26[5])
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations26[5],250.00,(30.00*I2R(GetForLoopIndexA()))),"war3mapImported\\flamebomb.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations26[5],500.00,(30.00*I2R(GetForLoopIndexA()))),"war3mapImported\\flamebomb.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,udg_locations26[5],Condition(function Trig_DDL11_Func008001003)),function Trig_DDL11_Func008A)
call PauseUnit(GetTriggerUnit(),false)
call KillUnit(GetTriggerUnit())
call RemoveLocation(udg_locations26[5])
endfunction
function Trig_dbtx1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A078'))then
return false
endif
return true
endfunction
function Trig_dbtx1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound67)
set udg_unit21=GetTriggerUnit()
set udg_locations11[1]=GetSpellTargetLoc()
call SetUnitInvulnerable(GetTriggerUnit(),true)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_unit21),30.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01D',GetOwningPlayer(GetTriggerUnit()),udg_locations11[1],bj_UNIT_FACING)
call SetUnitPathing(GetLastCreatedUnit(),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups05[1])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e005',GetOwningPlayer(GetTriggerUnit()),udg_locations11[1],bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups05[2])
call SetUnitTimeScalePercent(GetLastCreatedUnit(),200.00)
call SetUnitPathing(GetLastCreatedUnit(),false)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'e01G',GetOwningPlayer(GetTriggerUnit()),udg_locations11[1],bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups05[2])
call SetUnitPathing(GetLastCreatedUnit(),false)
call EnableTrigger(udg_trigger92)
call EnableTrigger(udg_trigger91)
call EnableTrigger(udg_trigger90)
call TriggerSleepAction(6.00)
call DisableTrigger(udg_trigger90)
endfunction
function Trig_dbtx2_Func001A takes nothing returns nothing
set udg_real10=(udg_real10+0.06)
call SetUnitScalePercent(GetEnumUnit(),udg_real10,udg_real10,udg_real10)
endfunction
function Trig_dbtx2_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups05[1],function Trig_dbtx2_Func001A)
endfunction
function Trig_dbtx3_Func001Func003002003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_dbtx3_Func001Func003002003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_dbtx3_Func001Func003002003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit21))==true)
endfunction
function Trig_dbtx3_Func001Func003002003002 takes nothing returns boolean
return GetBooleanAnd(Trig_dbtx3_Func001Func003002003002001(),Trig_dbtx3_Func001Func003002003002002())
endfunction
function Trig_dbtx3_Func001Func003002003 takes nothing returns boolean
return GetBooleanAnd(Trig_dbtx3_Func001Func003002003001(),Trig_dbtx3_Func001Func003002003002())
endfunction
function Trig_dbtx3_Func001Func004A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_locations11[1])
call UnitDamageTargetBJ(udg_unit21,GetEnumUnit(),I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit21,true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_dbtx3_Func001C takes nothing returns boolean
if(not(IsTerrainPathableBJ(udg_locations11[1],PATHING_TYPE_WALKABILITY)==false))then
return false
endif
return true
endfunction
function Trig_dbtx3_Actions takes nothing returns nothing
if(Trig_dbtx3_Func001C())then
set udg_groups05[3]=GetUnitsInRangeOfLocMatching(600.00,udg_locations11[1],Condition(function Trig_dbtx3_Func001Func003002003))
call ForGroupBJ(udg_groups05[3],function Trig_dbtx3_Func001Func004A)
call GroupClear(udg_groups05[3])
else
call DoNothing()
endif
endfunction
function Trig_dbtx4_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A078'))then
return false
endif
return true
endfunction
function Trig_dbtx4_Func006Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_dbtx4_Func006Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_dbtx4_Func006Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit21))==true)
endfunction
function Trig_dbtx4_Func006Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_dbtx4_Func006Func002001003002001(),Trig_dbtx4_Func006Func002001003002002())
endfunction
function Trig_dbtx4_Func006Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_dbtx4_Func006Func002001003001(),Trig_dbtx4_Func006Func002001003002())
endfunction
function Trig_dbtx4_Func006Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call GroupAddUnitSimple(GetEnumUnit(),udg_groups05[4])
endfunction
function Trig_dbtx4_Func006Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_dbtx4_Func006Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_dbtx4_Func006Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit21))==true)
endfunction
function Trig_dbtx4_Func006Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_dbtx4_Func006Func003001003002001(),Trig_dbtx4_Func006Func003001003002002())
endfunction
function Trig_dbtx4_Func006Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_dbtx4_Func006Func003001003001(),Trig_dbtx4_Func006Func003001003002())
endfunction
function Trig_dbtx4_Func006Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call GroupAddUnitSimple(GetEnumUnit(),udg_groups05[4])
endfunction
function Trig_dbtx4_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05L')==true))then
return false
endif
return true
endfunction
function Trig_dbtx4_Func007A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_dbtx4_Func008A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_dbtx4_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_unit21))
call DisableTrigger(udg_trigger91)
call SetUnitInvulnerable(udg_unit21,false)
if(Trig_dbtx4_Func006C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_locations11[1],Condition(function Trig_dbtx4_Func006Func002001003)),function Trig_dbtx4_Func006Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_locations11[1],Condition(function Trig_dbtx4_Func006Func003001003)),function Trig_dbtx4_Func006Func003A)
endif
call ForGroupBJ(udg_groups05[1],function Trig_dbtx4_Func007A)
call ForGroupBJ(udg_groups05[2],function Trig_dbtx4_Func008A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01F',GetOwningPlayer(udg_unit21),PolarProjectionBJ(udg_locations11[1],200.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',3.00)
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations11[1],GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01F',GetOwningPlayer(udg_unit21),PolarProjectionBJ(udg_locations11[1],400.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(udg_trigger91)
call EnableTrigger(udg_trigger93)
call TriggerSleepAction(0.14)
call DisableTrigger(udg_trigger93)
call GroupClear(udg_groups05[1])
call GroupClear(udg_groups05[2])
call GroupClear(udg_groups05[4])
set udg_unit21=null
set udg_real10=0.00
call RemoveLocation(udg_locations11[1])
call EnableTrigger(udg_trigger89)
endfunction
function Trig_dbtx5_Func001A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),32.00,AngleBetweenPoints(udg_locations11[1],GetUnitLoc(GetEnumUnit()))))
endfunction
function Trig_dbtx5_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups05[4],function Trig_dbtx5_Func001A)
endfunction
function Trig_YHZZS1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07A'))then
return false
endif
return true
endfunction
function Trig_YHZZS1_Func005C takes nothing returns boolean
if(not(udg_integer44!=1))then
return false
endif
return true
endfunction
function Trig_YHZZS1_Actions takes nothing returns nothing
set udg_unit22=GetTriggerUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddWeatherEffectSaveLast(RectFromCenterSizeBJ(GetUnitLoc(GetTriggerUnit()),1000.00,1000.00),'RAhr')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
set udg_weathereffects01[GetForLoopIndexA()]=GetLastCreatedWeatherEffect()
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_unit22),'A07G',false)
call UnitAddAbility(udg_unit22,'A07G')
if(Trig_YHZZS1_Func005C())then
set udg_integer44=2
else
endif
call EnableTrigger(udg_trigger96)
call EnableTrigger(udg_trigger95)
endfunction
function Trig_YHZZS2_Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_YHZZS2_Func001001003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group17)==false)
endfunction
function Trig_YHZZS2_Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_YHZZS2_Func001001003001001(),Trig_YHZZS2_Func001001003001002())
endfunction
function Trig_YHZZS2_Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit22))==true)
endfunction
function Trig_YHZZS2_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_YHZZS2_Func001001003001(),Trig_YHZZS2_Func001001003002())
endfunction
function Trig_YHZZS2_Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group17)
call UnitDamageTargetBJ(udg_unit22,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit22,true))*I2R(GetUnitAbilityLevel(udg_unit22,'A07A'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_YHZZS2_Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_YHZZS2_Func002001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_YHZZS2_Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_YHZZS2_Func002001003001001(),Trig_YHZZS2_Func002001003001002())
endfunction
function Trig_YHZZS2_Func002001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_unit22))==true)
endfunction
function Trig_YHZZS2_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_YHZZS2_Func002001003001(),Trig_YHZZS2_Func002001003002())
endfunction
function Trig_YHZZS2_Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\NightElf\\Tranquility\\TranquilityTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)+I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit22,true))))
endfunction
function Trig_YHZZS2_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000.00,GetUnitLoc(udg_unit22),Condition(function Trig_YHZZS2_Func001001003)),function Trig_YHZZS2_Func001A)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000.00,GetUnitLoc(udg_unit22),Condition(function Trig_YHZZS2_Func002001003)),function Trig_YHZZS2_Func002A)
endfunction
function Trig_YHZZS3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07A'))then
return false
endif
return true
endfunction
function Trig_YHZZS3_Func007C takes nothing returns boolean
if(not(udg_integer44!=1))then
return false
endif
return true
endfunction
function Trig_YHZZS3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger95)
call UnitRemoveAbility(udg_unit22,'A07G')
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveWeatherEffect(udg_weathereffects01[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_group17)
set udg_unit22=null
if(Trig_YHZZS3_Func007C())then
set udg_integer44=0
else
endif
endfunction
function Trig_csltz2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07D'))then
return false
endif
return true
endfunction
function Trig_csltz2_Func007Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_csltz2_Func007Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_csltz2_Func007Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_csltz2_Func007Func002001003001(),Trig_csltz2_Func007Func002001003002())
endfunction
function Trig_csltz2_Func007Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*35.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_csltz2_Func007Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_csltz2_Func007Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_csltz2_Func007Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_csltz2_Func007Func003001003001(),Trig_csltz2_Func007Func003001003002())
endfunction
function Trig_csltz2_Func007Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_csltz2_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit83,'I05A')==true))then
return false
endif
return true
endfunction
function Trig_csltz2_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound65)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),30.00)
set udg_locations11[6]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nw2w',GetOwningPlayer(GetTriggerUnit()),udg_locations11[6],bj_UNIT_FACING)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations11[6],GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_csltz2_Func007C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_locations11[6],Condition(function Trig_csltz2_Func007Func002001003)),function Trig_csltz2_Func007Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_locations11[6],Condition(function Trig_csltz2_Func007Func003001003)),function Trig_csltz2_Func007Func003A)
endif
call RemoveLocation(udg_locations11[6])
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
endfunction
function Trig_csltz3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A094'))then
return false
endif
return true
endfunction
function Trig_csltz3_Func007001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_csltz3_Func007001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_csltz3_Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_csltz3_Func007001003001(),Trig_csltz3_Func007001003002())
endfunction
function Trig_csltz3_Func007A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*45.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_csltz3_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound65)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),30.00)
set udg_locations11[17]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00M',GetOwningPlayer(GetTriggerUnit()),udg_locations11[17],bj_UNIT_FACING)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations11[17],GetRandomReal(100.00,900.00),GetRandomDirectionDeg()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(900.00,udg_locations11[17],Condition(function Trig_csltz3_Func007001003)),function Trig_csltz3_Func007A)
call RemoveLocation(udg_locations11[17])
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
endfunction
function Trig_wxty1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07C'))then
return false
endif
return true
endfunction
function Trig_wxty1_Actions takes nothing returns nothing
set udg_units27[1]=GetTriggerUnit()
set udg_locations11[5]=GetUnitLoc(udg_units27[1])
set udg_units27[2]=GetSpellTargetUnit()
call SetUnitPathing(udg_units27[2],false)
call EnableTrigger(udg_trigger100)
endfunction
function Trig_wxty2_Func002Func001C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(udg_locations11[5],200.00,200.00),udg_units27[2])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units27[2])==true))then
return true
endif
return false
endfunction
function Trig_wxty2_Func002Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit83,'I059')==true))then
return false
endif
return true
endfunction
function Trig_wxty2_Func002Func014Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_wxty2_Func002Func014Func001001003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group16)==false)
endfunction
function Trig_wxty2_Func002Func014Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_wxty2_Func002Func014Func001001003001001(),Trig_wxty2_Func002Func014Func001001003001002())
endfunction
function Trig_wxty2_Func002Func014Func001001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units27[2])
endfunction
function Trig_wxty2_Func002Func014Func001001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units27[1]))==true)
endfunction
function Trig_wxty2_Func002Func014Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_wxty2_Func002Func014Func001001003002001(),Trig_wxty2_Func002Func014Func001001003002002())
endfunction
function Trig_wxty2_Func002Func014Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_wxty2_Func002Func014Func001001003001(),Trig_wxty2_Func002Func014Func001001003002())
endfunction
function Trig_wxty2_Func002Func014Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group16)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\explosion.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units27[1],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units27[1],true))*I2R(GetUnitAbilityLevelSwapped('A07C',udg_units27[1])))+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units27[1],true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_wxty2_Func002Func014Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_wxty2_Func002Func014Func003001003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group16)==false)
endfunction
function Trig_wxty2_Func002Func014Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_wxty2_Func002Func014Func003001003001001(),Trig_wxty2_Func002Func014Func003001003001002())
endfunction
function Trig_wxty2_Func002Func014Func003001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units27[2])
endfunction
function Trig_wxty2_Func002Func014Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units27[1]))==true)
endfunction
function Trig_wxty2_Func002Func014Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_wxty2_Func002Func014Func003001003002001(),Trig_wxty2_Func002Func014Func003001003002002())
endfunction
function Trig_wxty2_Func002Func014Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_wxty2_Func002Func014Func003001003001(),Trig_wxty2_Func002Func014Func003001003002())
endfunction
function Trig_wxty2_Func002Func014Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group16)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\explosion.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units27[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units27[1],true))*I2R(GetUnitAbilityLevel(udg_units27[1],'A07C'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_wxty2_Func002Func014C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit83,'I059')==true))then
return false
endif
return true
endfunction
function Trig_wxty2_Func002C takes nothing returns boolean
if(not Trig_wxty2_Func002Func001C())then
return false
endif
return true
endfunction
function Trig_wxty2_Actions takes nothing returns nothing
if(Trig_wxty2_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPathing(udg_units27[2],true)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[2]),"war3mapImported\\explosion.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_wxty2_Func002Func006C())then
call UnitDamageTargetBJ(udg_units27[1],udg_units27[2],((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units27[1],true))*I2R(GetUnitAbilityLevelSwapped('A07C',udg_units27[1])))+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units27[1],true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units27[1],udg_units27[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units27[1],true))*I2R(GetUnitAbilityLevel(udg_units27[1],'A07C'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
call RemoveLocation(udg_locations11[5])
call GroupClear(udg_group16)
set udg_units27[1]=null
set udg_units27[2]=null
else
call SetUnitPositionLoc(udg_units27[2],PolarProjectionBJ(GetUnitLoc(udg_units27[2]),35.00,AngleBetweenPoints(GetUnitLoc(udg_units27[2]),udg_locations11[5])))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[2]),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_wxty2_Func002Func014C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units27[2]),Condition(function Trig_wxty2_Func002Func014Func001001003)),function Trig_wxty2_Func002Func014Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units27[2]),Condition(function Trig_wxty2_Func002Func014Func003001003)),function Trig_wxty2_Func002Func014Func003A)
endif
endif
endfunction
function Trig_csltz2_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07E'))then
return false
endif
return true
endfunction
function Trig_csltz2_______u_Func006Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_csltz2_______u_Func006Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_csltz2_______u_Func006Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_csltz2_______u_Func006Func001001003001(),Trig_csltz2_______u_Func006Func001001003002())
endfunction
function Trig_csltz2_______u_Func006Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*25.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_csltz2_______u_Func006Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_csltz2_______u_Func006Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_csltz2_______u_Func006Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_csltz2_______u_Func006Func003001003001(),Trig_csltz2_______u_Func006Func003001003002())
endfunction
function Trig_csltz2_______u_Func006Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*15.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_csltz2_______u_Func006C takes nothing returns boolean
if(not(GetRandomInt(1,2)==1))then
return false
endif
return true
endfunction
function Trig_csltz2_______u_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound65)
set udg_locations11[9]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'nw2w',GetOwningPlayer(GetTriggerUnit()),udg_locations11[9],bj_UNIT_FACING)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations11[9],GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_csltz2_______u_Func006C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_locations11[9],Condition(function Trig_csltz2_______u_Func006Func001001003)),function Trig_csltz2_______u_Func006Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_locations11[9],Condition(function Trig_csltz2_______u_Func006Func003001003)),function Trig_csltz2_______u_Func006Func003A)
endif
call RemoveLocation(udg_locations11[9])
endfunction
function Trig_wxty1_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07F'))then
return false
endif
return true
endfunction
function Trig_wxty1_______u_Actions takes nothing returns nothing
set udg_units27[5]=GetTriggerUnit()
set udg_locations11[11]=GetUnitLoc(udg_units27[5])
set udg_units27[6]=GetSpellTargetUnit()
call SetUnitPathing(udg_units27[6],false)
call EnableTrigger(udg_trigger103)
endfunction
function Trig_wxty2_______u_Func002Func001C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(udg_locations11[11],200.00,200.00),udg_units27[6])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units27[6])==true))then
return true
endif
return false
endfunction
function Trig_wxty2_______u_Func002Func014001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_wxty2_______u_Func002Func014001003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group19)==false)
endfunction
function Trig_wxty2_______u_Func002Func014001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_wxty2_______u_Func002Func014001003001001(),Trig_wxty2_______u_Func002Func014001003001002())
endfunction
function Trig_wxty2_______u_Func002Func014001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units27[6])
endfunction
function Trig_wxty2_______u_Func002Func014001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units27[5]))==true)
endfunction
function Trig_wxty2_______u_Func002Func014001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_wxty2_______u_Func002Func014001003002001(),Trig_wxty2_______u_Func002Func014001003002002())
endfunction
function Trig_wxty2_______u_Func002Func014001003 takes nothing returns boolean
return GetBooleanAnd(Trig_wxty2_______u_Func002Func014001003001(),Trig_wxty2_______u_Func002Func014001003002())
endfunction
function Trig_wxty2_______u_Func002Func014A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group19)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\explosion.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units27[5],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units27[5],true))*20.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_wxty2_______u_Func002C takes nothing returns boolean
if(not Trig_wxty2_______u_Func002Func001C())then
return false
endif
return true
endfunction
function Trig_wxty2_______u_Actions takes nothing returns nothing
if(Trig_wxty2_______u_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitPathing(udg_units27[6],true)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[6]),"war3mapImported\\explosion.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units27[5],udg_units27[6],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units27[5],true))*18.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call RemoveLocation(udg_locations11[11])
call GroupClear(udg_group19)
set udg_units27[5]=null
set udg_units27[6]=null
else
call SetUnitPositionLoc(udg_units27[6],PolarProjectionBJ(GetUnitLoc(udg_units27[6]),35.00,AngleBetweenPoints(GetUnitLoc(udg_units27[6]),udg_locations11[11])))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[6]),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units27[6]),Condition(function Trig_wxty2_______u_Func002Func014001003)),function Trig_wxty2_______u_Func002Func014A)
endif
endfunction
function Trig_PE1_Actions takes nothing returns nothing
call IssueTargetOrder(udg_unit80,"thunderbolt",GetTriggerUnit())
endfunction
function Trig_PE2_Func001C takes nothing returns boolean
if(not(IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(udg_unit80))==true))then
return false
endif
return true
endfunction
function Trig_PE2_Actions takes nothing returns nothing
if(Trig_PE2_Func001C())then
call IssuePointOrderLoc(udg_unit80,"clusterrockets",GetUnitLoc(GetTriggerUnit()))
else
endif
endfunction
function Trig_tlzs_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08M'))then
return false
endif
return true
endfunction
function Trig_tlzs_Func004A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_tlzs_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'H001',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetOrderTargetUnit()))
call ModifyHeroStat(bj_HEROSTAT_STR,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,150000)
call UnitAddAbility(GetLastCreatedUnit(),'Aloc')
call SetUnitVertexColor(GetLastCreatedUnit(),255,100,0,255)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups07[1])
call IssueTargetOrder(GetLastCreatedUnit(),"attack",GetSpellTargetUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.00)
call ForGroupBJ(udg_groups07[1],function Trig_tlzs_Func004A)
call GroupClear(udg_groups07[1])
endfunction
function Trig_axiuluoq1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08S'))then
return false
endif
return true
endfunction
function Trig_axiuluoq1_Actions takes nothing returns nothing
set udg_units35[7]=GetTriggerUnit()
set udg_units35[8]=GetSpellTargetUnit()
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUTIN,2,"ReplaceableTextures\\CameraMasks\\SpecialSplatMask.blp",0,0,0,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units35[8]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call EnableTrigger(udg_trigger108)
call TriggerSleepAction(0.12)
call DisableTrigger(udg_trigger108)
call UnitDamageTargetBJ(udg_units35[7],udg_units35[8],80000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
set udg_units35[7]=null
set udg_units35[8]=null
endfunction
function Trig_axiuluoq2_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units35[8],PolarProjectionBJ(GetUnitLoc(udg_units35[8]),27.00,AngleBetweenPoints(GetUnitLoc(udg_units35[7]),GetUnitLoc(udg_units35[8]))))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units35[8]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_jueduixishou_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08V'))then
return false
endif
return true
endfunction
function Trig_jueduixishou_Func013001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_jueduixishou_Func013001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_units35[9]))==true)
endfunction
function Trig_jueduixishou_Func013001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jueduixishou_Func013001003001(),Trig_jueduixishou_Func013001003002())
endfunction
function Trig_jueduixishou_Func013A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups07[2])
call PauseUnit(GetEnumUnit(),true)
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function Trig_jueduixishou_Func015A takes nothing returns nothing
call PauseUnit(GetEnumUnit(),false)
call SetUnitInvulnerable(GetEnumUnit(),false)
endfunction
function Trig_jueduixishou_Actions takes nothing returns nothing
set udg_units35[9]=GetTriggerUnit()
call PauseUnitBJ(true,GetTriggerUnit())
call SetUnitAnimation(GetTriggerUnit(),"spell")
call UnitAddAbility(GetTriggerUnit(),'Amrf')
call SetUnitFlyHeight(GetTriggerUnit(),350.00,200.00)
call CreateNUnitsAtLoc(1,'e01P',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call SetUnitAnimation(udg_units35[10],"Stand ")
set udg_units35[10]=GetLastCreatedUnit()
call UnitApplyTimedLife(udg_units35[10],'BHwe',15.00)
set udg_units35[10]=null
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_jueduixishou_Func013001003)),function Trig_jueduixishou_Func013A)
call TriggerSleepAction(15.00)
call ForGroupBJ(udg_groups07[2],function Trig_jueduixishou_Func015A)
call SetUnitFlyHeight(GetTriggerUnit(),0.00,1000.00)
call GroupClear(udg_groups07[2])
call TriggerSleepAction(1.00)
call UnitRemoveAbility(udg_units35[9],'Amrf')
call PauseUnitBJ(false,udg_units35[9])
set udg_units35[9]=null
endfunction
function Trig_ZZqilin1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08E'))then
return false
endif
return true
endfunction
function Trig_ZZqilin1_Func008Func001Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ZZqilin1_Func008Func001Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit28))==true)
endfunction
function Trig_ZZqilin1_Func008Func001Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ZZqilin1_Func008Func001Func001001003001(),Trig_ZZqilin1_Func008Func001Func001001003002())
endfunction
function Trig_ZZqilin1_Func008Func001Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group28)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit28,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit28,true))*140.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ZZqilin1_Func008Func001Func004001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ZZqilin1_Func008Func001Func004001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit28))==true)
endfunction
function Trig_ZZqilin1_Func008Func001Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ZZqilin1_Func008Func001Func004001003001(),Trig_ZZqilin1_Func008Func001Func004001003002())
endfunction
function Trig_ZZqilin1_Func008Func001Func004A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group28)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit28,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit28,true))*120.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ZZqilin1_Func008Func001C takes nothing returns boolean
if(not(udg_integer44==2))then
return false
endif
if(not(DistanceBetweenPoints(GetUnitLoc(udg_unit58),GetUnitLoc(udg_unit83))<=500.00))then
return false
endif
return true
endfunction
function Trig_ZZqilin1_Func008Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ZZqilin1_Func008Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit28))==true)
endfunction
function Trig_ZZqilin1_Func008Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ZZqilin1_Func008Func003001003001(),Trig_ZZqilin1_Func008Func003001003002())
endfunction
function Trig_ZZqilin1_Func008Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group28)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit28,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit28,true))*160.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ZZqilin1_Func008C takes nothing returns boolean
if(not(udg_integer44==1))then
return false
endif
return true
endfunction
function Trig_ZZqilin1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound28)
set udg_unit28=GetTriggerUnit()
set udg_unit29=GetSpellTargetUnit()
set udg_location28=GetUnitLoc(udg_unit29)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e01Y',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location28,250.00,(45.00*I2R(GetForLoopIndexA()))),udg_location28)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00B',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location28,GetRandomReal(0.00,100.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(0.80,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_ZZqilin1_Func008C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location28,Condition(function Trig_ZZqilin1_Func008Func003001003)),function Trig_ZZqilin1_Func008Func003A)
else
if(Trig_ZZqilin1_Func008Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_location28,Condition(function Trig_ZZqilin1_Func008Func001Func001001003)),function Trig_ZZqilin1_Func008Func001Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_location28,Condition(function Trig_ZZqilin1_Func008Func001Func004001003)),function Trig_ZZqilin1_Func008Func001Func004A)
endif
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_location28,250.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_location28,400.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger111)
call TriggerSleepAction(0.14)
call DisableTrigger(udg_trigger111)
call GroupClear(udg_group28)
call RemoveLocation(udg_location28)
set udg_unit28=null
set udg_unit29=null
endfunction
function Trig_zzqilin3_Func001A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),32.00,AngleBetweenPoints(udg_location28,GetUnitLoc(GetEnumUnit()))))
endfunction
function Trig_zzqilin3_Actions takes nothing returns nothing
call ForGroupBJ(udg_group28,function Trig_zzqilin3_Func001A)
endfunction
function Trig_jiuweiwanzi1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AOs2'))then
return false
endif
return true
endfunction
function Trig_jiuweiwanzi1_Func015A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_jiuweiwanzi1_Func024001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jiuweiwanzi1_Func024001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units36[1]))==true)
endfunction
function Trig_jiuweiwanzi1_Func024001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_jiuweiwanzi1_Func024001003001001(),Trig_jiuweiwanzi1_Func024001003001002())
endfunction
function Trig_jiuweiwanzi1_Func024001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups08[2])==false)
endfunction
function Trig_jiuweiwanzi1_Func024001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jiuweiwanzi1_Func024001003001(),Trig_jiuweiwanzi1_Func024001003002())
endfunction
function Trig_jiuweiwanzi1_Func024A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups08[2])
call UnitDamageTargetBJ(udg_units36[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units36[1],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jiuweiwanzi1_Actions takes nothing returns nothing
set udg_real19=0.00
set udg_locations14[1]=GetSpellTargetLoc()
set udg_units36[1]=GetTriggerUnit()
call PauseUnit(GetTriggerUnit(),true)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),10.00)
call CreateNUnitsAtLocFacingLocBJ(1,'n008',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),udg_locations14[1])
set udg_units36[2]=GetLastCreatedUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()),180.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitAnimation(udg_units36[2],"spell two")
call ShowUnitHide(udg_units36[1])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'ewsp',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(udg_units36[2]),90.00,AngleBetweenPoints(GetUnitLoc(udg_units36[2]),udg_locations14[1])),bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups08[1])
call UnitAddAbility(GetLastCreatedUnit(),'Aloc')
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger113)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger113)
call ForGroupBJ(udg_groups08[1],function Trig_jiuweiwanzi1_Func015A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01W',GetOwningPlayer(udg_units36[2]),PolarProjectionBJ(GetUnitLoc(udg_units36[2]),30.00,GetUnitFacing(udg_units36[2])),GetUnitFacing(udg_units36[2]))
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'e01W',GetOwningPlayer(udg_units36[2]),PolarProjectionBJ(GetUnitLoc(udg_units36[2]),30.00,GetUnitFacing(udg_units36[2])),GetUnitFacing(udg_units36[2]))
set udg_units36[4]=GetLastCreatedUnit()
call CreateNUnitsAtLoc(1,'ewsp',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(udg_units36[2]),400.00,AngleBetweenPoints(GetUnitLoc(udg_units36[2]),udg_locations14[1])),GetUnitFacing(udg_units36[2]))
set udg_units36[3]=GetLastCreatedUnit()
call SetUnitPathing(udg_units36[3],false)
call ShowUnitHide(udg_units36[3])
call TriggerSleepAction(0.20)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units36[3]),Condition(function Trig_jiuweiwanzi1_Func024001003)),function Trig_jiuweiwanzi1_Func024A)
call EnableTrigger(udg_trigger114)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger114)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units36[1]))
call RemoveUnit(udg_units36[4])
call RemoveUnit(udg_units36[3])
call SetUnitPositionLocFacingBJ(udg_units36[1],GetUnitLoc(udg_units36[2]),GetUnitFacing(udg_units36[2]))
call RemoveUnit(udg_units36[2])
call SetUnitAnimation(udg_units36[2],"stand")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units36[1]),180.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.50)
call ShowUnitShow(udg_units36[1])
call SelectUnitForPlayerSingle(udg_units36[1],GetOwningPlayer(udg_units36[1]))
call PauseUnit(udg_units36[1],false)
call GroupClear(udg_groups08[1])
call GroupClear(udg_groups08[2])
call RemoveLocation(udg_locations14[1])
call RemoveLocation(udg_locations14[2])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units36[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_jiuweiwanzi2_Func002A takes nothing returns nothing
call SetUnitScalePercent(GetEnumUnit(),udg_real19,udg_real19,udg_real19)
endfunction
function Trig_jiuweiwanzi2_Actions takes nothing returns nothing
set udg_real19=(udg_real19+2.00)
call ForGroupBJ(udg_groups08[1],function Trig_jiuweiwanzi2_Func002A)
endfunction
function Trig_jiuweiwanzi3_Func002C takes nothing returns boolean
if(not(GetRandomInt(1,5)==2))then
return false
endif
return true
endfunction
function Trig_jiuweiwanzi3_Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jiuweiwanzi3_Func003001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units36[1]))==true)
endfunction
function Trig_jiuweiwanzi3_Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_jiuweiwanzi3_Func003001003001001(),Trig_jiuweiwanzi3_Func003001003001002())
endfunction
function Trig_jiuweiwanzi3_Func003001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups08[2])==false)
endfunction
function Trig_jiuweiwanzi3_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jiuweiwanzi3_Func003001003001(),Trig_jiuweiwanzi3_Func003001003002())
endfunction
function Trig_jiuweiwanzi3_Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups08[2])
call UnitDamageTargetBJ(udg_units36[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units36[1],true))*50.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jiuweiwanzi3_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units36[3],PolarProjectionBJ(GetUnitLoc(udg_units36[3]),27.00,GetUnitFacing(udg_units36[4])))
if(Trig_jiuweiwanzi3_Func002C())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units36[3]),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units36[3]),Condition(function Trig_jiuweiwanzi3_Func003001003)),function Trig_jiuweiwanzi3_Func003A)
endfunction
function Trig_hlyd_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01B'))then
return false
endif
return true
endfunction
function Trig_hlyd_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger116)
call CreateNUnitsAtLoc(1,'u007',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())),GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
call TriggerSleepAction(0.60)
call DisableTrigger(udg_trigger116)
call GroupClear(udg_group13)
endfunction
function Trig_hlyd2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='u007'))then
return false
endif
return true
endfunction
function Trig_hlyd2_Func006001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hlyd2_Func006001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetLastCreatedUnit()))==true)
endfunction
function Trig_hlyd2_Func006001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2_Func006001003001001(),Trig_hlyd2_Func006001003001002())
endfunction
function Trig_hlyd2_Func006001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group13)==false)
endfunction
function Trig_hlyd2_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2_Func006001003001(),Trig_hlyd2_Func006001003002())
endfunction
function Trig_hlyd2_Func006A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group13)
call UnitDamageTargetBJ(udg_unit57,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit57,true))*I2R(GetUnitAbilityLevel(udg_unit57,'A01B'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hlyd2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'u007',GetOwningPlayer(GetDyingUnit()),PolarProjectionBJ(GetUnitLoc(GetDyingUnit()),200.00,GetUnitFacing(GetDyingUnit())),GetUnitFacing(GetDyingUnit()))
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_hlyd2_Func006001003)),function Trig_hlyd2_Func006A)
endfunction
function Trig_lxslj_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00B'))then
return false
endif
return true
endfunction
function Trig_lxslj_Func004C takes nothing returns boolean
if(not(udg_integer30==1))then
return false
endif
return true
endfunction
function Trig_lxslj_Actions takes nothing returns nothing
set udg_units26[1]=GetTriggerUnit()
set udg_units26[5]=GetSpellTargetUnit()
call PlaySoundBJ(udg_sound30)
if(Trig_lxslj_Func004C())then
call CreateTextTagLocBJ("Sennin Mode: Fuuton Rasenshuriken!",GetUnitLoc(GetTriggerUnit()),0,10.50,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespan(GetLastCreatedTextTag(),5.00)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call UnitAddAbilityBJ('A007',udg_units26[1])
call PauseUnitBJ(true,udg_units26[1])
call SetUnitAnimation(udg_units26[1],"spell two")
call CreateNUnitsAtLocFacingLocBJ(1,'o002',GetOwningPlayer(udg_units26[1]),PolarProjectionBJ(GetUnitLoc(udg_units26[1]),130.00,(GetUnitFacing(udg_units26[1])-80.00)),GetUnitLoc(udg_units26[1]))
set udg_units26[3]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(udg_units26[3],"spell three")
call CreateNUnitsAtLocFacingLocBJ(1,'o002',GetOwningPlayer(udg_units26[1]),PolarProjectionBJ(GetUnitLoc(udg_units26[1]),130.00,(GetUnitFacing(udg_units26[1])-120.00)),GetUnitLoc(udg_units26[1]))
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set udg_units26[4]=GetLastCreatedUnit()
call SetUnitAnimation(udg_units26[4],"spell three")
call TriggerSleepAction(0.70)
call SetUnitInvulnerable(GetTriggerUnit(),false)
call RemoveUnit(udg_units26[3])
call RemoveUnit(udg_units26[4])
set udg_units26[3]=null
set udg_units26[4]=null
call SetUnitAnimation(udg_units26[1],"stand throw")
call UnitRemoveAbilityBJ('A007',udg_units26[1])
call CreateNUnitsAtLocFacingLocBJ(1,'u006',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(udg_units26[5]))
set udg_units26[3]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_units26[3],600.00)
call SetUnitPathing(udg_units26[3],false)
call SetUnitAnimation(udg_units26[3],"stand")
call PauseUnitBJ(false,udg_units26[1])
call EnableTrigger(udg_trigger119)
else
call CreateTextTagLocBJ("Fuuton: Rasenshuriken!",GetUnitLoc(GetTriggerUnit()),0,10.50,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespan(GetLastCreatedTextTag(),5)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
set udg_location19=GetUnitLoc(udg_units26[1])
set udg_location20=GetUnitLoc(udg_units26[5])
call SetUnitInvulnerable(GetTriggerUnit(),true)
call SetUnitPathing(udg_units26[1],false)
call UnitAddAbilityBJ('A007',udg_units26[1])
call SetUnitTimeScalePercent(udg_units26[1],200.00)
call PauseUnitBJ(true,udg_units26[1])
call SetUnitAnimation(udg_units26[1],"spell two")
call CreateNUnitsAtLocFacingLocBJ(1,'o002',GetOwningPlayer(udg_units26[1]),PolarProjectionBJ(GetUnitLoc(udg_units26[1]),130.00,(GetUnitFacing(udg_units26[1])-80.00)),GetUnitLoc(udg_units26[1]))
set udg_units26[3]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(udg_units26[3],"spell three")
call CreateNUnitsAtLocFacingLocBJ(1,'o002',GetOwningPlayer(udg_units26[1]),PolarProjectionBJ(GetUnitLoc(udg_units26[1]),130.00,(GetUnitFacing(udg_units26[1])-120.00)),GetUnitLoc(udg_units26[1]))
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set udg_units26[4]=GetLastCreatedUnit()
call SetUnitAnimation(udg_units26[4],"spell three")
call TriggerSleepAction(1.00)
call RemoveUnit(udg_units26[3])
call RemoveUnit(udg_units26[4])
call SetUnitAnimation(udg_units26[1],"stand Alternate")
call TriggerSleepAction(0.30)
call SetUnitAnimation(udg_units26[1],"Spell one")
call EnableTrigger(udg_trigger118)
endif
endfunction
function Trig_lxslj2_Func001Func001C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(udg_location20,200.00,200.00),udg_units26[1])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units26[1])==true))then
return true
endif
return false
endfunction
function Trig_lxslj2_Func001Func013Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_lxslj2_Func001Func013Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units26[1]))==true)
endfunction
function Trig_lxslj2_Func001Func013Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lxslj2_Func001Func013Func002001003001(),Trig_lxslj2_Func001Func013Func002001003002())
endfunction
function Trig_lxslj2_Func001Func013Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units26[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units26[1],true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_lxslj2_Func001Func013Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_lxslj2_Func001Func013Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units26[1]))==true)
endfunction
function Trig_lxslj2_Func001Func013Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lxslj2_Func001Func013Func003001003001(),Trig_lxslj2_Func001Func013Func003001003002())
endfunction
function Trig_lxslj2_Func001Func013Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units26[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units26[1],true))*25.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_lxslj2_Func001Func013C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit57,'I018')==true))then
return false
endif
return true
endfunction
function Trig_lxslj2_Func001C takes nothing returns boolean
if(not Trig_lxslj2_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_lxslj2_Actions takes nothing returns nothing
if(Trig_lxslj2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScalePercent(udg_units26[1],100.00)
call SetUnitAnimation(udg_units26[1],"Spell throw")
call TriggerSleepAction(0.30)
call UnitRemoveAbilityBJ('A007',udg_units26[1])
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units26[1]),50.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units26[1]),udg_location20,0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e018',GetOwningPlayer(udg_units26[1]),udg_location20,GetRandomDirectionDeg())
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_lxslj2_Func001Func013C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(550.00,udg_location20,Condition(function Trig_lxslj2_Func001Func013Func002001003)),function Trig_lxslj2_Func001Func013Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(550.00,udg_location20,Condition(function Trig_lxslj2_Func001Func013Func003001003)),function Trig_lxslj2_Func001Func013Func003A)
endif
call TriggerSleepAction(0.05)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_location20,GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLocFacingLocBJ(1,'e004',GetOwningPlayer(udg_units26[1]),udg_location20,GetUnitLoc(udg_units26[1]))
set udg_units26[2]=GetLastCreatedUnit()
call TerrainDeformationCraterBJ(3.00,false,udg_location20,1000.00,100.00)
call SetUnitAnimation(udg_units26[1],"Death")
call SetUnitInvulnerable(udg_units26[1],false)
call SetUnitPathing(udg_units26[1],true)
call PauseUnitBJ(false,udg_units26[1])
call RemoveLocation(udg_location19)
call RemoveLocation(udg_location20)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units26[1]))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units26[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call SetUnitPositionLocFacingLocBJ(udg_units26[1],PolarProjectionBJ(GetUnitLoc(udg_units26[1]),15.00,GetUnitFacing(udg_units26[1])),udg_location20)
call SetUnitAnimation(udg_units26[1],"spell one")
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units26[1]),GetUnitLoc(udg_units26[1]),0)
endif
endfunction
function Trig_lxslj4_Func001Func001C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(GetUnitLoc(udg_units26[5]),200.00,200.00),udg_units26[3])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units26[5])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units26[1])==true))then
return true
endif
return false
endfunction
function Trig_lxslj4_Func001Func007Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_lxslj4_Func001Func007Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units26[1]))==true)
endfunction
function Trig_lxslj4_Func001Func007Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lxslj4_Func001Func007Func002001003001(),Trig_lxslj4_Func001Func007Func002001003002())
endfunction
function Trig_lxslj4_Func001Func007Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units26[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units26[1],true))*90.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_lxslj4_Func001Func007Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_lxslj4_Func001Func007Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units26[1]))==true)
endfunction
function Trig_lxslj4_Func001Func007Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lxslj4_Func001Func007Func003001003001(),Trig_lxslj4_Func001Func007Func003001003002())
endfunction
function Trig_lxslj4_Func001Func007Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units26[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units26[1],true))*75.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_lxslj4_Func001Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit57,'I018')==true))then
return false
endif
return true
endfunction
function Trig_lxslj4_Func001C takes nothing returns boolean
if(not Trig_lxslj4_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_lxslj4_Actions takes nothing returns nothing
if(Trig_lxslj4_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units26[1]),50.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units26[1]),GetUnitLoc(udg_units26[3]),0)
call ShowUnitHide(udg_units26[3])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e018',GetOwningPlayer(udg_units26[1]),GetUnitLoc(udg_units26[3]),GetRandomDirectionDeg())
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_lxslj4_Func001Func007C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(550.00,GetUnitLoc(udg_units26[3]),Condition(function Trig_lxslj4_Func001Func007Func002001003)),function Trig_lxslj4_Func001Func007Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(550.00,GetUnitLoc(udg_units26[3]),Condition(function Trig_lxslj4_Func001Func007Func003001003)),function Trig_lxslj4_Func001Func007Func003A)
endif
call TriggerSleepAction(0.05)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units26[3]),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TerrainDeformationCraterBJ(3.00,false,udg_location20,1000.00,100.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units26[1]))
call RemoveUnit(udg_units26[3])
set udg_units26[1]=null
set udg_units26[5]=null
set udg_units26[3]=null
else
call SetUnitPositionLocFacingLocBJ(udg_units26[3],PolarProjectionBJ(GetUnitLoc(udg_units26[3]),27.00,AngleBetweenPoints(GetUnitLoc(udg_units26[3]),GetUnitLoc(udg_units26[5]))),GetUnitLoc(udg_units26[5]))
endif
endfunction
function Trig_XF_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A008'))then
return false
endif
return true
endfunction
function Trig_XF_Actions takes nothing returns nothing
set udg_integer30=1
call UnitAddAbility(GetTriggerUnit(),'A00P')
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A00P',false)
call EnableTrigger(udg_trigger121)
call TriggerSleepAction(40.00)
call DisableTrigger(udg_trigger121)
call UnitRemoveAbility(GetTriggerUnit(),'A00P')
set udg_integer30=0
endfunction
function Trig_xf2_Conditions takes nothing returns boolean
if(not(IsUnitPausedBJ(udg_unit57)==false))then
return false
endif
return true
endfunction
function Trig_xf2_Actions takes nothing returns nothing
call SetUnitAnimation(udg_unit57,"stand Alternate")
endfunction
function Trig_fs_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A004'))then
return false
endif
return true
endfunction
function Trig_fs_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound05)
endfunction
function Trig_luoxuanwanMR1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A003'))then
return false
endif
return true
endfunction
function Trig_luoxuanwanMR1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound31)
set udg_units01[1]=GetTriggerUnit()
set udg_units01[2]=GetSpellTargetUnit()
call TriggerSleepAction(0.03)
call PauseUnitBJ(true,udg_units01[1])
call UnitAddAbility(GetTriggerUnit(),'A009')
call CreateNUnitsAtLocFacingLocBJ(1,'o002',GetOwningPlayer(udg_units01[1]),PolarProjectionBJ(GetUnitLoc(udg_units01[1]),100.00,(GetUnitFacing(udg_units01[1])-90.00)),GetUnitLoc(udg_units01[1]))
call SetUnitAnimation(GetLastCreatedUnit(),"spell three")
call SetUnitAnimation(udg_units01[1],"spell two")
call UnitApplyTimedLifeBJ(0.50,'BTLF',GetLastCreatedUnit())
call TriggerSleepAction(0.50)
call CreateNUnitsAtLocFacingLocBJ(1,'o002',GetOwningPlayer(udg_units01[1]),GetUnitLoc(udg_units01[1]),GetUnitLoc(udg_units01[2]))
set udg_units01[3]=GetLastCreatedUnit()
call UnitAddAbility(GetLastCreatedUnit(),'A009')
call ShowUnitHide(udg_units01[1])
call UnitRemoveAbility(GetTriggerUnit(),'A009')
call SetUnitTimeScalePercent(udg_units01[3],0.00)
call SetUnitAnimation(udg_units01[3],"spell one")
call EnableTrigger(udg_trigger124)
endfunction
function Trig_luoxuanwanMR2_Func001Func001C takes nothing returns boolean
if((IsUnitInGroup(udg_units01[3],GetUnitsInRangeOfLocAll(200.00,GetUnitLoc(udg_units01[2])))==true))then
return true
endif
if((IsUnitDeadBJ(udg_units01[2])==true))then
return true
endif
if((DistanceBetweenPoints(GetUnitLoc(udg_units01[1]),GetUnitLoc(udg_units01[2]))>800.00))then
return true
endif
return false
endfunction
function Trig_luoxuanwanMR2_Func001Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units01[1],'I012')==true))then
return false
endif
return true
endfunction
function Trig_luoxuanwanMR2_Func001C takes nothing returns boolean
if(not Trig_luoxuanwanMR2_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_luoxuanwanMR2_Actions takes nothing returns nothing
if(Trig_luoxuanwanMR2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_units01[3],"spell throw")
call SetUnitPositionLocFacingBJ(udg_units01[1],GetUnitLoc(udg_units01[3]),GetUnitFacing(udg_units01[3]))
call ShowUnitShow(udg_units01[1])
call QueueUnitAnimation(udg_units01[1],"spell throw")
call SelectUnitForPlayerSingle(udg_units01[1],GetOwningPlayer(udg_units01[1]))
call PauseUnitBJ(false,udg_units01[1])
call ShowUnitHide(udg_units01[3])
if(Trig_luoxuanwanMR2_Func001Func010C())then
call UnitDamageTargetBJ(udg_units01[1],udg_units01[2],((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units01[1],true))*I2R(GetUnitAbilityLevel(udg_units01[1],'A003')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units01[1],true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units01[1],udg_units01[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units01[1],true))*I2R(GetUnitAbilityLevelSwapped('A003',udg_units01[1]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units01[1]),"Abilities\\Weapons\\RockBoltMissile\\RockBoltMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units01[2]),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call EnableTrigger(udg_trigger125)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger125)
call RemoveUnit(udg_units01[3])
else
call SetUnitPositionLocFacingLocBJ(udg_units01[3],PolarProjectionBJ(GetUnitLoc(udg_units01[3]),40.00,AngleBetweenPoints(GetUnitLoc(udg_units01[3]),GetUnitLoc(udg_units01[2]))),GetUnitLoc(udg_units01[2]))
endif
endfunction
function Trig_luoxuanwanMR3_Func001Func001001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_luoxuanwanMR3_Func001Func001001001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units01[1]))==true)
endfunction
function Trig_luoxuanwanMR3_Func001Func001001001003002002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units01[2])
endfunction
function Trig_luoxuanwanMR3_Func001Func001001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_luoxuanwanMR3_Func001Func001001001003002001(),Trig_luoxuanwanMR3_Func001Func001001001003002002())
endfunction
function Trig_luoxuanwanMR3_Func001Func001001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_luoxuanwanMR3_Func001Func001001001003001(),Trig_luoxuanwanMR3_Func001Func001001001003002())
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func001001003001002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units01[2])
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_luoxuanwanMR3_Func001Func004Func001001003001001(),Trig_luoxuanwanMR3_Func001Func004Func001001003001002())
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func001001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func001001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units01[1]))==true)
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_luoxuanwanMR3_Func001Func004Func001001003002001(),Trig_luoxuanwanMR3_Func001Func004Func001001003002002())
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_luoxuanwanMR3_Func001Func004Func001001003001(),Trig_luoxuanwanMR3_Func001Func004Func001001003002())
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units01[1],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units01[1],true))*I2R(GetUnitAbilityLevel(udg_units01[1],'A003')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units01[1],true))*10.00)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func002001003001002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units01[2])
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_luoxuanwanMR3_Func001Func004Func002001003001001(),Trig_luoxuanwanMR3_Func001Func004Func002001003001002())
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func002001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units01[1]))==true)
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_luoxuanwanMR3_Func001Func004Func002001003002001(),Trig_luoxuanwanMR3_Func001Func004Func002001003002002())
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_luoxuanwanMR3_Func001Func004Func002001003001(),Trig_luoxuanwanMR3_Func001Func004Func002001003002())
endfunction
function Trig_luoxuanwanMR3_Func001Func004Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units01[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units01[1],true))*I2R(GetUnitAbilityLevel(udg_units01[1],'A003'))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_luoxuanwanMR3_Func001Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units01[1],'I012')==true))then
return false
endif
return true
endfunction
function Trig_luoxuanwanMR3_Func001C takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(udg_units01[2]),Condition(function Trig_luoxuanwanMR3_Func001Func001001001003)))==true))then
return false
endif
if(not(IsTerrainPathableBJ(GetUnitLoc(udg_units01[2]),PATHING_TYPE_WALKABILITY)!=true))then
return false
endif
return true
endfunction
function Trig_luoxuanwanMR3_Actions takes nothing returns nothing
if(Trig_luoxuanwanMR3_Func001C())then
call SetUnitPositionLocFacingBJ(udg_units01[2],PolarProjectionBJ(GetUnitLoc(udg_units01[2]),32.00,GetUnitFacing(udg_units01[3])),(GetUnitFacing(udg_units01[2])+20.00))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units01[2]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DisableTrigger(GetTriggeringTrigger())
if(Trig_luoxuanwanMR3_Func001Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units01[2]),Condition(function Trig_luoxuanwanMR3_Func001Func004Func001001003)),function Trig_luoxuanwanMR3_Func001Func004Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units01[2]),Condition(function Trig_luoxuanwanMR3_Func001Func004Func002001003)),function Trig_luoxuanwanMR3_Func001Func004Func002A)
endif
endif
endfunction
function Trig_bgpsj1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A088'))then
return false
endif
return true
endfunction
function Trig_bgpsj1_Actions takes nothing returns nothing
set udg_units37[1]=GetTriggerUnit()
set udg_units37[2]=GetSpellTargetUnit()
call PauseUnit(udg_units37[1],true)
call PauseUnit(udg_units37[2],true)
call PlaySoundBJ(udg_sound29)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_units37[1]),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)+1000.00),2.00)
call CreateNUnitsAtLoc(1,'n00E',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),100.00)
set udg_units02[3]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(1.40,'BTLF',GetLastCreatedUnit())
call TriggerExecute(udg_trigger133)
call SetUnitTimeScalePercent(udg_units37[1],70.00)
call SetUnitAnimation(udg_units37[1],"Spell Slam")
call TriggerSleepAction(1.00)
call SetUnitAnimation(udg_units37[1],"Spell swim")
call TriggerSleepAction(0.70)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units37[2]),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units37[1]),100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01X',GetOwningPlayer(udg_units37[1]),PolarProjectionBJ(GetUnitLoc(udg_units37[1]),70.00,GetUnitFacing(udg_units37[1])),GetUnitFacing(udg_units37[1]))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),40.00)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'h00U',GetOwningPlayer(udg_units37[1]),PolarProjectionBJ(GetUnitLoc(udg_units37[1]),50.00,GetUnitFacing(udg_units37[1])),GetUnitLoc(udg_units37[2]))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),10.00)
call UnitApplyTimedLifeBJ(2.50,'BHwe',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLocFacingLocBJ(1,'h00U',GetOwningPlayer(udg_units37[1]),PolarProjectionBJ(GetUnitLoc(udg_units37[1]),50.00,GetUnitFacing(udg_units37[1])),GetUnitLoc(udg_units37[2]))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),10.00)
set udg_units37[4]=GetLastCreatedUnit()
call CreateNUnitsAtLoc(1,'ewsp',GetOwningPlayer(udg_units37[1]),PolarProjectionBJ(GetUnitLoc(udg_units37[1]),100.00,GetUnitFacing(udg_units37[1])),GetUnitFacing(udg_units37[1]))
set udg_units37[3]=GetLastCreatedUnit()
call SetUnitPathing(udg_units37[3],false)
call ShowUnitHide(udg_units37[3])
call SetCameraFieldForPlayer(GetOwningPlayer(udg_units37[1]),CAMERA_FIELD_TARGET_DISTANCE,(GetCameraField(CAMERA_FIELD_TARGET_DISTANCE)-1000.00),2.00)
call EnableTrigger(udg_trigger127)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger127)
call RemoveUnit(udg_units37[4])
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units37[1]))
call RemoveUnit(udg_units37[3])
set udg_units37[3]=null
set udg_units37[4]=null
call UnitDamageTargetBJ(udg_units37[1],udg_units37[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units37[1],true))*150.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call SetUnitAnimation(udg_units37[2],"Death")
call PauseUnitBJ(false,udg_units37[1])
call SetUnitTimeScalePercent(udg_units37[1],100.00)
set udg_units37[1]=null
call GroupClear(udg_group27)
call TriggerSleepAction(1.00)
call PauseUnitBJ(false,udg_units37[2])
set udg_units37[2]=null
endfunction
function Trig_bgpsj2_Func001C takes nothing returns boolean
if(not(GetRandomInt(1,10)==2))then
return false
endif
return true
endfunction
function Trig_bgpsj2_Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_bgpsj2_Func003001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units37[1]))==true)
endfunction
function Trig_bgpsj2_Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_bgpsj2_Func003001003001001(),Trig_bgpsj2_Func003001003001002())
endfunction
function Trig_bgpsj2_Func003001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units37[2])
endfunction
function Trig_bgpsj2_Func003001003002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group27)==false)
endfunction
function Trig_bgpsj2_Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_bgpsj2_Func003001003002001(),Trig_bgpsj2_Func003001003002002())
endfunction
function Trig_bgpsj2_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_bgpsj2_Func003001003001(),Trig_bgpsj2_Func003001003002())
endfunction
function Trig_bgpsj2_Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group27)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units37[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units37[1],true))*70.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_bgpsj2_Actions takes nothing returns nothing
if(Trig_bgpsj2_Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units37[2]),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
call SetUnitPositionLoc(udg_units37[3],PolarProjectionBJ(GetUnitLoc(udg_units37[3]),32.00,GetUnitFacing(udg_units37[4])))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(280.00,GetUnitLoc(udg_units37[3]),Condition(function Trig_bgpsj2_Func003001003)),function Trig_bgpsj2_Func003A)
endfunction
function Trig_bgkz1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00E'))then
return false
endif
return true
endfunction
function Trig_bgkz1_Actions takes nothing returns nothing
set udg_units10[1]=GetSpellAbilityUnit()
set udg_locations02[3]=GetUnitLoc(udg_units10[1])
set udg_locations02[4]=GetSpellTargetLoc()
set udg_real02=AngleBetweenPoints(udg_locations02[3],udg_locations02[4])
set udg_group04=CreateGroup()
call CreateNUnitsAtLoc(1,'e004',GetOwningPlayer(udg_units10[1]),udg_locations02[3],udg_real02)
set udg_units10[2]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(1.00,'BTLF',udg_units10[2])
call RemoveLocation(udg_locations02[4])
call EnableTrigger(udg_trigger129)
call TriggerSleepAction(0.33)
call DisableTrigger(udg_trigger129)
set udg_integer11=0
call RemoveLocation(udg_locations02[3])
call GroupClear(udg_group04)
set udg_units10[1]=null
set udg_units10[2]=null
endfunction
function Trig_bgkz2_Func004001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_bgkz2_Func004001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units10[1]))==true)
endfunction
function Trig_bgkz2_Func004001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_bgkz2_Func004001003001001(),Trig_bgkz2_Func004001003001002())
endfunction
function Trig_bgkz2_Func004001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group04)==false)
endfunction
function Trig_bgkz2_Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_bgkz2_Func004001003001(),Trig_bgkz2_Func004001003002())
endfunction
function Trig_bgkz2_Func004Func004C takes nothing returns boolean
if(not(GetUnitLevel(udg_unit62)>=130))then
return false
endif
return true
endfunction
function Trig_bgkz2_Func004A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group04)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_bgkz2_Func004Func004C())then
call UnitDamageTargetBJ(udg_units10[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units10[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units10[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units10[1],true))*I2R(GetUnitAbilityLevelSwapped('A00E',udg_units10[1]))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_bgkz2_Actions takes nothing returns nothing
set udg_integer11=(udg_integer11+1)
set udg_locations02[4]=PolarProjectionBJ(udg_locations02[3],(13.00*I2R(udg_integer11)),udg_real02)
call SetUnitPositionLoc(udg_units10[2],udg_locations02[4])
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_locations02[4],Condition(function Trig_bgkz2_Func004001003)),function Trig_bgkz2_Func004A)
call RemoveLocation(udg_locations02[4])
endfunction
function Trig_bg128_1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00A'))then
return false
endif
return true
endfunction
function Trig_bg128_1_Actions takes nothing returns nothing
set udg_units25[1]=GetTriggerUnit()
set udg_units25[2]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PlaySoundBJ(udg_sound01)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units25[2]),"war3mapImported\\bagua.mdx")
set udg_effect01=GetLastCreatedEffectBJ()
call PauseUnit(udg_units25[1],true)
call PauseUnit(udg_units25[2],true)
call SetUnitTimeScalePercent(udg_units25[1],400.00)
call EnableTrigger(udg_trigger131)
endfunction
function Trig_bg128_2_Func001Func012Func001C takes nothing returns boolean
if((udg_integer28==2))then
return true
endif
if((udg_integer28==8))then
return true
endif
if((udg_integer28==16))then
return true
endif
if((udg_integer28==32))then
return true
endif
if((udg_integer28==50))then
return true
endif
return false
endfunction
function Trig_bg128_2_Func001Func012C takes nothing returns boolean
if(not Trig_bg128_2_Func001Func012Func001C())then
return false
endif
return true
endfunction
function Trig_bg128_2_Func001Func021C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units25[1],'I00Z')==true))then
return false
endif
return true
endfunction
function Trig_bg128_2_Func001C takes nothing returns boolean
if(not(udg_integer28<64))then
return false
endif
if(not(IsUnitAliveBJ(udg_units25[1])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_units25[2])==true))then
return false
endif
return true
endfunction
function Trig_bg128_2_Actions takes nothing returns nothing
if(Trig_bg128_2_Func001C())then
set udg_integer28=(udg_integer28+1)
if(Trig_bg128_2_Func001Func012C())then
call SetUnitPositionLocFacingLocBJ(udg_units25[1],PolarProjectionBJ(GetUnitLoc(udg_units25[2]),150.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units25[2]))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units25[1]),"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.17)
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call CreateTextTagLocBJ(("|cffff8000"+(I2S(udg_integer28)+"|r Palms!")),GetUnitLoc(udg_units25[1]),0,25.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),0.50)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units25[2]),"war3mapImported\\bagua.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitFacingToFaceUnitTimed(udg_units25[1],udg_units25[2],0)
call SetUnitAnimation(udg_units25[1],"attack")
if(Trig_bg128_2_Func001Func021C())then
call UnitDamageTargetBJ(udg_units25[1],udg_units25[2],((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units25[1],true))*65.00)/64.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units25[1],udg_units25[2],((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units25[1],true))*50.00)/64.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
call SetUnitAnimation(udg_units25[2],"death")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units25[2]),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call StopSoundBJ(udg_sound01,true)
call DestroyEffect(GetLastCreatedEffectBJ())
call DisableTrigger(GetTriggeringTrigger())
call DestroyEffect(udg_effect01)
call SetUnitTimeScalePercent(udg_units25[1],100.00)
call PauseUnit(udg_units25[1],false)
call PauseUnit(udg_units25[2],false)
set udg_integer28=0
set udg_units25[1]=null
set udg_units25[2]=null
endif
endfunction
function Trig_bgsj1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00D'))then
return false
endif
return true
endfunction
function Trig_bgsj1_Func009Func035C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit62,'I013')==true))then
return false
endif
return true
endfunction
function Trig_bgsj1_Func009C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units02[1])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_units02[2])==true))then
return false
endif
return true
endfunction
function Trig_bgsj1_Actions takes nothing returns nothing
set udg_units02[1]=GetTriggerUnit()
set udg_units02[2]=GetSpellTargetUnit()
call SetUnitInvulnerable(GetTriggerUnit(),true)
call TriggerSleepAction(0.10)
call SetUnitPathing(udg_units02[1],false)
call SetCameraFieldForPlayer(GetOwningPlayer(GetTriggerUnit()),CAMERA_FIELD_TARGET_DISTANCE,2500.00,2.00)
set udg_integer29=1
loop
exitwhen udg_integer29>7
call SetUnitAnimationWithRarity(udg_units02[1],"attack",RARITY_RARE)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units02[2]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLocFacingLocBJ(udg_units02[2],PolarProjectionBJ(GetUnitLoc(udg_units02[2]),50.00,GetUnitFacing(udg_units02[1])),GetUnitLoc(udg_units02[1]))
call SetUnitPositionLocFacingLocBJ(udg_units02[1],PolarProjectionBJ(GetUnitLoc(udg_units02[2]),150.00,GetUnitFacing(udg_units02[2])),GetUnitLoc(udg_units02[2]))
call UnitDamageTargetBJ(udg_units02[1],udg_units02[2],I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units02[1],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call TriggerSleepAction(0.00)
set udg_integer29=udg_integer29+1
endloop
if(Trig_bgsj1_Func009C())then
call SetUnitPathing(udg_units02[1],true)
call PlaySoundBJ(udg_sound29)
call CreateNUnitsAtLoc(1,'n00E',GetOwningPlayer(udg_units02[1]),GetUnitLoc(udg_units02[1]),100.00)
set udg_units02[3]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(1.40,'BTLF',GetLastCreatedUnit())
call TriggerExecute(udg_trigger133)
call PauseUnit(udg_units02[1],true)
call PauseUnit(udg_units02[2],true)
call SetUnitTimeScalePercent(udg_units02[1],45.00)
call SetUnitFacingToFaceUnitTimed(udg_units02[1],udg_units02[2],0)
call SetUnitAnimation(udg_units02[1],"Stand Channel")
call TriggerSleepAction(0.80)
call SetUnitTimeScalePercent(udg_units02[1],85.00)
call SetUnitAnimation(udg_units02[1],"Spell Swim")
call TriggerSleepAction(0.20)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units02[1]),50.00)
call TriggerSleepAction(0.10)
call StopSoundBJ(udg_sound29,true)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units02[1]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call EnableTrigger(udg_trigger134)
call SetUnitTimeScalePercent(udg_units02[1],100.00)
call SetUnitInvulnerable(GetTriggerUnit(),false)
call SetCameraFieldForPlayer(GetOwningPlayer(GetTriggerUnit()),CAMERA_FIELD_TARGET_DISTANCE,1700.00,2.00)
call TriggerSleepAction(0.10)
if(Trig_bgsj1_Func009Func035C())then
call UnitDamageTargetBJ(udg_units02[1],udg_units02[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units02[1],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units02[1],udg_units02[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units02[1],true))*65.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
call PauseUnit(udg_units02[1],false)
call TriggerSleepAction(0.10)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units02[1]))
call DisableTrigger(udg_trigger134)
call PauseUnit(udg_units02[2],false)
call RemoveLocation(udg_location18)
call GroupClear(udg_group12)
set udg_units02[1]=null
set udg_units02[2]=null
set udg_units02[3]=null
else
call SetCameraFieldForPlayer(GetOwningPlayer(GetTriggerUnit()),CAMERA_FIELD_TARGET_DISTANCE,1700.00,2.00)
call SetUnitInvulnerable(GetTriggerUnit(),false)
call SetUnitPathing(udg_units02[1],true)
call PauseUnit(udg_units02[1],false)
call PauseUnit(udg_units02[2],false)
set udg_units02[1]=null
set udg_units02[2]=null
endif
endfunction
function Trig_bgsj2_Actions takes nothing returns nothing
call SetUnitFacingTimed(udg_units02[3],270.00,1.40)
endfunction
function Trig_bgsj3_Func001Func002Func003Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_bgsj3_Func001Func002Func003Func001001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_bgsj3_Func001Func002Func003Func001001003002002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units02[2])
endfunction
function Trig_bgsj3_Func001Func002Func003Func001001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units02[1]))==true)
endfunction
function Trig_bgsj3_Func001Func002Func003Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_bgsj3_Func001Func002Func003Func001001003002002001(),Trig_bgsj3_Func001Func002Func003Func001001003002002002())
endfunction
function Trig_bgsj3_Func001Func002Func003Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_bgsj3_Func001Func002Func003Func001001003002001(),Trig_bgsj3_Func001Func002Func003Func001001003002002())
endfunction
function Trig_bgsj3_Func001Func002Func003Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_bgsj3_Func001Func002Func003Func001001003001(),Trig_bgsj3_Func001Func002Func003Func001001003002())
endfunction
function Trig_bgsj3_Func001Func002Func003Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units02[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units02[1],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_bgsj3_Func001Func002Func003Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_bgsj3_Func001Func002Func003Func003001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_bgsj3_Func001Func002Func003Func003001003002002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units02[2])
endfunction
function Trig_bgsj3_Func001Func002Func003Func003001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units02[1]))==true)
endfunction
function Trig_bgsj3_Func001Func002Func003Func003001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_bgsj3_Func001Func002Func003Func003001003002002001(),Trig_bgsj3_Func001Func002Func003Func003001003002002002())
endfunction
function Trig_bgsj3_Func001Func002Func003Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_bgsj3_Func001Func002Func003Func003001003002001(),Trig_bgsj3_Func001Func002Func003Func003001003002002())
endfunction
function Trig_bgsj3_Func001Func002Func003Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_bgsj3_Func001Func002Func003Func003001003001(),Trig_bgsj3_Func001Func002Func003Func003001003002())
endfunction
function Trig_bgsj3_Func001Func002Func003Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units02[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units02[1],true))*65.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_bgsj3_Func001Func002Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit62,'I013')==true))then
return false
endif
return true
endfunction
function Trig_bgsj3_Func001Func002C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units02[2])==true))then
return false
endif
return true
endfunction
function Trig_bgsj3_Func001Func004Func004C takes nothing returns boolean
if(not(GetRandomInt(1,20)==5))then
return false
endif
return true
endfunction
function Trig_bgsj3_Func001Func004C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units02[2])==true))then
return false
endif
return true
endfunction
function Trig_bgsj3_Func001Func005C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units02[2])==true))then
return false
endif
if(not(GetRandomInt(1,20)==2))then
return false
endif
return true
endfunction
function Trig_bgsj3_Func001Func006Func001001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_bgsj3_Func001Func006Func001001001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units02[1]))==true)
endfunction
function Trig_bgsj3_Func001Func006Func001001001003002002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units02[2])
endfunction
function Trig_bgsj3_Func001Func006Func001001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_bgsj3_Func001Func006Func001001001003002001(),Trig_bgsj3_Func001Func006Func001001001003002002())
endfunction
function Trig_bgsj3_Func001Func006Func001001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_bgsj3_Func001Func006Func001001001003001(),Trig_bgsj3_Func001Func006Func001001001003002())
endfunction
function Trig_bgsj3_Func001Func006C takes nothing returns boolean
if((IsUnitGroupEmptyBJ(GetUnitsInRangeOfLocMatching(100.00,GetUnitLoc(udg_units02[2]),Condition(function Trig_bgsj3_Func001Func006Func001001001003)))==true))then
return true
endif
if((IsTerrainPathableBJ(GetUnitLoc(udg_units02[2]),PATHING_TYPE_WALKABILITY)==true))then
return true
endif
return false
endfunction
function Trig_bgsj3_Func001C takes nothing returns boolean
if(not Trig_bgsj3_Func001Func006C())then
return false
endif
return true
endfunction
function Trig_bgsj3_Actions takes nothing returns nothing
if(Trig_bgsj3_Func001C())then
call SetUnitPositionLoc(udg_units02[2],PolarProjectionBJ(GetUnitLoc(udg_units02[2]),32.00,AngleBetweenPoints(GetUnitLoc(udg_units02[1]),GetUnitLoc(udg_units02[2]))))
if(Trig_bgsj3_Func001Func004C())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units02[2]),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_bgsj3_Func001Func004Func004C())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units02[2]),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
else
call DoNothing()
endif
if(Trig_bgsj3_Func001Func005C())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units02[2]),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
else
call DisableTrigger(GetTriggeringTrigger())
if(Trig_bgsj3_Func001Func002C())then
set udg_location18=GetUnitLoc(udg_units02[2])
if(Trig_bgsj3_Func001Func002Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location18,Condition(function Trig_bgsj3_Func001Func002Func003Func001001003)),function Trig_bgsj3_Func001Func002Func003Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location18,Condition(function Trig_bgsj3_Func001Func002Func003Func003001003)),function Trig_bgsj3_Func001Func002Func003Func003A)
endif
call DestroyGroup(GetLastCreatedGroup())
else
call DoNothing()
endif
endif
endfunction
function Trig_ht1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00C'))then
return false
endif
return true
endfunction
function Trig_ht1_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_ht1_Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ht1_Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_ht1_Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_ht1_Func003001003002001(),Trig_ht1_Func003001003002002())
endfunction
function Trig_ht1_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ht1_Func003001003001(),Trig_ht1_Func003001003002())
endfunction
function Trig_ht1_Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A00C'))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call GroupAddUnitSimple(GetEnumUnit(),udg_group01)
endfunction
function Trig_ht1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound06)
set udg_location01=GetUnitLoc(GetTriggerUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location01,Condition(function Trig_ht1_Func003001003)),function Trig_ht1_Func003A)
call EnableTrigger(udg_trigger136)
call TriggerSleepAction(0.14)
call DisableTrigger(udg_trigger136)
call GroupClear(udg_group01)
call RemoveLocation(udg_location01)
endfunction
function Trig_ht2_Func001A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),32.00,AngleBetweenPoints(udg_location01,GetUnitLoc(GetEnumUnit()))))
endfunction
function Trig_ht2_Actions takes nothing returns nothing
call ForGroupBJ(udg_group01,function Trig_ht2_Func001A)
endfunction
function Trig_BGKZ_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00E'))then
return false
endif
return true
endfunction
function Trig_BGKZ_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=4
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(30.00*I2R(GetForLoopIndexA())),GetUnitFacing(GetTriggerUnit())),200.00,200.00)),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_by_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit62))then
return false
endif
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("immolation")))then
return false
endif
return true
endfunction
function Trig_by_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound56)
set udg_units03[1]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call EnableTrigger(udg_trigger140)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[1]),'A00S',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[1]),'A00Y',false)
call UnitAddAbility(udg_units03[1],'A00Y')
call SetUnitAbilityLevel(udg_units03[1],'A00Z',GetUnitAbilityLevel(udg_units03[1],'A00X'))
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[1]),'A00W',true)
call TriggerRegisterUnitManaEvent(udg_trigger139,udg_units03[1],LESS_THAN,1.00)
endfunction
function Trig_by2_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger140)
endfunction
function Trig_by3_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units03[1]))then
return false
endif
if(not(GetSpellAbilityId()=='A00W'))then
return false
endif
return true
endfunction
function Trig_by3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[1]),'A00W',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[1]),'A00S',true)
call IssueImmediateOrder(udg_units03[1],"unimmolation")
call UnitRemoveAbility(udg_units03[1],'A00Y')
set udg_units03[1]=null
endfunction
function Trig_by4_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit62))then
return false
endif
if(not(GetLearnedSkill()=='A00X'))then
return false
endif
return true
endfunction
function Trig_by4_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A00S',true)
call SetUnitAbilityLevel(GetTriggerUnit(),'A00S',GetUnitAbilityLevel(GetTriggerUnit(),'A00X'))
call EnableTrigger(udg_trigger142)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_by5_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit62))then
return false
endif
if(not(GetLearnedSkill()=='A00X'))then
return false
endif
return true
endfunction
function Trig_by5_Actions takes nothing returns nothing
call SetUnitAbilityLevel(GetTriggerUnit(),'A00S',GetUnitAbilityLevel(GetTriggerUnit(),'A00X'))
endfunction
function Trig_baiyan_Conditions takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'B002')==true))then
return false
endif
return true
endfunction
function Trig_baiyan_Func004C takes nothing returns boolean
if(not(GetRandomInt(1,10)==5))then
return false
endif
return true
endfunction
function Trig_baiyan_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Human\\DispelMagic\\DispelMagicTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitManaBJ(GetAttackedUnitBJ(),(GetUnitState(GetAttackedUnitBJ(),UNIT_STATE_MANA)-(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))/8.00)))
if(Trig_baiyan_Func004C())then
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call DoNothing()
endif
endfunction
function Trig_by_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit56))then
return false
endif
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("immolation")))then
return false
endif
return true
endfunction
function Trig_by_______u_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound57)
set udg_units03[11]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call EnableTrigger(udg_trigger146)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[11]),'A08Z',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[11]),'A00Y',false)
call UnitAddAbility(udg_units03[11],'A00Y')
call SetUnitAbilityLevel(udg_units03[11],'A00Z',GetUnitAbilityLevel(udg_units03[11],'A00X'))
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[11]),'A08A',true)
call TriggerRegisterUnitManaEvent(udg_trigger145,udg_units03[11],LESS_THAN,1.00)
endfunction
function Trig_by2_______u_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger146)
endfunction
function Trig_by3_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units03[11]))then
return false
endif
if(not(GetSpellAbilityId()=='A08A'))then
return false
endif
return true
endfunction
function Trig_by3_______u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[11]),'A08A',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[11]),'A08Z',true)
call IssueImmediateOrder(udg_units03[11],"unimmolation")
call UnitRemoveAbility(udg_units03[11],'A00Y')
set udg_units03[11]=null
endfunction
function Trig_by4_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit56))then
return false
endif
if(not(GetLearnedSkill()=='A00X'))then
return false
endif
return true
endfunction
function Trig_by4_______u_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A08Z',true)
call SetUnitAbilityLevel(GetTriggerUnit(),'A08Z',GetUnitAbilityLevel(GetTriggerUnit(),'A00X'))
call EnableTrigger(udg_trigger148)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_by5_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit56))then
return false
endif
if(not(GetLearnedSkill()=='A00X'))then
return false
endif
return true
endfunction
function Trig_by5_______u_Actions takes nothing returns nothing
call SetUnitAbilityLevel(GetTriggerUnit(),'A08Z',GetUnitAbilityLevel(GetTriggerUnit(),'A00X'))
endfunction
function Trig_U2______________u_Conditions takes nothing returns boolean
if(not(GetLearnedSkill()=='A006'))then
return false
endif
return true
endfunction
function Trig_U2______________u_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A006',false)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_sw1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A006'))then
return false
endif
return true
endfunction
function Trig_sw1_Func011Func001001003001 takes nothing returns boolean
return(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_sw1_Func011Func001001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sw1_Func011Func001001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit16))==true)
endfunction
function Trig_sw1_Func011Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_sw1_Func011Func001001003002001(),Trig_sw1_Func011Func001001003002002())
endfunction
function Trig_sw1_Func011Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sw1_Func011Func001001003001(),Trig_sw1_Func011Func001001003002())
endfunction
function Trig_sw1_Func011Func001A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\AItb\\AItbTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit16,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit16,true))*5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sw1_Func012A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_sw1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit16=GetTriggerUnit()
set udg_locations09[1]=GetSpellTargetLoc()
call TerrainDeformationRippleBJ(9.00,true,udg_locations09[1],600.00,800.00,500.00,5.00,512)
set udg_integer26=1
loop
exitwhen udg_integer26>30
call CreateNUnitsAtLoc(1,'e005',GetOwningPlayer(udg_unit16),udg_locations09[1],bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),150.00)
call SetUnitPathing(GetLastCreatedUnit(),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups04[1])
set udg_integer26=udg_integer26+1
endloop
call CreateNUnitsAtLoc(1,'e017',GetOwningPlayer(udg_unit16),udg_locations09[1],bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),150.00)
call SetUnitPathing(GetLastCreatedUnit(),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups04[1])
call EnableTrigger(udg_trigger151)
set udg_integer27=1
loop
exitwhen udg_integer27>10
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations09[1],Condition(function Trig_sw1_Func011Func001001003)),function Trig_sw1_Func011Func001A)
call TriggerSleepAction(1.00)
set udg_integer27=udg_integer27+1
endloop
call ForGroupBJ(udg_groups04[1],function Trig_sw1_Func012A)
call DisableTrigger(udg_trigger151)
set udg_unit16=null
call GroupClear(udg_groups04[1])
call GroupClear(udg_groups04[2])
call RemoveLocation(udg_locations09[1])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_sw2_Func001Func003002003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_sw2_Func001Func003002003002001 takes nothing returns boolean
return(IsUnitPausedBJ(GetFilterUnit())==false)
endfunction
function Trig_sw2_Func001Func003002003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit16))==true)
endfunction
function Trig_sw2_Func001Func003002003002002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sw2_Func001Func003002003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_sw2_Func001Func003002003002002001(),Trig_sw2_Func001Func003002003002002002())
endfunction
function Trig_sw2_Func001Func003002003002 takes nothing returns boolean
return GetBooleanAnd(Trig_sw2_Func001Func003002003002001(),Trig_sw2_Func001Func003002003002002())
endfunction
function Trig_sw2_Func001Func003002003 takes nothing returns boolean
return GetBooleanAnd(Trig_sw2_Func001Func003002003001(),Trig_sw2_Func001Func003002003002())
endfunction
function Trig_sw2_Func001Func004A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_locations09[1])
endfunction
function Trig_sw2_Func001C takes nothing returns boolean
if(not(IsTerrainPathableBJ(udg_locations09[1],PATHING_TYPE_WALKABILITY)==false))then
return false
endif
return true
endfunction
function Trig_sw2_Actions takes nothing returns nothing
if(Trig_sw2_Func001C())then
set udg_groups04[2]=GetUnitsInRangeOfLocMatching(400.00,udg_locations09[1],Condition(function Trig_sw2_Func001Func003002003))
call ForGroupBJ(udg_groups04[2],function Trig_sw2_Func001Func004A)
call GroupClear(udg_groups04[2])
call DestroyGroup(udg_groups04[2])
else
call DoNothing()
endif
endfunction
function Trig_LQ_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00F'))then
return false
endif
return true
endfunction
function Trig_LQ_Func004Func001C takes nothing returns boolean
if((AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetUnitLoc(udg_unit01))>800.00))then
return true
endif
if((IsUnitDeadBJ(udg_unit01)==true))then
return true
endif
return false
endfunction
function Trig_LQ_Func004C takes nothing returns boolean
if(not Trig_LQ_Func004Func001C())then
return false
endif
return true
endfunction
function Trig_LQ_Func010Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_LQ_Func010Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_LQ_Func010Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_LQ_Func010Func001001003001(),Trig_LQ_Func010Func001001003002())
endfunction
function Trig_LQ_Func010Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A00F')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_LQ_Func010Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_LQ_Func010Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_LQ_Func010Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_LQ_Func010Func002001003001(),Trig_LQ_Func010Func002001003002())
endfunction
function Trig_LQ_Func010Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A00F'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_LQ_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I011')==true))then
return false
endif
return true
endfunction
function Trig_LQ_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound07)
set udg_unit01=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
if(Trig_LQ_Func004C())then
return
else
call DoNothing()
endif
call SetUnitAnimation(GetTriggerUnit(),"spell four")
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_unit01),80.00,GetUnitFacing(udg_unit01)),GetUnitLoc(udg_unit01))
call CreateNUnitsAtLoc(1,'e019',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(udg_unit01),GetRandomDirectionDeg())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',0.20)
if(Trig_LQ_Func010C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit01),Condition(function Trig_LQ_Func010Func001001003)),function Trig_LQ_Func010Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit01),Condition(function Trig_LQ_Func010Func002001003)),function Trig_LQ_Func010Func002A)
endif
set udg_unit01=null
endfunction
function Trig_LQ2LT_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00H'))then
return false
endif
return true
endfunction
function Trig_LQ2LT_Func012001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_LQ2LT_Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units04[1]))==true)
endfunction
function Trig_LQ2LT_Func012001003 takes nothing returns boolean
return GetBooleanAnd(Trig_LQ2LT_Func012001003001(),Trig_LQ2LT_Func012001003002())
endfunction
function Trig_LQ2LT_Func012A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units04[1],GetEnumUnit(),(50.00*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A00H'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_LQ2LT_Func020Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_LQ2LT_Func020Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units04[1]))==true)
endfunction
function Trig_LQ2LT_Func020Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_LQ2LT_Func020Func001001003001(),Trig_LQ2LT_Func020Func001001003002())
endfunction
function Trig_LQ2LT_Func020Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units04[1],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units04[1],true))*I2R(GetUnitAbilityLevel(udg_units04[1],'A00H')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units04[1],true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_LQ2LT_Func020Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_LQ2LT_Func020Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units04[1]))==true)
endfunction
function Trig_LQ2LT_Func020Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_LQ2LT_Func020Func002001003001(),Trig_LQ2LT_Func020Func002001003002())
endfunction
function Trig_LQ2LT_Func020Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units04[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units04[1],true))*I2R(GetUnitAbilityLevel(udg_units04[1],'A00H'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_LQ2LT_Func020C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units04[1],'I017')==true))then
return false
endif
return true
endfunction
function Trig_LQ2LT_Actions takes nothing returns nothing
set udg_units04[1]=GetTriggerUnit()
set udg_units04[2]=GetSpellTargetUnit()
call PauseUnitBJ(true,udg_units04[1])
call UnitAddAbilityBJ('A00L',udg_units04[1])
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(100.00,400.00),GetRandomDirectionDeg()),GetRandomDirectionDeg())
call SetUnitFlyHeight(GetLastCreatedUnit(),GetRandomReal(100.00,300.00),1000000000.00)
call IssueTargetOrder(GetLastCreatedUnit(),"fingerofdeath",GetTriggerUnit())
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.20)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPositionLoc(udg_units04[1],GetUnitLoc(udg_units04[2]))
call SetUnitAnimation(udg_units04[1],"spell Four")
call CreateNUnitsAtLoc(1,'e019',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(udg_units04[2]),GetRandomDirectionDeg())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',0.20)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units04[2]),Condition(function Trig_LQ2LT_Func012001003)),function Trig_LQ2LT_Func012A)
set udg_real01=GetUnitFacing(udg_units04[1])
call EnableTrigger(udg_trigger154)
call TriggerSleepAction(0.40)
call SetUnitPositionLoc(udg_units04[1],GetUnitLoc(udg_units04[2]))
call CreateNUnitsAtLoc(1,'e019',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(udg_units04[2]),GetRandomDirectionDeg())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',0.20)
if(Trig_LQ2LT_Func020C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units04[2]),Condition(function Trig_LQ2LT_Func020Func001001003)),function Trig_LQ2LT_Func020Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units04[2]),Condition(function Trig_LQ2LT_Func020Func002001003)),function Trig_LQ2LT_Func020Func002A)
endif
call SetUnitAnimation(udg_units04[1],"spell Throw")
call DisableTrigger(udg_trigger154)
call UnitRemoveAbilityBJ('A00L',udg_units04[1])
call PauseUnitBJ(false,udg_units04[1])
set udg_units04[1]=null
set udg_units04[2]=null
endfunction
function Trig_LQ2_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units04[2],PolarProjectionBJ(GetUnitLoc(udg_units04[2]),27.00,udg_real01))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units04[1]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units04[2]),"Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units04[1]),"Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_zyzs_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00G'))then
return false
endif
return true
endfunction
function Trig_zyzs_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
set udg_units05[1]=GetSpellTargetUnit()
set udg_units05[2]=GetTriggerUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'H000',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetSpellTargetUnit()),150.00,(60.00*I2R(GetForLoopIndexA()))),GetUnitLoc(GetSpellTargetUnit()))
call SetHeroStr(GetLastCreatedUnit(),(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true)/6),true)
call IssueTargetOrder(GetLastCreatedUnit(),"attack",GetSpellTargetUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group02)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'H001',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),150.00,GetUnitFacing(GetTriggerUnit())),GetUnitLoc(GetSpellTargetUnit()))
call SetHeroStr(GetLastCreatedUnit(),(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true)*4),true)
call IssueTargetOrder(GetLastCreatedUnit(),"attack",GetSpellTargetUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitAddAbility(GetLastCreatedUnit(),'Aloc')
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group41)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLocFacingLocBJ(1,'H001',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),150.00,GetUnitFacing(GetTriggerUnit())),GetUnitLoc(GetSpellTargetUnit()))
set udg_units05[3]=GetLastCreatedUnit()
call IssueTargetOrder(GetLastCreatedUnit(),"attack",GetSpellTargetUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(100.00,400.00),GetRandomDirectionDeg()),GetRandomDirectionDeg())
call SetUnitFlyHeight(GetLastCreatedUnit(),GetRandomReal(100.00,300.00),1000000000.00)
call IssueTargetOrder(GetLastCreatedUnit(),"fingerofdeath",udg_units05[3])
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitAddAbility(udg_units05[3],'Aloc')
call EnableTrigger(udg_trigger157)
endfunction
function Trig_zyzs2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units05[1]))then
return false
endif
return true
endfunction
function Trig_zyzs2_Func001A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_zyzs2_Actions takes nothing returns nothing
call ForGroupBJ(udg_group02,function Trig_zyzs2_Func001A)
call GroupClear(udg_group02)
endfunction
function Trig_yzzs3_Func001Func001C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(GetUnitLoc(udg_units05[1]),150.00,150.00),udg_units05[3])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units05[1])==true))then
return true
endif
return false
endfunction
function Trig_yzzs3_Func001Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_yzzs3_Func001Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units05[2]))==true)
endfunction
function Trig_yzzs3_Func001Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_yzzs3_Func001Func006001003001(),Trig_yzzs3_Func001Func006001003002())
endfunction
function Trig_yzzs3_Func001Func006A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units05[2],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units05[2],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_yzzs3_Func001Func012A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_yzzs3_Func001Func013A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_yzzs3_Func001Func020C takes nothing returns boolean
if(not(GetRandomInt(1,15)==5))then
return false
endif
return true
endfunction
function Trig_yzzs3_Func001C takes nothing returns boolean
if(not Trig_yzzs3_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_yzzs3_Actions takes nothing returns nothing
if(Trig_yzzs3_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveUnit(udg_units05[3])
set udg_units05[3]=null
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units05[1]),400.00,400.00)),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units05[1]),Condition(function Trig_yzzs3_Func001Func006001003)),function Trig_yzzs3_Func001Func006A)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units05[2]),20.00)
call GroupClear(udg_group21)
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units05[2]))
call TriggerSleepAction(4.00)
call ForGroupBJ(udg_group02,function Trig_yzzs3_Func001Func012A)
call ForGroupBJ(udg_group41,function Trig_yzzs3_Func001Func013A)
call GroupClear(udg_group02)
call GroupClear(udg_group41)
set udg_units05[1]=null
set udg_units05[2]=null
else
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units05[3]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_yzzs3_Func001Func020C())then
call AddSpecialEffectTargetUnitBJ("left hand",udg_units05[3],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("righe hand",udg_units05[3],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
call SetUnitPositionLocFacingLocBJ(udg_units05[3],PolarProjectionBJ(GetUnitLoc(udg_units05[3]),14.00,AngleBetweenPoints(GetUnitLoc(udg_units05[3]),GetUnitLoc(udg_units05[1]))),GetUnitLoc(udg_units05[1]))
endif
endfunction
function Trig_kky1_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit59))then
return false
endif
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("immolation")))then
return false
endif
return true
endfunction
function Trig_kky1_Func010C takes nothing returns boolean
if(not(GetUnitAbilityLevel(udg_units03[3],'A006')>=1))then
return false
endif
return true
endfunction
function Trig_kky1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound45)
set udg_units03[3]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call EnableTrigger(udg_trigger160)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[3]),'A00R',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[3]),'A016',false)
call UnitAddAbility(udg_units03[3],'A016')
call SetUnitAbilityLevel(udg_units03[3],'A017',GetUnitAbilityLevel(udg_units03[3],'A011'))
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[3]),'A012',true)
if(Trig_kky1_Func010C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[3]),'A006',true)
else
call DoNothing()
endif
call TriggerRegisterUnitManaEvent(udg_trigger159,udg_units03[3],LESS_THAN,1.00)
endfunction
function Trig_kky2_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger160)
endfunction
function Trig_kky3_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units03[3]))then
return false
endif
if(not(GetSpellAbilityId()=='A012'))then
return false
endif
return true
endfunction
function Trig_kky3_Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevel(udg_units03[3],'A006')>=1))then
return false
endif
return true
endfunction
function Trig_kky3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[3]),'A012',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[3]),'A00R',true)
call IssueImmediateOrder(udg_units03[3],"unimmolation")
call UnitRemoveAbility(udg_units03[3],'A016')
if(Trig_kky3_Func006C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[3]),'A006',false)
else
call DoNothing()
endif
set udg_units03[3]=null
endfunction
function Trig_kky4_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit59))then
return false
endif
if(not(GetLearnedSkill()=='A011'))then
return false
endif
return true
endfunction
function Trig_kky4_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A00R',true)
call SetUnitAbilityLevel(GetTriggerUnit(),'A00R',GetUnitAbilityLevel(GetTriggerUnit(),'A011'))
call EnableTrigger(udg_trigger162)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_kky5_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit59))then
return false
endif
if(not(GetLearnedSkill()=='A011'))then
return false
endif
return true
endfunction
function Trig_kky5_Actions takes nothing returns nothing
call SetUnitAbilityLevel(GetTriggerUnit(),'A00R',GetUnitAbilityLevel(GetTriggerUnit(),'A011'))
endfunction
function Trig_kky1_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit58))then
return false
endif
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("immolation")))then
return false
endif
return true
endfunction
function Trig_kky1_______u_Func009C takes nothing returns boolean
if(not(GetUnitAbilityLevel(udg_units03[4],'A005')>=1))then
return false
endif
return true
endfunction
function Trig_kky1_______u_Actions takes nothing returns nothing
set udg_units03[4]=GetTriggerUnit()
call TriggerSleepAction(0.10)
call EnableTrigger(udg_trigger165)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[4]),'A01G',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[4]),'A016',false)
call UnitAddAbility(udg_units03[4],'A016')
call SetUnitAbilityLevel(udg_units03[4],'A017',GetUnitAbilityLevel(udg_units03[4],'A01H'))
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[4]),'A01F',true)
if(Trig_kky1_______u_Func009C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[4]),'A005',true)
else
call DoNothing()
endif
call TriggerRegisterUnitManaEvent(udg_trigger164,udg_units03[4],LESS_THAN,1.00)
endfunction
function Trig_kky2_______u_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger165)
endfunction
function Trig_kky3_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units03[4]))then
return false
endif
if(not(GetSpellAbilityId()=='A01F'))then
return false
endif
return true
endfunction
function Trig_kky3_______u_Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevel(udg_units03[4],'A005')>=1))then
return false
endif
return true
endfunction
function Trig_kky3_______u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[4]),'A01F',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[4]),'A01G',true)
call IssueImmediateOrder(udg_units03[4],"unimmolation")
call UnitRemoveAbility(udg_units03[4],'A016')
if(Trig_kky3_______u_Func006C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units03[4]),'A005',false)
else
call DoNothing()
endif
set udg_units03[4]=null
endfunction
function Trig_kky4_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit58))then
return false
endif
if(not(GetLearnedSkill()=='A01H'))then
return false
endif
return true
endfunction
function Trig_kky4_______u_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A01G',true)
call SetUnitAbilityLevel(GetTriggerUnit(),'A01G',GetUnitAbilityLevel(GetTriggerUnit(),'A01H'))
call EnableTrigger(udg_trigger167)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_kky5_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit58))then
return false
endif
if(not(GetLearnedSkill()=='A01H'))then
return false
endif
return true
endfunction
function Trig_kky5_______u_Actions takes nothing returns nothing
call SetUnitAbilityLevel(GetTriggerUnit(),'A01G',GetUnitAbilityLevel(GetTriggerUnit(),'A01H'))
endfunction
function Trig_Uhhq1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00J'))then
return false
endif
return true
endfunction
function Trig_Uhhq1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound32)
set udg_unit19=GetSpellAbilityUnit()
set udg_locations10[1]=GetUnitLoc(udg_unit19)
set udg_locations10[2]=GetSpellTargetLoc()
set udg_real09=AngleBetweenPoints(udg_locations10[1],udg_locations10[2])
set udg_group15=CreateGroup()
call CreateNUnitsAtLoc(1,'e01C',GetOwningPlayer(udg_unit19),udg_locations10[1],udg_real09)
set udg_unit20=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(1.50,'BTLF',udg_unit20)
call RemoveLocation(udg_locations10[2])
call EnableTrigger(udg_trigger169)
call TriggerSleepAction(0.85)
call DisableTrigger(udg_trigger169)
set udg_integer31=0
call RemoveLocation(udg_locations10[1])
call GroupClear(udg_group15)
endfunction
function Trig_Uhhq2_Func004C takes nothing returns boolean
if(not(GetRandomInt(1,5)==5))then
return false
endif
return true
endfunction
function Trig_Uhhq2_Func005001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Uhhq2_Func005001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit19))==true)
endfunction
function Trig_Uhhq2_Func005001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_Uhhq2_Func005001003001001(),Trig_Uhhq2_Func005001003001002())
endfunction
function Trig_Uhhq2_Func005001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group15)==false)
endfunction
function Trig_Uhhq2_Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Uhhq2_Func005001003001(),Trig_Uhhq2_Func005001003002())
endfunction
function Trig_Uhhq2_Func005A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group15)
call UnitDamageTargetBJ(udg_unit19,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit19,true))*I2R(GetUnitAbilityLevel(udg_unit19,'A00J'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function Trig_Uhhq2_Actions takes nothing returns nothing
set udg_integer31=(udg_integer31+1)
set udg_locations10[2]=PolarProjectionBJ(udg_locations10[1],(8.00*I2R(udg_integer31)),udg_real09)
call SetUnitPositionLoc(udg_unit20,udg_locations10[2])
if(Trig_Uhhq2_Func004C())then
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit20),GetRandomReal(1.00,100.00),GetRandomDirectionDeg()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
endif
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations10[2],Condition(function Trig_Uhhq2_Func005001003)),function Trig_Uhhq2_Func005A)
call RemoveLocation(udg_locations10[2])
endfunction
function Trig_U7_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00T'))then
return false
endif
return true
endfunction
function Trig_U7_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit60,'I065')==true))then
return false
endif
return true
endfunction
function Trig_U7_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound64)
set udg_integer53=15
set udg_group40=CreateGroup()
set udg_units50[3]=GetTriggerUnit()
set udg_units50[4]=GetSpellTargetUnit()
set udg_locations24[2]=GetUnitLoc(udg_units50[3])
set udg_locations24[3]=GetUnitLoc(udg_units50[4])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations24[5]=PolarProjectionBJ(udg_locations24[3],293.00,(72.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLocFacingLocBJ(1,'e02B',GetOwningPlayer(udg_units50[3]),udg_locations24[5],udg_locations24[3])
call GroupAddUnit(udg_group40,bj_lastCreatedUnit)
call RemoveLocation(udg_locations24[5])
set udg_locations24[5]=PolarProjectionBJ(udg_locations24[3],300.00,(36.00+(72.00*I2R(bj_forLoopAIndex))))
call CreateNUnitsAtLocFacingLocBJ(1,'e02C',GetOwningPlayer(udg_units50[3]),udg_locations24[5],udg_locations24[3])
call GroupAddUnit(udg_group40,bj_lastCreatedUnit)
call RemoveLocation(udg_locations24[5])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_U7_Func009C())then
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*35.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*23.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
call EnableTrigger(udg_trigger171)
endfunction
function Trig_U8_Func002Func006A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_U8_Func002C takes nothing returns boolean
if(not(udg_integer54<25))then
return false
endif
return true
endfunction
function Trig_U8_Actions takes nothing returns nothing
set udg_integer54=(udg_integer54+1)
if(Trig_U8_Func002C())then
set udg_locations24[5]=PolarProjectionBJ(udg_locations24[3],300.00,I2R(udg_integer53))
call CreateNUnitsAtLocFacingLocBJ(1,'o00B',GetOwningPlayer(udg_units50[3]),udg_locations24[5],udg_locations24[3])
call GroupAddUnit(udg_group40,bj_lastCreatedUnit)
call RemoveLocation(udg_locations24[5])
set udg_integer53=(udg_integer53+15)
else
call DisableTrigger(GetTriggeringTrigger())
set udg_integer54=0
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations24[5]=PolarProjectionBJ(udg_locations24[3],300.00,(30.00*I2R(bj_forLoopAIndex)))
call AddSpecialEffectLocBJ(udg_locations24[5],"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveLocation(udg_locations24[5])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(udg_group40,function Trig_U8_Func002Func006A)
call DestroyGroup(udg_group40)
call RemoveLocation(udg_locations24[2])
call RemoveLocation(udg_locations24[3])
endif
endfunction
function Trig_yudu_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AHtb'))then
return false
endif
return true
endfunction
function Trig_yudu_______u_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit76,'I031')==true))then
return false
endif
return true
endfunction
function Trig_yudu_______u_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound08)
if(Trig_yudu_______u_Func002C())then
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'AHtb'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_pm1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00I'))then
return false
endif
return true
endfunction
function Trig_pm1_Func002C takes nothing returns boolean
if(not(GetRandomInt(1,7)==3))then
return false
endif
return true
endfunction
function Trig_pm1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound20)
if(Trig_pm1_Func002C())then
set udg_boolean05=true
else
call DoNothing()
endif
set udg_units06[1]=GetTriggerUnit()
set udg_units06[2]=GetSpellTargetUnit()
call CreateNUnitsAtLoc(1,'e004',GetOwningPlayer(udg_units06[1]),GetUnitLoc(udg_units06[2]),bj_UNIT_FACING)
call IssueImmediateOrder(GetLastCreatedUnit(),"locustswarm")
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
endfunction
function Trig_pm2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n007'))then
return false
endif
return true
endfunction
function Trig_pm2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CreateNUnitsAtLocFacingLocBJ(1,'o003',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(udg_units06[2]))
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group03)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call EnableTrigger(udg_trigger175)
endfunction
function Trig_pm3_Func001Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units06[1],'I015')==true))then
return false
endif
return true
endfunction
function Trig_pm3_Func001Func014Func002Func001Func002C takes nothing returns boolean
if(not(RectContainsUnit(RectFromCenterSizeBJ(GetUnitLoc(udg_units06[2]),100.00,100.00),GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_pm3_Func001Func014Func002Func001Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units06[1],'I015')==true))then
return false
endif
return true
endfunction
function Trig_pm3_Func001Func014Func002Func001C takes nothing returns boolean
if(not(udg_boolean05==true))then
return false
endif
if(not(GetRandomInt(1,10)==5))then
return false
endif
return true
endfunction
function Trig_pm3_Func001Func014Func002C takes nothing returns boolean
if(not(RectContainsUnit(RectFromCenterSizeBJ(GetUnitLoc(udg_units06[2]),500.00,500.00),GetEnumUnit())==true))then
return false
endif
return true
endfunction
function Trig_pm3_Func001Func014A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),20.00,AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),GetUnitLoc(udg_units06[2]))))
if(Trig_pm3_Func001Func014Func002C())then
if(Trig_pm3_Func001Func014Func002Func001C())then
call GroupRemoveUnitSimple(GetEnumUnit(),udg_group03)
call UnitAddAbility(udg_units06[1],'A00L')
call SetUnitPositionLoc(udg_units06[1],PolarProjectionBJ(GetUnitLoc(udg_units06[2]),200.00,AngleBetweenPoints(GetUnitLoc(udg_units06[1]),GetUnitLoc(udg_units06[2]))))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units06[1]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(udg_units06[1],"attack")
call UnitRemoveAbility(udg_units06[1],'A00L')
if(Trig_pm3_Func001Func014Func002Func001Func011C())then
call UnitDamageTargetBJ(udg_units06[1],udg_units06[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units06[1],true))*I2R(GetUnitAbilityLevel(udg_units06[1],'A00I'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units06[1],udg_units06[2],((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units06[1],true))*I2R(GetUnitAbilityLevel(udg_units06[1],'A00I')))/2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
else
if(Trig_pm3_Func001Func014Func002Func001Func002C())then
call RemoveUnit(GetEnumUnit())
else
call DoNothing()
endif
endif
else
call DoNothing()
endif
endfunction
function Trig_pm3_Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_units06[2])==false))then
return false
endif
if(not(IsUnitGroupEmptyBJ(udg_group03)==false))then
return false
endif
if(not(IsUnitGroupDeadBJ(udg_group03)==false))then
return false
endif
return true
endfunction
function Trig_pm3_Actions takes nothing returns nothing
if(Trig_pm3_Func001C())then
call ForGroupBJ(udg_group03,function Trig_pm3_Func001Func014A)
else
call DisableTrigger(GetTriggeringTrigger())
set udg_boolean05=false
call UnitAddAbility(udg_units06[1],'A00L')
call TriggerSleepAction(0.10)
call SetUnitPositionLoc(udg_units06[1],PolarProjectionBJ(GetUnitLoc(udg_units06[2]),200.00,AngleBetweenPoints(GetUnitLoc(udg_units06[1]),GetUnitLoc(udg_units06[2]))))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units06[1]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(udg_units06[1],"attack")
if(Trig_pm3_Func001Func009C())then
call UnitDamageTargetBJ(udg_units06[1],udg_units06[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units06[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units06[1],udg_units06[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units06[1],true))*I2R(GetUnitAbilityLevel(udg_units06[1],'A00I'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
call UnitRemoveAbility(udg_units06[1],'A00L')
call GroupClear(udg_group03)
set udg_units06[1]=null
set udg_units06[2]=null
endif
endfunction
function Trig__fd1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AHtb'))then
return false
endif
return true
endfunction
function Trig__fd1_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit76,'I031')==true))then
return false
endif
return true
endfunction
function Trig__fd1_Actions takes nothing returns nothing
if(Trig__fd1_Func001C())then
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'AHtb'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_TZZ_Conditions takes nothing returns boolean
if(not(GetLearnedSkill()=='A00K'))then
return false
endif
return true
endfunction
function Trig_TZZ_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A00K',false)
endfunction
function Trig_TZ_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00K'))then
return false
endif
return true
endfunction
function Trig_TZ_Func008Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_TZ_Func008Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[1]))==true)
endfunction
function Trig_TZ_Func008Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_TZ_Func008Func001001003001(),Trig_TZ_Func008Func001001003002())
endfunction
function Trig_TZ_Func008Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units07[1],true))*5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_TZ_Func008Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_TZ_Func008Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[1]))==true)
endfunction
function Trig_TZ_Func008Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_TZ_Func008Func002001003001(),Trig_TZ_Func008Func002001003002())
endfunction
function Trig_TZ_Func008Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units07[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_TZ_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units07[1],'I016')==true))then
return false
endif
return true
endfunction
function Trig_TZ_Func013Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_TZ_Func013Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[1]))==true)
endfunction
function Trig_TZ_Func013Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_TZ_Func013Func001001003001(),Trig_TZ_Func013Func001001003002())
endfunction
function Trig_TZ_Func013Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units07[1],true))*45.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_TZ_Func013Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_TZ_Func013Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[1]))==true)
endfunction
function Trig_TZ_Func013Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_TZ_Func013Func002001003001(),Trig_TZ_Func013Func002001003002())
endfunction
function Trig_TZ_Func013Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units07[1],true))*65.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_TZ_Func013C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units07[1],'I016')==true))then
return false
endif
return true
endfunction
function Trig_TZ_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound21)
set udg_units07[1]=GetTriggerUnit()
set udg_units07[2]=GetSpellTargetUnit()
set udg_location13=GetUnitLoc(udg_units07[2])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00W',GetOwningPlayer(udg_units07[1]),PolarProjectionBJ(udg_location13,180.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00W',GetOwningPlayer(udg_units07[1]),PolarProjectionBJ(udg_location13,470.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.60)
if(Trig_TZ_Func008C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location13,Condition(function Trig_TZ_Func008Func002001003)),function Trig_TZ_Func008Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location13,Condition(function Trig_TZ_Func008Func001001003)),function Trig_TZ_Func008Func001A)
endif
call DestroyGroup(GetLastCreatedGroup())
call TriggerSleepAction(0.90)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e008',GetOwningPlayer(udg_units07[1]),PolarProjectionBJ(udg_location13,180.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.00,'BTLF',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e008',GetOwningPlayer(udg_units07[1]),PolarProjectionBJ(udg_location13,230.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e008',GetOwningPlayer(udg_units07[1]),PolarProjectionBJ(udg_location13,GetRandomReal(300.00,500.00),(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(10.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_TZ_Func013C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location13,Condition(function Trig_TZ_Func013Func002001003)),function Trig_TZ_Func013Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location13,Condition(function Trig_TZ_Func013Func001001003)),function Trig_TZ_Func013Func001A)
endif
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location13)
set udg_units07[1]=null
set udg_units07[2]=null
endfunction
function Trig_Uwttxly1_Conditions takes nothing returns boolean
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("immolation")))then
return false
endif
if(not(GetTriggerUnit()==udg_unit60))then
return false
endif
return true
endfunction
function Trig_Uwttxly1_Func004Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevel(udg_units08[2],'A00U')>=1))then
return false
endif
return true
endfunction
function Trig_Uwttxly1_Func004Func007C takes nothing returns boolean
if(not(GetUnitAbilityLevel(udg_units08[2],'A00K')>=1))then
return false
endif
return true
endfunction
function Trig_Uwttxly1_Func004Func008C takes nothing returns boolean
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_Uwttxly1_Func004C takes nothing returns boolean
if(not(UnitHasBuffBJ(udg_units08[2],'B001')==true))then
return false
endif
return true
endfunction
function Trig_Uwttxly1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound41)
set udg_units08[2]=GetTriggerUnit()
call TriggerSleepAction(1.00)
if(Trig_Uwttxly1_Func004C())then
call UnitAddAbility(udg_units08[2],'A016')
call SetUnitAbilityLevel(udg_units08[2],'A017',GetUnitAbilityLevel(udg_units08[2],'A00Q'))
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units08[2]),'A016',false)
if(Trig_Uwttxly1_Func004Func006C())then
call UnitAddAbility(udg_units08[2],'A00T')
call SetUnitAbilityLevel(udg_units08[2],'A00T',GetUnitAbilityLevel(udg_units08[2],'A00U'))
else
call DoNothing()
endif
if(Trig_Uwttxly1_Func004Func007C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units08[2]),'A00K',true)
else
call DoNothing()
endif
if(Trig_Uwttxly1_Func004Func008C())then
call UnitAddAbility(GetTriggerUnit(),'A07M')
else
call DoNothing()
endif
call EnableTrigger(udg_trigger180)
call EnableTrigger(udg_trigger181)
call TriggerRegisterUnitManaEvent(udg_trigger180,udg_units08[2],LESS_THAN_OR_EQUAL,1.00)
else
set udg_units08[2]=null
endif
endfunction
function Trig_Uwttxly2_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger181)
endfunction
function Trig_Uwttxly3_Conditions takes nothing returns boolean
if(not(GetIssuedOrderIdBJ()==String2OrderIdBJ("unimmolation")))then
return false
endif
if(not(GetTriggerUnit()==udg_units08[2]))then
return false
endif
return true
endfunction
function Trig_Uwttxly3_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevel(udg_units08[2],'A00K')>=1))then
return false
endif
return true
endfunction
function Trig_Uwttxly3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrder(udg_units08[2],"unimmolation")
call UnitRemoveAbility(udg_units08[2],'A00T')
if(Trig_Uwttxly3_Func004C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units08[2]),'A00K',false)
else
call DoNothing()
endif
call UnitRemoveAbility(udg_units08[2],'A016')
call UnitRemoveAbility(udg_units08[2],'A07M')
set udg_units08[2]=null
endfunction
function Trig_zzq1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01E'))then
return false
endif
return true
endfunction
function Trig_zzq1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound35)
set udg_reals02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=100.00
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_reals02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_reals02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+20.00)
call CreateNUnitsAtLoc(1,'n00D',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(150.00+(20.00*I2R(GetForLoopIndexA()))),GetUnitFacing(GetTriggerUnit())),GetUnitFacing(GetTriggerUnit()))
call SetUnitScalePercent(GetLastCreatedUnit(),udg_reals02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],udg_reals02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],udg_reals02[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call UnitApplyTimedLifeBJ(0.50,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger183)
call CreateNUnitsAtLoc(1,'e01H',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())),GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
call TriggerSleepAction(0.40)
call DisableTrigger(udg_trigger183)
call ResetUnitAnimation(GetTriggerUnit())
call GroupClear(udg_group18)
endfunction
function Trig_zzq2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e01H'))then
return false
endif
return true
endfunction
function Trig_zzq2_Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zzq2_Func003001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetLastCreatedUnit()))==true)
endfunction
function Trig_zzq2_Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_zzq2_Func003001003001001(),Trig_zzq2_Func003001003001002())
endfunction
function Trig_zzq2_Func003001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group18)==false)
endfunction
function Trig_zzq2_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zzq2_Func003001003001(),Trig_zzq2_Func003001003002())
endfunction
function Trig_zzq2_Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group18)
call UnitDamageTargetBJ(udg_unit58,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit58,true))*I2R(GetUnitAbilityLevel(udg_unit58,'A01E'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_zzq2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e01H',GetOwningPlayer(GetDyingUnit()),PolarProjectionBJ(GetUnitLoc(GetDyingUnit()),200.00,GetUnitFacing(GetDyingUnit())),GetUnitFacing(GetDyingUnit()))
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_zzq2_Func003001003)),function Trig_zzq2_Func003A)
endfunction
function Trig_U2_______u_Conditions takes nothing returns boolean
if(not(GetLearnedSkill()=='A005'))then
return false
endif
return true
endfunction
function Trig_U2_______u_Actions takes nothing returns nothing
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A005',false)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_qn_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01I'))then
return false
endif
return true
endfunction
function Trig_qn_Actions takes nothing returns nothing
set udg_units09[1]=GetTriggerUnit()
set udg_units09[2]=GetSpellTargetUnit()
call TriggerSleepAction(0.05)
call PauseUnitBJ(true,udg_units09[1])
call SetUnitPathing(udg_units09[1],false)
call SetUnitTimeScalePercent(udg_units09[1],400.00)
call SetUnitAnimation(GetTriggerUnit(),"spell three")
call EnableTrigger(udg_trigger186)
call EnableTrigger(udg_trigger187)
endfunction
function Trig_qn2_Func001Func014Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qn2_Func001Func014Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[1]))==true)
endfunction
function Trig_qn2_Func001Func014Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qn2_Func001Func014Func001001003001(),Trig_qn2_Func001Func014Func001001003002())
endfunction
function Trig_qn2_Func001Func014Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units09[1],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units09[1],true))*I2R(GetUnitAbilityLevel(udg_units09[1],'A01I')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units09[1],true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_qn2_Func001Func014Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qn2_Func001Func014Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[1]))==true)
endfunction
function Trig_qn2_Func001Func014Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qn2_Func001Func014Func002001003001(),Trig_qn2_Func001Func014Func002001003002())
endfunction
function Trig_qn2_Func001Func014Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units09[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units09[1],true))*I2R(GetUnitAbilityLevel(udg_units09[1],'A01I'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_qn2_Func001Func014C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units09[1],'I014')==true))then
return false
endif
return true
endfunction
function Trig_qn2_Func001Func023C takes nothing returns boolean
if((IsUnitDeadBJ(udg_units09[2])==true))then
return true
endif
if((IsUnitInGroup(udg_units09[1],GetUnitsInRangeOfLocAll(100.00,GetUnitLoc(udg_units09[2])))==true))then
return true
endif
if((R2I(DistanceBetweenPoints(GetUnitLoc(udg_units09[1]),GetUnitLoc(udg_units09[2])))>1800))then
return true
endif
return false
endfunction
function Trig_qn2_Func001C takes nothing returns boolean
if(not Trig_qn2_Func001Func023C())then
return false
endif
return true
endfunction
function Trig_qn2_Actions takes nothing returns nothing
if(Trig_qn2_Func001C())then
call DisableTrigger(udg_trigger187)
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_units09[1],"spell four")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[2]),150.00,(60.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'e019',GetOwningPlayer(udg_units09[1]),GetUnitLoc(udg_units09[2]),GetRandomDirectionDeg())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',0.20)
if(Trig_qn2_Func001Func014C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units09[2]),Condition(function Trig_qn2_Func001Func014Func001001003)),function Trig_qn2_Func001Func014Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units09[2]),Condition(function Trig_qn2_Func001Func014Func002001003)),function Trig_qn2_Func001Func014Func002A)
endif
call DestroyGroup(GetLastCreatedGroup())
call SetUnitTimeScalePercent(udg_units09[1],100)
call SetUnitPathing(udg_units09[1],true)
call PauseUnitBJ(false,udg_units09[1])
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[2]),300.00,(60.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_units09[1]=null
set udg_units09[2]=null
else
call SetUnitPositionLocFacingLocBJ(udg_units09[1],PolarProjectionBJ(GetUnitLoc(udg_units09[1]),30.00,AngleBetweenPoints(GetUnitLoc(udg_units09[1]),GetUnitLoc(udg_units09[2]))),GetUnitLoc(udg_units09[2]))
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[1]),40.00,(AngleBetweenPoints(GetUnitLoc(udg_units09[1]),GetUnitLoc(udg_units09[2]))+90.00)),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[1]),40.00,(AngleBetweenPoints(GetUnitLoc(udg_units09[1]),GetUnitLoc(udg_units09[2]))+90.00)),"Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("left hand",udg_units09[1],"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function Trig_qn3_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("left hand",udg_units09[1],"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("left hand",udg_units09[1],"Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_qnlm1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01J'))then
return false
endif
return true
endfunction
function Trig_qnlm1_Func006Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_qnlm1_Func006Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qnlm1_Func006Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_qnlm1_Func006Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_qnlm1_Func006Func002001003002001(),Trig_qnlm1_Func006Func002001003002002())
endfunction
function Trig_qnlm1_Func006Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qnlm1_Func006Func002001003001(),Trig_qnlm1_Func006Func002001003002())
endfunction
function Trig_qnlm1_Func006Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group11)
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_qnlm1_Func006Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_qnlm1_Func006Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qnlm1_Func006Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_qnlm1_Func006Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_qnlm1_Func006Func003001003002001(),Trig_qnlm1_Func006Func003001003002002())
endfunction
function Trig_qnlm1_Func006Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qnlm1_Func006Func003001003001(),Trig_qnlm1_Func006Func003001003002())
endfunction
function Trig_qnlm1_Func006Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group11)
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_qnlm1_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit58,'I05D')==true))then
return false
endif
return true
endfunction
function Trig_qnlm1_Func012A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_qnlm1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound43)
set udg_units24[8]=GetSpellTargetUnit()
set udg_location16=GetUnitLoc(udg_units24[8])
set udg_units24[7]=GetTriggerUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00B',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location16,GetRandomReal(1.00,80.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_qnlm1_Func006C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location16,Condition(function Trig_qnlm1_Func006Func002001003)),function Trig_qnlm1_Func006Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location16,Condition(function Trig_qnlm1_Func006Func003001003)),function Trig_qnlm1_Func006Func003A)
endif
call TriggerSleepAction(0.05)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e014',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location16,150.00,(60.00*I2R(GetForLoopIndexA()))),(60.00*I2R(GetForLoopIndexA())))
set udg_units24[GetForLoopIndexA()]=GetLastCreatedUnit()
call SetUnitPathing(GetLastCreatedUnit(),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group10)
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location16,150.00,(60.00*I2R(GetForLoopIndexA()))),(60.00*I2R(GetForLoopIndexA())))
set udg_units23[GetForLoopIndexA()]=GetLastCreatedUnit()
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitFlyHeight(GetLastCreatedUnit(),1000.00,1000000000.00)
call IssueTargetOrder(udg_units23[GetForLoopIndexA()],"fingerofdeath",udg_units24[GetForLoopIndexA()])
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group10)
call UnitAddAbility(udg_units24[GetForLoopIndexA()],'Aloc')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger189)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger189)
call ForGroupBJ(udg_group10,function Trig_qnlm1_Func012A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units23[GetForLoopIndexA()]=null
set udg_units24[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_units24[7]=null
set udg_units24[8]=null
call GroupClear(udg_group10)
call GroupClear(udg_group11)
call RemoveLocation(udg_location16)
endfunction
function Trig_qnlm2_Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,3)==2))then
return false
endif
return true
endfunction
function Trig_qnlm2_Func001A takes nothing returns nothing
if(Trig_qnlm2_Func001Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\LightningBolt\\LightningBoltMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),13.00,AngleBetweenPoints(udg_location16,GetUnitLoc(GetEnumUnit()))))
endfunction
function Trig_qnlm2_Func002Func001Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qnlm2_Func002Func001Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units24[7]))==true)
endfunction
function Trig_qnlm2_Func002Func001Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_qnlm2_Func002Func001Func001001003001001(),Trig_qnlm2_Func002Func001Func001001003001002())
endfunction
function Trig_qnlm2_Func002Func001Func001001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11)==false)
endfunction
function Trig_qnlm2_Func002Func001Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qnlm2_Func002Func001Func001001003001(),Trig_qnlm2_Func002Func001Func001001003002())
endfunction
function Trig_qnlm2_Func002Func001Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group11)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units24[7],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units24[7],true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_qnlm2_Func002Func002Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qnlm2_Func002Func002Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units24[7]))==true)
endfunction
function Trig_qnlm2_Func002Func002Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_qnlm2_Func002Func002Func001001003001001(),Trig_qnlm2_Func002Func002Func001001003001002())
endfunction
function Trig_qnlm2_Func002Func002Func001001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group11)==false)
endfunction
function Trig_qnlm2_Func002Func002Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qnlm2_Func002Func002Func001001003001(),Trig_qnlm2_Func002Func002Func001001003002())
endfunction
function Trig_qnlm2_Func002Func002Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group11)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units24[7],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units24[7],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_qnlm2_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit58,'I05D')==true))then
return false
endif
return true
endfunction
function Trig_qnlm2_Actions takes nothing returns nothing
call ForGroupBJ(udg_group10,function Trig_qnlm2_Func001A)
if(Trig_qnlm2_Func002C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(udg_units24[GetForLoopIndexA()]),Condition(function Trig_qnlm2_Func002Func001Func001001003)),function Trig_qnlm2_Func002Func001Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(udg_units24[GetForLoopIndexA()]),Condition(function Trig_qnlm2_Func002Func002Func001001003)),function Trig_qnlm2_Func002Func002Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function Trig_ZZtianzao1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A005'))then
return false
endif
return true
endfunction
function Trig_ZZtianzao1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound33)
set udg_units07[11]=GetTriggerUnit()
set udg_units07[12]=GetSpellTargetUnit()
set udg_location17=GetUnitLoc(udg_units07[12])
call CreateNUnitsAtLoc(1,'n00O',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())),GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(20.00,'BTLF',GetLastCreatedUnit())
set udg_units07[13]=GetLastCreatedUnit()
call EnableTrigger(udg_trigger191)
endfunction
function Trig_ZZtianzhao2_Func001Func003C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(udg_location17,200.00,200.00),udg_units07[13])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units07[12])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units07[13])==true))then
return true
endif
return false
endfunction
function Trig_ZZtianzhao2_Func001Func007Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ZZtianzhao2_Func001Func007Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[11]))==true)
endfunction
function Trig_ZZtianzhao2_Func001Func007Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ZZtianzhao2_Func001Func007Func001001003001(),Trig_ZZtianzhao2_Func001Func007Func001001003002())
endfunction
function Trig_ZZtianzhao2_Func001Func007Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units07[11],true))*5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ZZtianzhao2_Func001Func007Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ZZtianzhao2_Func001Func007Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[11]))==true)
endfunction
function Trig_ZZtianzhao2_Func001Func007Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ZZtianzhao2_Func001Func007Func002001003001(),Trig_ZZtianzhao2_Func001Func007Func002001003002())
endfunction
function Trig_ZZtianzhao2_Func001Func007Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units07[11],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ZZtianzhao2_Func001Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units07[11],'I016')==true))then
return false
endif
return true
endfunction
function Trig_ZZtianzhao2_Func001Func011Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ZZtianzhao2_Func001Func011Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[11]))==true)
endfunction
function Trig_ZZtianzhao2_Func001Func011Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ZZtianzhao2_Func001Func011Func001001003001(),Trig_ZZtianzhao2_Func001Func011Func001001003002())
endfunction
function Trig_ZZtianzhao2_Func001Func011Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units07[11],true))*30.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ZZtianzhao2_Func001Func011Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ZZtianzhao2_Func001Func011Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[11]))==true)
endfunction
function Trig_ZZtianzhao2_Func001Func011Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ZZtianzhao2_Func001Func011Func002001003001(),Trig_ZZtianzhao2_Func001Func011Func002001003002())
endfunction
function Trig_ZZtianzhao2_Func001Func011Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units07[11],true))*45.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ZZtianzhao2_Func001Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units07[11],'I016')==true))then
return false
endif
return true
endfunction
function Trig_ZZtianzhao2_Func001C takes nothing returns boolean
if(not Trig_ZZtianzhao2_Func001Func003C())then
return false
endif
return true
endfunction
function Trig_ZZtianzhao2_Actions takes nothing returns nothing
if(Trig_ZZtianzhao2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00W',GetOwningPlayer(udg_units07[11]),PolarProjectionBJ(udg_location17,180.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00W',GetOwningPlayer(udg_units07[11]),PolarProjectionBJ(udg_location17,470.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.60)
if(Trig_ZZtianzhao2_Func001Func007C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location17,Condition(function Trig_ZZtianzhao2_Func001Func007Func002001003)),function Trig_ZZtianzhao2_Func001Func007Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location17,Condition(function Trig_ZZtianzhao2_Func001Func007Func001001003)),function Trig_ZZtianzhao2_Func001Func007Func001A)
endif
call DestroyGroup(GetLastCreatedGroup())
call IssueImmediateOrder(udg_units07[13],"locustswarm")
call TriggerSleepAction(0.50)
if(Trig_ZZtianzhao2_Func001Func011C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location17,Condition(function Trig_ZZtianzhao2_Func001Func011Func002001003)),function Trig_ZZtianzhao2_Func001Func011Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location17,Condition(function Trig_ZZtianzhao2_Func001Func011Func001001003)),function Trig_ZZtianzhao2_Func001Func011Func001A)
endif
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location17)
set udg_units07[11]=null
set udg_units07[12]=null
set udg_units07[13]=null
else
call SetUnitPositionLocFacingLocBJ(udg_units07[13],PolarProjectionBJ(GetUnitLoc(udg_units07[13]),27.00,AngleBetweenPoints(GetUnitLoc(udg_units07[13]),udg_location17)),udg_location17)
endif
endfunction
function Trig_ZZtianzhao3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='n00O'))then
return false
endif
return true
endfunction
function Trig_ZZtianzhao3_Actions takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit58,GetAttackedUnitBJ(),I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit58,true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_CZW_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04V'))then
return false
endif
return true
endfunction
function Trig_CZW_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound03)
set udg_unit07=GetTriggerUnit()
call TriggerSleepAction(0.10)
call PauseUnitBJ(true,udg_unit07)
call SetUnitTimeScalePercent(udg_unit07,400.00)
call SetUnitAnimation(udg_unit07,"Spell two")
call EnableTrigger(udg_trigger194)
endfunction
function Trig_CZW2_Func001Func011001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_CZW2_Func001Func011001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_CZW2_Func001Func011001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit07))==true)
endfunction
function Trig_CZW2_Func001Func011001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_CZW2_Func001Func011001003002001(),Trig_CZW2_Func001Func011001003002002())
endfunction
function Trig_CZW2_Func001Func011001003 takes nothing returns boolean
return GetBooleanAnd(Trig_CZW2_Func001Func011001003001(),Trig_CZW2_Func001Func011001003002())
endfunction
function Trig_CZW2_Func001Func011A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit07,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit07,true))*I2R(GetUnitAbilityLevelSwapped('A04V',udg_unit07)))/5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_CZW2_Func001C takes nothing returns boolean
if(not(udg_integer18<5))then
return false
endif
return true
endfunction
function Trig_CZW2_Actions takes nothing returns nothing
if(Trig_CZW2_Func001C())then
set udg_integer18=(udg_integer18+1)
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit07),GetRandomReal(1.00,100.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit07),GetRandomReal(100.00,200.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(360.00,GetUnitLoc(udg_unit07),Condition(function Trig_CZW2_Func001Func011001003)),function Trig_CZW2_Func001Func011A)
call DestroyGroup(GetLastCreatedGroup())
else
call DisableTrigger(GetTriggeringTrigger())
set udg_integer18=0
call SetUnitTimeScalePercent(udg_unit07,100.00)
call PauseUnit(udg_unit07,false)
set udg_unit07=null
endif
endfunction
function Trig_txhzw1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04U'))then
return false
endif
return true
endfunction
function Trig_txhzw1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
set udg_units09[5]=GetTriggerUnit()
set udg_units09[6]=GetSpellTargetUnit()
call SetUnitAnimation(GetTriggerUnit(),"spell attack")
call TriggerSleepAction(0.05)
call PauseUnitBJ(true,udg_units09[5])
call SetUnitPathing(udg_units09[5],false)
call SetUnitTimeScalePercent(udg_units09[5],500.00)
call UnitAddAbility(udg_units09[5],'A041')
call SetUnitAnimation(udg_units09[5],"Attack 2")
call EnableTrigger(udg_trigger196)
endfunction
function Trig_txhzw2_Func001Func001C takes nothing returns boolean
if((IsUnitDeadBJ(udg_units09[6])==true))then
return true
endif
if((IsUnitInGroup(udg_units09[5],GetUnitsInRangeOfLocAll(100.00,GetUnitLoc(udg_units09[6])))==true))then
return true
endif
if((R2I(DistanceBetweenPoints(GetUnitLoc(udg_units09[5]),GetUnitLoc(udg_units09[6])))>1400))then
return true
endif
return false
endfunction
function Trig_txhzw2_Func001Func010Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_txhzw2_Func001Func010Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[5]))==true)
endfunction
function Trig_txhzw2_Func001Func010Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_txhzw2_Func001Func010Func002001003001(),Trig_txhzw2_Func001Func010Func002001003002())
endfunction
function Trig_txhzw2_Func001Func010Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units09[5],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units09[5],true))*30.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_txhzw2_Func001Func010Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_txhzw2_Func001Func010Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[5]))==true)
endfunction
function Trig_txhzw2_Func001Func010Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_txhzw2_Func001Func010Func006001003001(),Trig_txhzw2_Func001Func010Func006001003002())
endfunction
function Trig_txhzw2_Func001Func010Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units09[5],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units09[5],true))*I2R(GetUnitAbilityLevel(udg_units09[5],'A04U'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_txhzw2_Func001Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit73,'I05K')==true))then
return false
endif
return true
endfunction
function Trig_txhzw2_Func001C takes nothing returns boolean
if(not Trig_txhzw2_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_txhzw2_Actions takes nothing returns nothing
if(Trig_txhzw2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_units09[5],"Attack")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units09[5]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units09[5]),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("overhead",udg_units09[5],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_txhzw2_Func001Func010C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units09[6]),Condition(function Trig_txhzw2_Func001Func010Func002001003)),function Trig_txhzw2_Func001Func010Func002A)
else
call CreateNUnitsAtLoc(1,'e019',GetOwningPlayer(udg_units09[5]),GetUnitLoc(udg_units09[6]),GetRandomDirectionDeg())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',0.20)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units09[6]),Condition(function Trig_txhzw2_Func001Func010Func006001003)),function Trig_txhzw2_Func001Func010Func006A)
endif
call DestroyGroup(GetLastCreatedGroup())
call SetUnitTimeScalePercent(udg_units09[5],100.00)
call SetUnitAnimation(udg_units09[5],"Attack")
call UnitRemoveAbility(udg_units09[5],'A041')
call SetUnitPathing(udg_units09[5],true)
call PauseUnitBJ(false,udg_units09[5])
set udg_units09[5]=null
set udg_units09[6]=null
else
call SetUnitPositionLocFacingLocBJ(udg_units09[5],PolarProjectionBJ(GetUnitLoc(udg_units09[5]),32.00,AngleBetweenPoints(GetUnitLoc(udg_units09[5]),GetUnitLoc(udg_units09[6]))),GetUnitLoc(udg_units09[6]))
endif
endfunction
function Trig_tszw1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04W'))then
return false
endif
return true
endfunction
function Trig_tszw1_Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_tszw1_Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_tszw1_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_tszw1_Func001001003001(),Trig_tszw1_Func001001003002())
endfunction
function Trig_tszw1_Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A04W'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_tszw1_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_tszw1_Func001001003)),function Trig_tszw1_Func001A)
call DestroyGroup(GetLastCreatedGroup())
call UnitAddAbility(GetTriggerUnit(),'A05A')
call TriggerSleepAction(5.00)
call UnitRemoveAbility(GetTriggerUnit(),'A05A')
endfunction
function Trig_sczww1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04Z'))then
return false
endif
return true
endfunction
function Trig_sczww1_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units12[5],'I044')==true))then
return false
endif
return true
endfunction
function Trig_sczww1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound10)
set udg_units12[5]=GetTriggerUnit()
set udg_units12[6]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call SetUnitPathing(udg_units12[5],false)
call SetUnitInvulnerable(GetTriggerUnit(),true)
set udg_integer19=1
loop
exitwhen udg_integer19>5
call SetUnitAnimationWithRarity(udg_units12[5],"Attack",RARITY_RARE)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units12[5]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLocFacingLocBJ(udg_units12[6],PolarProjectionBJ(GetUnitLoc(udg_units12[6]),50.00,GetUnitFacing(udg_units12[5])),GetUnitLoc(udg_units12[5]))
call SetUnitPositionLocFacingLocBJ(udg_units12[5],PolarProjectionBJ(GetUnitLoc(udg_units12[6]),90.00,GetUnitFacing(udg_units12[6])),GetUnitLoc(udg_units12[6]))
call UnitDamageTargetBJ(udg_units12[5],udg_units12[6],I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units12[5],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call TriggerSleepAction(0.00)
set udg_integer19=udg_integer19+1
endloop
set udg_real05=GetUnitFacing(GetTriggerUnit())
call SetUnitInvulnerable(GetTriggerUnit(),false)
call SetUnitPathing(udg_units12[5],true)
if(Trig_sczww1_Func011C())then
call UnitDamageTargetBJ(udg_units12[5],udg_units12[6],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units12[5],true))*35.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units12[5],udg_units12[6],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units12[5],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units12[6]),200.00,200.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger199)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger199)
call GroupClear(udg_group06)
set udg_units12[5]=null
set udg_units12[6]=null
endfunction
function Trig_sczww2_Func006C takes nothing returns boolean
if(not(GetRandomInt(1,2)==1))then
return false
endif
return true
endfunction
function Trig_sczww2_Func007Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sczww2_Func007Func002001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units12[6])
endfunction
function Trig_sczww2_Func007Func002001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group06)==false)
endfunction
function Trig_sczww2_Func007Func002001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[5]))==true)
endfunction
function Trig_sczww2_Func007Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_sczww2_Func007Func002001003002002001(),Trig_sczww2_Func007Func002001003002002002())
endfunction
function Trig_sczww2_Func007Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_sczww2_Func007Func002001003002001(),Trig_sczww2_Func007Func002001003002002())
endfunction
function Trig_sczww2_Func007Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sczww2_Func007Func002001003001(),Trig_sczww2_Func007Func002001003002())
endfunction
function Trig_sczww2_Func007Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group06)
call UnitDamageTargetBJ(udg_units12[5],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units12[5],true))*30.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_sczww2_Func007Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sczww2_Func007Func003001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units12[6])
endfunction
function Trig_sczww2_Func007Func003001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group06)==false)
endfunction
function Trig_sczww2_Func007Func003001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[5]))==true)
endfunction
function Trig_sczww2_Func007Func003001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_sczww2_Func007Func003001003002002001(),Trig_sczww2_Func007Func003001003002002002())
endfunction
function Trig_sczww2_Func007Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_sczww2_Func007Func003001003002001(),Trig_sczww2_Func007Func003001003002002())
endfunction
function Trig_sczww2_Func007Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sczww2_Func007Func003001003001(),Trig_sczww2_Func007Func003001003002())
endfunction
function Trig_sczww2_Func007Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group06)
call UnitDamageTargetBJ(udg_units12[5],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units12[5],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_sczww2_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units12[5],'I044')==true))then
return false
endif
return true
endfunction
function Trig_sczww2_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units12[6],PolarProjectionBJ(GetUnitLoc(udg_units12[6]),35.00,udg_real05))
call SetUnitPositionLoc(udg_units12[6],GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units12[6]),150.00,150.00)))
call CreateNUnitsAtLoc(1,'u000',GetOwningPlayer(udg_units12[5]),PolarProjectionBJ(GetUnitLoc(udg_units12[6]),GetRandomReal(1.00,160.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
if(Trig_sczww2_Func006C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endif
if(Trig_sczww2_Func007C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(udg_units12[6]),Condition(function Trig_sczww2_Func007Func002001003)),function Trig_sczww2_Func007Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(udg_units12[6]),Condition(function Trig_sczww2_Func007Func003001003)),function Trig_sczww2_Func007Func003A)
endif
endfunction
function Trig_zjzw4_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04X'))then
return false
endif
return true
endfunction
function Trig_zjzw4_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound14)
set udg_unit08=GetTriggerUnit()
call EnableTrigger(udg_trigger201)
call EnableTrigger(udg_trigger202)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger201)
call DisableTrigger(udg_trigger202)
set udg_unit08=null
endfunction
function Trig_zjzw5_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit08),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit08),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit08),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit08),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_zjzw6_Func003Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zjzw6_Func003Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit08))==true)
endfunction
function Trig_zjzw6_Func003Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zjzw6_Func003Func002001003001(),Trig_zjzw6_Func003Func002001003002())
endfunction
function Trig_zjzw6_Func003Func002Func001C takes nothing returns boolean
if(not(GetRandomInt(1,2)==1))then
return false
endif
return true
endfunction
function Trig_zjzw6_Func003Func002A takes nothing returns nothing
if(Trig_zjzw6_Func003Func002Func001C())then
call UnitDamageTargetBJ(udg_unit08,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit08,true))*6.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_unit08,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit08,true))*3.80),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_zjzw6_Func003Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zjzw6_Func003Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit08))==true)
endfunction
function Trig_zjzw6_Func003Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zjzw6_Func003Func003001003001(),Trig_zjzw6_Func003Func003001003002())
endfunction
function Trig_zjzw6_Func003Func003Func001C takes nothing returns boolean
if(not(GetRandomInt(1,2)==1))then
return false
endif
return true
endfunction
function Trig_zjzw6_Func003Func003A takes nothing returns nothing
if(Trig_zjzw6_Func003Func003Func001C())then
call UnitDamageTargetBJ(udg_unit08,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit08,true))*5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_unit08,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit08,true))*3.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_zjzw6_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit08,'I047')==true))then
return false
endif
return true
endfunction
function Trig_zjzw6_Actions takes nothing returns nothing
set udg_location11=GetUnitLoc(udg_unit08)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u000',GetOwningPlayer(udg_unit08),PolarProjectionBJ(udg_location11,GetRandomReal(80.00,450.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.50,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),140.00)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_zjzw6_Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_unit08),Condition(function Trig_zjzw6_Func003Func002001003)),function Trig_zjzw6_Func003Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_unit08),Condition(function Trig_zjzw6_Func003Func003001003)),function Trig_zjzw6_Func003Func003A)
endif
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location11)
endfunction
function Trig_zybz1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08B'))then
return false
endif
return true
endfunction
function Trig_zybz1_Actions takes nothing returns nothing
set udg_units09[11]=GetTriggerUnit()
set udg_units09[12]=GetSpellTargetUnit()
call TriggerSleepAction(0.05)
call PauseUnit(udg_units09[11],true)
call SetUnitAnimation(GetTriggerUnit(),"Morph")
call TriggerSleepAction(0.80)
call CreateNUnitsAtLoc(1,'o008',GetOwningPlayer(udg_units09[11]),GetUnitLoc(udg_units09[11]),GetUnitFacing(udg_units09[11]))
set udg_units09[13]=GetLastCreatedUnit()
call ShowUnitHide(udg_units09[11])
call SetUnitPathing(udg_units09[13],false)
call SetUnitTimeScalePercent(udg_units09[13],500.00)
call SetUnitAnimation(udg_units09[13],"Attack 2")
call EnableTrigger(udg_trigger204)
endfunction
function Trig_zybz2_Func001Func001C takes nothing returns boolean
if((IsUnitDeadBJ(udg_units09[11])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units09[12])==true))then
return true
endif
if((RectContainsUnit(RectFromCenterSizeBJ(GetUnitLoc(udg_units09[12]),150.00,150.00),udg_units09[13])==true))then
return true
endif
return false
endfunction
function Trig_zybz2_Func001C takes nothing returns boolean
if(not Trig_zybz2_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_zybz2_Actions takes nothing returns nothing
if(Trig_zybz2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound14)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units09[11]),30.00)
call SetUnitAnimation(udg_units09[13],"Attack alternate")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units09[13]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units09[13]),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("overhead",udg_units09[13],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitTimeScalePercent(udg_units09[13],100.00)
call SetUnitAnimation(udg_units09[13],"spell channel alternate")
call EnableTrigger(udg_trigger205)
call EnableTrigger(udg_trigger206)
call TriggerSleepAction(2)
call DisableTrigger(udg_trigger205)
call DisableTrigger(udg_trigger206)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units09[13]))
call SetUnitPositionLoc(udg_units09[11],GetUnitLoc(udg_units09[13]))
call RemoveUnit(udg_units09[13])
call ShowUnitShow(udg_units09[11])
call PauseUnitBJ(false,udg_units09[11])
call SelectUnitForPlayerSingle(udg_units09[11],GetOwningPlayer(udg_units09[11]))
set udg_units09[11]=null
set udg_units09[12]=null
set udg_units09[13]=null
else
call SetUnitPositionLocFacingLocBJ(udg_units09[13],PolarProjectionBJ(GetUnitLoc(udg_units09[13]),32.00,AngleBetweenPoints(GetUnitLoc(udg_units09[13]),GetUnitLoc(udg_units09[12]))),GetUnitLoc(udg_units09[12]))
endif
endfunction
function Trig_zybz3_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[13]),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[13]),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[13]),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[13]),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_zybz4_Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zybz4_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[11]))==true)
endfunction
function Trig_zybz4_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zybz4_Func003001003001(),Trig_zybz4_Func003001003002())
endfunction
function Trig_zybz4_Func003Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==2))then
return false
endif
return true
endfunction
function Trig_zybz4_Func003A takes nothing returns nothing
if(Trig_zybz4_Func003Func001C())then
call UnitDamageTargetBJ(udg_units09[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units09[11],true))*13.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units09[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units09[11],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_zybz4_Actions takes nothing returns nothing
set udg_location27=GetUnitLoc(udg_units09[13])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u000',GetOwningPlayer(udg_units09[11]),PolarProjectionBJ(udg_location27,GetRandomReal(80.00,800.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.50,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),140.00)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(850.00,GetUnitLoc(udg_units09[13]),Condition(function Trig_zybz4_Func003001003)),function Trig_zybz4_Func003A)
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location27)
endfunction
function Trig_hfz_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A051'))then
return false
endif
return true
endfunction
function Trig_hfz_Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hfz_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_hfz_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hfz_Func002001003001(),Trig_hfz_Func002001003002())
endfunction
function Trig_hfz_Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A051'))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hfz_Actions takes nothing returns nothing
set udg_location10=GetSpellTargetLoc()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location10,Condition(function Trig_hfz_Func002001003)),function Trig_hfz_Func002A)
call RemoveLocation(udg_location10)
endfunction
function Trig_jssg1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A055'))then
return false
endif
return true
endfunction
function Trig_jssg1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound44)
set udg_unit09=GetTriggerUnit()
set udg_unit17=GetSpellTargetUnit()
set udg_location12=GetUnitLoc(udg_unit17)
call ShowUnitHide(udg_unit09)
call CreateNUnitsAtLocFacingLocBJ(1,'e00C',GetOwningPlayer(udg_unit09),udg_location12,GetRandomLocInRect(RectFromCenterSizeBJ(udg_location12,400.00,400.00)))
set udg_unit11=GetLastCreatedUnit()
call UnitAddAbility(udg_unit11,'A04I')
call SetUnitTimeScalePercent(udg_unit11,400.00)
call AddSpecialEffectTargetUnitBJ("hand",udg_unit11,"Abilities\\Spells\\NightElf\\Rejuvenation\\RejuvenationTarget.mdl")
call AddSpecialEffectTargetUnitBJ("weapon",udg_unit11,"Abilities\\Spells\\NightElf\\Rejuvenation\\RejuvenationTarget.mdl")
call EnableTrigger(udg_trigger209)
endfunction
function Trig_jssg2_Func002Func014001 takes nothing returns boolean
return(GetRandomInt(1,2)==1)
endfunction
function Trig_jssg2_Func002Func023Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jssg2_Func002Func023Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit09))==true)
endfunction
function Trig_jssg2_Func002Func023Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jssg2_Func002Func023Func002001003001(),Trig_jssg2_Func002Func023Func002001003002())
endfunction
function Trig_jssg2_Func002Func023Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit09,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit09,true))*40.00)/20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jssg2_Func002Func023Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jssg2_Func002Func023Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit09))==true)
endfunction
function Trig_jssg2_Func002Func023Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jssg2_Func002Func023Func003001003001(),Trig_jssg2_Func002Func023Func003001003002())
endfunction
function Trig_jssg2_Func002Func023Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit09,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit09,true))*25.00)/20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jssg2_Func002Func023C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit75,'I010')==true))then
return false
endif
return true
endfunction
function Trig_jssg2_Func002C takes nothing returns boolean
if(not(udg_integer22<20))then
return false
endif
return true
endfunction
function Trig_jssg2_Actions takes nothing returns nothing
set udg_integer22=(udg_integer22+1)
if(Trig_jssg2_Func002C())then
call SetUnitPositionLoc(udg_unit11,PolarProjectionBJ(udg_location12,GetRandomReal(100.00,500.00),GetRandomDirectionDeg()))
call SetUnitFlyHeight(udg_unit11,GetRandomReal(1.00,300.00),2000.00)
if(Trig_jssg2_Func002Func014001())then
call SetUnitAnimation(udg_unit11,"attack")
else
call SetUnitAnimation(udg_unit11,"spell three")
endif
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit11),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CreateNUnitsAtLocFacingLocBJ(1,'e00C',GetOwningPlayer(udg_unit09),GetUnitLoc(udg_unit11),GetUnitLoc(GetTriggerUnit()))
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100,100,50.00)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),200.00)
call SetUnitFlyHeight(GetLastCreatedUnit(),GetRandomReal(200.00,500.00),1000000000.00)
call SetUnitAnimation(GetLastCreatedUnit(),"attack")
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
if(Trig_jssg2_Func002Func023C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location12,Condition(function Trig_jssg2_Func002Func023Func002001003)),function Trig_jssg2_Func002Func023Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location12,Condition(function Trig_jssg2_Func002Func023Func003001003)),function Trig_jssg2_Func002Func023Func003A)
endif
else
call DisableTrigger(GetTriggeringTrigger())
set udg_integer22=0
call RemoveUnit(udg_unit11)
call ShowUnitShow(udg_unit09)
call SelectUnitForPlayerSingle(udg_unit09,GetOwningPlayer(udg_unit09))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit09),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set udg_unit09=null
set udg_unit11=null
set udg_unit17=null
call RemoveLocation(udg_location12)
endif
endfunction
function Trig_Sg_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A053'))then
return false
endif
return true
endfunction
function Trig_Sg_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units15[8],'I031')==true))then
return false
endif
return true
endfunction
function Trig_Sg_Actions takes nothing returns nothing
set udg_units15[8]=GetTriggerUnit()
set udg_units15[9]=GetSpellTargetUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units15[8]),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.20)
call SetUnitPositionLoc(udg_units15[8],GetUnitLoc(udg_units15[9]))
if(Trig_Sg_Func007C())then
call UnitDamageTargetBJ(udg_units15[8],udg_units15[9],((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units15[8],true))*I2R(GetUnitAbilityLevel(udg_units15[8],'A053')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units15[8],true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units15[8],udg_units15[9],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units15[8],true))*I2R(GetUnitAbilityLevel(udg_units15[8],'A053'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units15[9]),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_SD2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A052'))then
return false
endif
return true
endfunction
function Trig_SD2_Actions takes nothing returns nothing
set udg_units49[3]=GetTriggerUnit()
set udg_units49[4]=GetSpellTargetUnit()
call TriggerSleepAction(0.02)
set udg_locations23[1]=GetUnitLoc(udg_units49[3])
set udg_locations23[2]=GetUnitLoc(udg_units49[4])
call PauseUnitBJ(true,udg_units49[3])
call SetUnitPathing(udg_units49[3],false)
call UnitAddAbility(udg_units49[3],'Amrf')
call UnitAddAbility(udg_units49[3],'A009')
call SetUnitAnimation(udg_units49[3],"spell one")
set udg_reals04[3]=-20.00
set udg_reals04[4]=AngleBetweenPoints(udg_locations23[1],udg_locations23[2])
set udg_reals04[5]=DistanceBetweenPoints(udg_locations23[1],udg_locations23[2])
call TriggerSleepAction(0.10)
call EnableTrigger(udg_trigger212)
endfunction
function Trig_SD3_Func010Func007001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SD3_Func010Func007001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units49[3]))==true)
endfunction
function Trig_SD3_Func010Func007001003002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_SD3_Func010Func007001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SD3_Func010Func007001003002001(),Trig_SD3_Func010Func007001003002002())
endfunction
function Trig_SD3_Func010Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SD3_Func010Func007001003001(),Trig_SD3_Func010Func007001003002())
endfunction
function Trig_SD3_Func010Func007Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit75,'I012')==true))then
return false
endif
return true
endfunction
function Trig_SD3_Func010Func007A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_SD3_Func010Func007Func003C())then
call UnitDamageTargetBJ(udg_units49[3],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units49[3],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units49[3],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units49[3],true))*I2R(GetUnitAbilityLevel(udg_units49[3],'A052'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_SD3_Func010C takes nothing returns boolean
if(not(udg_reals04[2]>=40.00))then
return false
endif
return true
endfunction
function Trig_SD3_Actions takes nothing returns nothing
set udg_reals04[3]=(udg_reals04[3]+1)
set udg_reals04[2]=(udg_reals04[2]+1)
set udg_reals04[1]=(((udg_reals04[3]*udg_reals04[3])*-1.00)+500.00)
call SetUnitFlyHeight(udg_units49[3],udg_reals04[1],0.00)
set udg_locations23[3]=GetUnitLoc(udg_units49[3])
set udg_locations23[4]=PolarProjectionBJ(udg_locations23[3],(udg_reals04[5]/40.00),AngleBetweenPoints(udg_locations23[3],udg_locations23[2]))
call SetUnitPositionLoc(udg_units49[3],udg_locations23[4])
call RemoveLocation(udg_locations23[3])
call RemoveLocation(udg_locations23[4])
if(Trig_SD3_Func010C())then
call DisableTrigger(GetTriggeringTrigger())
set udg_reals04[2]=0.00
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations23[2],250.00,(60.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'e019',GetOwningPlayer(udg_units49[3]),udg_locations23[2],GetRandomDirectionDeg())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',0.20)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(330.00,udg_locations23[2],Condition(function Trig_SD3_Func010Func007001003)),function Trig_SD3_Func010Func007A)
call SetUnitFlyHeight(udg_units49[3],GetUnitDefaultFlyHeight(udg_units49[3]),1000000000.00)
call SetUnitAnimation(udg_units49[3],"spell two")
call UnitRemoveAbility(udg_units49[3],'Amrf')
call UnitRemoveAbility(udg_units49[3],'A009')
call SetUnitPathing(udg_units49[3],true)
call PauseUnit(udg_units49[3],false)
call SelectUnitForPlayerSingle(udg_units49[3],GetOwningPlayer(udg_units49[3]))
call RemoveLocation(udg_locations23[1])
call RemoveLocation(udg_locations23[2])
set udg_units49[3]=null
set udg_units49[4]=null
else
endif
endfunction
function Trig_fls_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A054'))then
return false
endif
return true
endfunction
function Trig_fls_______u_Actions takes nothing returns nothing
set udg_unit18=GetTriggerUnit()
set udg_location21=GetSpellTargetLoc()
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUTIN,2.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",100.00,100.00,100.00,0)
call SetUnitTimeScalePercent(udg_unit18,400.00)
call EnableTrigger(udg_trigger214)
call TriggerSleepAction(1.00)
call SetUnitTimeScalePercent(udg_unit04,100.00)
call DisableTrigger(udg_trigger214)
set udg_unit18=null
call RemoveLocation(udg_location21)
endfunction
function Trig_fls2_______u_Func001Func005001002003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_fls2_______u_Func001Func005001002003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_fls2_______u_Func001Func005001002003001 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_______u_Func001Func005001002003001001(),Trig_fls2_______u_Func001Func005001002003001002())
endfunction
function Trig_fls2_______u_Func001Func005001002003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_unit18))==true)
endfunction
function Trig_fls2_______u_Func001Func005001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_______u_Func001Func005001002003001(),Trig_fls2_______u_Func001Func005001002003002())
endfunction
function Trig_fls2_______u_Func001Func005A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit18),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLocFacingLocBJ(udg_unit18,GetUnitLoc(GetEnumUnit()),GetUnitLoc(GetEnumUnit()))
call SetUnitAnimation(udg_unit18,"attack")
call CreateNUnitsAtLocFacingLocBJ(1,'e00C',GetOwningPlayer(udg_unit18),GetUnitLoc(udg_unit18),GetUnitLoc(udg_unit18))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimationWithRarity(GetLastCreatedUnit(),"attack",RARITY_RARE)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit18),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_fls2_______u_Func001Func006Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_fls2_______u_Func001Func006Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit18))==true)
endfunction
function Trig_fls2_______u_Func001Func006Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_______u_Func001Func006Func001001003001(),Trig_fls2_______u_Func001Func006Func001001003002())
endfunction
function Trig_fls2_______u_Func001Func006Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit18,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit18,true))*6.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_fls2_______u_Func001Func006Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_fls2_______u_Func001Func006Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit18))==true)
endfunction
function Trig_fls2_______u_Func001Func006Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_______u_Func001Func006Func002001003001(),Trig_fls2_______u_Func001Func006Func002001003002())
endfunction
function Trig_fls2_______u_Func001Func006Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit18,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit18,true))*9.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_fls2_______u_Func001Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit75,'I05P')==true))then
return false
endif
return true
endfunction
function Trig_fls2_______u_Func001Func007001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_fls2_______u_Func001Func007001001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_fls2_______u_Func001Func007001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_______u_Func001Func007001001003001001(),Trig_fls2_______u_Func001Func007001001003001002())
endfunction
function Trig_fls2_______u_Func001Func007001001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_unit18))==true)
endfunction
function Trig_fls2_______u_Func001Func007001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_______u_Func001Func007001001003001(),Trig_fls2_______u_Func001Func007001001003002())
endfunction
function Trig_fls2_______u_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRangeOfLocMatching(400.00,udg_location21,Condition(function Trig_fls2_______u_Func001Func007001001003)))==0))then
return false
endif
return true
endfunction
function Trig_fls2_______u_Actions takes nothing returns nothing
if(Trig_fls2_______u_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScalePercent(udg_unit18,100.00)
set udg_unit18=null
call RemoveLocation(udg_location21)
else
call ForGroupBJ(GetRandomSubGroup(1,GetUnitsInRangeOfLocMatching(400.00,udg_location21,Condition(function Trig_fls2_______u_Func001Func005001002003))),function Trig_fls2_______u_Func001Func005A)
if(Trig_fls2_______u_Func001Func006C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_location21,Condition(function Trig_fls2_______u_Func001Func006Func002001003)),function Trig_fls2_______u_Func001Func006Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_location21,Condition(function Trig_fls2_______u_Func001Func006Func001001003)),function Trig_fls2_______u_Func001Func006Func001A)
endif
endif
endfunction
function Trig_qssx1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04Y'))then
return false
endif
return true
endfunction
function Trig_qssx1_Func004Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qssx1_Func004Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_qssx1_Func004Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qssx1_Func004Func001001003001(),Trig_qssx1_Func004Func001001003002())
endfunction
function Trig_qssx1_Func004Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A04Y')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_qssx1_Func004Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qssx1_Func004Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_qssx1_Func004Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qssx1_Func004Func003001003001(),Trig_qssx1_Func004Func003001003002())
endfunction
function Trig_qssx1_Func004Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A04Y'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_qssx1_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I045')==true))then
return false
endif
return true
endfunction
function Trig_qssx1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound24)
set udg_locations06[2]=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations06[2],300.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitAddAbilityBJ('A042',GetLastCreatedUnit())
call IssuePointOrderLoc(GetLastCreatedUnit(),"clusterrockets",udg_locations06[2])
call UnitApplyTimedLifeBJ(1.50,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_qssx1_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations06[2],Condition(function Trig_qssx1_Func004Func001001003)),function Trig_qssx1_Func004Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations06[2],Condition(function Trig_qssx1_Func004Func003001003)),function Trig_qssx1_Func004Func003A)
endif
call RemoveLocation(udg_locations06[2])
endfunction
function Trig_BJ3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A056'))then
return false
endif
return true
endfunction
function Trig_BJ3_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound02)
set udg_real12=0.00
set udg_units16[3]=GetTriggerUnit()
set udg_units16[4]=GetSpellTargetUnit()
set udg_locations06[3]=GetUnitLoc(udg_units16[4])
call SetUnitInvulnerable(udg_units16[3],true)
call PauseUnit(GetTriggerUnit(),true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e012',GetOwningPlayer(udg_units16[3]),PolarProjectionBJ(udg_locations06[3],350.00,(30.00*I2R(GetForLoopIndexA()))),GetUnitLoc(udg_units16[4]))
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100,100,80.00)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[1])
call CreateNUnitsAtLocFacingLocBJ(1,'e013',GetOwningPlayer(udg_units16[3]),PolarProjectionBJ(udg_locations06[3],350.00,(30.00*I2R(GetForLoopIndexA()))),GetUnitLoc(udg_units16[4]))
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100,100,80.00)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[1])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnit(udg_units16[4],true)
call ShowUnitHide(udg_units16[3])
call EnableTrigger(udg_trigger218)
call TriggerSleepAction(0.85)
call DisableTrigger(udg_trigger218)
call CreateNUnitsAtLocFacingLocBJ(1,'e00E',GetOwningPlayer(udg_units16[3]),PolarProjectionBJ(GetUnitLoc(udg_units16[4]),250.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units16[4]))
set udg_units16[5]=GetLastCreatedUnit()
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[1])
call UnitAddAbility(udg_units16[5],'A00L')
call EnableTrigger(udg_trigger217)
endfunction
function Trig_BJ4_Func002Func009A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_BJ4_Func002Func020Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units16[3],'I046')==true))then
return false
endif
return true
endfunction
function Trig_BJ4_Func002Func020Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units16[3],'I046')==true))then
return false
endif
return true
endfunction
function Trig_BJ4_Func002Func020C takes nothing returns boolean
if(not(udg_integer48==1))then
return false
endif
return true
endfunction
function Trig_BJ4_Func002C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units16[4])==true))then
return false
endif
if(not(udg_integer20<20))then
return false
endif
return true
endfunction
function Trig_BJ4_Actions takes nothing returns nothing
set udg_integer20=(udg_integer20+1)
if(Trig_BJ4_Func002C())then
call SetUnitPositionLocFacingLocBJ(udg_units16[5],PolarProjectionBJ(GetUnitLoc(udg_units16[4]),GetRandomReal(200.00,340.00),GetRandomDirectionDeg()),GetUnitLoc(udg_units16[4]))
call SetUnitFlyHeight(udg_units16[5],GetRandomReal(200.00,400.00),10000000.00)
call CreateNUnitsAtLocFacingLocBJ(1,'e00F',GetOwningPlayer(udg_units16[3]),GetUnitLoc(udg_units16[5]),GetUnitLoc(udg_units16[4]))
call SetUnitFlyHeight(GetLastCreatedUnit(),GetUnitFlyHeight(udg_units16[5]),10000000.00)
call UnitAddAbility(GetLastCreatedUnit(),'A07X')
call IssueTargetOrder(GetLastCreatedUnit(),"thunderbolt",udg_units16[4])
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',0.20)
if(Trig_BJ4_Func002Func020C())then
if(Trig_BJ4_Func002Func020Func001C())then
call UnitDamageTargetBJ(udg_units16[3],udg_units16[4],(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units16[3],true))*4.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units16[3],udg_units16[4],(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units16[3],true))*3.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
else
if(Trig_BJ4_Func002Func020Func003C())then
call UnitDamageTargetBJ(udg_units16[3],udg_units16[4],(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units16[3],true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units16[3],udg_units16[4],I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units16[3],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endif
else
call DisableTrigger(GetTriggeringTrigger())
set udg_integer20=0
call SetUnitPositionLoc(udg_units16[3],udg_locations06[3])
call RemoveLocation(udg_locations06[2])
call ShowUnitShow(udg_units16[3])
call SetUnitInvulnerable(udg_units16[3],false)
call PauseUnit(udg_units16[3],false)
call PauseUnit(udg_units16[4],false)
call ForGroupBJ(udg_groups02[1],function Trig_BJ4_Func002Func009A)
call SelectUnitForPlayerSingle(udg_units16[3],GetOwningPlayer(udg_units16[3]))
set udg_units16[3]=null
set udg_units16[4]=null
endif
endfunction
function Trig_BJ8_______u_Func001A takes nothing returns nothing
set udg_real12=(udg_real12+0.11)
call SetUnitScalePercent(GetEnumUnit(),udg_real12,udg_real12,udg_real12)
endfunction
function Trig_BJ8_______u_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups02[1],function Trig_BJ8_______u_Func001A)
endfunction
function Trig_mieshashuixiang1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A057'))then
return false
endif
return true
endfunction
function Trig_mieshashuixiang1_Func004001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_mieshashuixiang1_Func004001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_mieshashuixiang1_Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_mieshashuixiang1_Func004001003001(),Trig_mieshashuixiang1_Func004001003002())
endfunction
function Trig_mieshashuixiang1_Func004A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A057'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_mieshashuixiang1_Actions takes nothing returns nothing
set udg_unit10=GetSpellTargetUnit()
call CreateNUnitsAtLoc(1,'e00M',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(udg_unit10),bj_UNIT_FACING)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(udg_unit10),300.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitAddAbilityBJ('A042',GetLastCreatedUnit())
call IssuePointOrderLoc(GetLastCreatedUnit(),"clusterrockets",GetUnitLoc(udg_unit10))
call UnitApplyTimedLifeBJ(1.50,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(320.00,GetUnitLoc(udg_unit10),Condition(function Trig_mieshashuixiang1_Func004001003)),function Trig_mieshashuixiang1_Func004A)
set udg_unit10=null
endfunction
function Trig_BJ5_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A058'))then
return false
endif
return true
endfunction
function Trig_BJ5_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound02)
set udg_real07=0.00
set udg_units16[11]=GetTriggerUnit()
set udg_units16[12]=GetSpellTargetUnit()
set udg_locations06[5]=GetUnitLoc(udg_units16[12])
call SetUnitInvulnerable(udg_units16[11],true)
call PauseUnit(GetTriggerUnit(),true)
call ShowUnitHide(udg_units16[11])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=14
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e012',GetOwningPlayer(udg_units16[11]),PolarProjectionBJ(udg_locations06[5],430.00,(25.00*I2R(GetForLoopIndexA()))),GetUnitLoc(udg_units16[12]))
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100,100,80.00)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[11])
call CreateNUnitsAtLocFacingLocBJ(1,'e013',GetOwningPlayer(udg_units16[11]),PolarProjectionBJ(udg_locations06[5],430.00,(25.00*I2R(GetForLoopIndexA()))),GetUnitLoc(udg_units16[12]))
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100,100,80.00)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[11])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger221)
call EnableTrigger(udg_trigger223)
call TriggerSleepAction(1.70)
call DisableTrigger(udg_trigger221)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=14
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e00I',GetOwningPlayer(udg_units16[11]),PolarProjectionBJ(udg_locations06[5],429.00,(25.00*I2R(GetForLoopIndexA()))),GetUnitLoc(udg_units16[12]))
call IssueTargetOrder(GetLastCreatedUnit(),"attack",udg_units16[12])
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100,100,70.00)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[12])
call CreateNUnitsAtLocFacingLocBJ(1,'e00E',GetOwningPlayer(udg_units16[11]),PolarProjectionBJ(udg_locations06[5],429.00,(25.00*I2R(GetForLoopIndexA()))),GetUnitLoc(udg_units16[12]))
call IssueTargetOrder(GetLastCreatedUnit(),"attack",udg_units16[12])
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100,100,70.00)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[12])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLocFacingLocBJ(1,'e00E',GetOwningPlayer(udg_units16[11]),PolarProjectionBJ(GetUnitLoc(udg_units16[12]),250.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units16[12]))
set udg_units16[5]=GetLastCreatedUnit()
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[12])
call CreateNUnitsAtLocFacingLocBJ(1,'e00E',GetOwningPlayer(udg_units16[11]),PolarProjectionBJ(GetUnitLoc(udg_units16[12]),250.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units16[12]))
set udg_units16[6]=GetLastCreatedUnit()
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[12])
call CreateNUnitsAtLocFacingLocBJ(1,'e00E',GetOwningPlayer(udg_units16[11]),PolarProjectionBJ(GetUnitLoc(udg_units16[12]),400.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units16[12]))
set udg_units16[7]=GetLastCreatedUnit()
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[12])
call CreateNUnitsAtLocFacingLocBJ(1,'e00E',GetOwningPlayer(udg_units16[11]),PolarProjectionBJ(GetUnitLoc(udg_units16[12]),300.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units16[12]))
set udg_units16[8]=GetLastCreatedUnit()
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[12])
call CreateNUnitsAtLocFacingLocBJ(1,'e00E',GetOwningPlayer(udg_units16[11]),PolarProjectionBJ(GetUnitLoc(udg_units16[12]),100.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units16[12]))
set udg_units16[9]=GetLastCreatedUnit()
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[12])
call PauseUnit(udg_units16[12],true)
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddAbility(udg_units16[GetForLoopIndexA()],'A00L')
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPositionLoc(udg_units16[11],udg_locations06[5])
call EnableTrigger(udg_trigger222)
endfunction
function Trig_BJ8_Func001A takes nothing returns nothing
set udg_real07=(udg_real07+0.06)
call SetUnitScalePercent(GetEnumUnit(),udg_real07,udg_real07,udg_real07)
endfunction
function Trig_BJ8_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups02[11],function Trig_BJ8_Func001A)
endfunction
function Trig_BJ6_Func002Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_BJ6_Func002Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[11]))==true)
endfunction
function Trig_BJ6_Func002Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_BJ6_Func002Func001002003001(),Trig_BJ6_Func002Func001002003002())
endfunction
function Trig_BJ6_Func002Func003Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units16[11],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units16[11],true))*60.00)/40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_BJ6_Func002Func003Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units16[11],GetEnumUnit(),I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units16[11],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_BJ6_Func002Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units16[11],'I05S')==true))then
return false
endif
return true
endfunction
function Trig_BJ6_Func002Func012A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_BJ6_Func002Func013A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_BJ6_Func002C takes nothing returns boolean
if(not(udg_integer20<40))then
return false
endif
return true
endfunction
function Trig_BJ6_Actions takes nothing returns nothing
set udg_integer20=(udg_integer20+1)
if(Trig_BJ6_Func002C())then
set udg_groups02[13]=GetUnitsInRangeOfLocMatching(450.00,udg_locations06[5],Condition(function Trig_BJ6_Func002Func001002003))
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitFlyHeight(udg_units16[GetForLoopIndexA()],GetRandomReal(50.00,400.00),10000000.00)
call SetUnitPositionLocFacingLocBJ(udg_units16[GetForLoopIndexA()],PolarProjectionBJ(udg_locations06[5],420.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units16[12]))
call SetUnitFacingToFaceLocTimed(udg_units16[GetForLoopIndexA()],udg_locations06[5],0)
call SetUnitAnimation(udg_units16[GetForLoopIndexA()],"attack")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_BJ6_Func002Func003C())then
call ForGroupBJ(udg_groups02[13],function Trig_BJ6_Func002Func003Func002A)
else
call ForGroupBJ(udg_groups02[13],function Trig_BJ6_Func002Func003Func003A)
endif
call GroupClear(udg_groups02[13])
else
call DisableTrigger(udg_trigger223)
call DisableTrigger(GetTriggeringTrigger())
set udg_integer20=0
call RemoveLocation(udg_locations06[5])
call ShowUnitShow(udg_units16[11])
call SetUnitInvulnerable(udg_units16[11],false)
call PauseUnit(udg_units16[11],false)
call PauseUnit(udg_units16[12],false)
call ForGroupBJ(udg_groups02[12],function Trig_BJ6_Func002Func012A)
call ForGroupBJ(udg_groups02[11],function Trig_BJ6_Func002Func013A)
call GroupClear(udg_groups02[11])
call GroupClear(udg_groups02[12])
call GroupClear(udg_groups02[13])
call SelectUnitForPlayerSingle(udg_units16[11],GetOwningPlayer(udg_units16[11]))
set udg_units16[11]=null
set udg_units16[12]=null
endif
endfunction
function Trig_BJ7_Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_BJ7_Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units16[11]))==true)
endfunction
function Trig_BJ7_Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_BJ7_Func001002003001(),Trig_BJ7_Func001002003002())
endfunction
function Trig_BJ7_Func002A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_locations06[5])
endfunction
function Trig_BJ7_Actions takes nothing returns nothing
set udg_groups02[4]=GetUnitsInRangeOfLocMatching(450.00,udg_locations06[5],Condition(function Trig_BJ7_Func001002003))
call ForGroupBJ(udg_groups02[4],function Trig_BJ7_Func002A)
call GroupClear(udg_groups02[4])
endfunction
function Trig_IceLotus_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08G'))then
return false
endif
return true
endfunction
function Trig_IceLotus_Func012001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_IceLotus_Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_IceLotus_Func012001003 takes nothing returns boolean
return GetBooleanAnd(Trig_IceLotus_Func012001003001(),Trig_IceLotus_Func012001003002())
endfunction
function Trig_IceLotus_Func012A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*60.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_IceLotus_Actions takes nothing returns nothing
set udg_location26=GetSpellTargetLoc()
set udg_real18=360.00
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=16
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'o007',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location26,150.00,udg_real18),udg_real18)
call UnitApplyTimedLifeBJ(1.50,'BHwe',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),true)
set udg_real18=(udg_real18-22.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u009',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location26,150.00,udg_real18),udg_real18)
call UnitApplyTimedLifeBJ(5.00,'BHwe',GetLastCreatedUnit())
set udg_real18=(udg_real18-30.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u00A',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location26,50.00,udg_real18),udg_real18)
call UnitApplyTimedLifeBJ(5.00,'BHwe',GetLastCreatedUnit())
set udg_real18=(udg_real18-60.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_real18=0.00
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=48
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u009',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location26,350.00,udg_real18),udg_real18)
call UnitApplyTimedLifeBJ(5.00,'BHwe',GetLastCreatedUnit())
set udg_real18=(udg_real18-15.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=24
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u00A',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location26,250.00,udg_real18),udg_real18)
call UnitApplyTimedLifeBJ(5.00,'BHwe',GetLastCreatedUnit())
set udg_real18=(udg_real18-30.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(udg_location26,"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(550.00,udg_location26,Condition(function Trig_IceLotus_Func012001003)),function Trig_IceLotus_Func012A)
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location26)
endfunction
function Trig_jdfy_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06S'))then
return false
endif
return true
endfunction
function Trig_jdfy_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e004',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call SetUnitAbilityLevel(GetLastCreatedUnit(),'A06I',GetUnitAbilityLevel(GetTriggerUnit(),'A06S'))
call IssueTargetOrder(GetLastCreatedUnit(),"innerfire",GetTriggerUnit())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
endfunction
function Trig_ssy1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06T'))then
return false
endif
return true
endfunction
function Trig_ssy1_Func018Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ssy1_Func018Func002001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[1]))==true)
endfunction
function Trig_ssy1_Func018Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[1]))==true)
endfunction
function Trig_ssy1_Func018Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_ssy1_Func018Func002001003002001(),Trig_ssy1_Func018Func002001003002002())
endfunction
function Trig_ssy1_Func018Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ssy1_Func018Func002001003001(),Trig_ssy1_Func018Func002001003002())
endfunction
function Trig_ssy1_Func018Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units19[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units19[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ssy1_Func018Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ssy1_Func018Func003001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[1]))==true)
endfunction
function Trig_ssy1_Func018Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[1]))==true)
endfunction
function Trig_ssy1_Func018Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_ssy1_Func018Func003001003002001(),Trig_ssy1_Func018Func003001003002002())
endfunction
function Trig_ssy1_Func018Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ssy1_Func018Func003001003001(),Trig_ssy1_Func018Func003001003002())
endfunction
function Trig_ssy1_Func018Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units19[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units19[1],true))*I2R(GetUnitAbilityLevelSwapped('A06T',udg_units19[1]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ssy1_Func018C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit81,'I05N')==true))then
return false
endif
return true
endfunction
function Trig_ssy1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound23)
set udg_units19[1]=GetTriggerUnit()
set udg_units19[2]=GetSpellTargetUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units19[2]),80.00,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units19[2]),150.00,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
call PauseUnit(udg_units19[2],true)
call CreateNUnitsAtLoc(1,'e00Z',GetOwningPlayer(udg_units19[1]),GetUnitLoc(udg_units19[2]),100.00)
set udg_units19[3]=GetLastCreatedUnit()
call TriggerExecute(udg_trigger227)
call UnitAddAbility(udg_units19[2],'Amrf')
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitFlyHeight(udg_units19[GetForLoopIndexA()],250.00,700.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitAnimation(udg_units19[GetForLoopIndexA()],"death")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=100
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e010',GetOwningPlayer(udg_units19[1]),PolarProjectionBJ(GetUnitLoc(udg_units19[2]),GetRandomReal(1.00,150.00),GetRandomDirectionDeg()),GetRandomDirectionDeg())
call SetUnitFlyHeight(GetLastCreatedUnit(),320.00,100000000.00)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),140.00)
call SetUnitAnimation(GetLastCreatedUnit(),"death")
call UnitApplyTimedLifeBJ(1.50,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units19[1]),30.00)
call AddSpecialEffectTargetUnitBJ("origin",udg_units19[2],"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_ssy1_Func018C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units19[2]),Condition(function Trig_ssy1_Func018Func002001003)),function Trig_ssy1_Func018Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units19[2]),Condition(function Trig_ssy1_Func018Func003001003)),function Trig_ssy1_Func018Func003A)
endif
call DestroyGroup(GetLastCreatedGroup())
call TriggerSleepAction(0.10)
call RemoveUnit(udg_units19[3])
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units19[1]))
call TriggerSleepAction(0.40)
call SetUnitFlyHeight(udg_units19[2],0.00,2000.00)
call UnitRemoveAbility(udg_units19[2],'Amrf')
call PauseUnit(udg_units19[2],false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units19[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_ssy2_Actions takes nothing returns nothing
call SetUnitFacingTimed(udg_units19[3],360.00,0.50)
endfunction
function Trig_sbsz2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06H'))then
return false
endif
return true
endfunction
function Trig_sbsz2_Func002Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sbsz2_Func002Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_sbsz2_Func002Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sbsz2_Func002Func002001003001(),Trig_sbsz2_Func002Func002001003002())
endfunction
function Trig_sbsz2_Func002Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A06H')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sbsz2_Func002Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sbsz2_Func002Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_sbsz2_Func002Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sbsz2_Func002Func003001003001(),Trig_sbsz2_Func002Func003001003002())
endfunction
function Trig_sbsz2_Func002Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A06H'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sbsz2_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04Y')==true))then
return false
endif
return true
endfunction
function Trig_sbsz2_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound09)
if(Trig_sbsz2_Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetSpellTargetUnit()),Condition(function Trig_sbsz2_Func002Func002001003)),function Trig_sbsz2_Func002Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetSpellTargetUnit()),Condition(function Trig_sbsz2_Func002Func003001003)),function Trig_sbsz2_Func002Func003A)
endif
call DestroyGroup(GetLastCreatedGroup())
endfunction
function Trig_shouhezhimao3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0B0'))then
return false
endif
return true
endfunction
function Trig_shouhezhimao3_Actions takes nothing returns nothing
set udg_units13[3]=GetTriggerUnit()
set udg_units55[11]=GetSpellTargetUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'u001',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(udg_units55[11]))
set udg_units13[4]=GetLastCreatedUnit()
call EnableTrigger(udg_trigger230)
endfunction
function Trig_shouhezhimao4_Func001Func001C takes nothing returns boolean
if((IsUnitDeadBJ(udg_units55[11])==true))then
return true
endif
if((RectContainsUnit(RectFromCenterSizeBJ(GetUnitLoc(udg_units55[11]),150.00,150.00),udg_units13[4])==true))then
return true
endif
if((IsTerrainPathableBJ(GetRectCenter(RectFromCenterSizeBJ(GetUnitLoc(udg_units13[4]),150.00,150.00)),PATHING_TYPE_WALKABILITY)==true))then
return true
endif
return false
endfunction
function Trig_shouhezhimao4_Func001Func008Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_shouhezhimao4_Func001Func008Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units13[4]))==true)
endfunction
function Trig_shouhezhimao4_Func001Func008Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_shouhezhimao4_Func001Func008Func002001003001(),Trig_shouhezhimao4_Func001Func008Func002001003002())
endfunction
function Trig_shouhezhimao4_Func001Func008Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\BrewmasterMissile\\BrewmasterMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units13[3],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units13[3],true))*75.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_shouhezhimao4_Func001Func008Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_shouhezhimao4_Func001Func008Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units13[4]))==true)
endfunction
function Trig_shouhezhimao4_Func001Func008Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_shouhezhimao4_Func001Func008Func003001003001(),Trig_shouhezhimao4_Func001Func008Func003001003002())
endfunction
function Trig_shouhezhimao4_Func001Func008Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\BrewmasterMissile\\BrewmasterMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units13[3],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units13[3],true))*60.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_shouhezhimao4_Func001Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units13[3],'I04Z')==true))then
return false
endif
return true
endfunction
function Trig_shouhezhimao4_Func001C takes nothing returns boolean
if(not Trig_shouhezhimao4_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_shouhezhimao4_Actions takes nothing returns nothing
if(Trig_shouhezhimao4_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units13[4]),400.00,400.00)),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=100
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e010',GetOwningPlayer(udg_units13[3]),PolarProjectionBJ(GetUnitLoc(udg_units13[4]),GetRandomReal(50.00,200.00),GetRandomDirectionDeg()),GetRandomDirectionDeg())
call SetUnitFlyHeight(GetLastCreatedUnit(),50.00,100000000.00)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),100.00)
call SetUnitAnimation(GetLastCreatedUnit(),"death")
call UnitApplyTimedLifeBJ(1.50,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_shouhezhimao4_Func001Func008C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units13[4]),Condition(function Trig_shouhezhimao4_Func001Func008Func002001003)),function Trig_shouhezhimao4_Func001Func008Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units13[4]),Condition(function Trig_shouhezhimao4_Func001Func008Func003001003)),function Trig_shouhezhimao4_Func001Func008Func003A)
endif
call DestroyGroup(GetLastCreatedGroup())
call RemoveUnit(udg_units13[4])
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units13[3]),20.00)
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units13[3]))
set udg_units13[3]=null
set udg_units13[4]=null
set udg_units55[11]=null
else
call SetUnitPositionLoc(udg_units13[4],PolarProjectionBJ(GetUnitLoc(udg_units13[4]),32.00,AngleBetweenPoints(GetUnitLoc(udg_units13[4]),GetUnitLoc(udg_units55[11]))))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units13[4]),"Abilities\\Spells\\Other\\StrongDrink\\BrewmasterMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_lsbl_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06J'))then
return false
endif
return true
endfunction
function Trig_lsbl_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound19)
set udg_units12[11]=GetTriggerUnit()
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units12[11]),10.00)
call CreateNUnitsAtLoc(1,'e011',GetOwningPlayer(udg_units12[11]),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
set udg_units12[12]=GetLastCreatedUnit()
call IssuePointOrderLoc(udg_units12[12],"move",GetSpellTargetLoc())
call SelectUnitForPlayerSingle(udg_units12[12],GetOwningPlayer(udg_units12[11]))
call EnableTrigger(udg_trigger232)
call EnableTrigger(udg_trigger233)
endfunction
function Trig_lsbl2_Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_lsbl2_Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[11]))==true)
endfunction
function Trig_lsbl2_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lsbl2_Func001001003001(),Trig_lsbl2_Func001001003002())
endfunction
function Trig_lsbl2_Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units12[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[11],true))*4.50),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_lsbl2_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units12[12]),Condition(function Trig_lsbl2_Func001001003)),function Trig_lsbl2_Func001A)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function Trig_lsbl3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06J'))then
return false
endif
return true
endfunction
function Trig_lsbl3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units12[11]))
call DisableTrigger(udg_trigger232)
call RemoveUnit(udg_units12[12])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units12[11]),GetUnitLoc(udg_units12[11]),0)
call SelectUnitForPlayerSingle(udg_units12[11],GetOwningPlayer(udg_units12[11]))
set udg_units12[11]=null
set udg_units12[12]=null
endfunction
function Trig_ssy_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0B1'))then
return false
endif
return true
endfunction
function Trig_ssy_Func005Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ssy_Func005Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units55[12]))==true)
endfunction
function Trig_ssy_Func005Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_ssy_Func005Func001002003001(),Trig_ssy_Func005Func001002003002())
endfunction
function Trig_ssy_Func005Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\BrewmasterMissile\\BrewmasterMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units55[12],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units55[12],true))*25.00)/6.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ssy_Actions takes nothing returns nothing
set udg_units55[12]=GetTriggerUnit()
set udg_locations29[6]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call SetUnitFlyHeight(GetLastCreatedUnit(),600.00,1000000000.00)
call UnitAddAbilityBJ('A0B2',GetLastCreatedUnit())
call IssuePointOrderLoc(GetLastCreatedUnit(),"clusterrockets",PolarProjectionBJ(udg_locations29[6],100.00,GetRandomDirectionDeg()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
set udg_integer58=1
loop
exitwhen udg_integer58>6
set udg_group43=GetUnitsInRangeOfLocMatching(600.00,udg_locations29[6],Condition(function Trig_ssy_Func005Func001002003))
call ForGroupBJ(udg_group43,function Trig_ssy_Func005Func002A)
call GroupClear(udg_group43)
call TriggerSleepAction(0.08)
set udg_integer58=udg_integer58+1
endloop
set udg_units55[12]=null
call RemoveLocation(udg_locations29[6])
endfunction
function Trig_haxzs_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06K'))then
return false
endif
return true
endfunction
function Trig_haxzs_Func004Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_haxzs_Func004Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_haxzs_Func004Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_haxzs_Func004Func001001003001001(),Trig_haxzs_Func004Func001001003001002())
endfunction
function Trig_haxzs_Func004Func001001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_haxzs_Func004Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_haxzs_Func004Func001001003001(),Trig_haxzs_Func004Func001001003002())
endfunction
function Trig_haxzs_Func004Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A06K')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_haxzs_Func004Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_haxzs_Func004Func003001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_haxzs_Func004Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_haxzs_Func004Func003001003001001(),Trig_haxzs_Func004Func003001003001002())
endfunction
function Trig_haxzs_Func004Func003001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_haxzs_Func004Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_haxzs_Func004Func003001003001(),Trig_haxzs_Func004Func003001003002())
endfunction
function Trig_haxzs_Func004Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevelSwapped('A06K',GetTriggerUnit()))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_haxzs_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I050')==true))then
return false
endif
return true
endfunction
function Trig_haxzs_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e00X',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(GetSpellTargetLoc(),300.00,(15.00*I2R(GetForLoopIndexA()))),GetSpellTargetLoc())
set udg_units20[GetForLoopIndexA()]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e00X',GetOwningPlayer(GetSpellAbilityUnit()),PolarProjectionBJ(GetSpellTargetLoc(),300.00,(180.00+(15.00*I2R(GetForLoopIndexA())))),GetSpellTargetLoc())
set udg_units21[GetForLoopIndexA()]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssuePointOrderLoc(udg_units20[GetForLoopIndexA()],"clusterrockets",GetUnitLoc(udg_units21[GetForLoopIndexA()]))
call IssuePointOrderLoc(udg_units21[GetForLoopIndexA()],"clusterrockets",GetUnitLoc(udg_units20[GetForLoopIndexA()]))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_haxzs_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(330.00,GetSpellTargetLoc(),Condition(function Trig_haxzs_Func004Func001001003)),function Trig_haxzs_Func004Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(330.00,GetSpellTargetLoc(),Condition(function Trig_haxzs_Func004Func003001003)),function Trig_haxzs_Func004Func003A)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units20[GetForLoopIndexA()]=null
set udg_units21[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_szb3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06L'))then
return false
endif
return true
endfunction
function Trig_szb3_Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_szb3_Func002001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_szb3_Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_szb3_Func002001003001001(),Trig_szb3_Func002001003001002())
endfunction
function Trig_szb3_Func002001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_szb3_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_szb3_Func002001003001(),Trig_szb3_Func002001003002())
endfunction
function Trig_szb3_Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A06L'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_szb3_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h009',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),200.00,(18.00*I2R(GetForLoopIndexA()))),(18.00*I2R(GetForLoopIndexA())))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),600.00)
call SetUnitFlyHeight(GetLastCreatedUnit(),100.00,1000000000.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_szb3_Func002001003)),function Trig_szb3_Func002A)
endfunction
function Trig_haxzs2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06M'))then
return false
endif
return true
endfunction
function Trig_haxzs2_Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_haxzs2_Func002001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_haxzs2_Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_haxzs2_Func002001003001001(),Trig_haxzs2_Func002001003001002())
endfunction
function Trig_haxzs2_Func002001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_haxzs2_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_haxzs2_Func002001003001(),Trig_haxzs2_Func002001003002())
endfunction
function Trig_haxzs2_Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A06M'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_haxzs2_Actions takes nothing returns nothing
call TriggerSleepAction(0.40)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetSpellTargetLoc(),Condition(function Trig_haxzs2_Func002001003)),function Trig_haxzs2_Func002A)
endfunction
function Trig_ywsy2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06N'))then
return false
endif
return true
endfunction
function Trig_ywsy2_Func006Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ywsy2_Func006Func002001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_ywsy2_Func006Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ywsy2_Func006Func002001003001(),Trig_ywsy2_Func006Func002001003002())
endfunction
function Trig_ywsy2_Func006Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*42.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ywsy2_Func006Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ywsy2_Func006Func003001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_ywsy2_Func006Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ywsy2_Func006Func003001003001(),Trig_ywsy2_Func006Func003001003002())
endfunction
function Trig_ywsy2_Func006Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*25.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ywsy2_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I051')==true))then
return false
endif
return true
endfunction
function Trig_ywsy2_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound25)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),30.00)
set udg_unit13=GetSpellTargetUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00C',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(udg_unit13),50.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),40.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_unit13),500.00,500.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_ywsy2_Func006C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_unit13),Condition(function Trig_ywsy2_Func006Func002001003)),function Trig_ywsy2_Func006Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_unit13),Condition(function Trig_ywsy2_Func006Func003001003)),function Trig_ywsy2_Func006Func003A)
endif
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
endfunction
function Trig_sxy1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07K'))then
return false
endif
return true
endfunction
function Trig_sxy1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound40)
set udg_units28[5]=GetTriggerUnit()
set bj_forLoopAIndex=6
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01K',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetRandomDirectionDeg())
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
set udg_units28[GetForLoopIndexA()]=GetLastCreatedUnit()
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitInvulnerable(GetTriggerUnit(),true)
call EnableTrigger(udg_trigger240)
call EnableTrigger(udg_trigger241)
endfunction
function Trig_sxy2_Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sxy2_Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units28[5]))==true)
endfunction
function Trig_sxy2_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sxy2_Func001001003001(),Trig_sxy2_Func001001003002())
endfunction
function Trig_sxy2_Func001A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units28[5],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units28[5],true))*7.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sxy2_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units28[5]),Condition(function Trig_sxy2_Func001001003)),function Trig_sxy2_Func001A)
endfunction
function Trig_sxy3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07K'))then
return false
endif
return true
endfunction
function Trig_sxy3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger240)
call SetUnitInvulnerable(udg_units28[5],false)
set bj_forLoopAIndex=6
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=6
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units28[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units28[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_slzs3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AOcl'))then
return false
endif
return true
endfunction
function Trig_slzs3_Func006Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_slzs3_Func006Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit30))==true)
endfunction
function Trig_slzs3_Func006Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_slzs3_Func006Func001002003001(),Trig_slzs3_Func006Func001002003002())
endfunction
function Trig_slzs3_Func006Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit30,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit30,true))*50.00)/13.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_slzs3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit30=GetTriggerUnit()
set udg_location29=GetUnitLoc(GetSpellTargetUnit())
call EnableTrigger(udg_trigger243)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h00V',GetOwningPlayer(udg_unit30),PolarProjectionBJ(udg_location29,330.00,(18.00*I2R(GetForLoopIndexA()))),(18.00*I2R(GetForLoopIndexA())))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),600.00)
call SetUnitFlyHeight(GetLastCreatedUnit(),100.00,1000000000.00)
call UnitApplyTimedLifeBJ(13.50,'BTLF',GetLastCreatedUnit())
call SetUnitVertexColor(GetLastCreatedUnit(),0,255,255,50)
call SetUnitPathing(GetLastCreatedUnit(),false)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer43=1
loop
exitwhen udg_integer43>13
set udg_groups09[1]=GetUnitsInRangeOfLocMatching(450.00,udg_location29,Condition(function Trig_slzs3_Func006Func001002003))
call ForGroupBJ(udg_groups09[1],function Trig_slzs3_Func006Func002A)
call GroupClear(udg_groups09[1])
call TriggerSleepAction(1.00)
set udg_integer43=udg_integer43+1
endloop
call DisableTrigger(udg_trigger243)
set udg_unit30=null
call RemoveLocation(udg_location29)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_slzs4_Func001Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_slzs4_Func001Func001002003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_slzs4_Func001Func001002003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit30))==true)
endfunction
function Trig_slzs4_Func001Func001002003002 takes nothing returns boolean
return GetBooleanAnd(Trig_slzs4_Func001Func001002003002001(),Trig_slzs4_Func001Func001002003002002())
endfunction
function Trig_slzs4_Func001Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_slzs4_Func001Func001002003001(),Trig_slzs4_Func001Func001002003002())
endfunction
function Trig_slzs4_Func001Func002A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_location29)
endfunction
function Trig_slzs4_Func001C takes nothing returns boolean
if(not(IsTerrainPathableBJ(udg_location29,PATHING_TYPE_WALKABILITY)==false))then
return false
endif
return true
endfunction
function Trig_slzs4_Actions takes nothing returns nothing
if(Trig_slzs4_Func001C())then
set udg_groups09[2]=GetUnitsInRangeOfLocMatching(450.00,udg_location29,Condition(function Trig_slzs4_Func001Func001002003))
call ForGroupBJ(udg_groups09[2],function Trig_slzs4_Func001Func002A)
call GroupClear(udg_groups09[2])
call DestroyGroup(udg_groups09[2])
else
endif
endfunction
function Trig_bgkz1_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06W'))then
return false
endif
return true
endfunction
function Trig_bgkz1_______u_Actions takes nothing returns nothing
set udg_units10[11]=GetSpellAbilityUnit()
set udg_locations02[11]=GetUnitLoc(udg_units10[11])
set udg_locations02[12]=GetSpellTargetLoc()
set udg_real08=AngleBetweenPoints(udg_locations02[11],udg_locations02[12])
set udg_group08=CreateGroup()
call CreateNUnitsAtLoc(1,'e004',GetOwningPlayer(udg_units10[11]),udg_locations02[11],udg_real08)
set udg_units10[12]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(1.00,'BTLF',udg_units10[12])
call RemoveLocation(udg_locations02[12])
call EnableTrigger(udg_trigger245)
call TriggerSleepAction(0.36)
call DisableTrigger(udg_trigger245)
set udg_integer25=0
call RemoveLocation(udg_locations02[11])
call GroupClear(udg_group04)
set udg_units10[11]=null
set udg_units10[12]=null
endfunction
function Trig_bgkz2_______u_Func004001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_bgkz2_______u_Func004001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units10[11]))==true)
endfunction
function Trig_bgkz2_______u_Func004001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_bgkz2_______u_Func004001003001001(),Trig_bgkz2_______u_Func004001003001002())
endfunction
function Trig_bgkz2_______u_Func004001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group08)==false)
endfunction
function Trig_bgkz2_______u_Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_bgkz2_______u_Func004001003001(),Trig_bgkz2_______u_Func004001003002())
endfunction
function Trig_bgkz2_______u_Func004A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group08)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units10[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units10[11],true))*I2R(GetUnitAbilityLevelSwapped('A06W',udg_units10[11]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_bgkz2_______u_Actions takes nothing returns nothing
set udg_integer25=(udg_integer25+1)
set udg_locations02[12]=PolarProjectionBJ(udg_locations02[11],(13.00*I2R(udg_integer25)),udg_real08)
call SetUnitPositionLoc(udg_units10[12],udg_locations02[12])
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_locations02[12],Condition(function Trig_bgkz2_______u_Func004001003)),function Trig_bgkz2_______u_Func004A)
call RemoveLocation(udg_locations02[12])
endfunction
function Trig_xhxs_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06U'))then
return false
endif
return true
endfunction
function Trig_xhxs_Actions takes nothing returns nothing
set udg_location14=GetSpellTargetLoc()
set udg_units22[1]=GetTriggerUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'ospw',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),udg_location14)
call UnitApplyTimedLifeBJ(10.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
set udg_units22[2]=GetLastCreatedUnit()
call EnableTrigger(udg_trigger247)
endfunction
function Trig_XHXS2_Func001Func006Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_XHXS2_Func001Func006Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units22[1]))==true)
endfunction
function Trig_XHXS2_Func001Func006Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_XHXS2_Func001Func006Func001002003001(),Trig_XHXS2_Func001Func006Func001002003002())
endfunction
function Trig_XHXS2_Func001Func006Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units22[1],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units22[1],true))*25.00)/6.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_XHXS2_Func001C takes nothing returns boolean
if(not(RectContainsUnit(RectFromCenterSizeBJ(udg_location14,200.00,200.00),udg_units22[2])==false))then
return false
endif
if(not(IsUnitDeadBJ(udg_units22[2])==false))then
return false
endif
return true
endfunction
function Trig_XHXS2_Actions takes nothing returns nothing
if(Trig_XHXS2_Func001C())then
call SetUnitPositionLoc(udg_units22[2],PolarProjectionBJ(GetUnitLoc(udg_units22[2]),35.00,GetUnitFacing(udg_units22[2])))
else
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units22[2]),200.00,250.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(udg_units22[1]),GetUnitLoc(udg_units22[2]),bj_UNIT_FACING)
call SetUnitFlyHeight(GetLastCreatedUnit(),600.00,1000000000.00)
call UnitAddAbilityBJ('A06Q',GetLastCreatedUnit())
call IssuePointOrderLoc(GetLastCreatedUnit(),"clusterrockets",PolarProjectionBJ(GetUnitLoc(udg_units22[2]),100.00,GetRandomDirectionDeg()))
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call KillUnit(udg_units22[2])
call TriggerSleepAction(0.10)
set udg_integer24=1
loop
exitwhen udg_integer24>6
set udg_group07=GetUnitsInRangeOfLocMatching(600.00,udg_location14,Condition(function Trig_XHXS2_Func001Func006Func001002003))
call ForGroupBJ(udg_group07,function Trig_XHXS2_Func001Func006Func002A)
call GroupClear(udg_group07)
call TriggerSleepAction(0.08)
set udg_integer24=udg_integer24+1
endloop
set udg_units22[1]=null
set udg_units22[2]=null
call RemoveLocation(udg_location14)
endif
endfunction
function Trig_SZZ_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06V'))then
return false
endif
return true
endfunction
function Trig_SZZ_Func004Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SZZ_Func004Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_SZZ_Func004Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SZZ_Func004Func002001003001(),Trig_SZZ_Func004Func002001003002())
endfunction
function Trig_SZZ_Func004Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*45.00)+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*25.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_SZZ_Func004Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SZZ_Func004Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_SZZ_Func004Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SZZ_Func004Func003001003001(),Trig_SZZ_Func004Func003001003002())
endfunction
function Trig_SZZ_Func004Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*30.00)+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_SZZ_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units13[11],'I055')==true))then
return false
endif
return true
endfunction
function Trig_SZZ_Actions takes nothing returns nothing
set udg_units13[11]=GetTriggerUnit()
call EnableTrigger(udg_trigger249)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u005',GetOwningPlayer(udg_units13[11]),PolarProjectionBJ(GetUnitLoc(udg_units13[11]),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),GetRandomDirectionDeg())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_SZZ_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units13[11]),Condition(function Trig_SZZ_Func004Func002001003)),function Trig_SZZ_Func004Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units13[11]),Condition(function Trig_SZZ_Func004Func003001003)),function Trig_SZZ_Func004Func003A)
endif
call DisableTrigger(udg_trigger249)
set udg_units13[11]=null
endfunction
function Trig_SZZ2_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u005',GetOwningPlayer(udg_units13[11]),PolarProjectionBJ(GetUnitLoc(udg_units13[11]),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),GetRandomDirectionDeg())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_qjxm1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06X'))then
return false
endif
return true
endfunction
function Trig_qjxm1_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05G')==true))then
return false
endif
return true
endfunction
function Trig_qjxm1_Func010Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05G')==true))then
return false
endif
return true
endfunction
function Trig_qjxm1_Func010C takes nothing returns boolean
if(not(IsUnitType(udg_unit14,UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitIllusionBJ(udg_unit14)==false))then
return false
endif
return true
endfunction
function Trig_qjxm1_Actions takes nothing returns nothing
set udg_unit14=GetSpellTargetUnit()
call UnitAddAbility(GetTriggerUnit(),'A00L')
call TriggerSleepAction(0.02)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit14),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit14),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetTriggerUnit(),GetUnitLoc(udg_unit14))
if(Trig_qjxm1_Func009C())then
call UnitDamageTargetBJ(GetTriggerUnit(),udg_unit14,(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(GetTriggerUnit(),udg_unit14,(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A06X'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
if(Trig_qjxm1_Func010C())then
if(Trig_qjxm1_Func010Func002C())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit14),"Abilities\\Spells\\NightElf\\Tranquility\\TranquilityTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CreateTextTagLocBJ(("-"+(I2S((GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true)*30))+"|r")),GetUnitLoc(udg_unit14),0,10.50,0.00,0.00,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call CreateTextTagLocBJ(("+"+(I2S((GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true)*30))+"|r")),GetUnitLoc(GetTriggerUnit()),0,10.50,0.00,0.00,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetUnitManaBJ(udg_unit14,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit14)-(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*30.00)))
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*30.00)))
else
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit14),"Abilities\\Spells\\NightElf\\Tranquility\\TranquilityTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CreateTextTagLocBJ(("-"+(I2S(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))+"|r")),GetUnitLoc(udg_unit14),0,10.50,0.00,0.00,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call CreateTextTagLocBJ(("+ "+(I2S(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))+"|r")),GetUnitLoc(GetTriggerUnit()),0,10.50,0.00,0.00,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespan(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetUnitManaBJ(udg_unit14,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit14)-I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))))
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())+I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))))
endif
else
call DoNothing()
endif
call UnitRemoveAbility(GetTriggerUnit(),'A00L')
set udg_unit14=null
endfunction
function Trig_Sg_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06Y'))then
return false
endif
return true
endfunction
function Trig_Sg_______u_Func007A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Sg_______u_Func011Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Sg_______u_Func011Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units15[15]))==true)
endfunction
function Trig_Sg_______u_Func011Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Sg_______u_Func011Func002001003001(),Trig_Sg_______u_Func011Func002001003002())
endfunction
function Trig_Sg_______u_Func011Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units15[15],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units15[15],true))*I2R(GetUnitAbilityLevel(udg_units15[15],'A06Y')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units15[15],true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_Sg_______u_Func011Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Sg_______u_Func011Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units15[15]))==true)
endfunction
function Trig_Sg_______u_Func011Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Sg_______u_Func011Func003001003001(),Trig_Sg_______u_Func011Func003001003002())
endfunction
function Trig_Sg_______u_Func011Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units15[15],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units15[15],true))*I2R(GetUnitAbilityLevel(udg_units15[15],'A06Y'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_Sg_______u_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units15[15],'I054')==true))then
return false
endif
return true
endfunction
function Trig_Sg_______u_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound26)
set udg_units15[15]=GetTriggerUnit()
set udg_units15[16]=GetSpellTargetUnit()
call TriggerSleepAction(0.20)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'u004',GetOwningPlayer(udg_units15[15]),PolarProjectionBJ(GetUnitLoc(udg_units15[16]),400.00,(80.00*I2R(GetForLoopIndexA()))),GetUnitLoc(udg_units15[16]))
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group09)
call AddSpecialEffectTargetUnitBJ("overhead",GetLastCreatedUnit(),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call IssuePointOrderLoc(GetLastCreatedUnit(),"move",GetUnitLoc(udg_units15[16]))
call SetUnitFlyHeight(GetLastCreatedUnit(),0.00,800.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.20)
call ForGroupBJ(udg_group09,function Trig_Sg_______u_Func007A)
call GroupClear(udg_group09)
call CreateNUnitsAtLoc(1,'e00M',GetOwningPlayer(udg_units15[15]),GetUnitLoc(udg_units15[16]),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
if(Trig_Sg_______u_Func011C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(320.00,GetUnitLoc(udg_units15[16]),Condition(function Trig_Sg_______u_Func011Func002001003)),function Trig_Sg_______u_Func011Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(320.00,GetUnitLoc(udg_units15[16]),Condition(function Trig_Sg_______u_Func011Func003001003)),function Trig_Sg_______u_Func011Func003A)
endif
set udg_units15[15]=null
set udg_units15[16]=null
endfunction
function Trig_jgzm2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06R'))then
return false
endif
return true
endfunction
function Trig_jgzm2_Func005Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jgzm2_Func005Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_jgzm2_Func005Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_jgzm2_Func005Func001001003001001(),Trig_jgzm2_Func005Func001001003001002())
endfunction
function Trig_jgzm2_Func005Func001001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_jgzm2_Func005Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jgzm2_Func005Func001001003001(),Trig_jgzm2_Func005Func001001003002())
endfunction
function Trig_jgzm2_Func005Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A06R')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_jgzm2_Func005Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jgzm2_Func005Func002001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_jgzm2_Func005Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_jgzm2_Func005Func002001003001001(),Trig_jgzm2_Func005Func002001003001002())
endfunction
function Trig_jgzm2_Func005Func002001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_jgzm2_Func005Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jgzm2_Func005Func002001003001(),Trig_jgzm2_Func005Func002001003002())
endfunction
function Trig_jgzm2_Func005Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A06R'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_jgzm2_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I052')==true))then
return false
endif
return true
endfunction
function Trig_jgzm2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'e00D',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth Large")
if(Trig_jgzm2_Func005C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_jgzm2_Func005Func001001003)),function Trig_jgzm2_Func005Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_jgzm2_Func005Func002001003)),function Trig_jgzm2_Func005Func002A)
endif
endfunction
function Trig_jglbd4_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A071'))then
return false
endif
return true
endfunction
function Trig_jglbd4_Func013Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jglbd4_Func013Func002001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_jglbd4_Func013Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jglbd4_Func013Func002001003001(),Trig_jglbd4_Func013Func002001003002())
endfunction
function Trig_jglbd4_Func013Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jglbd4_Func013Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jglbd4_Func013Func003001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_jglbd4_Func013Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jglbd4_Func013Func003001003001(),Trig_jglbd4_Func013Func003001003002())
endfunction
function Trig_jglbd4_Func013Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*22.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jglbd4_Func013C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I053')==true))then
return false
endif
return true
endfunction
function Trig_jglbd4_Actions takes nothing returns nothing
set udg_units14[5]=GetTriggerUnit()
set udg_units14[6]=GetSpellTargetUnit()
set udg_location15=GetUnitLoc(GetTriggerUnit())
call UnitAddAbilityBJ('A00L',GetTriggerUnit())
call TriggerSleepAction(0.01)
call PauseUnitBJ(true,udg_units14[5])
call EnableTrigger(udg_trigger254)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger254)
call SetUnitPositionLoc(udg_units14[5],GetUnitLoc(udg_units14[6]))
call SetUnitAnimation(udg_units14[5],"attack")
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units14[5]),17.00)
if(Trig_jglbd4_Func013C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units14[6]),Condition(function Trig_jglbd4_Func013Func002001003)),function Trig_jglbd4_Func013Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units14[6]),Condition(function Trig_jglbd4_Func013Func003001003)),function Trig_jglbd4_Func013Func003A)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units14[6]),300.00,200.00)),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TerrainDeformationRippleBJ(2.00,false,GetUnitLoc(udg_units14[6]),300.00,1024,64,0.50,512)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=25
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00G',GetOwningPlayer(udg_units14[5]),GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units14[6]),600.00,500.00)),bj_UNIT_FACING)
call UnitAddTypeBJ(UNIT_TYPE_UNDEAD,GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),2000.00)
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnitBJ(false,udg_units14[5])
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units14[5]))
call SetUnitPositionLoc(udg_units14[5],udg_location15)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units14[5]),"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitRemoveAbilityBJ('A00L',GetTriggerUnit())
set udg_units14[5]=null
set udg_units14[6]=null
call RemoveLocation(udg_location06)
endfunction
function Trig_jglbd3_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units14[6],PolarProjectionBJ(GetUnitLoc(udg_units14[6]),25.00,GetUnitFacing(udg_units14[5])))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units14[6]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units14[6]),"Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_sjjl1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A073'))then
return false
endif
return true
endfunction
function Trig_sjjl1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound27)
set udg_unit15=GetTriggerUnit()
call SetUnitInvulnerable(udg_unit15,true)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_unit15),10.00)
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit15),CAMERA_FIELD_TARGET_DISTANCE,2000.00,2.00)
call CreateNUnitsAtLoc(1,'e015',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups03[1])
call EnableTrigger(udg_trigger256)
call EnableTrigger(udg_trigger257)
endfunction
function Trig_sjjl2_Func007Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sjjl2_Func007Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit15))==true)
endfunction
function Trig_sjjl2_Func007Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sjjl2_Func007Func001001003001(),Trig_sjjl2_Func007Func001001003002())
endfunction
function Trig_sjjl2_Func007Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit15,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit15,true))*15.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sjjl2_Func007Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sjjl2_Func007Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit15))==true)
endfunction
function Trig_sjjl2_Func007Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sjjl2_Func007Func003001003001(),Trig_sjjl2_Func007Func003001003002())
endfunction
function Trig_sjjl2_Func007Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit15,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit15,true))*10.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sjjl2_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit63,'I05O')==true))then
return false
endif
return true
endfunction
function Trig_sjjl2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00G',GetOwningPlayer(udg_unit15),PolarProjectionBJ(GetUnitLoc(udg_unit15),GetRandomReal(0,1000.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),1800.00)
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups03[1])
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_sjjl2_Func007C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_sjjl2_Func007Func001001003)),function Trig_sjjl2_Func007Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_sjjl2_Func007Func003001003)),function Trig_sjjl2_Func007Func003A)
endif
endfunction
function Trig_sjjl3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A073'))then
return false
endif
return true
endfunction
function Trig_sjjl3_Func006Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==3))then
return false
endif
return true
endfunction
function Trig_sjjl3_Func006A takes nothing returns nothing
if(Trig_sjjl3_Func006Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
endif
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_sjjl3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetCameraFieldForPlayer(GetOwningPlayer(udg_unit15),CAMERA_FIELD_TARGET_DISTANCE,1700.00,2.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_unit15))
call SetUnitInvulnerable(udg_unit15,false)
call DisableTrigger(udg_trigger256)
call ForGroupBJ(udg_groups03[1],function Trig_sjjl3_Func006A)
call GroupClear(udg_groups03[1])
set udg_unit15=null
endfunction
function Trig_Sg________2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A074'))then
return false
endif
return true
endfunction
function Trig_Sg________2_Func012001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Sg________2_Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units15[17]))==true)
endfunction
function Trig_Sg________2_Func012001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Sg________2_Func012001003001(),Trig_Sg________2_Func012001003002())
endfunction
function Trig_Sg________2_Func012A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units15[17],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units15[17],true))*I2R(GetUnitAbilityLevel(udg_units15[17],'A074'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_Sg________2_Actions takes nothing returns nothing
set udg_units15[17]=GetTriggerUnit()
set udg_units15[18]=GetSpellTargetUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units15[18]),"Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.20)
call SetUnitPositionLoc(udg_units15[17],GetUnitLoc(udg_units15[18]))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00G',GetOwningPlayer(udg_units15[17]),PolarProjectionBJ(GetUnitLoc(udg_units15[18]),GetRandomReal(0,200.00),GetRandomDirectionDeg()),GetRandomDirectionDeg())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),2500.00)
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitApplyTimedLifeBJ(5.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'e004',GetOwningPlayer(udg_units15[17]),GetUnitLoc(udg_units15[18]),GetRandomDirectionDeg())
call UnitAddAbility(GetLastCreatedUnit(),'A072')
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(320.00,GetUnitLoc(udg_units15[18]),Condition(function Trig_Sg________2_Func012001003)),function Trig_Sg________2_Func012A)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units15[17]),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set udg_units15[17]=null
set udg_units15[18]=null
endfunction
function Trig_chudai1501_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07T'))then
return false
endif
return true
endfunction
function Trig_chudai1501_Actions takes nothing returns nothing
set udg_units14[11]=GetTriggerUnit()
set udg_units14[12]=GetSpellTargetUnit()
set udg_real11=GetUnitFacing(GetTriggerUnit())
call EnableTrigger(udg_trigger260)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger260)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00G',GetOwningPlayer(udg_units14[11]),PolarProjectionBJ(GetUnitLoc(udg_units14[12]),GetRandomReal(1.00,500.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),2000.00)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',10.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitDamageTargetBJ(udg_units14[11],udg_units14[12],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units14[11],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call GroupClear(udg_group20)
set udg_units14[11]=null
set udg_units14[12]=null
endfunction
function Trig_chudai1502_Func005Func005001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_chudai1502_Func005Func005001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units14[12])
endfunction
function Trig_chudai1502_Func005Func005001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group20)==false)
endfunction
function Trig_chudai1502_Func005Func005001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[11]))==true)
endfunction
function Trig_chudai1502_Func005Func005001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_chudai1502_Func005Func005001003002002001(),Trig_chudai1502_Func005Func005001003002002002())
endfunction
function Trig_chudai1502_Func005Func005001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_chudai1502_Func005Func005001003002001(),Trig_chudai1502_Func005Func005001003002002())
endfunction
function Trig_chudai1502_Func005Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_chudai1502_Func005Func005001003001(),Trig_chudai1502_Func005Func005001003002())
endfunction
function Trig_chudai1502_Func005Func005A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group20)
call UnitDamageTargetBJ(udg_units14[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units14[11],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_chudai1502_Func006C takes nothing returns boolean
if(not(GetRandomInt(1,2)==1))then
return false
endif
return true
endfunction
function Trig_chudai1502_Func007001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_chudai1502_Func007001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units14[12])
endfunction
function Trig_chudai1502_Func007001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group20)==false)
endfunction
function Trig_chudai1502_Func007001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[11]))==true)
endfunction
function Trig_chudai1502_Func007001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_chudai1502_Func007001003002002001(),Trig_chudai1502_Func007001003002002002())
endfunction
function Trig_chudai1502_Func007001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_chudai1502_Func007001003002001(),Trig_chudai1502_Func007001003002002())
endfunction
function Trig_chudai1502_Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_chudai1502_Func007001003001(),Trig_chudai1502_Func007001003002())
endfunction
function Trig_chudai1502_Func007A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group20)
call UnitDamageTargetBJ(udg_units14[11],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units14[11],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_chudai1502_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units14[12],PolarProjectionBJ(GetUnitLoc(udg_units14[12]),35.00,udg_real11))
call SetUnitPositionLoc(udg_units14[12],GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units14[12]),150.00,150.00)))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units14[12]),"Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00G',GetOwningPlayer(udg_units14[11]),PolarProjectionBJ(GetUnitLoc(udg_units14[12]),GetRandomReal(1.00,500.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),1700.00)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',10.00)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_chudai1502_Func005Func005001003)),function Trig_chudai1502_Func005Func005A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_chudai1502_Func006C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endif
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(udg_units14[12]),Condition(function Trig_chudai1502_Func007001003)),function Trig_chudai1502_Func007A)
endfunction
function Trig_hlyd_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01D'))then
return false
endif
return true
endfunction
function Trig_hlyd_______u_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger262)
call CreateNUnitsAtLoc(1,'e022',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())),GetUnitFacing(GetTriggerUnit()))
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),17.00)
call TriggerSleepAction(0.60)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
call DisableTrigger(udg_trigger262)
call GroupClear(udg_group14)
endfunction
function Trig_hlyd2_______u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e022'))then
return false
endif
return true
endfunction
function Trig_hlyd2_______u_Func006Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hlyd2_______u_Func006Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetLastCreatedUnit()))==true)
endfunction
function Trig_hlyd2_______u_Func006Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2_______u_Func006Func001001003001001(),Trig_hlyd2_______u_Func006Func001001003001002())
endfunction
function Trig_hlyd2_______u_Func006Func001001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group14)==false)
endfunction
function Trig_hlyd2_______u_Func006Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2_______u_Func006Func001001003001(),Trig_hlyd2_______u_Func006Func001001003002())
endfunction
function Trig_hlyd2_______u_Func006Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group14)
call UnitDamageTargetBJ(udg_unit61,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit61,true))*I2R(GetUnitAbilityLevel(udg_unit61,'A01D')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit61,true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hlyd2_______u_Func006Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hlyd2_______u_Func006Func003001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetLastCreatedUnit()))==true)
endfunction
function Trig_hlyd2_______u_Func006Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2_______u_Func006Func003001003001001(),Trig_hlyd2_______u_Func006Func003001003001002())
endfunction
function Trig_hlyd2_______u_Func006Func003001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group14)==false)
endfunction
function Trig_hlyd2_______u_Func006Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2_______u_Func006Func003001003001(),Trig_hlyd2_______u_Func006Func003001003002())
endfunction
function Trig_hlyd2_______u_Func006Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group14)
call UnitDamageTargetBJ(udg_unit61,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit61,true))*I2R(GetUnitAbilityLevel(udg_unit61,'A01D'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hlyd2_______u_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit61,'I019')==true))then
return false
endif
return true
endfunction
function Trig_hlyd2_______u_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e022',GetOwningPlayer(GetDyingUnit()),PolarProjectionBJ(GetUnitLoc(GetDyingUnit()),200.00,GetUnitFacing(GetDyingUnit())),GetUnitFacing(GetDyingUnit()))
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00C',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetDyingUnit()),50.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),40.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetDyingUnit()),150.00,(60.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_hlyd2_______u_Func006C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_hlyd2_______u_Func006Func001001003)),function Trig_hlyd2_______u_Func006Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_hlyd2_______u_Func006Func003001003)),function Trig_hlyd2_______u_Func006Func003A)
endif
endfunction
function Trig_SZZ_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A076'))then
return false
endif
return true
endfunction
function Trig_SZZ_______u_Func004Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SZZ_______u_Func004Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_SZZ_______u_Func004Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SZZ_______u_Func004Func002001003001(),Trig_SZZ_______u_Func004Func002001003002())
endfunction
function Trig_SZZ_______u_Func004Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*50.00)+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*25.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_SZZ_______u_Func004Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SZZ_______u_Func004Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_SZZ_______u_Func004Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SZZ_______u_Func004Func003001003001(),Trig_SZZ_______u_Func004Func003001003002())
endfunction
function Trig_SZZ_______u_Func004Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*35.00)+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_SZZ_______u_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_units13[15],'I01A')==true))then
return false
endif
return true
endfunction
function Trig_SZZ_______u_Actions takes nothing returns nothing
set udg_units13[15]=GetTriggerUnit()
call EnableTrigger(udg_trigger264)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01B',GetOwningPlayer(udg_units13[15]),PolarProjectionBJ(GetUnitLoc(udg_units13[15]),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_SZZ_______u_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units13[15]),Condition(function Trig_SZZ_______u_Func004Func002001003)),function Trig_SZZ_______u_Func004Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units13[15]),Condition(function Trig_SZZ_______u_Func004Func003001003)),function Trig_SZZ_______u_Func004Func003A)
endif
call DisableTrigger(udg_trigger264)
set udg_units13[15]=null
endfunction
function Trig_SZZ2_______u_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01B',GetOwningPlayer(udg_units13[15]),PolarProjectionBJ(GetUnitLoc(udg_units13[15]),GetRandomReal(100.00,500.00),GetRandomDirectionDeg()),GetRandomDirectionDeg())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_hlyd______________u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08Y'))then
return false
endif
return true
endfunction
function Trig_hlyd______________u_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger266)
call CreateNUnitsAtLoc(1,'e01V',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())),GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),17.00)
call TriggerSleepAction(0.60)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
call DisableTrigger(udg_trigger266)
call GroupClear(udg_groups07[3])
endfunction
function Trig_hlyd2______________u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e01V'))then
return false
endif
return true
endfunction
function Trig_hlyd2______________u_Func008Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hlyd2______________u_Func008Func002001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetLastCreatedUnit()))==true)
endfunction
function Trig_hlyd2______________u_Func008Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2______________u_Func008Func002001003001001(),Trig_hlyd2______________u_Func008Func002001003001002())
endfunction
function Trig_hlyd2______________u_Func008Func002001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups07[3])==false)
endfunction
function Trig_hlyd2______________u_Func008Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2______________u_Func008Func002001003001(),Trig_hlyd2______________u_Func008Func002001003002())
endfunction
function Trig_hlyd2______________u_Func008Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups07[3])
call UnitDamageTargetBJ(udg_unit56,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit56,true))*I2R(GetUnitAbilityLevel(udg_unit56,'A08Y')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit56,true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hlyd2______________u_Func008Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hlyd2______________u_Func008Func003001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetLastCreatedUnit()))==true)
endfunction
function Trig_hlyd2______________u_Func008Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2______________u_Func008Func003001003001001(),Trig_hlyd2______________u_Func008Func003001003001002())
endfunction
function Trig_hlyd2______________u_Func008Func003001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups07[3])==false)
endfunction
function Trig_hlyd2______________u_Func008Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd2______________u_Func008Func003001003001(),Trig_hlyd2______________u_Func008Func003001003002())
endfunction
function Trig_hlyd2______________u_Func008Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups07[3])
call UnitDamageTargetBJ(udg_unit56,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit56,true))*I2R(GetUnitAbilityLevel(udg_unit56,'A08Y'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hlyd2______________u_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit56,'I013')==true))then
return false
endif
return true
endfunction
function Trig_hlyd2______________u_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e01V',GetOwningPlayer(GetDyingUnit()),PolarProjectionBJ(GetUnitLoc(GetDyingUnit()),200.00,GetUnitFacing(GetDyingUnit())),GetUnitFacing(GetDyingUnit()))
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetDyingUnit()),180.00,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_hlyd2______________u_Func008C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_hlyd2______________u_Func008Func002001003)),function Trig_hlyd2______________u_Func008Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_hlyd2______________u_Func008Func003001003)),function Trig_hlyd2______________u_Func008Func003A)
endif
endfunction
function Trig_Spell2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07W'))then
return false
endif
return true
endfunction
function Trig_Spell2_Func020Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Spell2_Func020Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units39[1]))==true)
endfunction
function Trig_Spell2_Func020Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Spell2_Func020Func006001003001(),Trig_Spell2_Func020Func006001003002())
endfunction
function Trig_Spell2_Func020Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units39[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_Spell2_Func020Func013001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Spell2_Func020Func013001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units39[1]))==true)
endfunction
function Trig_Spell2_Func020Func013001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Spell2_Func020Func013001003001(),Trig_Spell2_Func020Func013001003002())
endfunction
function Trig_Spell2_Func020Func013A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units39[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*3.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_Spell2_Func020Func020001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Spell2_Func020Func020001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units39[1]))==true)
endfunction
function Trig_Spell2_Func020Func020001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Spell2_Func020Func020001003001(),Trig_Spell2_Func020Func020001003002())
endfunction
function Trig_Spell2_Func020Func020A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units39[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*3.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_Spell2_Func020Func027001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Spell2_Func020Func027001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units39[1]))==true)
endfunction
function Trig_Spell2_Func020Func027001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Spell2_Func020Func027001003001(),Trig_Spell2_Func020Func027001003002())
endfunction
function Trig_Spell2_Func020Func027A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units39[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*3.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_Spell2_Func020Func034001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Spell2_Func020Func034001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units39[1]))==true)
endfunction
function Trig_Spell2_Func020Func034001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Spell2_Func020Func034001003001(),Trig_Spell2_Func020Func034001003002())
endfunction
function Trig_Spell2_Func020Func034A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units39[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*3.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_Spell2_Actions takes nothing returns nothing
set udg_locations16[6]=GetUnitLoc(GetSpellTargetUnit())
set udg_units39[6]=GetSpellTargetUnit()
set udg_units39[1]=GetTriggerUnit()
call TriggerSleepAction(0.05)
call PauseUnitBJ(true,udg_units39[6])
call ShowUnitHide(udg_units39[1])
set udg_locations16[0]=PolarProjectionBJ(udg_locations16[6],400.00,GetUnitFacing(GetTriggerUnit()))
set udg_locations16[1]=PolarProjectionBJ(udg_locations16[6],400.00,(GetUnitFacing(GetTriggerUnit())+72.00))
set udg_locations16[2]=PolarProjectionBJ(udg_locations16[6],400.00,(GetUnitFacing(GetTriggerUnit())-72.00))
set udg_locations16[3]=PolarProjectionBJ(udg_locations16[6],400.00,(GetUnitFacing(GetTriggerUnit())+144.00))
set udg_locations16[4]=PolarProjectionBJ(udg_locations16[6],400.00,(GetUnitFacing(GetTriggerUnit())-144.00))
call CreateNUnitsAtLoc(1,'e01Z',GetOwningPlayer(udg_units39[1]),udg_locations16[0],AngleBetweenPoints(udg_locations16[0],udg_locations16[4]))
set udg_units39[0]=bj_lastCreatedUnit
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitInvulnerable(udg_units39[0],true)
call SetUnitPathing(udg_units39[0],false)
call TriggerSleepAction(0.05)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations16[6])
set udg_integer47=1
loop
exitwhen udg_integer47>5
call TriggerSleepAction(0.00)
call SetUnitAnimation(udg_units39[0],"Attack")
call SetUnitPositionLoc(udg_units39[0],udg_locations16[4])
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units39[0]),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations16[6],Condition(function Trig_Spell2_Func020Func006001003)),function Trig_Spell2_Func020Func006A)
call TriggerSleepAction(0.00)
call SetUnitFacingToFaceLocTimed(udg_units39[0],udg_locations16[1],0.00)
call SetUnitAnimation(udg_units39[0],"Attack")
call SetUnitPositionLoc(udg_units39[0],udg_locations16[1])
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units39[0]),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations16[6],Condition(function Trig_Spell2_Func020Func013001003)),function Trig_Spell2_Func020Func013A)
call TriggerSleepAction(0.00)
call SetUnitFacingToFaceLocTimed(udg_units39[0],udg_locations16[2],0.00)
call SetUnitAnimation(udg_units39[0],"Attack")
call SetUnitPositionLoc(udg_units39[0],udg_locations16[2])
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units39[0]),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations16[6],Condition(function Trig_Spell2_Func020Func020001003)),function Trig_Spell2_Func020Func020A)
call TriggerSleepAction(0.00)
call SetUnitFacingToFaceLocTimed(udg_units39[0],udg_locations16[3],0.00)
call SetUnitAnimation(udg_units39[0],"Attack")
call SetUnitPositionLoc(udg_units39[0],udg_locations16[3])
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units39[0]),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations16[6],Condition(function Trig_Spell2_Func020Func027001003)),function Trig_Spell2_Func020Func027A)
call TriggerSleepAction(0.00)
call SetUnitFacingToFaceLocTimed(udg_units39[0],udg_locations16[0],0.00)
call SetUnitAnimation(udg_units39[0],"Attack")
call SetUnitPositionLoc(udg_units39[0],udg_locations16[0])
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units39[0]),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations16[6],Condition(function Trig_Spell2_Func020Func034001003)),function Trig_Spell2_Func020Func034A)
set udg_integer47=udg_integer47+1
endloop
call ShowUnitShow(udg_units39[1])
call SelectUnitForPlayerSingle(udg_units39[1],GetOwningPlayer(udg_units39[1]))
call PauseUnitBJ(false,udg_units39[6])
set bj_forLoopAIndex=0
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveLocation(udg_locations16[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveUnit(udg_units39[0])
set udg_units39[0]=null
set udg_units39[1]=null
endfunction
function Trig_sysjr1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09B'))then
return false
endif
return true
endfunction
function Trig_sysjr1_Actions takes nothing returns nothing
set udg_units40[1]=GetTriggerUnit()
set udg_real20=AngleBetweenPoints(GetUnitLoc(udg_units40[1]),GetSpellTargetLoc())
call CreateNUnitsAtLoc(1,'ewsp',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,udg_real20),udg_real20)
set udg_units40[2]=GetLastCreatedUnit()
call SetUnitPathing(GetLastCreatedUnit(),false)
call ShowUnitHide(udg_units40[2])
call EnableTrigger(udg_trigger269)
call EnableTrigger(udg_trigger270)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger269)
call DisableTrigger(udg_trigger270)
call GroupClear(udg_group29)
call KillUnit(udg_units40[2])
set udg_units40[1]=null
set udg_units40[2]=null
endfunction
function Trig_sysjr2_Func002Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sysjr2_Func002Func001001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units40[1]))==true)
endfunction
function Trig_sysjr2_Func002Func001001003002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group29)==false)
endfunction
function Trig_sysjr2_Func002Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_sysjr2_Func002Func001001003002001(),Trig_sysjr2_Func002Func001001003002002())
endfunction
function Trig_sysjr2_Func002Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sysjr2_Func002Func001001003001(),Trig_sysjr2_Func002Func001001003002())
endfunction
function Trig_sysjr2_Func002Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group29)
call UnitDamageTargetBJ(udg_units40[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units40[1],true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sysjr2_Func002Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sysjr2_Func002Func003001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units40[1]))==true)
endfunction
function Trig_sysjr2_Func002Func003001003002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group29)==false)
endfunction
function Trig_sysjr2_Func002Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_sysjr2_Func002Func003001003002001(),Trig_sysjr2_Func002Func003001003002002())
endfunction
function Trig_sysjr2_Func002Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sysjr2_Func002Func003001003001(),Trig_sysjr2_Func002Func003001003002())
endfunction
function Trig_sysjr2_Func002Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group29)
call UnitDamageTargetBJ(udg_units40[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units40[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sysjr2_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit61,'I05C')==true))then
return false
endif
return true
endfunction
function Trig_sysjr2_Actions takes nothing returns nothing
call SetUnitPositionLocFacingBJ(udg_units40[2],PolarProjectionBJ(GetUnitLoc(udg_units40[2]),27.00,udg_real20),udg_real20)
if(Trig_sysjr2_Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units40[2]),Condition(function Trig_sysjr2_Func002Func001001003)),function Trig_sysjr2_Func002Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units40[2]),Condition(function Trig_sysjr2_Func002Func003001003)),function Trig_sysjr2_Func002Func003A)
endif
endfunction
function Trig_sysjr3_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units40[2]),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units40[2]),150.00,(GetUnitFacing(udg_units40[2])-90.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units40[2]),150.00,(GetUnitFacing(udg_units40[2])-270.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units40[2]),300.00,(GetUnitFacing(udg_units40[2])-90.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units40[2]),300.00,(GetUnitFacing(udg_units40[2])-270.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_KK3D_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AA'))then
return false
endif
return true
endfunction
function Trig_KK3D_Func032001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KK3D_Func032001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_KK3D_Func032001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KK3D_Func032001003001(),Trig_KK3D_Func032001003002())
endfunction
function Trig_KK3D_Func032Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit59,'I05F')==true))then
return false
endif
return true
endfunction
function Trig_KK3D_Func032A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_KK3D_Func032Func003C())then
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*120.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_KK3D_Actions takes nothing returns nothing
set udg_units51[1]=GetTriggerUnit()
set udg_locations25[1]=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,'e02G',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations25[1],300.00,110.00),udg_locations25[1])
set udg_units51[2]=GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'e02G',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations25[1],300.00,0.00),udg_locations25[1])
set udg_units51[3]=GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'e02G',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations25[1],300.00,220.00),udg_locations25[1])
set udg_units51[4]=GetLastCreatedUnit()
call ShowUnitHide(GetTriggerUnit())
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitFlyHeight(udg_units51[GetForLoopIndexA()],300.00,500.00)
call AddSpecialEffectTargetUnitBJ("origin",udg_units51[GetForLoopIndexA()],"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitAnimation(udg_units51[GetForLoopIndexA()],"spell")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLocFacingLocBJ(1,'e02F',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations25[1],300.00,110.00),udg_locations25[1])
set udg_units51[5]=GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'e02H',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations25[1],300.00,0.00),udg_locations25[1])
set udg_units51[6]=GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'e02E',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_locations25[1],300.00,220.00),udg_locations25[1])
set udg_units51[7]=GetLastCreatedUnit()
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitFlyHeight(udg_units51[GetForLoopIndexA()],400.00,1000000000.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssuePointOrderLoc(udg_units51[GetForLoopIndexA()],"move",udg_locations25[1])
call SetUnitFlyHeight(udg_units51[GetForLoopIndexA()],0.00,400.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e02I',GetOwningPlayer(GetTriggerUnit()),udg_locations25[1],udg_locations25[1])
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
call UnitApplyTimedLifeBJ(5.00,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),150.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.50)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),30.00)
call AddSpecialEffectLocBJ(udg_locations25[1],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(udg_locations25[1],"Abilities\\Spells\\Human\\FlameStrike\\FlameStrikeTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call DestroyGroup(GetLastCreatedGroup())
call TriggerSleepAction(0.20)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations25[1],Condition(function Trig_KK3D_Func032001003)),function Trig_KK3D_Func032A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations25[1],230.00,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units51[GetForLoopIndexA()])
set udg_units51[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ShowUnitShow(GetTriggerUnit())
call SelectUnitForPlayerSingle(GetTriggerUnit(),GetOwningPlayer(GetTriggerUnit()))
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
call RemoveLocation(udg_locations25[1])
endfunction
function Trig_sljw1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07L'))then
return false
endif
return true
endfunction
function Trig_sljw1_Func009Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sljw1_Func009Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units42[1]))==true)
endfunction
function Trig_sljw1_Func009Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_sljw1_Func009Func001002003001(),Trig_sljw1_Func009Func001002003002())
endfunction
function Trig_sljw1_Func009Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units42[1],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units42[1],true))*15.00)/15.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sljw1_Func011A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_sljw1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units42[1]=GetTriggerUnit()
set udg_units42[2]=GetSpellTargetUnit()
call PlaySoundBJ(udg_sound53)
call TriggerSleepAction(0.20)
set udg_locations18[1]=GetUnitLoc(udg_units42[2])
call EnableTrigger(udg_trigger276)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h00V',GetOwningPlayer(udg_units42[1]),PolarProjectionBJ(udg_locations18[1],300.00,(18.00*I2R(GetForLoopIndexA()))),(18.00*I2R(GetForLoopIndexA())))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),600.00)
call SetUnitFlyHeight(GetLastCreatedUnit(),100.00,1000000000.00)
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitVertexColor(GetLastCreatedUnit(),0,255,255,50)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups10[2])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer49=1
loop
exitwhen udg_integer49>15
set udg_groups10[1]=GetUnitsInRangeOfLocMatching(400.00,udg_locations18[1],Condition(function Trig_sljw1_Func009Func001002003))
call ForGroupBJ(udg_groups10[1],function Trig_sljw1_Func009Func002A)
call GroupClear(udg_groups10[1])
call CreateNUnitsAtLoc(1,'nchr',GetOwningPlayer(udg_units42[1]),udg_locations18[1],bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups10[2])
set udg_locations18[2]=PolarProjectionBJ(udg_locations18[1],GetRandomReal(600.00,1000.00),GetRandomDirectionDeg())
call CreateNUnitsAtLoc(1,'nchr',GetOwningPlayer(udg_units42[1]),udg_locations18[2],bj_UNIT_FACING)
call IssuePointOrderLoc(GetLastCreatedUnit(),"move",udg_locations18[1])
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups10[2])
call RemoveLocation(udg_locations18[2])
call TriggerSleepAction(1.00)
set udg_integer49=udg_integer49+1
endloop
call DisableTrigger(udg_trigger276)
call ForGroupBJ(udg_groups10[2],function Trig_sljw1_Func011A)
call GroupClear(udg_groups10[3])
call RemoveLocation(udg_locations18[1])
set udg_units42[1]=null
set udg_units42[2]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_sljw2_Func002Func001002003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sljw2_Func002Func001002003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_sljw2_Func002Func001002003001 takes nothing returns boolean
return GetBooleanAnd(Trig_sljw2_Func002Func001002003001001(),Trig_sljw2_Func002Func001002003001002())
endfunction
function Trig_sljw2_Func002Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units42[1]))==true)
endfunction
function Trig_sljw2_Func002Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_sljw2_Func002Func001002003001(),Trig_sljw2_Func002Func001002003002())
endfunction
function Trig_sljw2_Func002Func002A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_locations18[1])
endfunction
function Trig_sljw2_Func002C takes nothing returns boolean
if(not(IsTerrainPathableBJ(udg_locations18[1],PATHING_TYPE_WALKABILITY)==false))then
return false
endif
return true
endfunction
function Trig_sljw2_Actions takes nothing returns nothing
if(Trig_sljw2_Func002C())then
set udg_groups10[3]=GetUnitsInRangeOfLocMatching(400.00,udg_locations18[1],Condition(function Trig_sljw2_Func002Func001002003))
call ForGroupBJ(udg_groups10[3],function Trig_sljw2_Func002Func002A)
call GroupClear(udg_groups10[3])
call DestroyGroup(udg_groups10[3])
else
endif
endfunction
function Trig_sljw3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='nchr'))then
return false
endif
return true
endfunction
function Trig_sljw3_Actions takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit64,GetAttackedUnitBJ(),I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit64,true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_guaili_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09O'))then
return false
endif
return true
endfunction
function Trig_guaili_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound59)
set udg_units44[1]=GetTriggerUnit()
set udg_units44[2]=GetSpellTargetUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units44[1]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call EnableTrigger(udg_trigger279)
endfunction
function Trig_guaili2_Func001Func017001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_guaili2_Func001Func017001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units44[2])
endfunction
function Trig_guaili2_Func001Func017001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group31)==false)
endfunction
function Trig_guaili2_Func001Func017001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units44[1]))==true)
endfunction
function Trig_guaili2_Func001Func017001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_guaili2_Func001Func017001003002002001(),Trig_guaili2_Func001Func017001003002002002())
endfunction
function Trig_guaili2_Func001Func017001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_guaili2_Func001Func017001003002001(),Trig_guaili2_Func001Func017001003002002())
endfunction
function Trig_guaili2_Func001Func017001003 takes nothing returns boolean
return GetBooleanAnd(Trig_guaili2_Func001Func017001003001(),Trig_guaili2_Func001Func017001003002())
endfunction
function Trig_guaili2_Func001Func017A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group31)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units44[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units44[1],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_guaili2_Func001C takes nothing returns boolean
if(not(udg_integer50>=100))then
return false
endif
return true
endfunction
function Trig_guaili2_Actions takes nothing returns nothing
if(Trig_guaili2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_units44[2],"death")
call UnitDamageTargetBJ(udg_units44[1],udg_units44[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units44[1],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
set udg_integer50=0
call GroupClear(udg_group31)
set udg_units44[1]=null
set udg_units44[2]=null
else
set udg_integer50=(udg_integer50+1)
call CreateTextTagLocBJ(("|cffff8000"+(I2S(udg_integer50)+"|r %!")),GetUnitLoc(udg_units44[1]),0,25.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),0.30)
call SetUnitPositionLoc(udg_units44[2],PolarProjectionBJ(GetUnitLoc(udg_units44[2]),27.00,AngleBetweenPoints(GetUnitLoc(udg_units44[1]),GetUnitLoc(udg_units44[2]))))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units44[2]),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units44[2]),Condition(function Trig_guaili2_Func001Func017001003)),function Trig_guaili2_Func001Func017A)
endif
endfunction
function Trig_yhcxs1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09P'))then
return false
endif
return true
endfunction
function Trig_yhcxs1_Actions takes nothing returns nothing
set udg_location30=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e004',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),udg_location30)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.00)
call IssuePointOrderLoc(GetLastCreatedUnit(),"summonfactory",GetRandomLocInRect(RectFromCenterSizeBJ(udg_location30,300.00,300.00)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_yhcxs2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e003'))then
return false
endif
return true
endfunction
function Trig_yhcxs2_Func005Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_yhcxs2_Func005Func001001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_yhcxs2_Func005Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_yhcxs2_Func005Func001001003001(),Trig_yhcxs2_Func005Func001001003002())
endfunction
function Trig_yhcxs2_Func005Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit85,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit85,true))*4.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_yhcxs2_Func005Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_yhcxs2_Func005Func002001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_yhcxs2_Func005Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_yhcxs2_Func005Func002001003001(),Trig_yhcxs2_Func005Func002001003002())
endfunction
function Trig_yhcxs2_Func005Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit85,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit85,true))*2.50),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_yhcxs2_Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit85,'I06B')==true))then
return false
endif
return true
endfunction
function Trig_yhcxs2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_yhcxs2_Func005C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_yhcxs2_Func005Func001001003)),function Trig_yhcxs2_Func005Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_yhcxs2_Func005Func002001003)),function Trig_yhcxs2_Func005Func002A)
endif
endfunction
function Trig_lxy_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09M'))then
return false
endif
return true
endfunction
function Trig_lxy_Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_lxy_Func001001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_lxy_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lxy_Func001001003001(),Trig_lxy_Func001001003002())
endfunction
function Trig_lxy_Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A09M'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_lxy_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_lxy_Func001001003)),function Trig_lxy_Func001A)
endfunction
function Trig_zxs_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09L'))then
return false
endif
return true
endfunction
function Trig_zxs_Func002Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zxs_Func002Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_zxs_Func002Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zxs_Func002Func001001003001(),Trig_zxs_Func002Func001001003002())
endfunction
function Trig_zxs_Func002Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A09L')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_zxs_Func002Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zxs_Func002Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_zxs_Func002Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zxs_Func002Func002001003001(),Trig_zxs_Func002Func002001003002())
endfunction
function Trig_zxs_Func002Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A09L'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_zxs_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06A')==true))then
return false
endif
return true
endfunction
function Trig_zxs_Func004Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_zxs_Func004Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zxs_Func004Func002001003002002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_zxs_Func004Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_zxs_Func004Func002001003002001(),Trig_zxs_Func004Func002001003002002())
endfunction
function Trig_zxs_Func004Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zxs_Func004Func002001003001(),Trig_zxs_Func004Func002001003002())
endfunction
function Trig_zxs_Func004Func002A takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*20.00)))
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_zxs_Func004Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_zxs_Func004Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zxs_Func004Func003001003002002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_zxs_Func004Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_zxs_Func004Func003001003002001(),Trig_zxs_Func004Func003001003002002())
endfunction
function Trig_zxs_Func004Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zxs_Func004Func003001003001(),Trig_zxs_Func004Func003001003002())
endfunction
function Trig_zxs_Func004Func003A takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A09L')))))
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_zxs_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06A')==true))then
return false
endif
return true
endfunction
function Trig_zxs_Actions takes nothing returns nothing
set udg_unit34=GetSpellTargetUnit()
if(Trig_zxs_Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit34),Condition(function Trig_zxs_Func002Func001001003)),function Trig_zxs_Func002Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit34),Condition(function Trig_zxs_Func002Func002001003)),function Trig_zxs_Func002Func002A)
endif
call DestroyGroup(GetLastCreatedGroup())
if(Trig_zxs_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit34),Condition(function Trig_zxs_Func004Func002001003)),function Trig_zxs_Func004Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit34),Condition(function Trig_zxs_Func004Func003001003)),function Trig_zxs_Func004Func003A)
endif
call DestroyGroup(GetLastCreatedGroup())
set udg_unit34=null
endfunction
function Trig_bq1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09K'))then
return false
endif
return true
endfunction
function Trig_bq1_Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit85,'I06C')==true))then
return false
endif
return true
endfunction
function Trig_bq1_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger285)
call CreateNUnitsAtLoc(1,'e025',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())),GetUnitFacing(GetTriggerUnit()))
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_bq1_Func007C())then
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
else
call DoNothing()
endif
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
call TriggerSleepAction(0.60)
call DisableTrigger(udg_trigger285)
call GroupClear(udg_group32)
endfunction
function Trig_bq2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e025'))then
return false
endif
return true
endfunction
function Trig_bq2_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit85,'I06C')==true))then
return false
endif
return true
endfunction
function Trig_bq2_Func008Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_bq2_Func008Func002001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetLastCreatedUnit()))==true)
endfunction
function Trig_bq2_Func008Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_bq2_Func008Func002001003001001(),Trig_bq2_Func008Func002001003001002())
endfunction
function Trig_bq2_Func008Func002001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group32)==false)
endfunction
function Trig_bq2_Func008Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_bq2_Func008Func002001003001(),Trig_bq2_Func008Func002001003002())
endfunction
function Trig_bq2_Func008Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group32)
call UnitDamageTargetBJ(udg_unit85,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit85,true))*I2R(GetUnitAbilityLevel(udg_unit85,'A09K')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit85,true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_bq2_Func008Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_bq2_Func008Func003001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetLastCreatedUnit()))==true)
endfunction
function Trig_bq2_Func008Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_bq2_Func008Func003001003001001(),Trig_bq2_Func008Func003001003001002())
endfunction
function Trig_bq2_Func008Func003001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group32)==false)
endfunction
function Trig_bq2_Func008Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_bq2_Func008Func003001003001(),Trig_bq2_Func008Func003001003002())
endfunction
function Trig_bq2_Func008Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group32)
call UnitDamageTargetBJ(udg_unit85,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit85,true))*I2R(GetUnitAbilityLevel(udg_unit85,'A09K'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_bq2_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit85,'I06C')==true))then
return false
endif
return true
endfunction
function Trig_bq2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e025',GetOwningPlayer(GetDyingUnit()),PolarProjectionBJ(GetUnitLoc(GetDyingUnit()),200.00,GetUnitFacing(GetDyingUnit())),GetUnitFacing(GetDyingUnit()))
if(Trig_bq2_Func002C())then
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
else
call DoNothing()
endif
call UnitApplyTimedLifeBJ(0.20,'BHwe',GetLastCreatedUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_bq2_Func008C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_bq2_Func008Func002001003)),function Trig_bq2_Func008Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_bq2_Func008Func003001003)),function Trig_bq2_Func008Func003A)
endif
endfunction
function Trig_ddbj_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AP'))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),'B00H')==true))then
return false
endif
return true
endfunction
function Trig_ddbj_Func011001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ddbj_Func011001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_ddbj_Func011001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ddbj_Func011001003001(),Trig_ddbj_Func011001003002())
endfunction
function Trig_ddbj_Func011Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit89,'I016')==true))then
return false
endif
return true
endfunction
function Trig_ddbj_Func011A takes nothing returns nothing
if(Trig_ddbj_Func011Func001C())then
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*60.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*45.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_ddbj_Actions takes nothing returns nothing
set udg_unit37=GetSpellTargetUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIre\\AIreTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.05)
call SetUnitAnimation(GetTriggerUnit(),"attack")
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_unit37),100.00,GetUnitFacing(udg_unit37)),GetUnitLoc(udg_unit37))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit37),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit37),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit37),Condition(function Trig_ddbj_Func011001003)),function Trig_ddbj_Func011A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit37),200.00,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_unit37=null
endfunction
function Trig_pangzi1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AL'))then
return false
endif
return true
endfunction
function Trig_pangzi1_Actions takes nothing returns nothing
set udg_units53[1]=GetTriggerUnit()
call TriggerSleepAction(0.05)
call PauseUnitBJ(true,udg_units53[1])
call SetUnitAnimation(udg_units53[1],"spell channel")
call EnableTrigger(udg_trigger288)
call SetUnitPathing(udg_units53[1],false)
call TriggerSleepAction(0.40)
call DisableTrigger(udg_trigger288)
call SetUnitPathing(udg_units53[1],true)
call GroupClear(udg_groups11[1])
call SetUnitAnimation(udg_units53[1],"stand")
call PauseUnitBJ(false,udg_units53[1])
call SelectUnitForPlayerSingle(udg_units53[1],GetOwningPlayer(udg_units53[1]))
set udg_units53[1]=null
endfunction
function Trig_pangzi2_Func001C takes nothing returns boolean
if(not(IsTerrainPathableBJ(GetRectCenter(RectFromCenterSizeBJ(GetUnitLoc(udg_units53[1]),150.00,150.00)),PATHING_TYPE_WALKABILITY)==false))then
return false
endif
return true
endfunction
function Trig_pangzi2_Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_pangzi2_Func002001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units53[1]))==true)
endfunction
function Trig_pangzi2_Func002001003002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups11[1])==false)
endfunction
function Trig_pangzi2_Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_pangzi2_Func002001003002001(),Trig_pangzi2_Func002001003002002())
endfunction
function Trig_pangzi2_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_pangzi2_Func002001003001(),Trig_pangzi2_Func002001003002())
endfunction
function Trig_pangzi2_Func002Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit89,'I06K')==true))then
return false
endif
return true
endfunction
function Trig_pangzi2_Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups11[1])
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_pangzi2_Func002Func004C())then
call UnitDamageTargetBJ(udg_units53[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units53[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units53[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units53[1],true))*I2R(GetUnitAbilityLevel(udg_units53[1],'A0AL'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_pangzi2_Actions takes nothing returns nothing
if(Trig_pangzi2_Func001C())then
call SetUnitPositionLoc(udg_units53[1],PolarProjectionBJ(GetUnitLoc(udg_units53[1]),28.00,GetUnitFacing(udg_units53[1])))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units53[1]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
endif
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units53[1]),Condition(function Trig_pangzi2_Func002001003)),function Trig_pangzi2_Func002A)
endfunction
function Trig_pangzi3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AM'))then
return false
endif
return true
endfunction
function Trig_pangzi3_Func009001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_pangzi3_Func009001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units53[2]))==true)
endfunction
function Trig_pangzi3_Func009001003 takes nothing returns boolean
return GetBooleanAnd(Trig_pangzi3_Func009001003001(),Trig_pangzi3_Func009001003002())
endfunction
function Trig_pangzi3_Func009Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit89,'I015')==true))then
return false
endif
return true
endfunction
function Trig_pangzi3_Func009A takes nothing returns nothing
if(Trig_pangzi3_Func009Func001C())then
call UnitDamageTargetBJ(udg_units53[2],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units53[2],true))*45.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units53[2],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units53[2],true))*30.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_pangzi3_Actions takes nothing returns nothing
set udg_units53[2]=GetTriggerUnit()
call PlaySoundBJ(udg_sound68)
call TriggerSleepAction(0.05)
call PauseUnitBJ(true,udg_units53[2])
call SetUnitAnimation(udg_units53[2],"spell throw")
call SetUnitInvulnerable(udg_units53[2],true)
call TriggerSleepAction(2)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units53[2]),350.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units53[2]),250.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units53[2]),Condition(function Trig_pangzi3_Func009001003)),function Trig_pangzi3_Func009A)
call SetUnitInvulnerable(udg_units53[2],false)
call PauseUnitBJ(false,udg_units53[2])
call SelectUnitForPlayerSingle(udg_units53[2],GetOwningPlayer(udg_units53[2]))
set udg_units53[2]=null
endfunction
function Trig_pangzi4_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AN'))then
return false
endif
return true
endfunction
function Trig_pangzi4_Actions takes nothing returns nothing
set udg_units53[3]=GetTriggerUnit()
set udg_locations27[1]=GetSpellTargetLoc()
call TriggerSleepAction(0.05)
call PauseUnitBJ(true,udg_units53[3])
call SetUnitPathing(udg_units53[3],false)
call SetUnitAnimation(udg_units53[3],"spell slam")
call TriggerSleepAction(1.20)
call EnableTrigger(udg_trigger291)
endfunction
function Trig_pangzi5_Func001Func001C takes nothing returns boolean
if((IsTerrainPathableBJ(GetRectCenter(RectFromCenterSizeBJ(GetUnitLoc(udg_units53[3]),150.00,150.00)),PATHING_TYPE_WALKABILITY)==true))then
return true
endif
if((RectContainsUnit(RectFromCenterSizeBJ(udg_locations27[1],150.00,150.00),udg_units53[3])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units53[3])==true))then
return true
endif
return false
endfunction
function Trig_pangzi5_Func001Func004001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_pangzi5_Func001Func004001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units53[3]))==true)
endfunction
function Trig_pangzi5_Func001Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_pangzi5_Func001Func004001003001(),Trig_pangzi5_Func001Func004001003002())
endfunction
function Trig_pangzi5_Func001Func004A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units53[3],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units53[3],true))*80.00),ATTACK_TYPE_HERO,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_pangzi5_Func001C takes nothing returns boolean
if(not Trig_pangzi5_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_pangzi5_Actions takes nothing returns nothing
if(Trig_pangzi5_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units53[3]),400.00,(30.00*I2R(GetForLoopIndexA()))),"war3mapImported\\explosion.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units53[3]),200.00,(30.00*I2R(GetForLoopIndexA()))),"war3mapImported\\explosion.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units53[3]),300.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units53[3]),Condition(function Trig_pangzi5_Func001Func004001003)),function Trig_pangzi5_Func001Func004A)
call TriggerSleepAction(0.20)
call SetUnitPathing(udg_units53[3],true)
call PauseUnitBJ(false,udg_units53[3])
call SetUnitAnimation(udg_units53[3],"stand")
call SelectUnitForPlayerSingle(udg_units53[3],GetOwningPlayer(udg_units53[3]))
set udg_units53[3]=null
call RemoveLocation(udg_locations27[1])
else
call SetUnitPositionLoc(udg_units53[3],PolarProjectionBJ(GetUnitLoc(udg_units53[3]),28.00,AngleBetweenPoints(GetUnitLoc(udg_units53[3]),udg_locations27[1])))
endif
endfunction
function Trig_shbg64z_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AOws'))then
return false
endif
return true
endfunction
function Trig_shbg64z_Func010Func012001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_shbg64z_Func010Func012001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_shbg64z_Func010Func012001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_shbg64z_Func010Func012001003001001(),Trig_shbg64z_Func010Func012001003001002())
endfunction
function Trig_shbg64z_Func010Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_shbg64z_Func010Func012001003 takes nothing returns boolean
return GetBooleanAnd(Trig_shbg64z_Func010Func012001003001(),Trig_shbg64z_Func010Func012001003002())
endfunction
function Trig_shbg64z_Func010Func012A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'AOws')))/10.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\SpellSteal\\SpellStealTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_shbg64z_Actions takes nothing returns nothing
call PauseUnitBJ(true,GetTriggerUnit())
call TriggerSleepAction(0.10)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"Spell")
call CreateNUnitsAtLoc(1,'n00E',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),100.00)
set udg_unit23=GetLastCreatedUnit()
call UnitApplyTimedLife(udg_unit23,'BHwe',2.50)
call TriggerExecute(udg_trigger293)
call SetUnitTimeScalePercent(GetTriggerUnit(),500.00)
set udg_integer39=1
loop
exitwhen udg_integer39>10
call SetUnitFacingToFaceLocTimed(GetTriggerUnit(),GetRandomLocInRect(GetPlayableMapRect()),0)
call SetUnitAnimationWithRarity(GetTriggerUnit(),"attack",RARITY_RARE)
call CreateNUnitsAtLocFacingLocBJ(1,'n00L',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(150.00,250.00),GetRandomDirectionDeg()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(100.00,150.00),GetRandomDirectionDeg()))
call SetUnitAnimation(GetLastCreatedUnit(),"attack")
call UnitApplyTimedLifeBJ(0.80,'BTLF',GetLastCreatedUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Other\\Drain\\ManaDrainCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_shbg64z_Func010Func012001003)),function Trig_shbg64z_Func010Func012A)
call TriggerSleepAction(0.00)
set udg_integer39=udg_integer39+1
endloop
call SetUnitInvulnerable(GetTriggerUnit(),false)
call SetUnitTimeScalePercent(GetTriggerUnit(),100)
call PauseUnitBJ(false,GetTriggerUnit())
call ResetUnitAnimation(GetTriggerUnit())
endfunction
function Trig_shbg64z2_Actions takes nothing returns nothing
call SetUnitFacingTimed(udg_unit23,270.00,2.50)
endfunction
function Trig_bg321_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A087'))then
return false
endif
return true
endfunction
function Trig_bg321_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound58)
set udg_units25[5]=GetTriggerUnit()
set udg_units25[6]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call SetUnitInvulnerable(udg_units25[5],true)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units25[6]),"war3mapImported\\bagua.mdx")
set udg_effect02=GetLastCreatedEffectBJ()
call PauseUnit(udg_units25[5],true)
call PauseUnit(udg_units25[6],true)
call SetUnitTimeScalePercent(udg_units25[5],400.00)
call EnableTrigger(udg_trigger295)
endfunction
function Trig_bg322_Func001Func012Func001C takes nothing returns boolean
if((udg_integer42==2))then
return true
endif
if((udg_integer42==4))then
return true
endif
if((udg_integer42==8))then
return true
endif
if((udg_integer42==16))then
return true
endif
if((udg_integer42==28))then
return true
endif
return false
endfunction
function Trig_bg322_Func001Func012C takes nothing returns boolean
if(not Trig_bg322_Func001Func012Func001C())then
return false
endif
return true
endfunction
function Trig_bg322_Func001Func021C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit56,'I00Z')==true))then
return false
endif
return true
endfunction
function Trig_bg322_Func001C takes nothing returns boolean
if(not(udg_integer42<32))then
return false
endif
if(not(IsUnitAliveBJ(udg_units25[5])==true))then
return false
endif
if(not(IsUnitAliveBJ(udg_units25[6])==true))then
return false
endif
return true
endfunction
function Trig_bg322_Actions takes nothing returns nothing
if(Trig_bg322_Func001C())then
set udg_integer42=(udg_integer42+1)
if(Trig_bg322_Func001Func012C())then
call SetUnitPositionLocFacingLocBJ(udg_units25[5],PolarProjectionBJ(GetUnitLoc(udg_units25[6]),150.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units25[6]))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units25[5]),"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.21)
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
call CreateTextTagLocBJ(("|cffff8000"+(I2S(udg_integer42)+"|r Palms!")),GetUnitLoc(udg_units25[5]),0,25.00,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call SetTextTagLifespan(GetLastCreatedTextTag(),0.50)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units25[6]),"war3mapImported\\bagua.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitFacingToFaceUnitTimed(udg_units25[5],udg_units25[6],0)
call SetUnitAnimation(udg_units25[5],"attack")
if(Trig_bg322_Func001Func021C())then
call UnitDamageTargetBJ(udg_units25[5],udg_units25[6],((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units25[5],true))*40.00)/32.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units25[5],udg_units25[6],((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units25[5],true))*25.00)/32.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
call SetUnitAnimation(udg_units25[6],"death")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units25[6]),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DisableTrigger(GetTriggeringTrigger())
call StopSoundBJ(udg_sound58,true)
call SetUnitInvulnerable(udg_units25[5],false)
call DestroyEffect(udg_effect02)
call SetUnitTimeScalePercent(udg_units25[5],100.00)
call PauseUnit(udg_units25[5],false)
call PauseUnit(udg_units25[6],false)
set udg_integer42=0
set udg_units25[5]=null
set udg_units25[6]=null
endif
endfunction
function Trig_bptw2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A086'))then
return false
endif
return true
endfunction
function Trig_bptw2_Func008001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_bptw2_Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_bptw2_Func008001003 takes nothing returns boolean
return GetBooleanAnd(Trig_bptw2_Func008001003001(),Trig_bptw2_Func008001003002())
endfunction
function Trig_bptw2_Func008Func001C takes nothing returns boolean
if(not(GetUnitLevel(udg_unit56)>=130))then
return false
endif
return true
endfunction
function Trig_bptw2_Func008A takes nothing returns nothing
if(Trig_bptw2_Func008Func001C())then
call UnitDamageTargetBJ(udg_units31[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units31[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*60.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_bptw2_Actions takes nothing returns nothing
set udg_units31[1]=GetTriggerUnit()
set udg_units31[2]=GetSpellTargetUnit()
call TriggerSleepAction(0.05)
call SetUnitAnimation(udg_units31[1],"walk fast")
call UnitAddAbilityBJ('A00L',udg_units31[1])
call TriggerSleepAction(0.02)
call SetUnitPositionLocFacingLocBJ(udg_units31[1],PolarProjectionBJ(GetUnitLoc(udg_units31[2]),128.00,GetUnitFacing(udg_units31[2])),GetUnitLoc(udg_units31[2]))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units31[2]),Condition(function Trig_bptw2_Func008001003)),function Trig_bptw2_Func008A)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units31[2]),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units31[2]),(100.00*I2R(GetForLoopIndexB())),(60.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units31[2]),150.00,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitRemoveAbilityBJ('A00L',udg_units31[1])
set udg_units31[1]=null
set udg_units31[2]=null
endfunction
function Trig_rbssz1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08F'))then
return false
endif
return true
endfunction
function Trig_rbssz1_Actions takes nothing returns nothing
set udg_units34[1]=GetTriggerUnit()
set udg_units34[2]=GetSpellTargetUnit()
set udg_real17=0.00
call CreateNUnitsAtLocFacingLocBJ(1,'nwwd',GetOwningPlayer(udg_units34[1]),GetUnitLoc(udg_units34[1]),GetUnitLoc(udg_units34[2]))
set udg_units34[3]=GetLastCreatedUnit()
call IssueImmediateOrder(GetLastCreatedUnit(),"roar")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units34[1]),GetRandomReal(1.00,300.00),GetRandomReal(0,1)),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.00)
call SetUnitTimeScalePercent(udg_units34[3],700.00)
call SetUnitAnimation(udg_units34[3],"Walk")
call SetUnitPathing(udg_units34[3],false)
call EnableTrigger(udg_trigger298)
endfunction
function Trig_rbssz2_Func002Func006Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_rbssz2_Func002Func006Func002001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units34[2])
endfunction
function Trig_rbssz2_Func002Func006Func002001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group26)==false)
endfunction
function Trig_rbssz2_Func002Func006Func002001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units34[1]))==true)
endfunction
function Trig_rbssz2_Func002Func006Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz2_Func002Func006Func002001003002002001(),Trig_rbssz2_Func002Func006Func002001003002002002())
endfunction
function Trig_rbssz2_Func002Func006Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz2_Func002Func006Func002001003002001(),Trig_rbssz2_Func002Func006Func002001003002002())
endfunction
function Trig_rbssz2_Func002Func006Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz2_Func002Func006Func002001003001(),Trig_rbssz2_Func002Func006Func002001003002())
endfunction
function Trig_rbssz2_Func002Func006Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group26)
call UnitDamageTargetBJ(udg_units34[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units34[1],true))*150.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_rbssz2_Func002Func006Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_rbssz2_Func002Func006Func003001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units34[2])
endfunction
function Trig_rbssz2_Func002Func006Func003001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group26)==false)
endfunction
function Trig_rbssz2_Func002Func006Func003001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units34[1]))==true)
endfunction
function Trig_rbssz2_Func002Func006Func003001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz2_Func002Func006Func003001003002002001(),Trig_rbssz2_Func002Func006Func003001003002002002())
endfunction
function Trig_rbssz2_Func002Func006Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz2_Func002Func006Func003001003002001(),Trig_rbssz2_Func002Func006Func003001003002002())
endfunction
function Trig_rbssz2_Func002Func006Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz2_Func002Func006Func003001003001(),Trig_rbssz2_Func002Func006Func003001003002())
endfunction
function Trig_rbssz2_Func002Func006Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group26)
call UnitDamageTargetBJ(udg_units34[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units34[1],true))*100.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_rbssz2_Func002Func006C takes nothing returns boolean
if(not(IsUnitInRange(udg_unit57,udg_unit56,400.00)==true))then
return false
endif
return true
endfunction
function Trig_rbssz2_Func002Func015C takes nothing returns boolean
if((IsUnitDeadBJ(udg_units34[2])==true))then
return true
endif
if((IsUnitInGroup(udg_units34[3],GetUnitsInRangeOfLocAll(150.00,GetUnitLoc(udg_units34[2])))==true))then
return true
endif
return false
endfunction
function Trig_rbssz2_Func002C takes nothing returns boolean
if(not Trig_rbssz2_Func002Func015C())then
return false
endif
return true
endfunction
function Trig_rbssz2_Actions takes nothing returns nothing
if(Trig_rbssz2_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call GroupClear(udg_group26)
call UnitDamageTargetBJ(udg_units34[1],udg_units34[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units34[1],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units34[3]),GetRandomReal(1.00,300.00),GetRandomReal(0,1)),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_real17=0.00
call SetUnitFacingToFaceUnitTimed(udg_units34[3],udg_units34[1],0)
call TriggerSleepAction(0.00)
call EnableTrigger(udg_trigger299)
else
set udg_real17=(udg_real17+0.30)
call SetUnitPositionLocFacingLocBJ(udg_units34[3],PolarProjectionBJ(GetUnitLoc(udg_units34[3]),25.00,AngleBetweenPoints(GetUnitLoc(udg_units34[3]),GetUnitLoc(udg_units34[2]))),GetUnitLoc(udg_units34[2]))
call CreateNUnitsAtLoc(1,'uktn',GetOwningPlayer(udg_units34[1]),GetUnitLoc(udg_units34[3]),GetUnitFacing(udg_units34[3]))
call UnitApplyTimedLifeBJ(0.50,'BTLF',GetLastCreatedUnit())
call SetUnitScale(GetLastCreatedUnit(),udg_real17,udg_real17,udg_real17)
if(Trig_rbssz2_Func002Func006C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units34[3]),Condition(function Trig_rbssz2_Func002Func006Func002001003)),function Trig_rbssz2_Func002Func006Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units34[3]),Condition(function Trig_rbssz2_Func002Func006Func003001003)),function Trig_rbssz2_Func002Func006Func003A)
endif
endif
endfunction
function Trig_rbssz3_Func002Func006Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_rbssz3_Func002Func006Func001001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units34[2])
endfunction
function Trig_rbssz3_Func002Func006Func001001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group26)==false)
endfunction
function Trig_rbssz3_Func002Func006Func001001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units34[1]))==true)
endfunction
function Trig_rbssz3_Func002Func006Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz3_Func002Func006Func001001003002002001(),Trig_rbssz3_Func002Func006Func001001003002002002())
endfunction
function Trig_rbssz3_Func002Func006Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz3_Func002Func006Func001001003002001(),Trig_rbssz3_Func002Func006Func001001003002002())
endfunction
function Trig_rbssz3_Func002Func006Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz3_Func002Func006Func001001003001(),Trig_rbssz3_Func002Func006Func001001003002())
endfunction
function Trig_rbssz3_Func002Func006Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group26)
call UnitDamageTargetBJ(udg_units34[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units34[1],true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_rbssz3_Func002Func006Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_rbssz3_Func002Func006Func003001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units34[2])
endfunction
function Trig_rbssz3_Func002Func006Func003001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group26)==false)
endfunction
function Trig_rbssz3_Func002Func006Func003001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units34[1]))==true)
endfunction
function Trig_rbssz3_Func002Func006Func003001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz3_Func002Func006Func003001003002002001(),Trig_rbssz3_Func002Func006Func003001003002002002())
endfunction
function Trig_rbssz3_Func002Func006Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz3_Func002Func006Func003001003002001(),Trig_rbssz3_Func002Func006Func003001003002002())
endfunction
function Trig_rbssz3_Func002Func006Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_rbssz3_Func002Func006Func003001003001(),Trig_rbssz3_Func002Func006Func003001003002())
endfunction
function Trig_rbssz3_Func002Func006Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group26)
call UnitDamageTargetBJ(udg_units34[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units34[1],true))*50.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_rbssz3_Func002Func006C takes nothing returns boolean
if(not(IsUnitInRange(udg_unit57,udg_unit56,400.00)==true))then
return false
endif
return true
endfunction
function Trig_rbssz3_Func002Func015C takes nothing returns boolean
if((IsUnitDeadBJ(udg_units34[1])==true))then
return true
endif
if((IsUnitInGroup(udg_units34[3],GetUnitsInRangeOfLocAll(150.00,GetUnitLoc(udg_units34[1])))==true))then
return true
endif
if((DistanceBetweenPoints(GetUnitLoc(udg_units34[3]),GetUnitLoc(udg_units34[1]))>=1400.00))then
return true
endif
return false
endfunction
function Trig_rbssz3_Func002C takes nothing returns boolean
if(not Trig_rbssz3_Func002Func015C())then
return false
endif
return true
endfunction
function Trig_rbssz3_Actions takes nothing returns nothing
if(Trig_rbssz3_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveUnit(udg_units34[3])
call GroupClear(udg_group26)
set udg_units34[1]=null
set udg_units34[2]=null
set udg_units34[3]=null
else
set udg_real17=(udg_real17+0.30)
call SetUnitPositionLocFacingLocBJ(udg_units34[3],PolarProjectionBJ(GetUnitLoc(udg_units34[3]),25.00,AngleBetweenPoints(GetUnitLoc(udg_units34[3]),GetUnitLoc(udg_units34[1]))),GetUnitLoc(udg_units34[1]))
call CreateNUnitsAtLoc(1,'uktn',GetOwningPlayer(udg_units34[1]),GetUnitLoc(udg_units34[3]),GetUnitFacing(udg_units34[3]))
call UnitApplyTimedLifeBJ(0.50,'BTLF',GetLastCreatedUnit())
call SetUnitScale(GetLastCreatedUnit(),udg_real17,udg_real17,udg_real17)
if(Trig_rbssz3_Func002Func006C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units34[3]),Condition(function Trig_rbssz3_Func002Func006Func001001003)),function Trig_rbssz3_Func002Func006Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units34[3]),Condition(function Trig_rbssz3_Func002Func006Func003001003)),function Trig_rbssz3_Func002Func006Func003A)
endif
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units34[3]),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_dlys1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AOw2'))then
return false
endif
return true
endfunction
function Trig_dlys1_Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_dlys1_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_dlys1_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_dlys1_Func002001003001(),Trig_dlys1_Func002001003002())
endfunction
function Trig_dlys1_Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'AOw2'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_dlys1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound04)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_dlys1_Func002001003)),function Trig_dlys1_Func002A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A089',GetLastCreatedUnit())
call SetUnitAbilityLevel(GetLastCreatedUnit(),'A089',GetUnitAbilityLevel(GetTriggerUnit(),'AOw2'))
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssuePointOrderLoc(GetLastCreatedUnit(),"carrionswarm",PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),200.00,GetUnitFacing(GetTriggerUnit())))
call TriggerSleepAction(0.01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_dhbs_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AUcs'))then
return false
endif
return true
endfunction
function Trig_dhbs_Actions takes nothing returns nothing
set udg_unit24=GetSpellAbilityUnit()
set udg_locations12[1]=GetUnitLoc(udg_unit24)
set udg_locations12[2]=GetSpellTargetLoc()
set udg_real14=AngleBetweenPoints(udg_locations12[1],udg_locations12[2])
set udg_group22=CreateGroup()
call CreateNUnitsAtLoc(1,'e01J',GetOwningPlayer(udg_unit24),udg_locations12[1],udg_real14)
set udg_unit25=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(1.50,'BTLF',udg_unit25)
call RemoveLocation(udg_locations12[2])
call EnableTrigger(udg_trigger302)
call TriggerSleepAction(1.00)
call DisableTrigger(udg_trigger302)
call RemoveUnit(udg_unit25)
set udg_unit24=null
set udg_unit25=null
set udg_integer40=0
call RemoveLocation(udg_locations12[1])
call GroupClear(udg_group22)
endfunction
function Trig_dhbs2_Func004001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_dhbs2_Func004001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit24))==true)
endfunction
function Trig_dhbs2_Func004001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_dhbs2_Func004001003001001(),Trig_dhbs2_Func004001003001002())
endfunction
function Trig_dhbs2_Func004001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group22)==false)
endfunction
function Trig_dhbs2_Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_dhbs2_Func004001003001(),Trig_dhbs2_Func004001003002())
endfunction
function Trig_dhbs2_Func004A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group22)
call UnitDamageTargetBJ(udg_unit24,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit24,true))*I2R(GetUnitAbilityLevel(udg_unit24,'AUcs'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_dhbs2_Actions takes nothing returns nothing
set udg_integer40=(udg_integer40+1)
set udg_locations12[2]=PolarProjectionBJ(udg_locations12[1],(15.00*I2R(udg_integer40)),udg_real14)
call SetUnitPositionLoc(udg_unit25,udg_locations12[2])
call ForGroupBJ(GetUnitsInRangeOfLocMatching(230.00,udg_locations12[2],Condition(function Trig_dhbs2_Func004001003)),function Trig_dhbs2_Func004A)
call RemoveLocation(udg_locations12[2])
endfunction
function Trig_zzw1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AOsh'))then
return false
endif
return true
endfunction
function Trig_zzw1_Actions takes nothing returns nothing
set udg_unit26=GetSpellAbilityUnit()
set udg_locations13[1]=GetUnitLoc(udg_unit26)
set udg_locations13[2]=GetSpellTargetLoc()
set udg_real15=AngleBetweenPoints(udg_locations13[1],udg_locations13[2])
set udg_group23=CreateGroup()
call CreateNUnitsAtLoc(1,'e01M',GetOwningPlayer(udg_unit26),udg_locations13[1],udg_real15)
set udg_unit27=GetLastCreatedUnit()
call SetUnitAnimation(udg_unit27,"Walk")
call UnitApplyTimedLifeBJ(1.30,'BTLF',udg_unit27)
call RemoveLocation(udg_locations13[2])
call EnableTrigger(udg_trigger304)
call TriggerSleepAction(0.70)
call DisableTrigger(udg_trigger304)
call RemoveUnit(udg_unit27)
set udg_unit26=null
set udg_unit27=null
set udg_integer41=0
call RemoveLocation(udg_locations13[1])
call GroupClear(udg_group23)
endfunction
function Trig_zzw2_Func010C takes nothing returns boolean
if(not(GetRandomInt(1,10)==3))then
return false
endif
return true
endfunction
function Trig_zzw2_Func011Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zzw2_Func011Func002001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit26))==true)
endfunction
function Trig_zzw2_Func011Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_zzw2_Func011Func002001003001001(),Trig_zzw2_Func011Func002001003001002())
endfunction
function Trig_zzw2_Func011Func002001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group23)==false)
endfunction
function Trig_zzw2_Func011Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zzw2_Func011Func002001003001(),Trig_zzw2_Func011Func002001003002())
endfunction
function Trig_zzw2_Func011Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group23)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit26,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit26,true))*55.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_zzw2_Func011Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zzw2_Func011Func003001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit26))==true)
endfunction
function Trig_zzw2_Func011Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_zzw2_Func011Func003001003001001(),Trig_zzw2_Func011Func003001003001002())
endfunction
function Trig_zzw2_Func011Func003001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group23)==false)
endfunction
function Trig_zzw2_Func011Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zzw2_Func011Func003001003001(),Trig_zzw2_Func011Func003001003002())
endfunction
function Trig_zzw2_Func011Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group23)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit26,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit26,true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_zzw2_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit76,'I04W')==true))then
return false
endif
return true
endfunction
function Trig_zzw2_Actions takes nothing returns nothing
set udg_integer41=(udg_integer41+1)
set udg_locations13[2]=PolarProjectionBJ(udg_locations13[1],(35.00*I2R(udg_integer41)),udg_real15)
call CreateNUnitsAtLoc(1,'u008',GetOwningPlayer(udg_unit27),PolarProjectionBJ(GetUnitLoc(udg_unit27),GetRandomReal(1.00,100.00),GetRandomDirectionDeg()),GetUnitFacing(udg_unit27))
call SetUnitScalePercent(GetLastCreatedUnit(),500.00,500.00,500.00)
call UnitApplyTimedLifeBJ(0.60,'BTLF',GetLastCreatedUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(udg_unit27,udg_locations13[2])
call SetUnitAnimation(udg_unit27,"Walk")
if(Trig_zzw2_Func010C())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
if(Trig_zzw2_Func011C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations13[2],Condition(function Trig_zzw2_Func011Func002001003)),function Trig_zzw2_Func011Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,udg_locations13[2],Condition(function Trig_zzw2_Func011Func003001003)),function Trig_zzw2_Func011Func003A)
endif
call RemoveLocation(udg_locations13[2])
endfunction
function Trig_jfz1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='AUfn'))then
return false
endif
return true
endfunction
function Trig_jfz1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound54)
set udg_units32[1]=GetTriggerUnit()
set udg_units32[2]=GetSpellTargetUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'e01J',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit()))
set udg_units32[3]=GetLastCreatedUnit()
call SetUnitPathing(udg_units32[3],false)
call EnableTrigger(udg_trigger306)
endfunction
function Trig_jfz2_Func001Func001C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(GetUnitLoc(udg_units32[2]),150.00,150.00),udg_units32[3])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units32[2])==true))then
return true
endif
return false
endfunction
function Trig_jfz2_Func001Func005Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jfz2_Func001Func005Func002001003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group24)==false)
endfunction
function Trig_jfz2_Func001Func005Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_jfz2_Func001Func005Func002001003001001(),Trig_jfz2_Func001Func005Func002001003001002())
endfunction
function Trig_jfz2_Func001Func005Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units32[1]))==true)
endfunction
function Trig_jfz2_Func001Func005Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jfz2_Func001Func005Func002001003001(),Trig_jfz2_Func001Func005Func002001003002())
endfunction
function Trig_jfz2_Func001Func005Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group24)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units32[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units32[1],true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jfz2_Func001Func005Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jfz2_Func001Func005Func003001003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group24)==false)
endfunction
function Trig_jfz2_Func001Func005Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_jfz2_Func001Func005Func003001003001001(),Trig_jfz2_Func001Func005Func003001003001002())
endfunction
function Trig_jfz2_Func001Func005Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units32[1]))==true)
endfunction
function Trig_jfz2_Func001Func005Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jfz2_Func001Func005Func003001003001(),Trig_jfz2_Func001Func005Func003001003002())
endfunction
function Trig_jfz2_Func001Func005Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group24)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units32[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units32[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jfz2_Func001Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit76,'I05V')==true))then
return false
endif
return true
endfunction
function Trig_jfz2_Func001Func014A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_jfz2_Func001C takes nothing returns boolean
if(not Trig_jfz2_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_jfz2_Actions takes nothing returns nothing
if(Trig_jfz2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
set udg_location23=GetUnitLoc(udg_units32[2])
call ShowUnitHide(udg_units32[3])
if(Trig_jfz2_Func001Func005C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,udg_location23,Condition(function Trig_jfz2_Func001Func005Func002001003)),function Trig_jfz2_Func001Func005Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,udg_location23,Condition(function Trig_jfz2_Func001Func005Func003001003)),function Trig_jfz2_Func001Func005Func003A)
endif
call TriggerSleepAction(0.05)
set bj_forLoopAIndex=4
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01J',GetOwningPlayer(udg_units32[1]),PolarProjectionBJ(udg_location23,150.00,(60.00*I2R(GetForLoopIndexA()))),(60.00*I2R(GetForLoopIndexA())))
set udg_units32[GetForLoopIndexA()]=GetLastCreatedUnit()
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group25)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger307)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units32[1]),5.00)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger307)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units32[1]))
call RemoveUnit(udg_units32[3])
call ForGroupBJ(udg_group25,function Trig_jfz2_Func001Func014A)
call GroupClear(udg_group24)
call GroupClear(udg_group25)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units32[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location23)
else
call SetUnitPositionLocFacingLocBJ(udg_units32[3],PolarProjectionBJ(GetUnitLoc(udg_units32[3]),24.00,AngleBetweenPoints(GetUnitLoc(udg_units32[3]),GetUnitLoc(udg_units32[2]))),GetUnitLoc(udg_units32[2]))
endif
endfunction
function Trig_jfz3_Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==3))then
return false
endif
return true
endfunction
function Trig_jfz3_Func001A takes nothing returns nothing
if(Trig_jfz3_Func001Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),13.00,AngleBetweenPoints(udg_location23,GetUnitLoc(GetEnumUnit()))))
endfunction
function Trig_jfz3_Func002Func001Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jfz3_Func002Func001Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units32[1]))==true)
endfunction
function Trig_jfz3_Func002Func001Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_jfz3_Func002Func001Func001001003001001(),Trig_jfz3_Func002Func001Func001001003001002())
endfunction
function Trig_jfz3_Func002Func001Func001001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group24)==false)
endfunction
function Trig_jfz3_Func002Func001Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jfz3_Func002Func001Func001001003001(),Trig_jfz3_Func002Func001Func001001003002())
endfunction
function Trig_jfz3_Func002Func001Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group24)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units32[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units32[1],true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jfz3_Func002Func003Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jfz3_Func002Func003Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units32[1]))==true)
endfunction
function Trig_jfz3_Func002Func003Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_jfz3_Func002Func003Func001001003001001(),Trig_jfz3_Func002Func003Func001001003001002())
endfunction
function Trig_jfz3_Func002Func003Func001001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group24)==false)
endfunction
function Trig_jfz3_Func002Func003Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jfz3_Func002Func003Func001001003001(),Trig_jfz3_Func002Func003Func001001003002())
endfunction
function Trig_jfz3_Func002Func003Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group24)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units32[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units32[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jfz3_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit76,'I05V')==true))then
return false
endif
return true
endfunction
function Trig_jfz3_Actions takes nothing returns nothing
call ForGroupBJ(udg_group25,function Trig_jfz3_Func001A)
if(Trig_jfz3_Func002C())then
set bj_forLoopAIndex=4
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(udg_units32[GetForLoopIndexA()]),Condition(function Trig_jfz3_Func002Func001Func001001003)),function Trig_jfz3_Func002Func001Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set bj_forLoopAIndex=4
set bj_forLoopAIndexEnd=9
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(udg_units32[GetForLoopIndexA()]),Condition(function Trig_jfz3_Func002Func003Func001001003)),function Trig_jfz3_Func002Func003Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endfunction
function Trig_jfz11_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A9'))then
return false
endif
return true
endfunction
function Trig_jfz11_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound54)
set udg_units32[5]=GetSpellTargetUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'e02D',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit()))
set udg_units32[6]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(15.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrder(GetLastCreatedUnit(),"attack",udg_units32[5])
call SetUnitAnimation(GetLastCreatedUnit(),"stand walk")
call SetUnitTimeScalePercent(GetLastCreatedUnit(),400.00)
call EnableTrigger(udg_trigger309)
call TriggerSleepAction(15.00)
call DisableTrigger(udg_trigger309)
set udg_units32[5]=null
set udg_units32[6]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_jfzlll_Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jfzlll_Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit76))==true)
endfunction
function Trig_jfzlll_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jfzlll_Func001001003001(),Trig_jfzlll_Func001001003002())
endfunction
function Trig_jfzlll_Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit76,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit76,true))*7.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_jfzlll_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units32[6]),Condition(function Trig_jfzlll_Func001001003)),function Trig_jfzlll_Func001A)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function Trig_szb4_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A084'))then
return false
endif
return true
endfunction
function Trig_szb4_Func002Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_szb4_Func002Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_szb4_Func002Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_szb4_Func002Func001001003001001(),Trig_szb4_Func002Func001001003001002())
endfunction
function Trig_szb4_Func002Func001001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_szb4_Func002Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_szb4_Func002Func001001003001(),Trig_szb4_Func002Func001001003002())
endfunction
function Trig_szb4_Func002Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A084')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*10.00)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_szb4_Func002Func003001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_szb4_Func002Func003001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_szb4_Func002Func003001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_szb4_Func002Func003001003001001(),Trig_szb4_Func002Func003001003001002())
endfunction
function Trig_szb4_Func002Func003001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_szb4_Func002Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_szb4_Func002Func003001003001(),Trig_szb4_Func002Func003001003002())
endfunction
function Trig_szb4_Func002Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A084'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_szb4_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit79,'I05U')==true))then
return false
endif
return true
endfunction
function Trig_szb4_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h004',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),200.00,(18.00*I2R(GetForLoopIndexA()))),(18.00*I2R(GetForLoopIndexA())))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),600.00)
call SetUnitFlyHeight(GetLastCreatedUnit(),100.00,1000000000.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_szb4_Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_szb4_Func002Func001001003)),function Trig_szb4_Func002Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_szb4_Func002Func003001003)),function Trig_szb4_Func002Func003A)
endif
endfunction
function Trig_szb5_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='h004'))then
return false
endif
return true
endfunction
function Trig_szb5_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_hdhlyd_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08C'))then
return false
endif
return true
endfunction
function Trig_hdhlyd_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound42)
set udg_units33[1]=GetTriggerUnit()
set udg_location24=GetSpellTargetLoc()
call CreateNUnitsAtLocFacingLocBJ(1,'e004',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),udg_location24)
set udg_units33[2]=GetLastCreatedUnit()
call SetUnitPathing(GetLastCreatedUnit(),false)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',1.00)
call EnableTrigger(udg_trigger313)
endfunction
function Trig_hdhlyd2_Func001Func002C takes nothing returns boolean
if(not(GetRandomInt(1,2)==1))then
return false
endif
return true
endfunction
function Trig_hdhlyd2_Func001Func003C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(udg_location24,200.00,200.00),udg_units33[2])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units33[2])==true))then
return true
endif
return false
endfunction
function Trig_hdhlyd2_Func001Func007Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hdhlyd2_Func001Func007Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units33[1]))==true)
endfunction
function Trig_hdhlyd2_Func001Func007Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hdhlyd2_Func001Func007Func001001003001(),Trig_hdhlyd2_Func001Func007Func001001003002())
endfunction
function Trig_hdhlyd2_Func001Func007Func001A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units33[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units33[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hdhlyd2_Func001Func007Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hdhlyd2_Func001Func007Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units33[1]))==true)
endfunction
function Trig_hdhlyd2_Func001Func007Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hdhlyd2_Func001Func007Func003001003001(),Trig_hdhlyd2_Func001Func007Func003001003002())
endfunction
function Trig_hdhlyd2_Func001Func007Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units33[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units33[1],true))*I2R(GetUnitAbilityLevel(udg_units33[1],'A08C'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hdhlyd2_Func001Func007C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit79,'I04Y')==true))then
return false
endif
return true
endfunction
function Trig_hdhlyd2_Func001C takes nothing returns boolean
if(not Trig_hdhlyd2_Func001Func003C())then
return false
endif
return true
endfunction
function Trig_hdhlyd2_Actions takes nothing returns nothing
if(Trig_hdhlyd2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_location24,330.00,(18.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_location24,GetRandomReal(1.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_hdhlyd2_Func001Func007C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,udg_location24,Condition(function Trig_hdhlyd2_Func001Func007Func001001003)),function Trig_hdhlyd2_Func001Func007Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,udg_location24,Condition(function Trig_hdhlyd2_Func001Func007Func003001003)),function Trig_hdhlyd2_Func001Func007Func003A)
endif
call RemoveUnit(udg_units33[2])
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units33[1]),5.00)
call TriggerSleepAction(0.50)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units33[1]))
call RemoveLocation(udg_location24)
set udg_units33[1]=null
set udg_units33[2]=null
else
call SetUnitPositionLocFacingLocBJ(udg_units33[2],PolarProjectionBJ(GetUnitLoc(udg_units33[2]),27.00,AngleBetweenPoints(GetUnitLoc(udg_units33[2]),udg_location24)),udg_location24)
if(Trig_hdhlyd2_Func001Func002C())then
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units33[2]),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
endfunction
function Trig_rfyfszs1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A083'))then
return false
endif
return true
endfunction
function Trig_rfyfszs1_Func011A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_rfyfszs1_Actions takes nothing returns nothing
set udg_units33[3]=GetTriggerUnit()
set udg_units33[4]=GetSpellTargetUnit()
set udg_location25=GetUnitLoc(udg_units33[4])
call TriggerSleepAction(0.20)
call UnitDamageTargetBJ(udg_units33[3],udg_units33[4],(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units33[3],true))*I2R(GetUnitAbilityLevel(udg_units33[3],'A083'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call GroupAddUnitSimple(udg_units33[4],udg_groups06[2])
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e01N',GetOwningPlayer(udg_units33[3]),PolarProjectionBJ(GetUnitLoc(udg_units33[4]),150.00,(60.00*I2R(GetForLoopIndexA()))),(25.00*I2R(GetForLoopIndexA())))
set udg_units33[GetForLoopIndexA()]=GetLastCreatedUnit()
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups06[1])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger315)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger315)
call ForGroupBJ(udg_groups06[1],function Trig_rfyfszs1_Func011A)
set bj_forLoopAIndex=3
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units33[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_groups06[1])
call GroupClear(udg_groups06[2])
call RemoveLocation(udg_location25)
endfunction
function Trig_rfyfszs2_Func001A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),13.00,AngleBetweenPoints(udg_location25,GetUnitLoc(GetEnumUnit()))))
endfunction
function Trig_rfyfszs2_Func002Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_rfyfszs2_Func002Func001001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units33[3]))==true)
endfunction
function Trig_rfyfszs2_Func002Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_rfyfszs2_Func002Func001001003001001(),Trig_rfyfszs2_Func002Func001001003001002())
endfunction
function Trig_rfyfszs2_Func002Func001001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups06[2])==false)
endfunction
function Trig_rfyfszs2_Func002Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_rfyfszs2_Func002Func001001003001(),Trig_rfyfszs2_Func002Func001001003002())
endfunction
function Trig_rfyfszs2_Func002Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups06[2])
call UnitDamageTargetBJ(udg_units33[3],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units33[3],true))*I2R(GetUnitAbilityLevel(udg_units33[3],'A083'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_rfyfszs2_Actions takes nothing returns nothing
call ForGroupBJ(udg_groups06[1],function Trig_rfyfszs2_Func001A)
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(udg_units33[GetForLoopIndexA()]),Condition(function Trig_rfyfszs2_Func002Func001001003)),function Trig_rfyfszs2_Func002Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_sczw1______________u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A085'))then
return false
endif
return true
endfunction
function Trig_sczw1______________u_Func014C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit79,'I04V')==true))then
return false
endif
return true
endfunction
function Trig_sczw1______________u_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound50)
set udg_units12[35]=GetTriggerUnit()
set udg_units12[36]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units12[35]),10.00)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units12[36]),10.00)
set udg_real16=GetUnitFacing(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units12[36]),200.00,200.00)),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger317)
call AddSpecialEffectTargetUnitBJ("origin",udg_units12[36],"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
set udg_effect03=GetLastCreatedEffectBJ()
call TriggerSleepAction(1.30)
call DisableTrigger(udg_trigger317)
if(Trig_sczw1______________u_Func014C())then
call UnitDamageTargetBJ(udg_units12[35],udg_units12[36],(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[35],true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units12[35],udg_units12[36],(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[35],true))*25.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units12[35]))
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units12[36]))
call DestroyEffect(udg_effect03)
call GroupClear(udg_groups06[3])
set udg_units12[35]=null
set udg_units12[36]=null
endfunction
function Trig_sczw2______________u_Func004Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sczw2______________u_Func004Func002001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units12[36])
endfunction
function Trig_sczw2______________u_Func004Func002001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups06[3])==false)
endfunction
function Trig_sczw2______________u_Func004Func002001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[35]))==true)
endfunction
function Trig_sczw2______________u_Func004Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_sczw2______________u_Func004Func002001003002002001(),Trig_sczw2______________u_Func004Func002001003002002002())
endfunction
function Trig_sczw2______________u_Func004Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_sczw2______________u_Func004Func002001003002001(),Trig_sczw2______________u_Func004Func002001003002002())
endfunction
function Trig_sczw2______________u_Func004Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sczw2______________u_Func004Func002001003001(),Trig_sczw2______________u_Func004Func002001003002())
endfunction
function Trig_sczw2______________u_Func004Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups06[3])
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units12[35],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[35],true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sczw2______________u_Func004Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sczw2______________u_Func004Func003001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units12[36])
endfunction
function Trig_sczw2______________u_Func004Func003001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups06[3])==false)
endfunction
function Trig_sczw2______________u_Func004Func003001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[35]))==true)
endfunction
function Trig_sczw2______________u_Func004Func003001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_sczw2______________u_Func004Func003001003002002001(),Trig_sczw2______________u_Func004Func003001003002002002())
endfunction
function Trig_sczw2______________u_Func004Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_sczw2______________u_Func004Func003001003002001(),Trig_sczw2______________u_Func004Func003001003002002())
endfunction
function Trig_sczw2______________u_Func004Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sczw2______________u_Func004Func003001003001(),Trig_sczw2______________u_Func004Func003001003002())
endfunction
function Trig_sczw2______________u_Func004Func003A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups06[3])
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units12[35],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[35],true))*25.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sczw2______________u_Func004C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit79,'I04V')==true))then
return false
endif
return true
endfunction
function Trig_sczw2______________u_Func005C takes nothing returns boolean
if(not(GetRandomInt(1,5)==3))then
return false
endif
return true
endfunction
function Trig_sczw2______________u_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units12[36],PolarProjectionBJ(GetUnitLoc(udg_units12[36]),25.00,udg_real16))
call SetUnitPositionLoc(udg_units12[36],GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units12[36]),150.00,150.00)))
call SetUnitAnimation(udg_units12[36],"Death")
if(Trig_sczw2______________u_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units12[36]),Condition(function Trig_sczw2______________u_Func004Func002001003)),function Trig_sczw2______________u_Func004Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units12[36]),Condition(function Trig_sczw2______________u_Func004Func003001003)),function Trig_sczw2______________u_Func004Func003A)
endif
if(Trig_sczw2______________u_Func005C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units12[36]),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units12[36]),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units12[36]),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units12[36]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_wxty1________2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08D'))then
return false
endif
return true
endfunction
function Trig_wxty1________2_Actions takes nothing returns nothing
set udg_units27[7]=GetTriggerUnit()
set udg_units27[8]=GetSpellTargetUnit()
set udg_locations15[2]=GetUnitLoc(udg_units27[7])
call TriggerSleepAction(0.10)
call PauseUnitBJ(true,udg_units27[7])
call SetUnitPathing(udg_units27[8],false)
call EnableTrigger(udg_trigger319)
endfunction
function Trig_wxty2________2_Func002Func002C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(udg_locations15[2],200.00,200.00),udg_units27[8])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units27[8])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units27[7])==true))then
return true
endif
return false
endfunction
function Trig_wxty2________2_Func002C takes nothing returns boolean
if(not Trig_wxty2________2_Func002Func002C())then
return false
endif
return true
endfunction
function Trig_wxty2________2_Actions takes nothing returns nothing
if(Trig_wxty2________2_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLocFacingLocBJ(1,'u003',GetOwningPlayer(udg_units27[7]),PolarProjectionBJ(GetUnitLoc(udg_units27[7]),-100.00,GetUnitFacing(udg_units27[7])),GetUnitLoc(udg_units27[7]))
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()),250.00,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPathing(udg_units27[8],true)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[8]),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[8]),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[7]),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units27[7],udg_units27[8],(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units27[7],true))*60.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call SetUnitLifeBJ(udg_units27[7],(GetUnitState(udg_units27[7],UNIT_STATE_LIFE)-(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units27[7],true))*20.00)))
call PauseUnitBJ(false,udg_units27[7])
set udg_units27[7]=null
set udg_units27[8]=null
call RemoveLocation(udg_locations15[2])
else
call SetUnitPositionLocFacingLocBJ(udg_units27[8],PolarProjectionBJ(GetUnitLoc(udg_units27[8]),35.00,AngleBetweenPoints(GetUnitLoc(udg_units27[8]),udg_locations15[2])),udg_locations15[2])
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[8]),"Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_wxty1________2_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08X'))then
return false
endif
return true
endfunction
function Trig_wxty1________2_______u_Actions takes nothing returns nothing
set udg_units27[9]=GetTriggerUnit()
set udg_units27[10]=GetSpellTargetUnit()
set udg_locations15[1]=GetUnitLoc(udg_units27[9])
call TriggerSleepAction(0.10)
call PauseUnitBJ(true,udg_units27[9])
call SetUnitPathing(udg_units27[10],false)
call EnableTrigger(udg_trigger321)
endfunction
function Trig_wxty2________2_______u_Func002Func002C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(udg_locations15[1],200.00,200.00),udg_units27[10])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units27[10])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units27[9])==true))then
return true
endif
return false
endfunction
function Trig_wxty2________2_______u_Func002C takes nothing returns boolean
if(not Trig_wxty2________2_______u_Func002Func002C())then
return false
endif
return true
endfunction
function Trig_wxty2________2_______u_Actions takes nothing returns nothing
if(Trig_wxty2________2_______u_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLocFacingLocBJ(1,'u003',GetOwningPlayer(udg_units27[9]),PolarProjectionBJ(GetUnitLoc(udg_units27[9]),-100.00,GetUnitFacing(udg_units27[9])),GetUnitLoc(udg_units27[9]))
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()),250.00,(30.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPathing(udg_units27[10],true)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[10]),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[10]),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[9]),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units27[9],udg_units27[10],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units27[9],true))*60.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call SetUnitLifeBJ(udg_units27[9],(GetUnitState(udg_units27[9],UNIT_STATE_LIFE)-(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units27[9],true))*20.00)))
call PauseUnitBJ(false,udg_units27[9])
set udg_units27[9]=null
set udg_units27[10]=null
call RemoveLocation(udg_locations15[1])
else
call SetUnitPositionLocFacingLocBJ(udg_units27[10],PolarProjectionBJ(GetUnitLoc(udg_units27[10]),35.00,AngleBetweenPoints(GetUnitLoc(udg_units27[10]),udg_locations15[1])),udg_locations15[1])
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units27[10]),"Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_yuanmo_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AB'))then
return false
endif
return true
endfunction
function Trig_yuanmo_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units27[13]=GetTriggerUnit()
call CreateNUnitsAtLoc(1,'h00D',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitFacing(GetTriggerUnit()))
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitApplyTimedLifeBJ(120.00,'BTLF',GetLastCreatedUnit())
call UnitAddAbility(udg_units27[13],'A04E')
set udg_units27[14]=GetLastCreatedUnit()
call EnableTrigger(udg_trigger323)
endfunction
function Trig_yuanmo2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units27[14]))then
return false
endif
return true
endfunction
function Trig_yuanmo2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call UnitRemoveAbility(udg_units27[13],'A04E')
set udg_units27[13]=null
set udg_units27[14]=null
call EnableTrigger(udg_trigger322)
endfunction
function Trig_yuanmo3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AD'))then
return false
endif
return true
endfunction
function Trig_yuanmo3_Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_yuanmo3_Func001001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_yuanmo3_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_yuanmo3_Func001001003001(),Trig_yuanmo3_Func001001003002())
endfunction
function Trig_yuanmo3_Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit79,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit79,true))*10.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_yuanmo3_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_yuanmo3_Func001001003)),function Trig_yuanmo3_Func001A)
endfunction
function Trig_bmtj_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A091'))then
return false
endif
return true
endfunction
function Trig_bmtj_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound47)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),30.00)
call CreateNUnitsAtLocFacingLocBJ(1,'e00F',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()))
call IssueTargetOrder(GetLastCreatedUnit(),"unholyfrenzy",GetTriggerUnit())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\HowlOfTerror\\HowlCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.80)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
endfunction
function Trig_blh_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05N'))then
return false
endif
return true
endfunction
function Trig_blh_Func010Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_blh_Func010Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_blh_Func010Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_blh_Func010Func001001003001(),Trig_blh_Func010Func001001003002())
endfunction
function Trig_blh_Func010Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_blh_Func010Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_blh_Func010Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_blh_Func010Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_blh_Func010Func003001003001(),Trig_blh_Func010Func003001003002())
endfunction
function Trig_blh_Func010Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevelSwapped('A05N',GetTriggerUnit()))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_blh_Func010C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit77,'I04T')==true))then
return false
endif
return true
endfunction
function Trig_blh_Actions takes nothing returns nothing
set udg_unit31=GetSpellTargetUnit()
call TriggerSleepAction(0.15)
call PauseUnitBJ(true,GetTriggerUnit())
call PauseUnitBJ(true,udg_unit31)
call SetUnitTimeScalePercent(GetTriggerUnit(),200.00)
call SetUnitAnimation(GetTriggerUnit(),"spell slam")
call TriggerSleepAction(0.45)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),150.00,(60.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_blh_Func010C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_blh_Func010Func001001003)),function Trig_blh_Func010Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_blh_Func010Func003001003)),function Trig_blh_Func010Func003A)
endif
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
call PauseUnitBJ(false,GetTriggerUnit())
call PauseUnitBJ(false,udg_unit31)
call ResetUnitAnimation(GetTriggerUnit())
set udg_unit31=null
endfunction
function Trig_llh1_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit77))then
return false
endif
return true
endfunction
function Trig_llh1_Func002Func002C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A07B'))then
return false
endif
if(not(UnitHasBuffBJ(GetTriggerUnit(),'B00G')==true))then
return false
endif
return true
endfunction
function Trig_llh1_Func002C takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05O'))then
return false
endif
return true
endfunction
function Trig_llh1_Actions takes nothing returns nothing
if(Trig_llh1_Func002C())then
call PlaySoundBJ(udg_sound46)
call DisableTrigger(GetTriggeringTrigger())
set udg_units38[1]=GetTriggerUnit()
set udg_units38[2]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnitBJ(true,udg_units38[1])
call ShowUnitHide(udg_units38[1])
call CreateNUnitsAtLocFacingLocBJ(1,'e021',GetOwningPlayer(udg_units38[1]),GetUnitLoc(udg_units38[1]),GetUnitLoc(udg_units38[2]))
set udg_units38[3]=GetLastCreatedUnit()
call UnitAddAbilityBJ('A00L',udg_units38[3])
call UnitAddAbilityBJ('Amrf',udg_units38[3])
call SetUnitFlyHeight(udg_units38[3],500.00,2000.00)
call SetUnitTimeScalePercent(udg_units38[3],400.00)
call PauseUnitBJ(true,udg_units38[2])
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units38[1]),17.00)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units38[2]),17.00)
call EnableTrigger(udg_trigger328)
else
if(Trig_llh1_Func002Func002C())then
call PlaySoundBJ(udg_sound52)
call DisableTrigger(GetTriggeringTrigger())
set udg_units38[1]=GetTriggerUnit()
set udg_units38[2]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call PauseUnitBJ(true,udg_units38[1])
call ShowUnitHide(udg_units38[1])
call CreateNUnitsAtLocFacingLocBJ(1,'e021',GetOwningPlayer(udg_units38[1]),GetUnitLoc(udg_units38[1]),GetUnitLoc(udg_units38[2]))
set udg_units38[3]=GetLastCreatedUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'e021',GetOwningPlayer(udg_units38[1]),GetUnitLoc(udg_units38[1]),GetUnitLoc(udg_units38[2]))
set udg_units38[4]=GetLastCreatedUnit()
call UnitAddAbilityBJ('A00L',udg_units38[3])
call UnitAddAbilityBJ('A093',udg_units38[4])
call UnitAddAbilityBJ('Amrf',udg_units38[3])
call SetUnitFlyHeight(udg_units38[3],500.00,2000.00)
call SetUnitTimeScalePercent(udg_units38[3],400.00)
call PauseUnitBJ(true,udg_units38[2])
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units38[1]),17.00)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units38[2]),17.00)
call EnableTrigger(udg_trigger329)
else
call DoNothing()
endif
endif
endfunction
function Trig_llh2_Func001Func009Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_llh2_Func001Func009Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units38[1]))==true)
endfunction
function Trig_llh2_Func001Func009Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_llh2_Func001Func009Func001001003001(),Trig_llh2_Func001Func009Func001001003002())
endfunction
function Trig_llh2_Func001Func009Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units38[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units38[1],true))*100.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_llh2_Func001Func009Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_llh2_Func001Func009Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units38[1]))==true)
endfunction
function Trig_llh2_Func001Func009Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_llh2_Func001Func009Func003001003001(),Trig_llh2_Func001Func009Func003001003002())
endfunction
function Trig_llh2_Func001Func009Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units38[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units38[1],true))*40.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_llh2_Func001Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit77,'I05X')==true))then
return false
endif
return true
endfunction
function Trig_llh2_Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units38[2])==true))then
return false
endif
if(not(udg_integers11[1]<20))then
return false
endif
return true
endfunction
function Trig_llh2_Actions takes nothing returns nothing
if(Trig_llh2_Func001C())then
set udg_integers11[1]=(udg_integers11[1]+1)
call SetUnitPositionLocFacingLocBJ(udg_units38[3],PolarProjectionBJ(GetUnitLoc(udg_units38[2]),GetRandomReal(300.00,600.00),GetRandomDirectionDeg()),GetUnitLoc(udg_units38[2]))
call SetUnitFlyHeight(udg_units38[3],GetRandomReal(150.00,300.00),3000.00)
call CreateNUnitsAtLocFacingLocBJ(1,'e021',GetOwningPlayer(udg_units38[1]),GetUnitLoc(udg_units38[3]),GetUnitLoc(udg_units38[2]))
call SetUnitFlyHeight(GetLastCreatedUnit(),GetRandomReal(200.00,500.00),3000.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),400.00)
call SetUnitAnimation(GetLastCreatedUnit(),"spell throw")
call SetUnitAnimation(udg_units38[3],"attack")
call UnitDamageTargetBJ(udg_units38[1],udg_units38[2],I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units38[1],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call SetUnitAnimation(udg_units38[2],"death")
call AddSpecialEffectTargetUnitBJ("origin",udg_units38[3],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DisableTrigger(GetTriggeringTrigger())
set udg_integers11[1]=0
call SetUnitFlyHeight(udg_units38[3],GetUnitDefaultFlyHeight(udg_units38[1]),1000000000.00)
call SetUnitTimeScalePercent(udg_units38[3],100)
call RemoveUnit(udg_units38[3])
set udg_units38[3]=null
call SetUnitPositionLocFacingLocBJ(udg_units38[1],PolarProjectionBJ(GetUnitLoc(udg_units38[2]),100.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units38[2]))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units38[2]),300.00,(60.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_llh2_Func001Func009C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units38[2]),Condition(function Trig_llh2_Func001Func009Func001001003)),function Trig_llh2_Func001Func009Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units38[2]),Condition(function Trig_llh2_Func001Func009Func003001003)),function Trig_llh2_Func001Func009Func003A)
endif
call PauseUnitBJ(false,udg_units38[1])
call PauseUnitBJ(false,udg_units38[2])
call ShowUnitShow(udg_units38[1])
call SelectUnitForPlayerSingle(udg_units38[1],GetOwningPlayer(udg_units38[1]))
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units38[1]))
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units38[2]))
set udg_units38[1]=null
set udg_units38[2]=null
call EnableTrigger(udg_trigger327)
endif
endfunction
function Trig_llh3_Func001Func011Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_llh3_Func001Func011Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units38[1]))==true)
endfunction
function Trig_llh3_Func001Func011Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_llh3_Func001Func011Func002001003001(),Trig_llh3_Func001Func011Func002001003002())
endfunction
function Trig_llh3_Func001Func011Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units38[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units38[1],true))*180.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_llh3_Func001Func011Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_llh3_Func001Func011Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units38[1]))==true)
endfunction
function Trig_llh3_Func001Func011Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_llh3_Func001Func011Func003001003001(),Trig_llh3_Func001Func011Func003001003002())
endfunction
function Trig_llh3_Func001Func011Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units38[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units38[1],true))*150.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_llh3_Func001Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit77,'I05X')==true))then
return false
endif
return true
endfunction
function Trig_llh3_Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units38[2])==true))then
return false
endif
if(not(udg_integers11[1]<40))then
return false
endif
return true
endfunction
function Trig_llh3_Actions takes nothing returns nothing
if(Trig_llh3_Func001C())then
set udg_integers11[1]=(udg_integers11[1]+1)
call SetUnitPositionLocFacingLocBJ(udg_units38[3],PolarProjectionBJ(GetUnitLoc(udg_units38[2]),GetRandomReal(300.00,600.00),GetRandomDirectionDeg()),GetUnitLoc(udg_units38[2]))
call SetUnitPositionLocFacingLocBJ(udg_units38[4],PolarProjectionBJ(GetUnitLoc(udg_units38[2]),GetRandomReal(300.00,800.00),GetRandomDirectionDeg()),GetUnitLoc(udg_units38[2]))
call SetUnitFlyHeight(udg_units38[3],GetRandomReal(150.00,300.00),3000.00)
call CreateNUnitsAtLocFacingLocBJ(1,'e021',GetOwningPlayer(udg_units38[1]),GetUnitLoc(udg_units38[3]),GetUnitLoc(udg_units38[2]))
call SetUnitFlyHeight(GetLastCreatedUnit(),GetRandomReal(200.00,500.00),3000.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),400.00)
call SetUnitAnimation(GetLastCreatedUnit(),"spell throw")
call SetUnitAnimation(udg_units38[3],"attack")
call UnitDamageTargetBJ(udg_units38[1],udg_units38[2],I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units38[1],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call SetUnitAnimation(udg_units38[2],"death")
call AddSpecialEffectTargetUnitBJ("origin",udg_units38[3],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("origin",udg_units38[4],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DisableTrigger(GetTriggeringTrigger())
set udg_integers11[1]=0
call SetUnitFlyHeight(udg_units38[3],GetUnitDefaultFlyHeight(udg_units38[1]),1000000000.00)
call SetUnitTimeScalePercent(udg_units38[3],100)
call RemoveUnit(udg_units38[3])
call RemoveUnit(udg_units38[4])
set udg_units38[3]=null
set udg_units38[4]=null
call SetUnitPositionLocFacingLocBJ(udg_units38[1],PolarProjectionBJ(GetUnitLoc(udg_units38[2]),100.00,GetRandomDirectionDeg()),GetUnitLoc(udg_units38[2]))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units38[2]),300.00,(60.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_llh3_Func001Func011C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units38[2]),Condition(function Trig_llh3_Func001Func011Func002001003)),function Trig_llh3_Func001Func011Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units38[2]),Condition(function Trig_llh3_Func001Func011Func003001003)),function Trig_llh3_Func001Func011Func003A)
endif
call PauseUnitBJ(false,udg_units38[1])
call PauseUnitBJ(false,udg_units38[2])
call ShowUnitShow(udg_units38[1])
call SelectUnitForPlayerSingle(udg_units38[1],GetOwningPlayer(udg_units38[1]))
call SetUnitLifeBJ(udg_units38[1],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_units38[1])-(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units38[1],true))*15.00)))
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units38[1]))
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units38[2]))
set udg_units38[1]=null
set udg_units38[2]=null
call EnableTrigger(udg_trigger327)
endif
endfunction
function Trig_dlf_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05M'))then
return false
endif
return true
endfunction
function Trig_dlf_Func006Func001Func008Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_dlf_Func006Func001Func008Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_dlf_Func006Func001Func008Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_dlf_Func006Func001Func008Func001001003001(),Trig_dlf_Func006Func001Func008Func001001003002())
endfunction
function Trig_dlf_Func006Func001Func008Func001A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A05M')))/5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_dlf_Func006Func001Func008Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_dlf_Func006Func001Func008Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_dlf_Func006Func001Func008Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_dlf_Func006Func001Func008Func002001003001(),Trig_dlf_Func006Func001Func008Func002001003002())
endfunction
function Trig_dlf_Func006Func001Func008Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*20.00)/5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_dlf_Func006Func001Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit77,'I04U')==true))then
return false
endif
return true
endfunction
function Trig_dlf_Func006Func001C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_unit32)==true))then
return false
endif
return true
endfunction
function Trig_dlf_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound48)
call TriggerSleepAction(0.05)
set udg_unit32=GetSpellTargetUnit()
call SetUnitTimeScalePercent(GetTriggerUnit(),400.00)
set udg_integer45=1
loop
exitwhen udg_integer45>5
if(Trig_dlf_Func006Func001C())then
call SetUnitPositionLoc(GetTriggerUnit(),PolarProjectionBJ(GetUnitLoc(udg_unit32),150.00,GetRandomDirectionDeg()))
call SetUnitAnimation(GetTriggerUnit(),"attack 3")
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit32),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_dlf_Func006Func001Func008C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit32),Condition(function Trig_dlf_Func006Func001Func008Func002001003)),function Trig_dlf_Func006Func001Func008Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit32),Condition(function Trig_dlf_Func006Func001Func008Func001001003)),function Trig_dlf_Func006Func001Func008Func001A)
endif
call TriggerSleepAction(0.00)
else
call DoNothing()
endif
set udg_integer45=udg_integer45+1
endloop
call SetUnitTimeScalePercent(GetTriggerUnit(),100.00)
set udg_unit32=null
endfunction
function Trig_SQ_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09R'))then
return false
endif
return true
endfunction
function Trig_SQ_Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SQ_Func001001003002001 takes nothing returns boolean
return(GetFilterUnit()!=GetSpellTargetUnit())
endfunction
function Trig_SQ_Func001001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_SQ_Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SQ_Func001001003002001(),Trig_SQ_Func001001003002002())
endfunction
function Trig_SQ_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SQ_Func001001003001(),Trig_SQ_Func001001003002())
endfunction
function Trig_SQ_Func001A takes nothing returns nothing
call CreateNUnitsAtLocFacingLocBJ(1,'e026',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()))
call SetUnitAbilityLevel(GetLastCreatedUnit(),'A09X',GetUnitAbilityLevel(GetTriggerUnit(),'A09R'))
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call IssueTargetOrder(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
endfunction
function Trig_SQ_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_SQ_Func001001003)),function Trig_SQ_Func001A)
endfunction
function Trig_caojuqiuqianren_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09V'))then
return false
endif
return true
endfunction
function Trig_caojuqiuqianren_Func020Func002Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_caojuqiuqianren_Func020Func002Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_caojuqiuqianren_Func020Func002Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_caojuqiuqianren_Func020Func002Func001002003001(),Trig_caojuqiuqianren_Func020Func002Func001002003002())
endfunction
function Trig_caojuqiuqianren_Func020Func002Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*80.00)/7.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_caojuqiuqianren_Func020Func003Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_caojuqiuqianren_Func020Func003Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_caojuqiuqianren_Func020Func003Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_caojuqiuqianren_Func020Func003Func001002003001(),Trig_caojuqiuqianren_Func020Func003Func001002003002())
endfunction
function Trig_caojuqiuqianren_Func020Func003Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*65.00)/7.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_caojuqiuqianren_Func020C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit86,'I06F')==true))then
return false
endif
return true
endfunction
function Trig_caojuqiuqianren_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound61)
call TriggerSleepAction(0.05)
set udg_locations19[2]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(100.00,150.00),GetUnitFacing(GetTriggerUnit()))
call PauseUnitBJ(true,GetTriggerUnit())
call UnitAddAbilityBJ('Amrf',GetTriggerUnit())
call CreateNUnitsAtLoc(1,'e027',GetOwningPlayer(GetTriggerUnit()),udg_locations19[2],bj_UNIT_FACING)
call SetUnitFlyHeight(GetLastCreatedUnit(),500.00,2000.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(GetLastCreatedUnit(),"spell one")
set udg_unit35=GetLastCreatedUnit()
call SetUnitFlyHeight(GetTriggerUnit(),500.00,2000.00)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(GetTriggerUnit(),"spell one")
call TriggerSleepAction(0.05)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e026',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),90.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call SetUnitFlyHeight(GetLastCreatedUnit(),500.00,2000.00)
call IssuePointOrderLoc(GetLastCreatedUnit(),"clusterrockets",PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),400.00,(60.00*I2R(GetForLoopIndexA()))))
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e026',GetOwningPlayer(udg_unit35),PolarProjectionBJ(udg_locations19[2],90.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call SetUnitFlyHeight(GetLastCreatedUnit(),500.00,2000.00)
call IssuePointOrderLoc(GetLastCreatedUnit(),"clusterrockets",PolarProjectionBJ(udg_locations19[2],400.00,(60.00*I2R(GetForLoopIndexA()))))
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.05)
if(Trig_caojuqiuqianren_Func020C())then
set udg_integer51=1
loop
exitwhen udg_integer51>7
set udg_group33=GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_caojuqiuqianren_Func020Func002Func001002003))
call ForGroupBJ(udg_group33,function Trig_caojuqiuqianren_Func020Func002Func002A)
call GroupClear(udg_group33)
call TriggerSleepAction(0.10)
set udg_integer51=udg_integer51+1
endloop
else
set udg_integer51=1
loop
exitwhen udg_integer51>7
set udg_group33=GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_caojuqiuqianren_Func020Func003Func001002003))
call ForGroupBJ(udg_group33,function Trig_caojuqiuqianren_Func020Func003Func002A)
call GroupClear(udg_group33)
call TriggerSleepAction(0.10)
set udg_integer51=udg_integer51+1
endloop
endif
call UnitRemoveAbilityBJ('Amrf',GetTriggerUnit())
call SetUnitFlyHeight(GetTriggerUnit(),GetUnitDefaultFlyHeight(GetTriggerUnit()),2200.00)
call PauseUnitBJ(false,GetTriggerUnit())
call RemoveUnit(udg_unit35)
set udg_unit35=null
call ResetUnitAnimation(GetTriggerUnit())
call RemoveLocation(udg_locations19[2])
endfunction
function Trig_sh2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='o009'))then
return false
endif
return true
endfunction
function Trig_sh2_Func003Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sh2_Func003Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_sh2_Func003Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sh2_Func003Func002001003001(),Trig_sh2_Func003Func002001003002())
endfunction
function Trig_sh2_Func003Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit86,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit86,true))*7.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sh2_Func003Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sh2_Func003Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_sh2_Func003Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sh2_Func003Func003001003001(),Trig_sh2_Func003Func003001003002())
endfunction
function Trig_sh2_Func003Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit86,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit86,true))*5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sh2_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit86,'I06E')==true))then
return false
endif
return true
endfunction
function Trig_sh2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_sh2_Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_sh2_Func003Func002001003)),function Trig_sh2_Func003Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_sh2_Func003Func003001003)),function Trig_sh2_Func003Func003A)
endif
endfunction
function Trig_fmslj_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09T'))then
return false
endif
return true
endfunction
function Trig_fmslj_Actions takes nothing returns nothing
set udg_units45[1]=GetTriggerUnit()
call TriggerSleepAction(0.05)
call GroupClear(udg_group34)
call CreateNUnitsAtLocFacingLocBJ(1,'o00A',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())
set udg_units45[2]=GetLastCreatedUnit()
call EnableTrigger(udg_trigger335)
call TriggerSleepAction(0.70)
call DisableTrigger(udg_trigger335)
call RemoveUnit(udg_units45[2])
endfunction
function Trig_fmslj2_Func006001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_fmslj2_Func006001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units45[1]))==true)
endfunction
function Trig_fmslj2_Func006001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_fmslj2_Func006001003001001(),Trig_fmslj2_Func006001003001002())
endfunction
function Trig_fmslj2_Func006001003002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group34)==false)
endfunction
function Trig_fmslj2_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_fmslj2_Func006001003001(),Trig_fmslj2_Func006001003002())
endfunction
function Trig_fmslj2_Func006A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group34)
call UnitDamageTargetBJ(udg_units45[1],GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units45[1],true))*I2R(GetUnitAbilityLevel(udg_units45[1],'A09T')))+(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units45[1],true))*I2R(GetUnitAbilityLevel(udg_units45[1],'A09R')))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_fmslj2_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units45[2],PolarProjectionBJ(GetUnitLoc(udg_units45[2]),45.00,GetUnitFacing(udg_units45[2])))
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units45[2]),100.00,GetRandomDirectionDeg()),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units45[2]),"Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(280.00,GetUnitLoc(udg_units45[2]),Condition(function Trig_fmslj2_Func006001003)),function Trig_fmslj2_Func006A)
endfunction
function Trig_tjs1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A09U'))then
return false
endif
return true
endfunction
function Trig_tjs1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound60)
set udg_units46[7]=GetTriggerUnit()
set udg_locations20[1]=GetSpellTargetLoc()
call EnableTrigger(udg_trigger337)
call TriggerSleepAction(5.00)
call DisableTrigger(udg_trigger337)
set udg_units46[7]=null
call RemoveLocation(udg_locations20[1])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_tjs2_Actions takes nothing returns nothing
set udg_locations20[2]=PolarProjectionBJ(udg_locations20[1],GetRandomReal(1.00,400.00),GetRandomDirectionDeg())
call CreateNUnitsAtLoc(1,'e028',GetOwningPlayer(udg_units46[7]),udg_locations20[2],bj_UNIT_FACING)
call SetUnitFlyHeight(GetLastCreatedUnit(),0.00,900.00)
call RemoveLocation(udg_locations20[2])
endfunction
function Trig_tjs3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e028'))then
return false
endif
return true
endfunction
function Trig_tjs3_Func003Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_tjs3_Func003Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit86))==true)
endfunction
function Trig_tjs3_Func003Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_tjs3_Func003Func002001003001(),Trig_tjs3_Func003Func002001003002())
endfunction
function Trig_tjs3_Func003Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit86,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit86,true))*3.50),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_tjs3_Func003Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_tjs3_Func003Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit86))==true)
endfunction
function Trig_tjs3_Func003Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_tjs3_Func003Func003001003001(),Trig_tjs3_Func003Func003001003002())
endfunction
function Trig_tjs3_Func003Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit86,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit86,true))*2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_tjs3_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit86,'I06D')==true))then
return false
endif
return true
endfunction
function Trig_tjs3_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_tjs3_Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(GetDyingUnit()),Condition(function Trig_tjs3_Func003Func002001003)),function Trig_tjs3_Func003Func002A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(GetDyingUnit()),Condition(function Trig_tjs3_Func003Func003001003)),function Trig_tjs3_Func003Func003A)
endif
endfunction
function Trig_cswhsz1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A0'))then
return false
endif
return true
endfunction
function Trig_cswhsz1_Func012Func001001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units47[1])==true)
endfunction
function Trig_cswhsz1_Func012A takes nothing returns nothing
if(Trig_cswhsz1_Func012Func001001())then
call IssueTargetOrder(GetEnumUnit(),"attack",udg_units47[1])
else
call DoNothing()
endif
endfunction
function Trig_cswhsz1_Func016A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_cswhsz1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound62)
set udg_units47[1]=GetSpellTargetUnit()
set udg_units47[2]=GetTriggerUnit()
set udg_location31=GetUnitLoc(udg_units47[2])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h00W',GetOwningPlayer(udg_units47[2]),PolarProjectionBJ(GetUnitLoc(udg_units47[2]),110.00,((GetUnitFacing(udg_units47[2])-60.00)+(20.00*I2R(GetForLoopIndexA())))),((GetUnitFacing(udg_units47[2])-60.00)+(20.00*I2R(GetForLoopIndexA()))))
call SetUnitFlyHeight(GetLastCreatedUnit(),100.00,1000000000.00)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group35)
call SetUnitFlyHeight(GetLastCreatedUnit(),0.00,130.00)
set udg_units48[GetForLoopIndexA()]=GetLastCreatedUnit()
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger340)
call TriggerSleepAction(0.05)
call DisableTrigger(udg_trigger340)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units48[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call GroupClear(udg_group36)
call RemoveLocation(udg_location31)
call ForGroupBJ(udg_group35,function Trig_cswhsz1_Func012A)
set udg_units47[1]=null
set udg_units47[2]=null
call PolledWait(5.00)
call ForGroupBJ(udg_group35,function Trig_cswhsz1_Func016A)
call GroupClear(udg_group35)
endfunction
function Trig_cswhsz2_Func001A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"walk")
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),20.00,AngleBetweenPoints(udg_location31,GetUnitLoc(GetEnumUnit()))))
endfunction
function Trig_cswhsz2_Func002Func001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_cswhsz2_Func002Func001001003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group36)==false)
endfunction
function Trig_cswhsz2_Func002Func001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_cswhsz2_Func002Func001001003001001(),Trig_cswhsz2_Func002Func001001003001002())
endfunction
function Trig_cswhsz2_Func002Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit87))==true)
endfunction
function Trig_cswhsz2_Func002Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_cswhsz2_Func002Func001001003001(),Trig_cswhsz2_Func002Func001001003002())
endfunction
function Trig_cswhsz2_Func002Func001Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit87,'I06G')==true))then
return false
endif
return true
endfunction
function Trig_cswhsz2_Func002Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group36)
if(Trig_cswhsz2_Func002Func001Func002C())then
call UnitDamageTargetBJ(udg_unit87,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_unit87,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true))*I2R(GetUnitAbilityLevel(udg_unit87,'A0A0'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_cswhsz2_Actions takes nothing returns nothing
call ForGroupBJ(udg_group35,function Trig_cswhsz2_Func001A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(udg_units48[GetForLoopIndexA()]),Condition(function Trig_cswhsz2_Func002Func001001003)),function Trig_cswhsz2_Func002Func001A)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_CSWH1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A1'))then
return false
endif
return true
endfunction
function Trig_CSWH1_Func014C takes nothing returns boolean
if(not(DistanceBetweenPoints(GetUnitLoc(udg_units47[8]),udg_locations21[2])>250.00))then
return false
endif
return true
endfunction
function Trig_CSWH1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound63)
set udg_units47[3]=GetTriggerUnit()
set udg_units47[4]=GetSpellTargetUnit()
set udg_locations21[1]=GetUnitLoc(udg_units47[3])
set udg_locations21[2]=GetUnitLoc(udg_units47[4])
call PauseUnitBJ(true,udg_units47[4])
set udg_reals03[3]=-20.00
set udg_reals03[4]=AngleBetweenPoints(udg_locations21[1],udg_locations21[2])
set udg_reals03[5]=DistanceBetweenPoints(udg_locations21[1],udg_locations21[2])
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h00W',GetOwningPlayer(udg_units47[3]),PolarProjectionBJ(GetUnitLoc(udg_units47[3]),50.00,((GetUnitFacing(udg_units47[3])+250.00)+(20.00*I2R(GetForLoopIndexA())))),((GetUnitFacing(udg_units47[3])+250.00)+(20.00*I2R(GetForLoopIndexA()))))
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group37)
set udg_units47[GetForLoopIndexA()]=GetLastCreatedUnit()
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLocFacingLocBJ(1,'n00Q',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,GetUnitFacing(GetTriggerUnit())),udg_locations21[2])
call SetUnitFlyHeight(GetLastCreatedUnit(),400.00,300.00)
set udg_units47[8]=GetLastCreatedUnit()
if(Trig_CSWH1_Func014C())then
call IssuePointOrderLoc(udg_units47[8],"move",PolarProjectionBJ(udg_locations21[2],-200.00,GetUnitFacing(GetLastCreatedUnit())))
else
endif
call EnableTrigger(udg_trigger342)
endfunction
function Trig_CSWH2_Func005Func003C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units47[4])==true))then
return false
endif
return true
endfunction
function Trig_CSWH2_Func005Func010C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units47[4])==true))then
return false
endif
return true
endfunction
function Trig_CSWH2_Func005Func014Func004002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_CSWH2_Func005Func014Func004002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit87))==true)
endfunction
function Trig_CSWH2_Func005Func014Func004002003 takes nothing returns boolean
return GetBooleanAnd(Trig_CSWH2_Func005Func014Func004002003001(),Trig_CSWH2_Func005Func014Func004002003002())
endfunction
function Trig_CSWH2_Func005Func014Func005Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit87,'I06I')==true))then
return false
endif
return true
endfunction
function Trig_CSWH2_Func005Func014Func005A takes nothing returns nothing
if(Trig_CSWH2_Func005Func014Func005Func001C())then
call UnitDamageTargetBJ(udg_unit87,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true))*70.00)/6.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_unit87,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true))*50.00)/6.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_CSWH2_Func005C takes nothing returns boolean
if(not(udg_reals03[2]>=40.00))then
return false
endif
return true
endfunction
function Trig_CSWH2_Actions takes nothing returns nothing
set udg_reals03[3]=(udg_reals03[3]+1)
set udg_reals03[2]=(udg_reals03[2]+1)
set udg_reals03[1]=(((udg_reals03[3]*udg_reals03[3])*-1.00)+500.00)
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations21[GetForLoopIndexA()]=GetUnitLoc(udg_units47[GetForLoopIndexA()])
set udg_locations22[GetForLoopIndexA()]=PolarProjectionBJ(udg_locations21[GetForLoopIndexA()],(udg_reals03[5]/40.00),AngleBetweenPoints(udg_locations21[1],GetUnitLoc(udg_units47[GetForLoopIndexA()])))
call SetUnitAnimation(udg_units47[GetForLoopIndexA()],"walk")
call SetUnitFlyHeight(udg_units47[GetForLoopIndexA()],udg_reals03[1],0.00)
call SetUnitPositionLoc(udg_units47[GetForLoopIndexA()],udg_locations22[GetForLoopIndexA()])
call RemoveLocation(udg_locations21[GetForLoopIndexA()])
call RemoveLocation(udg_locations22[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_CSWH2_Func005C())then
call DisableTrigger(GetTriggeringTrigger())
set udg_reals03[2]=0.00
if(Trig_CSWH2_Func005Func003C())then
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call IssueTargetOrder(udg_units47[GetForLoopIndexA()],"attack",udg_units47[4])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
endif
call RemoveLocation(udg_locations21[1])
call EnableTrigger(udg_trigger343)
call SetUnitFlyHeight(udg_units47[8],600.00,300.00)
call TriggerSleepAction(2.30)
call DisableTrigger(udg_trigger343)
call SetUnitTimeScalePercent(udg_units47[4],200.00)
if(Trig_CSWH2_Func005Func010C())then
call UnitAddAbility(udg_units47[4],'Amrf')
call SetUnitFlyHeight(udg_units47[4],300.00,200.00)
else
endif
call SetUnitAnimation(udg_units47[8],"stand")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e029',GetOwningPlayer(udg_units47[3]),PolarProjectionBJ(GetUnitLoc(udg_units47[8]),GetRandomReal(1.00,50.00),GetRandomDirectionDeg()),GetUnitFacing(udg_units47[8]))
call SetUnitFlyHeight(GetLastCreatedUnit(),500.00,1000000000.00)
call IssuePointOrderLoc(GetLastCreatedUnit(),"clusterrockets",GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations21[2],400.00,400.00)))
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
call ShowUnitHide(GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveUnit(udg_units47[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer52=1
loop
exitwhen udg_integer52>6
call AddSpecialEffectTargetUnitBJ("origin",udg_units47[4],"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitAnimation(udg_units47[4],"death")
set udg_group38=GetUnitsInRangeOfLocMatching(400.00,udg_locations21[2],Condition(function Trig_CSWH2_Func005Func014Func004002003))
call ForGroupBJ(udg_group38,function Trig_CSWH2_Func005Func014Func005A)
call GroupClear(udg_group38)
call TriggerSleepAction(0.20)
set udg_integer52=udg_integer52+1
endloop
call RemoveLocation(udg_locations21[2])
call SetUnitFlyHeight(udg_units47[4],0.00,1000000000.00)
call UnitRemoveAbility(udg_units47[4],'Amrf')
call RemoveUnit(udg_units47[8])
call PauseUnitBJ(false,udg_units47[4])
set bj_forLoopAIndex=3
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units47[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
endif
endfunction
function Trig_cswh3_Conditions takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units47[4])==true))then
return false
endif
return true
endfunction
function Trig_cswh3_Actions takes nothing returns nothing
call SetUnitAnimation(udg_units47[4],"death")
call AddSpecialEffectTargetUnitBJ("origin",udg_units47[4],"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(udg_units47[5],PolarProjectionBJ(udg_locations21[2],GetRandomReal(150.00,300.00),GetUnitFacing(udg_units47[5])))
call SetUnitPositionLoc(udg_units47[6],PolarProjectionBJ(udg_locations21[2],GetRandomReal(400.00,500.00),GetUnitFacing(udg_units47[6])))
call SetUnitPositionLoc(udg_units47[7],PolarProjectionBJ(udg_locations21[2],GetRandomReal(150.00,700.00),GetUnitFacing(udg_units47[7])))
call UnitDamageTargetBJ(udg_unit87,udg_units47[4],I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_long1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A2'))then
return false
endif
return true
endfunction
function Trig_long1_Actions takes nothing returns nothing
set udg_locations22[10]=GetSpellTargetLoc()
call CreateNUnitsAtLoc(1,'h00Z',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),100.00,GetUnitFacing(GetTriggerUnit())),GetUnitFacing(GetTriggerUnit()))
set udg_units47[10]=GetLastCreatedUnit()
call EnableTrigger(udg_trigger345)
endfunction
function Trig_long2_Func001Func007001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_long2_Func001Func007001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit87))==true)
endfunction
function Trig_long2_Func001Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_long2_Func001Func007001003001(),Trig_long2_Func001Func007001003002())
endfunction
function Trig_long2_Func001Func007A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit87,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true))*80.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_long2_Func001C takes nothing returns boolean
if(not(IsUnitInRangeLoc(udg_units47[10],udg_locations22[10],150.00)==true))then
return false
endif
return true
endfunction
function Trig_long2_Actions takes nothing returns nothing
if(Trig_long2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_units47[10],"walk")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e02A',GetOwningPlayer(udg_unit87),PolarProjectionBJ(udg_locations22[10],250.00,(45.00*I2R(GetForLoopIndexA()))),GetRandomDirectionDeg())
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations22[10],350.00,(45.00*I2R(GetForLoopIndexA()))),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e02A',GetOwningPlayer(udg_unit87),PolarProjectionBJ(udg_locations22[10],500.00,(30.00*I2R(GetForLoopIndexA()))),GetRandomDirectionDeg())
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.50)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(650.00,udg_locations22[10],Condition(function Trig_long2_Func001Func007001003)),function Trig_long2_Func001Func007A)
call RemoveLocation(udg_locations22[10])
call TriggerSleepAction(0.50)
call RemoveUnit(udg_units47[10])
else
call SetUnitPositionLocFacingLocBJ(udg_units47[10],PolarProjectionBJ(GetUnitLoc(udg_units47[10]),29.00,AngleBetweenPoints(GetUnitLoc(udg_units47[10]),udg_locations22[10])),udg_locations22[10])
endif
endfunction
function Trig_zyzs_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A3'))then
return false
endif
return true
endfunction
function Trig_zyzs_______u_Func004A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_zyzs_______u_Actions takes nothing returns nothing
set udg_units05[11]=GetSpellTargetUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'H00X',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetSpellTargetUnit()),150.00,(60.00*I2R(GetForLoopIndexA()))),GetUnitLoc(GetSpellTargetUnit()))
call SetHeroStr(GetLastCreatedUnit(),(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true)*2),true)
call IssueTargetOrder(GetLastCreatedUnit(),"attack",GetSpellTargetUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group39)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
call ForGroupBJ(udg_group39,function Trig_zyzs_______u_Func004A)
call GroupClear(udg_group39)
set udg_units05[11]=null
endfunction
function Trig_zyzs2_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units05[11]))then
return false
endif
return true
endfunction
function Trig_zyzs2_______u_Func001A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_zyzs2_______u_Actions takes nothing returns nothing
call ForGroupBJ(udg_group39,function Trig_zyzs2_______u_Func001A)
call GroupClear(udg_group39)
endfunction
function Trig_sljw3_______u_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='h00W'))then
return false
endif
return true
endfunction
function Trig_sljw3_______u_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='H00X'))then
return false
endif
return true
endfunction
function Trig_sljw3_______u_Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='h00D'))then
return false
endif
return true
endfunction
function Trig_sljw3_______u_Actions takes nothing returns nothing
if(Trig_sljw3_______u_Func001C())then
call UnitDamageTargetBJ(udg_unit87,GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true))/2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call DoNothing()
endif
if(Trig_sljw3_______u_Func002C())then
call UnitDamageTargetBJ(udg_unit87,GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true))/4.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call DoNothing()
endif
if(Trig_sljw3_______u_Func003C())then
call UnitDamageTargetBJ(udg_unit79,GetAttackedUnitBJ(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit79,true))/2.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call DoNothing()
endif
endfunction
function Trig_zhuque_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A7'))then
return false
endif
return true
endfunction
function Trig_zhuque_______u_Func015001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zhuque_______u_Func015001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit87))==true)
endfunction
function Trig_zhuque_______u_Func015001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zhuque_______u_Func015001003001(),Trig_zhuque_______u_Func015001003002())
endfunction
function Trig_zhuque_______u_Func015Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit87,'I06H')==true))then
return false
endif
return true
endfunction
function Trig_zhuque_______u_Func015A takes nothing returns nothing
if(Trig_zhuque_______u_Func015Func001C())then
call UnitDamageTargetBJ(udg_unit87,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true))*35.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_unit87,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit87,true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_zhuque_______u_Actions takes nothing returns nothing
set udg_locations22[11]=GetSpellTargetLoc()
call CreateNUnitsAtLoc(1,'e02A',GetOwningPlayer(GetTriggerUnit()),udg_locations22[11],bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(GetTriggerUnit()),udg_locations22[11],bj_UNIT_FACING)
set udg_units47[11]=GetLastCreatedUnit()
call SetUnitFlyHeight(udg_units47[11],2000.00,600.00)
call EnableTrigger(udg_trigger350)
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(udg_locations22[11],"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations22[11],Condition(function Trig_zhuque_______u_Func015001003)),function Trig_zhuque_______u_Func015A)
call RemoveLocation(udg_locations22[11])
call TriggerSleepAction(1.90)
call DisableTrigger(udg_trigger350)
call RemoveUnit(udg_units47[11])
set udg_units47[11]=null
set udg_real23=0.00
endfunction
function Trig_zhuque2_______u_Actions takes nothing returns nothing
set udg_real23=(udg_real23+5.00)
call SetUnitFacing(udg_units47[11],udg_real23)
endfunction
function Trig_honglian1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AX'))then
return false
endif
return true
endfunction
function Trig_honglian1_Func009002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_honglian1_Func009002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units55[1]))==true)
endfunction
function Trig_honglian1_Func009002003 takes nothing returns boolean
return GetBooleanAnd(Trig_honglian1_Func009002003001(),Trig_honglian1_Func009002003002())
endfunction
function Trig_honglian1_Func010Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit91,'I06B')==true))then
return false
endif
return true
endfunction
function Trig_honglian1_Func010A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\ice.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_honglian1_Func010Func003C())then
call UnitDamageTargetBJ(udg_units55[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units55[1],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units55[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units55[1],true))*5.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_honglian1_Func014Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_honglian1_Func014Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units55[1]))==true)
endfunction
function Trig_honglian1_Func014Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_honglian1_Func014Func001002003001(),Trig_honglian1_Func014Func001002003002())
endfunction
function Trig_honglian1_Func014Func002A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\ice.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units55[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units55[1],true))*10.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_honglian1_Func016A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_honglian1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound71)
set udg_units55[1]=GetTriggerUnit()
set udg_units55[2]=GetSpellTargetUnit()
set udg_locations29[1]=GetUnitLoc(udg_units55[2])
call CreateNUnitsAtLoc(1,'e02Q',GetOwningPlayer(GetTriggerUnit()),udg_locations29[1],bj_UNIT_FACING)
call SetUnitAnimationByIndex(GetLastCreatedUnit(),1)
call GroupAddUnitSimple(bj_lastCreatedUnit,udg_groups12[1])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations29[2]=PolarProjectionBJ(udg_locations29[1],100.00,(36.00*I2R(bj_forLoopAIndex)))
call CreateNUnitsAtLoc(1,'e02N',GetOwningPlayer(udg_units55[1]),udg_locations29[2],(36.00*I2R(bj_forLoopAIndex)))
call SetUnitAnimationByIndex(GetLastCreatedUnit(),1)
call GroupAddUnitSimple(bj_lastCreatedUnit,udg_groups12[1])
call RemoveLocation(udg_locations29[2])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_groups12[2]=GetUnitsInRangeOfLocMatching(600.00,udg_locations29[1],Condition(function Trig_honglian1_Func009002003))
call ForGroupBJ(udg_groups12[2],function Trig_honglian1_Func010A)
call GroupClear(udg_groups12[2])
call TriggerSleepAction(0.70)
call EnableTrigger(udg_trigger352)
set udg_integer57=1
loop
exitwhen udg_integer57>5
set udg_groups12[2]=GetUnitsInRangeOfLocMatching(600.00,udg_locations29[1],Condition(function Trig_honglian1_Func014Func001002003))
call ForGroupBJ(udg_groups12[2],function Trig_honglian1_Func014Func002A)
call GroupClear(udg_groups12[2])
call TriggerSleepAction(0.20)
set udg_integer57=udg_integer57+1
endloop
call DisableTrigger(udg_trigger352)
call ForGroupBJ(udg_groups12[1],function Trig_honglian1_Func016A)
call GroupClear(udg_groups12[1])
call RemoveLocation(udg_locations29[1])
endfunction
function Trig_honglian2_Func003A takes nothing returns nothing
set udg_real24=GetUnitFacing(GetEnumUnit())
set udg_locations29[2]=PolarProjectionBJ(udg_locations29[1],100.00,(udg_real24+20.00))
call SetUnitPositionLocFacingBJ(GetEnumUnit(),udg_locations29[2],(udg_real24+20.00))
call RemoveLocation(udg_locations29[2])
endfunction
function Trig_honglian2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(udg_locations29[1],"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(udg_groups12[1],function Trig_honglian2_Func003A)
endfunction
function Trig_honglian3_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AU'))then
return false
endif
return true
endfunction
function Trig_honglian3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound69)
set udg_units55[3]=GetTriggerUnit()
set udg_locations29[3]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),90.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'e02N',GetOwningPlayer(udg_units55[3]),udg_locations29[3],(GetUnitFacing(GetTriggerUnit())+90.00))
call SetUnitFlyHeight(GetLastCreatedUnit(),150.00,0.00)
call SetUnitAnimationByIndex(GetLastCreatedUnit(),1)
set udg_units55[4]=GetLastCreatedUnit()
call RemoveLocation(udg_locations29[3])
set udg_locations29[3]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),150.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'e02Q',GetOwningPlayer(udg_units55[3]),udg_locations29[3],GetUnitFacing(GetTriggerUnit()))
call SetUnitAnimationByIndex(GetLastCreatedUnit(),1)
set udg_units55[5]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(0.20,'BTLF',GetLastCreatedUnit())
call RemoveLocation(udg_locations29[3])
call EnableTrigger(udg_trigger354)
call TriggerSleepAction(2.00)
call DisableTrigger(udg_trigger354)
call GroupClear(udg_groups12[4])
call KillUnit(udg_units55[4])
set udg_units55[3]=null
set udg_units55[4]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_honglian4_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units55[5]))then
return false
endif
return true
endfunction
function Trig_honglian4_Func011002003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_honglian4_Func011002003001002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups12[4])==false)
endfunction
function Trig_honglian4_Func011002003001 takes nothing returns boolean
return GetBooleanAnd(Trig_honglian4_Func011002003001001(),Trig_honglian4_Func011002003001002())
endfunction
function Trig_honglian4_Func011002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units55[3]))==true)
endfunction
function Trig_honglian4_Func011002003 takes nothing returns boolean
return GetBooleanAnd(Trig_honglian4_Func011002003001(),Trig_honglian4_Func011002003002())
endfunction
function Trig_honglian4_Func012Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit91,'I06U')==true))then
return false
endif
return true
endfunction
function Trig_honglian4_Func012A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups12[4])
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\ice.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_honglian4_Func012Func006C())then
call UnitDamageTargetBJ(udg_units55[3],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units55[3],true))*45.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units55[3],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units55[3],true))*25.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_honglian4_Actions takes nothing returns nothing
set udg_units55[5]=null
set udg_locations29[3]=PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),50.00,GetUnitFacing(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'e02Q',GetOwningPlayer(udg_units55[3]),udg_locations29[3],GetUnitFacing(GetTriggerUnit()))
call SetUnitAnimationByIndex(GetLastCreatedUnit(),1)
set udg_units55[5]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitApplyTimedLifeBJ(0.15,'BTLF',GetLastCreatedUnit())
set udg_groups12[3]=GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units55[5]),Condition(function Trig_honglian4_Func011002003))
call ForGroupBJ(udg_groups12[3],function Trig_honglian4_Func012A)
call GroupClear(udg_groups12[3])
call RemoveLocation(udg_locations29[3])
endfunction
function Trig_honglian5_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AV'))then
return false
endif
return true
endfunction
function Trig_honglian5_Func004001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_honglian5_Func004001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_honglian5_Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_honglian5_Func004001003001(),Trig_honglian5_Func004001003002())
endfunction
function Trig_honglian5_Func004A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\ice.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevelSwapped('A0AV',GetTriggerUnit()))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_honglian5_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e02Q',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.50,'BTLF',GetLastCreatedUnit())
call SetUnitAnimationByIndex(GetLastCreatedUnit(),0)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(GetSpellTargetUnit()),Condition(function Trig_honglian5_Func004001003)),function Trig_honglian5_Func004A)
call DestroyGroup(GetLastCreatedGroup())
call CreateNUnitsAtLoc(1,'e019',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetSpellTargetUnit()),GetRandomDirectionDeg())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(0.20,'BTLF',GetLastCreatedUnit())
endfunction
function Trig_honglian6_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AW'))then
return false
endif
return true
endfunction
function Trig_honglian6_Actions takes nothing returns nothing
set udg_units55[6]=GetTriggerUnit()
set udg_units55[7]=GetSpellTargetUnit()
call TriggerSleepAction(0.05)
call PauseUnitBJ(true,udg_units55[6])
call SetUnitPathing(udg_units55[6],false)
call UnitAddAbility(udg_units55[6],'Amrf')
call SetUnitAnimation(udg_units55[6],"spell")
call SetUnitFlyHeight(udg_units55[6],150.00,0.00)
call CreateNUnitsAtLoc(1,'e02O',GetOwningPlayer(udg_units55[6]),GetUnitLoc(udg_units55[6]),GetUnitFacing(udg_units55[6]))
set udg_units55[8]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.20)
call EnableTrigger(udg_trigger357)
endfunction
function Trig_honglian7_Func001Func012001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_honglian7_Func001Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units55[6]))==true)
endfunction
function Trig_honglian7_Func001Func012001003 takes nothing returns boolean
return GetBooleanAnd(Trig_honglian7_Func001Func012001003001(),Trig_honglian7_Func001Func012001003002())
endfunction
function Trig_honglian7_Func001Func012Func005C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(udg_unit91,'I06A')==true))then
return false
endif
return true
endfunction
function Trig_honglian7_Func001Func012A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\ice.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
if(Trig_honglian7_Func001Func012Func005C())then
call UnitDamageTargetBJ(udg_units55[6],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units55[6],true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_units55[6],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units55[6],true))*I2R(GetUnitAbilityLevel(udg_units55[6],'A0AW'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_honglian7_Func001Func018C takes nothing returns boolean
if((RectContainsUnit(RectFromCenterSizeBJ(GetUnitLoc(udg_units55[7]),150.00,150.00),udg_units55[8])==true))then
return true
endif
if((IsUnitAliveBJ(udg_units55[7])==false))then
return true
endif
return false
endfunction
function Trig_honglian7_Func001C takes nothing returns boolean
if(not Trig_honglian7_Func001Func018C())then
return false
endif
return true
endfunction
function Trig_honglian7_Actions takes nothing returns nothing
if(Trig_honglian7_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call RemoveUnit(udg_units55[8])
call CreateNUnitsAtLoc(1,'e019',GetOwningPlayer(udg_units55[6]),GetUnitLoc(udg_units55[7]),GetRandomDirectionDeg())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(0.20,'BTLF',GetLastCreatedUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_units55[7]),Condition(function Trig_honglian7_Func001Func012001003)),function Trig_honglian7_Func001Func012A)
call SetUnitFlyHeight(udg_units55[6],GetUnitDefaultFlyHeight(udg_units55[6]),0.00)
call UnitRemoveAbility(udg_units55[6],'Amrf')
call SetUnitPathing(udg_units55[6],true)
call PauseUnitBJ(false,udg_units55[6])
set bj_forLoopAIndex=6
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units55[GetForLoopIndexA()]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call SetUnitPositionLocFacingLocBJ(udg_units55[6],GetUnitLoc(udg_units55[8]),GetUnitLoc(udg_units55[7]))
call SetUnitPositionLocFacingBJ(udg_units55[8],PolarProjectionBJ(GetUnitLoc(udg_units55[8]),27.00,AngleBetweenPoints(GetUnitLoc(udg_units55[8]),GetUnitLoc(udg_units55[7]))),GetUnitFacing(udg_units55[6]))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units55[8]),"war3mapImported\\ice.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units55[8]),"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_hpnglian8_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AZ'))then
return false
endif
return true
endfunction
function Trig_hpnglian8_Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hpnglian8_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units55[9]))==true)
endfunction
function Trig_hpnglian8_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hpnglian8_Func006001003001(),Trig_hpnglian8_Func006001003002())
endfunction
function Trig_hpnglian8_Func006A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\ice.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units55[9],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units55[9],true))*75.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hpnglian8_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound70)
set udg_units55[9]=GetTriggerUnit()
set udg_locations29[5]=GetUnitLoc(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e02P',GetOwningPlayer(udg_units55[9]),PolarProjectionBJ(udg_locations29[5],600.00,(18.00*I2R(GetForLoopIndexA()))),udg_locations29[5])
call UnitApplyTimedLifeBJ(8.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimationByIndex(GetLastCreatedUnit(),0)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitVertexColor(GetLastCreatedUnit(),50,70,50,150)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(630.00,GetUnitLoc(udg_units55[9]),Condition(function Trig_hpnglian8_Func006001003)),function Trig_hpnglian8_Func006A)
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=18
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e02P',GetOwningPlayer(udg_units55[9]),PolarProjectionBJ(udg_locations29[5],500.00,(20.00*I2R(GetForLoopIndexA()))),udg_locations29[5])
call UnitApplyTimedLifeBJ(8.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimationByIndex(GetLastCreatedUnit(),0)
call SetUnitFlyHeight(GetLastCreatedUnit(),100.00,0.00)
call SetUnitVertexColor(GetLastCreatedUnit(),50,70,50,150)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=16
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e02P',GetOwningPlayer(udg_units55[9]),PolarProjectionBJ(udg_locations29[5],400.00,(22.50*I2R(GetForLoopIndexA()))),udg_locations29[5])
call UnitApplyTimedLifeBJ(8.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimationByIndex(GetLastCreatedUnit(),0)
call SetUnitFlyHeight(GetLastCreatedUnit(),200.00,0.00)
call SetUnitVertexColor(GetLastCreatedUnit(),50,50,50,150)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e02P',GetOwningPlayer(udg_units55[9]),PolarProjectionBJ(udg_locations29[5],300.00,(30.00*I2R(GetForLoopIndexA()))),udg_locations29[5])
call UnitApplyTimedLifeBJ(8.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimationByIndex(GetLastCreatedUnit(),0)
call SetUnitFlyHeight(GetLastCreatedUnit(),300.00,0.00)
call SetUnitVertexColor(GetLastCreatedUnit(),50,50,50,150)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e02P',GetOwningPlayer(udg_units55[9]),PolarProjectionBJ(udg_locations29[5],150.00,(60.00*I2R(GetForLoopIndexA()))),udg_locations29[5])
call UnitApplyTimedLifeBJ(8.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimationByIndex(GetLastCreatedUnit(),0)
call SetUnitFlyHeight(GetLastCreatedUnit(),400.00,0.00)
call SetUnitVertexColor(GetLastCreatedUnit(),50,50,50,150)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations29[5])
set udg_units55[9]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_honglian9_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AY'))then
return false
endif
return true
endfunction
function Trig_honglian9_Func005001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_honglian9_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_honglian9_Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_honglian9_Func005001003001(),Trig_honglian9_Func005001003002())
endfunction
function Trig_honglian9_Func005A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"war3mapImported\\ice.mdx")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A0AY'))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_honglian9_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'e02Q',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.50,'BTLF',GetLastCreatedUnit())
call SetUnitAnimationByIndex(GetLastCreatedUnit(),0)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(GetSpellTargetUnit()),Condition(function Trig_honglian9_Func005001003)),function Trig_honglian9_Func005A)
call DestroyGroup(GetLastCreatedGroup())
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_unit91),'A0AZ',true)
call TriggerSleepAction(5.00)
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_unit91),'A0AZ',false)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_yuXG1_Func002C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I00Q')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I013')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I012')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I011')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I014')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I010')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I015')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I00Z')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I017')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01A')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I018')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I019')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I016')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01Q')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01S')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01R')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01T')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I031')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I044')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I045')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I046')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I047')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04T')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04U')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04V')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04W')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04Y')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04Z')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I050')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I051')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I052')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I053')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I054')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I055')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I059')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05A')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06A')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06B')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06D')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06E')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06H')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06I')==true))then
return true
endif
return false
endfunction
function Trig_yuXG1_Func003C takes nothing returns boolean
if((GetOwningPlayer(GetTriggerUnit())==Player(11)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(10)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return true
endif
return false
endfunction
function Trig_yuXG1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not Trig_yuXG1_Func002C())then
return false
endif
if(not Trig_yuXG1_Func003C())then
return false
endif
if(not(GetRandomInt(1,200)==2))then
return false
endif
return true
endfunction
function Trig_yuXG1_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,3)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,3)
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,3)
call DisplayTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,"The mysterious effect of the Jade has increased your stats!")
endfunction
function Trig_yuXG2_Func002C takes nothing returns boolean
if((GetOwningPlayer(GetTriggerUnit())==Player(11)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(10)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())!=Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return true
endif
return false
endfunction
function Trig_yuXG2_Func003C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I00Q')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I013')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I012')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I011')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I014')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I010')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I015')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I00Z')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I017')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01A')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I018')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I019')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I016')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01Q')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01S')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01R')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I01T')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I031')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I044')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I045')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I046')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I047')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04T')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04U')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04V')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04W')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04Y')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I04Z')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I050')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I051')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I052')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I053')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I054')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I055')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I059')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05A')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06A')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06B')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06D')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06E')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06H')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06I')==true))then
return true
endif
return false
endfunction
function Trig_yuXG2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not Trig_yuXG2_Func002C())then
return false
endif
if(not Trig_yuXG2_Func003C())then
return false
endif
return true
endfunction
function Trig_yuXG2_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,10)
call DisplayTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,"The mysterious effect of the Jade has increased your stats!")
endfunction
function Trig_yuXG3_Func003C takes nothing returns boolean
if((GetOwningPlayer(GetTriggerUnit())==Player(11)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(10)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return true
endif
return false
endfunction
function Trig_yuXG3_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05U')==true))then
return false
endif
if(not Trig_yuXG3_Func003C())then
return false
endif
if(not(GetRandomInt(1,80)==2))then
return false
endif
return true
endfunction
function Trig_yuXG3_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,3)
call DisplayTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,"TRIGSTR_6167")
endfunction
function Trig_yuXG4_Func002C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05U')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I06R')==true))then
return true
endif
return false
endfunction
function Trig_yuXG4_Func003C takes nothing returns boolean
if((GetOwningPlayer(GetTriggerUnit())==Player(11)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(10)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return true
endif
return false
endfunction
function Trig_yuXG4_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not Trig_yuXG4_Func002C())then
return false
endif
if(not Trig_yuXG4_Func003C())then
return false
endif
return true
endfunction
function Trig_yuXG4_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,15)
endfunction
function Trig_lszn_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01L'))then
return false
endif
return true
endfunction
function Trig_lszn_Func001Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_lszn_Func001Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_lszn_Func001Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lszn_Func001Func001001003001(),Trig_lszn_Func001Func001001003002())
endfunction
function Trig_lszn_Func001Func001A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e004',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitFlyHeight(GetLastCreatedUnit(),1000.00,1000000000.00)
call IssueTargetOrder(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))*20.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call UnitApplyTimedLifeBJ(1.50,'BTLF',GetLastCreatedUnit())
endfunction
function Trig_lszn_Func001Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_lszn_Func001Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_lszn_Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lszn_Func001Func003001003001(),Trig_lszn_Func001Func003001003002())
endfunction
function Trig_lszn_Func001Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e004',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitFlyHeight(GetLastCreatedUnit(),1000.00,1000000000.00)
call IssueTargetOrder(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call UnitApplyTimedLifeBJ(1.50,'BTLF',GetLastCreatedUnit())
endfunction
function Trig_lszn_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05R')==true))then
return false
endif
return true
endfunction
function Trig_lszn_Actions takes nothing returns nothing
if(Trig_lszn_Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetSpellTargetLoc(),Condition(function Trig_lszn_Func001Func001001003)),function Trig_lszn_Func001Func001A)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetSpellTargetLoc(),Condition(function Trig_lszn_Func001Func003001003)),function Trig_lszn_Func001Func003A)
endif
endfunction
function Trig_BOSSdw_Actions takes nothing returns nothing
set udg_integers07[1]='I00Y'
set udg_integers07[2]='I024'
set udg_integers07[3]='I021'
set udg_integers07[4]='I01Y'
set udg_integers07[5]='I022'
set udg_integers07[6]='I01Z'
set udg_integers07[7]='I020'
set udg_integers07[8]='I00X'
set udg_integers07[9]='I023'
set udg_integers08[1]='I02F'
set udg_integers08[2]='I029'
set udg_integers08[3]='I02L'
set udg_integers08[4]='I02D'
set udg_integers08[5]='I02B'
set udg_integers08[6]='I02S'
set udg_integers08[7]='I02H'
set udg_integers08[8]='I02N'
set udg_integers08[9]='I027'
set udg_integers08[10]='I02I'
set udg_integers08[11]='I02O'
set udg_integers08[12]='I02C'
set udg_integers08[13]='I02K'
set udg_integers08[14]='I02P'
set udg_integers08[15]='I025'
set udg_integers08[16]='I02E'
set udg_integers08[17]='I02Q'
set udg_integers08[18]='I02A'
set udg_integers08[19]='I02G'
set udg_integers08[20]='I028'
set udg_integers08[21]='I02M'
set udg_integers08[22]='I02J'
set udg_integers08[23]='I02R'
set udg_integers08[24]='I026'
endfunction
function Trig_myyu_Actions takes nothing returns nothing
set udg_integers06[1]='I013'
set udg_integers06[2]='I012'
set udg_integers06[3]='I011'
set udg_integers06[4]='I014'
set udg_integers06[5]='I010'
set udg_integers06[6]='I015'
set udg_integers06[7]='I00Z'
set udg_integers06[8]='I017'
set udg_integers06[9]='I01A'
set udg_integers06[10]='I018'
set udg_integers06[11]='I019'
set udg_integers06[12]='I016'
set udg_integers06[13]='I01Q'
set udg_integers06[14]='I01S'
set udg_integers06[15]='I01R'
set udg_integers06[16]='I01T'
set udg_integers06[17]='I031'
set udg_integers06[18]='I044'
set udg_integers06[19]='I045'
set udg_integers06[20]='I046'
set udg_integers06[21]='I047'
set udg_integers06[22]='I04T'
set udg_integers06[23]='I04U'
set udg_integers06[24]='I04V'
set udg_integers06[25]='I04W'
set udg_integers06[26]='I04Y'
set udg_integers06[27]='I04Z'
set udg_integers06[28]='I050'
set udg_integers06[29]='I051'
set udg_integers06[30]='I052'
set udg_integers06[31]='I053'
set udg_integers06[32]='I054'
set udg_integers06[33]='I055'
set udg_integers06[34]='I059'
set udg_integers06[35]='I05A'
set udg_integers06[36]='I06A'
set udg_integers06[37]='I06B'
set udg_integers06[38]='I06D'
set udg_integers06[39]='I06E'
set udg_integers06[40]='I06H'
set udg_integers06[41]='I06I'
endfunction
function Trig_hx_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01I'))then
return false
endif
return true
endfunction
function Trig_hx_Func002Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00E')==true))then
return false
endif
return true
endfunction
function Trig_hx_Func002Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00F')==true))then
return false
endif
return true
endfunction
function Trig_hx_Func002Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00D')==true))then
return false
endif
return true
endfunction
function Trig_hx_Func002Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00C')==true))then
return false
endif
return true
endfunction
function Trig_hx_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00J')==true))then
return false
endif
return true
endfunction
function Trig_hx_Actions takes nothing returns nothing
if(Trig_hx_Func002C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00J'))
call UnitAddItemByIdSwapped('I00C',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1412")
else
if(Trig_hx_Func002Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00C'))
call UnitAddItemByIdSwapped('I00D',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1413")
else
if(Trig_hx_Func002Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00D'))
call UnitAddItemByIdSwapped('I00F',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1414")
else
if(Trig_hx_Func002Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00F'))
call UnitAddItemByIdSwapped('I00E',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,30,"TRIGSTR_1415")
else
if(Trig_hx_Func002Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00E'))
call UnitAddItemByIdSwapped('I01G',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,30,"TRIGSTR_1530")
else
call AdjustPlayerStateBJ(3000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1416")
endif
endif
endif
endif
endif
endfunction
function Trig_hw_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01H'))then
return false
endif
return true
endfunction
function Trig_hw_Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00B')==true))then
return false
endif
return true
endfunction
function Trig_hw_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00G')==true))then
return false
endif
return true
endfunction
function Trig_hw_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00H')==true))then
return false
endif
return true
endfunction
function Trig_hw_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00I')==true))then
return false
endif
return true
endfunction
function Trig_hw_Actions takes nothing returns nothing
if(Trig_hw_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00I'))
call UnitAddItemByIdSwapped('I00H',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1418")
else
if(Trig_hw_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00H'))
call UnitAddItemByIdSwapped('I00G',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1419")
else
if(Trig_hw_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00G'))
call UnitAddItemByIdSwapped('I00B',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1420")
else
if(Trig_hw_Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00B'))
call UnitAddItemByIdSwapped('I00K',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1421")
else
call AdjustPlayerStateBJ(3000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1422")
endif
endif
endif
endif
endfunction
function Trig_he_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01J'))then
return false
endif
return true
endfunction
function Trig_he_Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00O')==true))then
return false
endif
return true
endfunction
function Trig_he_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00N')==true))then
return false
endif
return true
endfunction
function Trig_he_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00M')==true))then
return false
endif
return true
endfunction
function Trig_he_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00P')==true))then
return false
endif
return true
endfunction
function Trig_he_Actions takes nothing returns nothing
if(Trig_he_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00P'))
call UnitAddItemByIdSwapped('I00M',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1424")
else
if(Trig_he_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00M'))
call UnitAddItemByIdSwapped('I00N',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1425")
else
if(Trig_he_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00N'))
call UnitAddItemByIdSwapped('I00O',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1426")
else
if(Trig_he_Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00O'))
call UnitAddItemByIdSwapped('I00L',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1427")
else
call AdjustPlayerStateBJ(3000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1428")
endif
endif
endif
endif
endfunction
function Trig_yifu_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01K'))then
return false
endif
return true
endfunction
function Trig_yifu_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00U')==true))then
return false
endif
return true
endfunction
function Trig_yifu_Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00T')==true))then
return false
endif
return true
endfunction
function Trig_yifu_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00S')==true))then
return false
endif
return true
endfunction
function Trig_yifu_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00W')==true))then
return false
endif
return true
endfunction
function Trig_yifu_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00R')==true))then
return false
endif
return true
endfunction
function Trig_yifu_Actions takes nothing returns nothing
if(Trig_yifu_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00R'))
call UnitAddItemByIdSwapped('I00W',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1432")
else
if(Trig_yifu_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00W'))
call UnitAddItemByIdSwapped('I00S',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1433")
else
if(Trig_yifu_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00S'))
call UnitAddItemByIdSwapped('I00T',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1434")
else
if(Trig_yifu_Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00T'))
call UnitAddItemByIdSwapped('I00U',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1435")
else
if(Trig_yifu_Func001Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00U'))
call UnitAddItemByIdSwapped('I00V',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1436")
else
call AdjustPlayerStateBJ(3000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1437")
endif
endif
endif
endif
endif
endfunction
function Trig_jian_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01L'))then
return false
endif
return true
endfunction
function Trig_jian_Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01C')==true))then
return false
endif
return true
endfunction
function Trig_jian_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01E')==true))then
return false
endif
return true
endfunction
function Trig_jian_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01D')==true))then
return false
endif
return true
endfunction
function Trig_jian_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01B')==true))then
return false
endif
return true
endfunction
function Trig_jian_Actions takes nothing returns nothing
if(Trig_jian_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01B'))
call UnitAddItemByIdSwapped('I01D',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1439")
else
if(Trig_jian_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01D'))
call UnitAddItemByIdSwapped('I01E',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1440")
else
if(Trig_jian_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01E'))
call UnitAddItemByIdSwapped('I01C',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1441")
else
if(Trig_jian_Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01C'))
call UnitAddItemByIdSwapped('I01F',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,"TRIGSTR_1442")
else
call AdjustPlayerStateBJ(3000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1443")
endif
endif
endif
endif
endfunction
function Trig_yu_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01N'))then
return false
endif
return true
endfunction
function Trig_yu_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00K')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00E')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00L')==true))then
return false
endif
return true
endfunction
function Trig_yu_Actions takes nothing returns nothing
if(Trig_yu_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00K'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00E'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00L'))
call UnitAddItemByIdSwapped('I00Q',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,0.50,(GetHeroProperName(GetTriggerUnit())+(" :成功合成了 [ |cffff0000"+(GetItemName(GetLastCreatedItem())+"|r ]"))))
else
call AdjustPlayerStateBJ(22000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1429")
endif
endfunction
function Trig_my_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01M'))then
return false
endif
return true
endfunction
function Trig_my_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Q')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Y')==true))then
return false
endif
return true
endfunction
function Trig_my_Actions takes nothing returns nothing
if(Trig_my_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Q'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00Y'))
call UnitAddItemByIdSwapped(udg_integers06[GetRandomInt(1,41)],GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+":Congratulations! You successfully inserted the Stone of Fate into the:|cffff0000Honorable[Jade of Kage]|r "))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1449")
endif
endfunction
function Trig_fj_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01P'))then
return false
endif
return true
endfunction
function Trig_fj_Func001Func001C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I013')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I012')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I011')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I014')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I010')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I015')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00Z')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I017')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01A')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I018')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I019')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I016')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Q')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01S')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01R')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01T')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I031')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I044')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I045')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I046')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I047')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04T')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04U')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04V')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04W')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04Y')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04Z')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I050')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I051')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I052')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I053')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I054')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I055')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I059')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05A')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06A')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06B')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06D')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06E')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06H')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06I')==true))then
return true
endif
return false
endfunction
function Trig_fj_Func001C takes nothing returns boolean
if(not Trig_fj_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_fj_Actions takes nothing returns nothing
if(Trig_fj_Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=41
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),udg_integers06[GetForLoopIndexA()]))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call UnitAddItemByIdSwapped('I00Q',GetTriggerUnit())
call UnitAddItemByIdSwapped('I00Y',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1454")
else
call AdjustPlayerStateBJ(5000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1448")
endif
endfunction
function Trig_sq_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I03N'))then
return false
endif
return true
endfunction
function Trig_sq_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I06S')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03O')==true))then
return false
endif
return true
endfunction
function Trig_sq_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'kpin')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03O')==true))then
return false
endif
return true
endfunction
function Trig_sq_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'mcou')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03O')==true))then
return false
endif
return true
endfunction
function Trig_sq_Actions takes nothing returns nothing
if(Trig_sq_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'mcou'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03O'))
call UnitAddItemByIdSwapped('I03P',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetItemName(GetLastCreatedItem())+" has now appeared in the human world"))
else
if(Trig_sq_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'kpin'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03O'))
call UnitAddItemByIdSwapped('I03Q',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetItemName(GetLastCreatedItem())+" has now appeared in the human world"))
else
if(Trig_sq_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I06S'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03O'))
call UnitAddItemByIdSwapped('I06R',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetItemName(GetLastCreatedItem())+" has now appeared in the human world"))
else
call AdjustPlayerStateBJ(50000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_8247")
endif
endif
endif
endfunction
function Trig_hy_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I036'))then
return false
endif
return true
endfunction
function Trig_hy_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Y')==true))then
return false
endif
return true
endfunction
function Trig_hy_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00V')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Y')==true))then
return false
endif
return true
endfunction
function Trig_hy_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01F')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Y')==true))then
return false
endif
return true
endfunction
function Trig_hy_Actions takes nothing returns nothing
if(Trig_hy_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Y'))
call UnitAddItemByIdSwapped('I02F',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_hy_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00V'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Y'))
call UnitAddItemByIdSwapped('I029',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_hy_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Y'))
call UnitAddItemByIdSwapped('I02L',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1767")
endif
endif
endif
endfunction
function Trig_sw_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I037'))then
return false
endif
return true
endfunction
function Trig_sw_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00V')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I022')==true))then
return false
endif
return true
endfunction
function Trig_sw_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01F')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I022')==true))then
return false
endif
return true
endfunction
function Trig_sw_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I022')==true))then
return false
endif
return true
endfunction
function Trig_sw_Actions takes nothing returns nothing
if(Trig_sw_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'))
call UnitAddItemByIdSwapped('I02S',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_sw_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'))
call UnitAddItemByIdSwapped('I02D',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_sw_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00V'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'))
call UnitAddItemByIdSwapped('I02B',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1769")
endif
endif
endif
endfunction
function Trig_th_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I035'))then
return false
endif
return true
endfunction
function Trig_th_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I021')==true))then
return false
endif
return true
endfunction
function Trig_th_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01F')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I021')==true))then
return false
endif
return true
endfunction
function Trig_th_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00V')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I021')==true))then
return false
endif
return true
endfunction
function Trig_th_Actions takes nothing returns nothing
if(Trig_th_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00V'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))
call UnitAddItemByIdSwapped('I027',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_th_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))
call UnitAddItemByIdSwapped('I02H',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_th_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))
call UnitAddItemByIdSwapped('I02N',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1771")
endif
endif
endif
endfunction
function Trig_yz_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I038'))then
return false
endif
return true
endfunction
function Trig_yz_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00V')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I024')==true))then
return false
endif
return true
endfunction
function Trig_yz_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01F')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I024')==true))then
return false
endif
return true
endfunction
function Trig_yz_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I024')==true))then
return false
endif
return true
endfunction
function Trig_yz_Actions takes nothing returns nothing
if(Trig_yz_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01G'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'))
call UnitAddItemByIdSwapped('I02O',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_yz_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01F'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'))
call UnitAddItemByIdSwapped('I02I',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_yz_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00V'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'))
call UnitAddItemByIdSwapped('I02C',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1773")
endif
endif
endif
endfunction
function Trig_bd_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I032'))then
return false
endif
return true
endfunction
function Trig_bd_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02L')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00X')==true))then
return false
endif
return true
endfunction
function Trig_bd_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I029')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00X')==true))then
return false
endif
return true
endfunction
function Trig_bd_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02F')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00X')==true))then
return false
endif
return true
endfunction
function Trig_bd_Actions takes nothing returns nothing
if(Trig_bd_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02F'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00X'))
call UnitAddItemByIdSwapped('I02K',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_bd_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I029'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00X'))
call UnitAddItemByIdSwapped('I025',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_bd_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02L'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00X'))
call UnitAddItemByIdSwapped('I02P',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1775")
endif
endif
endif
endfunction
function Trig_tn_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I033'))then
return false
endif
return true
endfunction
function Trig_tn_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I027')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Z')==true))then
return false
endif
return true
endfunction
function Trig_tn_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02N')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Z')==true))then
return false
endif
return true
endfunction
function Trig_tn_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02H')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Z')==true))then
return false
endif
return true
endfunction
function Trig_tn_Actions takes nothing returns nothing
if(Trig_tn_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02H'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Z'))
call UnitAddItemByIdSwapped('I02G',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_tn_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02N'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Z'))
call UnitAddItemByIdSwapped('I02M',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_tn_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I027'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Z'))
call UnitAddItemByIdSwapped('I028',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1778")
endif
endif
endif
endfunction
function Trig_huy_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I034'))then
return false
endif
return true
endfunction
function Trig_huy_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02S')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I020')==true))then
return false
endif
return true
endfunction
function Trig_huy_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02B')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I020')==true))then
return false
endif
return true
endfunction
function Trig_huy_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02D')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I020')==true))then
return false
endif
return true
endfunction
function Trig_huy_Actions takes nothing returns nothing
if(Trig_huy_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02D'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I020'))
call UnitAddItemByIdSwapped('I02E',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_huy_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02B'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I020'))
call UnitAddItemByIdSwapped('I02A',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_huy_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02S'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I020'))
call UnitAddItemByIdSwapped('I02Q',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1781")
endif
endif
endif
endfunction
function Trig_hying_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I039'))then
return false
endif
return true
endfunction
function Trig_hying_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02C')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I023')==true))then
return false
endif
return true
endfunction
function Trig_hying_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02O')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I023')==true))then
return false
endif
return true
endfunction
function Trig_hying_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02I')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I023')==true))then
return false
endif
return true
endfunction
function Trig_hying_Actions takes nothing returns nothing
if(Trig_hying_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02I'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'))
call UnitAddItemByIdSwapped('I02J',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_hying_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02O'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'))
call UnitAddItemByIdSwapped('I02R',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_hying_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02C'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'))
call UnitAddItemByIdSwapped('I026',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_1783")
endif
endif
endif
endfunction
function Trig_BH_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I048'))then
return false
endif
return true
endfunction
function Trig_BH_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I025')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04C')==true))then
return false
endif
return true
endfunction
function Trig_BH_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02P')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04C')==true))then
return false
endif
return true
endfunction
function Trig_BH_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04C')==true))then
return false
endif
return true
endfunction
function Trig_BH_Actions takes nothing returns nothing
if(Trig_BH_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02K'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04C'))
call UnitAddItemByIdSwapped('I04I',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_BH_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02P'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04C'))
call UnitAddItemByIdSwapped('I04K',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_BH_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I025'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04C'))
call UnitAddItemByIdSwapped('I04O',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_3223")
endif
endif
endif
endfunction
function Trig_ql_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I049'))then
return false
endif
return true
endfunction
function Trig_ql_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02A')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04D')==true))then
return false
endif
return true
endfunction
function Trig_ql_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02Q')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04D')==true))then
return false
endif
return true
endfunction
function Trig_ql_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02E')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04D')==true))then
return false
endif
return true
endfunction
function Trig_ql_Actions takes nothing returns nothing
if(Trig_ql_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02E'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04D'))
call UnitAddItemByIdSwapped('I04G',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_ql_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02Q'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04D'))
call UnitAddItemByIdSwapped('I04M',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_ql_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02A'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04D'))
call UnitAddItemByIdSwapped('I04Q',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_6961")
endif
endif
endif
endfunction
function Trig_zq_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I04A'))then
return false
endif
return true
endfunction
function Trig_zq_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I028')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04E')==true))then
return false
endif
return true
endfunction
function Trig_zq_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02M')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04E')==true))then
return false
endif
return true
endfunction
function Trig_zq_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04E')==true))then
return false
endif
return true
endfunction
function Trig_zq_Actions takes nothing returns nothing
if(Trig_zq_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02G'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04E'))
call UnitAddItemByIdSwapped('I04H',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_zq_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02M'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04E'))
call UnitAddItemByIdSwapped('I04L',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_zq_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I028'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04E'))
call UnitAddItemByIdSwapped('I04P',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_3227")
endif
endif
endif
endfunction
function Trig_xw_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I04B'))then
return false
endif
return true
endfunction
function Trig_xw_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02R')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04F')==true))then
return false
endif
return true
endfunction
function Trig_xw_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I026')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04F')==true))then
return false
endif
return true
endfunction
function Trig_xw_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02J')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04F')==true))then
return false
endif
return true
endfunction
function Trig_xw_Actions takes nothing returns nothing
if(Trig_xw_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02J'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04F'))
call UnitAddItemByIdSwapped('I04J',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_xw_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I026'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04F'))
call UnitAddItemByIdSwapped('I04R',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
if(Trig_xw_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I02R'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04F'))
call UnitAddItemByIdSwapped('I04N',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":Congrats! You successfully crafted "+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_3229")
endif
endif
endif
endfunction
function Trig_hehehe_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I063'))then
return false
endif
return true
endfunction
function Trig_hehehe_Func003Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04I')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04O')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04K')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Y')==true))then
return false
endif
return true
endfunction
function Trig_hehehe_Func003Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04L')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04H')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04P')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Y')==true))then
return false
endif
return true
endfunction
function Trig_hehehe_Func003Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04J')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04R')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04N')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Y')==true))then
return false
endif
return true
endfunction
function Trig_hehehe_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04Q')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04M')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Y')==true))then
return false
endif
return true
endfunction
function Trig_hehehe_Actions takes nothing returns nothing
if(Trig_hehehe_Func003C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04Q'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04M'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04G'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05Y'))
call UnitAddItemByIdSwapped('I05Z',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":has successfully combined the Bijuu items into:"+GetItemName(GetLastCreatedItem()))))
else
if(Trig_hehehe_Func003Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04J'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04R'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04N'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05Y'))
call UnitAddItemByIdSwapped('I061',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":has successfully combined the Bijuu items into:"+GetItemName(GetLastCreatedItem()))))
else
if(Trig_hehehe_Func003Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04L'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04H'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04P'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05Y'))
call UnitAddItemByIdSwapped('I062',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":has successfully combined the Bijuu items into:"+GetItemName(GetLastCreatedItem()))))
else
if(Trig_hehehe_Func003Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04I'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04O'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I04K'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I05Y'))
call UnitAddItemByIdSwapped('I060',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+(":has successfully combined the Bijuu items into:"+GetItemName(GetLastCreatedItem()))))
else
call AdjustPlayerStateBJ(50000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_6963")
endif
endif
endif
endif
endfunction
function Trig_bshc_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05B'))then
return false
endif
return true
endfunction
function Trig_bshc_Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I023')==true))then
return false
endif
return true
endfunction
function Trig_bshc_Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I020')==true))then
return false
endif
return true
endfunction
function Trig_bshc_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Z')==true))then
return false
endif
return true
endfunction
function Trig_bshc_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I00X')==true))then
return false
endif
return true
endfunction
function Trig_bshc_Func001Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I024')==true))then
return false
endif
return true
endfunction
function Trig_bshc_Func001Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I022')==true))then
return false
endif
return true
endfunction
function Trig_bshc_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I021')==true))then
return false
endif
return true
endfunction
function Trig_bshc_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01Y')==true))then
return false
endif
return true
endfunction
function Trig_bshc_Actions takes nothing returns nothing
if(Trig_bshc_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Y'))
call UnitAddItemByIdSwapped(udg_integers07[GetRandomInt(2,5)],GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,("你成功的用了一个 |cffff0000幻影宝石|r 兑换了一个 |cffff0000"+(GetItemName(GetLastCreatedItem())+"|r!")))
else
if(Trig_bshc_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I021'))
call UnitAddItemByIdSwapped(udg_integers07[GetRandomInt(2,5)],GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,("你成功的用了一个 |cffff0000天幻宝石|r 兑换了一个 |cffff0000"+(GetItemName(GetLastCreatedItem())+"|r!")))
else
if(Trig_bshc_Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I022'))
call UnitAddItemByIdSwapped(udg_integers07[GetRandomInt(2,5)],GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,("你成功的用了一个 |cffff0000神武宝石|r 兑换了一个 |cffff0000"+(GetItemName(GetLastCreatedItem())+"|r!")))
else
if(Trig_bshc_Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I024'))
call UnitAddItemByIdSwapped(udg_integers07[GetRandomInt(2,5)],GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,("你成功的用了一个 |cffff0000力量宝石|r 兑换了一个 |cffff0000"+(GetItemName(GetLastCreatedItem())+"|r!")))
else
if(Trig_bshc_Func001Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I00X'))
call UnitAddItemByIdSwapped(udg_integers07[GetRandomInt(6,9)],GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,("你成功的用了一个 |cffff0000不动冥王宝石|r 兑换了一个 |cffff0000"+(GetItemName(GetLastCreatedItem())+"|r!")))
else
if(Trig_bshc_Func001Func001Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I01Z'))
call UnitAddItemByIdSwapped(udg_integers07[GetRandomInt(6,9)],GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,("你成功的用了一个 |cffff0000天怒宝石|r 兑换了一个 |cffff0000"+(GetItemName(GetLastCreatedItem())+"|r!")))
else
if(Trig_bshc_Func001Func001Func001Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I020'))
call UnitAddItemByIdSwapped(udg_integers07[GetRandomInt(6,9)],GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,("你成功的用了一个 |cffff0000混元宝石|r 兑换了一个 |cffff0000"+(GetItemName(GetLastCreatedItem())+"|r!")))
else
if(Trig_bshc_Func001Func001Func001Func001Func001Func001Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I023'))
call UnitAddItemByIdSwapped(udg_integers07[GetRandomInt(6,9)],GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,("你成功的用了一个 |cffff0000火之意志|r 兑换了一个 |cffff0000"+(GetItemName(GetLastCreatedItem())+"|r!")))
else
call AdjustPlayerStateBJ(50000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_5610")
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function Trig_tZ_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func001Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02E'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02A'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02Q'))then
return true
endif
return false
endfunction
function Trig_tZ_Func001C takes nothing returns boolean
if(not Trig_tZ_Func001Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02E')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02A')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02Q')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func002Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02D'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02B'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02S'))then
return true
endif
return false
endfunction
function Trig_tZ_Func002C takes nothing returns boolean
if(not Trig_tZ_Func002Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02D')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02B')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02S')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func003Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02I'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02O'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02C'))then
return true
endif
return false
endfunction
function Trig_tZ_Func003C takes nothing returns boolean
if(not Trig_tZ_Func003Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02I')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02O')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02C')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func004Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02H'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02N'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I027'))then
return true
endif
return false
endfunction
function Trig_tZ_Func004C takes nothing returns boolean
if(not Trig_tZ_Func004Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02H')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02N')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I027')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func005Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02K'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02P'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I025'))then
return true
endif
return false
endfunction
function Trig_tZ_Func005C takes nothing returns boolean
if(not Trig_tZ_Func005Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02P')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I025')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func006Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02G'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02M'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I028'))then
return true
endif
return false
endfunction
function Trig_tZ_Func006C takes nothing returns boolean
if(not Trig_tZ_Func006Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02M')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I028')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func007Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02J'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02R'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I026'))then
return true
endif
return false
endfunction
function Trig_tZ_Func007C takes nothing returns boolean
if(not Trig_tZ_Func007Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02J')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02R')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I026')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func008Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02F'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I029'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02L'))then
return true
endif
return false
endfunction
function Trig_tZ_Func008C takes nothing returns boolean
if(not Trig_tZ_Func008Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02F')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I029')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02L')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func009Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I04L'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04H'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04P'))then
return true
endif
return false
endfunction
function Trig_tZ_Func009C takes nothing returns boolean
if(not Trig_tZ_Func009Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04L')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04H')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04P')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func010Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I04J'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04R'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04N'))then
return true
endif
return false
endfunction
function Trig_tZ_Func010C takes nothing returns boolean
if(not Trig_tZ_Func010Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04J')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04R')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04N')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func011Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I04I'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04O'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04K'))then
return true
endif
return false
endfunction
function Trig_tZ_Func011C takes nothing returns boolean
if(not Trig_tZ_Func011Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04I')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04O')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04K')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func012Func005C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I04Q'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04M'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04G'))then
return true
endif
return false
endfunction
function Trig_tZ_Func012C takes nothing returns boolean
if(not Trig_tZ_Func012Func005C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04Q')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04M')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04G')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func013C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I062'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I062')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func014C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I061'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I061')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func015C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I060'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I060')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Func016C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05Z'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Z')==true))then
return false
endif
return true
endfunction
function Trig_tZ_Actions takes nothing returns nothing
if(Trig_tZ_Func001C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02Y',false)
call UnitAddAbility(GetTriggerUnit(),'A02Y')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了混元套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func002C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02U',false)
call UnitAddAbility(GetTriggerUnit(),'A02U')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了神武套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func003C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02W',false)
call UnitAddAbility(GetTriggerUnit(),'A02W')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了勇者套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func004C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02V',false)
call UnitAddAbility(GetTriggerUnit(),'A02V')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了天幻套装,隐藏属性已经被激活!现在可以发动套装技能流光异彩|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func005C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A030',false)
call UnitAddAbility(GetTriggerUnit(),'A030')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了不动冥王套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func006C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02T',false)
call UnitAddAbility(GetTriggerUnit(),'A02T')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了天怒套装,隐藏属性已经被激活!现在可以发动套装技能天怒惊雷|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func007C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02X',false)
call UnitAddAbility(GetTriggerUnit(),'A02X')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了火影套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func008C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02Z',false)
call UnitAddAbility(GetTriggerUnit(),'A02Z')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了幻影套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func009C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05Q',false)
call UnitAddAbility(GetTriggerUnit(),'A05Q')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了朱雀套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func010C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05S',false)
call UnitAddAbility(GetTriggerUnit(),'A05S')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了玄武套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func011C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05P',false)
call UnitAddAbility(GetTriggerUnit(),'A05P')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了白虎套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func012C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A05R',false)
call UnitAddAbility(GetTriggerUnit(),'A05R')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了青龙套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func013C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A098',false)
call UnitAddAbility(GetTriggerUnit(),'A098')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了朱雀套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func014C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A099',false)
call UnitAddAbility(GetTriggerUnit(),'A099')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了玄武套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func015C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A096',false)
call UnitAddAbility(GetTriggerUnit(),'A096')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了白虎套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
if(Trig_tZ_Func016C())then
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A097',false)
call UnitAddAbility(GetTriggerUnit(),'A097')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00恭喜你集合了青龙套装,隐藏属性已经被激活!|r"))
else
call DoNothing()
endif
endfunction
function Trig_tZ2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func001Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02E'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02A'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02Q'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func001C takes nothing returns boolean
if(not Trig_tZ2_Func001Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02E')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02A')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02Q')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func002Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02D'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02B'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02S'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func002C takes nothing returns boolean
if(not Trig_tZ2_Func002Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02D')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02B')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02S')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func003Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02I'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02O'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02C'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func003C takes nothing returns boolean
if(not Trig_tZ2_Func003Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02I')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02O')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02C')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func004Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02H'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02N'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I027'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func004C takes nothing returns boolean
if(not Trig_tZ2_Func004Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02H')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02N')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I027')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func005Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02K'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02P'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I025'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func005C takes nothing returns boolean
if(not Trig_tZ2_Func005Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02K')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02P')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I025')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func006Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02G'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02M'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I028'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func006C takes nothing returns boolean
if(not Trig_tZ2_Func006Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02M')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I028')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func007Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02J'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02R'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I026'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func007C takes nothing returns boolean
if(not Trig_tZ2_Func007Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02J')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02R')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I026')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func008Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I02F'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I029'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I02L'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func008C takes nothing returns boolean
if(not Trig_tZ2_Func008Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02F')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I029')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02L')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func009Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I04L'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04H'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04P'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func009C takes nothing returns boolean
if(not Trig_tZ2_Func009Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04L')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04H')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04P')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func010Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I04J'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04R'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04N'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func010C takes nothing returns boolean
if(not Trig_tZ2_Func010Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04J')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04R')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04N')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func011Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I04I'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04O'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04K'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func011C takes nothing returns boolean
if(not Trig_tZ2_Func011Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04I')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04O')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04K')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func012Func004C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I04Q'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04M'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I04G'))then
return true
endif
return false
endfunction
function Trig_tZ2_Func012C takes nothing returns boolean
if(not Trig_tZ2_Func012Func004C())then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04Q')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04M')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I04G')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func013C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I062'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I062')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func014C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I061'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I061')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func015C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I060'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I060')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Func016C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05Z'))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I05Z')==true))then
return false
endif
return true
endfunction
function Trig_tZ2_Actions takes nothing returns nothing
if(Trig_tZ2_Func001C())then
call UnitRemoveAbility(GetTriggerUnit(),'A02Y')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00混元套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func002C())then
call UnitRemoveAbility(GetTriggerUnit(),'A02U')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00神武套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func003C())then
call UnitRemoveAbility(GetTriggerUnit(),'A02W')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00勇者套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func004C())then
call UnitRemoveAbility(GetTriggerUnit(),'A02V')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00天幻套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func005C())then
call UnitRemoveAbility(GetTriggerUnit(),'A030')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00不动冥王套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func006C())then
call UnitRemoveAbility(GetTriggerUnit(),'A02T')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00天怒套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func007C())then
call UnitRemoveAbility(GetTriggerUnit(),'A02X')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00火影套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func008C())then
call UnitRemoveAbility(GetTriggerUnit(),'A02Z')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00幻影套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func009C())then
call UnitRemoveAbility(GetTriggerUnit(),'A05Q')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00朱雀套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func010C())then
call UnitRemoveAbility(GetTriggerUnit(),'A05S')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00玄武套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func011C())then
call UnitRemoveAbility(GetTriggerUnit(),'A05P')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00白虎套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func012C())then
call UnitRemoveAbility(GetTriggerUnit(),'A05R')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00青龙套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func013C())then
call UnitRemoveAbility(GetTriggerUnit(),'A098')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00朱雀套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func014C())then
call UnitRemoveAbility(GetTriggerUnit(),'A099')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00玄武套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func015C())then
call UnitRemoveAbility(GetTriggerUnit(),'A096')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00白虎套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
if(Trig_tZ2_Func016C())then
call UnitRemoveAbility(GetTriggerUnit(),'A097')
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+" |cff00ff00青龙套装隐藏属性已经消失!|r"))
else
call DoNothing()
endif
endfunction
function Trig_tnjl_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03A'))then
return false
endif
return true
endfunction
function Trig_tnjl_Func001Func004001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_tnjl_Func001Func004001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_tnjl_Func001Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_tnjl_Func001Func004001003001(),Trig_tnjl_Func001Func004001003002())
endfunction
function Trig_tnjl_Func001Func004A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_tnjl_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02G')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02M')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I028')==true))then
return false
endif
return true
endfunction
function Trig_tnjl_Actions takes nothing returns nothing
if(Trig_tnjl_Func001C())then
set udg_location02=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00B',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location02,GetRandomReal(1.00,80.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location02,Condition(function Trig_tnjl_Func001Func004001003)),function Trig_tnjl_Func001Func004A)
call RemoveLocation(udg_location02)
else
call DoNothing()
endif
endfunction
function Trig_lgyc_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03H'))then
return false
endif
return true
endfunction
function Trig_lgyc_Func002Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_lgyc_Func002Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_lgyc_Func002Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lgyc_Func002Func003001003001(),Trig_lgyc_Func002Func003001003002())
endfunction
function Trig_lgyc_Func002Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))*10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_lgyc_Func002C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02H')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02N')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I027')==true))then
return false
endif
return true
endfunction
function Trig_lgyc_Actions takes nothing returns nothing
set udg_location03=GetSpellTargetLoc()
if(Trig_lgyc_Func002C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e004',GetOwningPlayer(GetTriggerUnit()),udg_location03,bj_UNIT_FACING)
call SetUnitFlyHeight(GetLastCreatedUnit(),1000.00,1000000000.00)
call UnitApplyTimedLifeBJ(5.00,'BTLF',GetLastCreatedUnit())
call IssuePointOrderLoc(GetLastCreatedUnit(),"clusterrockets",PolarProjectionBJ(udg_location03,GetRandomReal(1.00,300.00),GetRandomDirectionDeg()))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location03,Condition(function Trig_lgyc_Func002Func003001003)),function Trig_lgyc_Func002Func003A)
call RemoveLocation(udg_location03)
else
call DoNothing()
endif
endfunction
function Trig_baihu1_Func001Func004Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04I')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04O')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04K')==true))then
return false
endif
return true
endfunction
function Trig_baihu1_Func001Func004C takes nothing returns boolean
if(Trig_baihu1_Func001Func004Func001C())then
return true
endif
if((UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I060')==true))then
return true
endif
return false
endfunction
function Trig_baihu1_Func001C takes nothing returns boolean
if(not(IsUnitIllusionBJ(GetAttackedUnitBJ())==false))then
return false
endif
if(not(GetRandomInt(1,100)==50))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetAttackedUnitBJ()))==true))then
return false
endif
if(not Trig_baihu1_Func001Func004C())then
return false
endif
return true
endfunction
function Trig_baihu1_Actions takes nothing returns nothing
if(Trig_baihu1_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
set udg_locations07[1]=GetUnitLoc(GetAttackedUnitBJ())
call CreateNUnitsAtLocFacingLocBJ(1,'O005',GetOwningPlayer(GetAttackedUnitBJ()),udg_locations07[1],GetUnitLoc(GetAttacker()))
set udg_units18[1]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call IssueImmediateOrder(GetLastCreatedUnit(),"howlofterror")
call SetHeroStr(GetLastCreatedUnit(),(GetHeroStatBJ(bj_HEROSTAT_STR,GetAttackedUnitBJ(),true)*5),true)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetAttackedUnitBJ()),17.00)
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetAttackedUnitBJ()))
call IssueTargetOrder(udg_units18[1],"attack",GetAttacker())
call RemoveLocation(udg_locations07[1])
call TriggerSleepAction(7.00)
call RemoveUnit(udg_units18[1])
set udg_units18[1]=null
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_xuanwu_Func001Func004Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04J')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04R')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04N')==true))then
return false
endif
return true
endfunction
function Trig_xuanwu_Func001Func004C takes nothing returns boolean
if(Trig_xuanwu_Func001Func004Func001C())then
return true
endif
if((UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I061')==true))then
return true
endif
return false
endfunction
function Trig_xuanwu_Func001C takes nothing returns boolean
if(not(IsUnitIllusionBJ(GetAttackedUnitBJ())==false))then
return false
endif
if(not(GetRandomInt(1,100)==50))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetAttackedUnitBJ()))==true))then
return false
endif
if(not Trig_xuanwu_Func001Func004C())then
return false
endif
return true
endfunction
function Trig_xuanwu_Actions takes nothing returns nothing
if(Trig_xuanwu_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
set udg_locations07[2]=GetUnitLoc(GetAttackedUnitBJ())
call CreateNUnitsAtLocFacingLocBJ(1,'O006',GetOwningPlayer(GetAttackedUnitBJ()),udg_locations07[2],GetUnitLoc(GetAttacker()))
set udg_units18[2]=GetLastCreatedUnit()
call SetHeroStr(GetLastCreatedUnit(),(GetHeroStatBJ(bj_HEROSTAT_STR,GetAttackedUnitBJ(),true)*5),true)
call IssueTargetOrder(GetLastCreatedUnit(),"attack",GetAttacker())
call RemoveLocation(udg_locations07[2])
call TriggerSleepAction(10.00)
call RemoveUnit(udg_units18[2])
set udg_units18[2]=null
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_qinglong_Func001Func004Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04Q')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04M')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04G')==true))then
return false
endif
return true
endfunction
function Trig_qinglong_Func001Func004C takes nothing returns boolean
if(Trig_qinglong_Func001Func004Func001C())then
return true
endif
if((UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I05Z')==true))then
return true
endif
return false
endfunction
function Trig_qinglong_Func001C takes nothing returns boolean
if(not(IsUnitIllusionBJ(GetAttackedUnitBJ())==false))then
return false
endif
if(not(GetRandomInt(1,100)==50))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetAttackedUnitBJ()))==true))then
return false
endif
if(not Trig_qinglong_Func001Func004C())then
return false
endif
return true
endfunction
function Trig_qinglong_Actions takes nothing returns nothing
if(Trig_qinglong_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
set udg_locations07[3]=GetUnitLoc(GetAttackedUnitBJ())
call CreateNUnitsAtLocFacingLocBJ(1,'e00V',GetOwningPlayer(GetAttackedUnitBJ()),udg_locations07[3],GetUnitLoc(GetAttacker()))
set udg_units18[3]=GetLastCreatedUnit()
call IssueImmediateOrder(GetLastCreatedUnit(),"tranquility")
call RemoveLocation(udg_locations07[3])
call TriggerSleepAction(10.00)
call RemoveUnit(udg_units18[3])
set udg_units18[3]=null
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_zhuque_Func001Func003Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04L')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04H')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I04P')==true))then
return false
endif
return true
endfunction
function Trig_zhuque_Func001Func003C takes nothing returns boolean
if(Trig_zhuque_Func001Func003Func001C())then
return true
endif
if((UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I062')==true))then
return true
endif
return false
endfunction
function Trig_zhuque_Func001Func015001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zhuque_Func001Func015001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_zhuque_Func001Func015001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zhuque_Func001Func015001003001(),Trig_zhuque_Func001Func015001003002())
endfunction
function Trig_zhuque_Func001Func015A takes nothing returns nothing
call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,GetAttackedUnitBJ(),true))*10.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_zhuque_Func001C takes nothing returns boolean
if(not(IsUnitIllusionBJ(GetAttackedUnitBJ())==false))then
return false
endif
if(not(GetRandomInt(1,100)==50))then
return false
endif
if(not Trig_zhuque_Func001Func003C())then
return false
endif
return true
endfunction
function Trig_zhuque_Actions takes nothing returns nothing
if(Trig_zhuque_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
set udg_locations07[4]=GetUnitLoc(GetAttacker())
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetAttackedUnitBJ()),udg_locations07[4],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssuePointOrderLoc(GetLastCreatedUnit(),"flamestrike",udg_locations07[4])
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'h00M',GetOwningPlayer(GetAttackedUnitBJ()),udg_locations07[4],bj_UNIT_FACING)
set udg_units18[4]=GetLastCreatedUnit()
call SetUnitFlyHeight(udg_units18[4],2000.00,600.00)
call EnableTrigger(udg_trigger398)
call TriggerSleepAction(0.10)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_locations07[4],Condition(function Trig_zhuque_Func001Func015001003)),function Trig_zhuque_Func001Func015A)
call RemoveLocation(udg_locations07[4])
call TriggerSleepAction(1.90)
call DisableTrigger(udg_trigger398)
call RemoveUnit(udg_units18[4])
set udg_units18[4]=null
set udg_real06=0.00
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_zhuque2_Actions takes nothing returns nothing
set udg_real06=(udg_real06+5.00)
call SetUnitFacing(udg_units18[4],udg_real06)
endfunction
function Trig_LG1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetManipulatedItem())=='I01V'))then
return false
endif
return true
endfunction
function Trig_LG1_Actions takes nothing returns nothing
set udg_locations03[1]=GetRectCenter(udg_rect12)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations03[1])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations03[1],0)
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+":enters the Training Room"))
call RemoveLocation(udg_locations03[1])
call EnableTrigger(udg_trigger400)
endfunction
function Trig_LG2_Func002C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectOfPlayer(udg_rect12,Player(11)))<=1))then
return false
endif
return true
endfunction
function Trig_LG2_Actions takes nothing returns nothing
set udg_locations03[2]=GetRectCenter(udg_rect12)
if(Trig_LG2_Func002C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,udg_integers03[udg_integer08],Player(11),udg_locations03[2],0.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
call RemoveLocation(udg_locations03[2])
endfunction
function Trig_boosF1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetManipulatedItem())=='I01W'))then
return false
endif
return true
endfunction
function Trig_boosF1_Actions takes nothing returns nothing
set udg_locations03[3]=GetRectCenter(udg_rect13)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations03[3])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations03[3],0)
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+":enters the Training Room"))
call RemoveLocation(udg_locations03[3])
call EnableTrigger(udg_trigger402)
endfunction
function Trig_bossF2_Func002C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRectOfPlayer(udg_rect13,Player(11)))<=1))then
return false
endif
return true
endfunction
function Trig_bossF2_Actions takes nothing returns nothing
set udg_locations03[4]=GetRectCenter(udg_rect13)
if(Trig_bossF2_Func002C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,udg_integers03[udg_integer08],Player(11),udg_locations03[4],0.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
call RemoveLocation(udg_locations03[4])
endfunction
function Trig_juedou1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01K'))then
return false
endif
return true
endfunction
function Trig_juedou1_Func001C takes nothing returns boolean
if(not(udg_boolean01==false))then
return false
endif
if(not(udg_boolean02==false))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetSpellTargetUnit()))!=MAP_CONTROL_COMPUTER))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetSpellTargetUnit()))!=MAP_CONTROL_NEUTRAL))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetSpellTargetUnit()))!=MAP_CONTROL_CREEP))then
return false
endif
if(not(GetOwningPlayer(GetSpellTargetUnit())!=Player(10)))then
return false
endif
if(not(GetOwningPlayer(GetSpellTargetUnit())!=Player(11)))then
return false
endif
if(not(IsUnitType(GetSpellTargetUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitPausedBJ(GetSpellTargetUnit())!=true))then
return false
endif
if(not(GetUnitTypeId(GetSpellTargetUnit())!='Hamg'))then
return false
endif
if(not(GetUnitTypeId(GetSpellTargetUnit())!='H007'))then
return false
endif
return true
endfunction
function Trig_juedou1_Actions takes nothing returns nothing
if(Trig_juedou1_Func001C())then
set udg_boolean01=true
set udg_units11[1]=GetTriggerUnit()
set udg_units11[2]=GetSpellTargetUnit()
set udg_players01[1]=GetOwningPlayer(udg_units11[1])
set udg_players01[2]=GetOwningPlayer(udg_units11[2])
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_units11[1]))+("|cFF18530Einvites|r"+(GetPlayerName(GetOwningPlayer(udg_units11[2]))+"|cFF18530Eto a PvP|r"))))
call DialogSetMessage(udg_dialog01,"TRIGSTR_1512")
call DialogAddButtonBJ(udg_dialog01,"Accept Duel")
set udg_button01=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog01,"Reject Duel")
set udg_button02=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog01,GetOwningPlayer(udg_units11[2]))
else
call DisplayTimedTextToForce(GetPlayersByMapControl(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))),20.00,"TRIGSTR_1511")
endif
endfunction
function Trig_juedou2_Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button01))then
return false
endif
return true
endfunction
function Trig_juedou2_Actions takes nothing returns nothing
if(Trig_juedou2_Func001C())then
call DialogClear(udg_dialog01)
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetOwningPlayer(udg_units11[2]))+"accepted the duel,The winner will receive 2000 gold and 1 lumber as a reward. The duel begins now!"))
call SetUnitPositionLocFacingLocBJ(udg_units11[1],GetRectCenter(udg_rect09),GetRectCenter(udg_rect08))
call CreateNUnitsAtLocFacingLocBJ(5,'hcth',GetOwningPlayer(udg_units11[1]),GetRectCenter(udg_rect09),GetRectCenter(udg_rect08))
call DestroyGroup(GetLastCreatedGroup())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units11[1]),GetRectCenter(udg_rect09),0.50)
call SetUnitPositionLocFacingLocBJ(udg_units11[2],GetRectCenter(udg_rect08),GetRectCenter(udg_rect09))
call CreateNUnitsAtLocFacingLocBJ(5,'hcth',GetOwningPlayer(udg_units11[2]),GetRectCenter(udg_rect08),GetRectCenter(udg_rect09))
call DestroyGroup(GetLastCreatedGroup())
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units11[2]),GetRectCenter(udg_rect08),0.50)
call SetPlayerAllianceStateBJ(udg_players01[1],udg_players01[2],bj_ALLIANCE_UNALLIED)
call SetPlayerAllianceStateBJ(udg_players01[2],udg_players01[1],bj_ALLIANCE_UNALLIED)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units11[GetForLoopIndexA()],100)
call SetUnitManaPercentBJ(udg_units11[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call StartTimerBJ(udg_timer02,false,120.00)
call CreateTimerDialogBJ(GetLastCreatedTimerBJ(),"TRIGSTR_1515")
call TimerDialogDisplayBJ(true,GetLastCreatedTimerDialogBJ())
set udg_timerdialog02=GetLastCreatedTimerDialogBJ()
call EnableTrigger(udg_trigger405)
call EnableTrigger(udg_trigger406)
else
call DialogClear(udg_dialog01)
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetOwningPlayer(udg_units11[2]))+"rejected the duel"))
set udg_boolean01=false
endif
endfunction
function Trig_juedou3_Func011C takes nothing returns boolean
if((GetTriggerUnit()==udg_units11[1]))then
return true
endif
if((GetTriggerUnit()==udg_units11[2]))then
return true
endif
return false
endfunction
function Trig_juedou3_Conditions takes nothing returns boolean
if(not Trig_juedou3_Func011C())then
return false
endif
if(not(udg_boolean01==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_juedou3_Func004C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units11[2]))then
return false
endif
return true
endfunction
function Trig_juedou3_Func007001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_juedou3_Func007002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_juedou3_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog02)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger406)
if(Trig_juedou3_Func004C())then
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetOwningPlayer(udg_units11[2]))+("has defeated"+(GetPlayerName(GetOwningPlayer(udg_units11[1]))+"in a duel and obtained Wave x500 gold、and all stats +5 as a reward"))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units11[1],bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units11[1],bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units11[1],bj_MODIFYMETHOD_ADD,5)
call AdjustPlayerStateBJ((500*udg_integer08),GetOwningPlayer(udg_units11[1]),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(-2000,GetOwningPlayer(udg_units11[2]),PLAYER_STATE_RESOURCE_GOLD)
call SetPlayerAllianceStateBJ(udg_players01[1],udg_players01[2],bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(udg_players01[2],udg_players01[1],bj_ALLIANCE_ALLIED_VISION)
else
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetOwningPlayer(udg_units11[1]))+("has defeated"+(GetPlayerName(GetOwningPlayer(udg_units11[2]))+"in a duel and obtained Wave x500 gold、and all stats +5 as a reward"))))
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units11[2],bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units11[2],bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units11[2],bj_MODIFYMETHOD_ADD,5)
call AdjustPlayerStateBJ((500*udg_integer08),GetOwningPlayer(udg_units11[2]),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(-2000,GetOwningPlayer(udg_units11[1]),PLAYER_STATE_RESOURCE_GOLD)
call SetPlayerAllianceStateBJ(udg_players01[1],udg_players01[2],bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(udg_players01[2],udg_players01[1],bj_ALLIANCE_ALLIED_VISION)
endif
call TriggerSleepAction(5.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLoc(udg_units11[GetForLoopIndexA()],GetRectCenter(udg_rect03))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units11[GetForLoopIndexA()]),GetUnitLoc(udg_units11[GetForLoopIndexA()]),0.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectMatching(udg_rect07,Condition(function Trig_juedou3_Func007001002)),function Trig_juedou3_Func007002)
set udg_units11[1]=null
set udg_units11[2]=null
set udg_boolean01=false
endfunction
function Trig_juedou4_Func013C takes nothing returns boolean
if((GetTriggerUnit()==udg_units11[1]))then
return true
endif
if((GetTriggerUnit()==udg_units11[2]))then
return true
endif
return false
endfunction
function Trig_juedou4_Conditions takes nothing returns boolean
if(not Trig_juedou4_Func013C())then
return false
endif
return true
endfunction
function Trig_juedou4_Func004001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_juedou4_Func004002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_juedou4_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog02)
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger405)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect07,Condition(function Trig_juedou4_Func004001002)),function Trig_juedou4_Func004002)
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+"has escaped from a duel"))
call SetPlayerAllianceStateBJ(udg_players01[2],udg_players01[1],bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(udg_players01[1],udg_players01[2],bj_ALLIANCE_ALLIED_VISION)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLoc(udg_units11[GetForLoopIndexA()],GetRectCenter(udg_rect03))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units11[GetForLoopIndexA()]),GetUnitLoc(udg_units11[GetForLoopIndexA()]),0.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.10)
set udg_units11[1]=null
set udg_units11[2]=null
set udg_boolean01=false
endfunction
function Trig_juedou5_Conditions takes nothing returns boolean
if(not(udg_boolean01==true))then
return false
endif
return true
endfunction
function Trig_juedou5_Func007001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)!=true)
endfunction
function Trig_juedou5_Func007002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_juedou5_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog02)
call SetPlayerAllianceStateBJ(udg_players01[2],udg_players01[1],bj_ALLIANCE_ALLIED_VISION)
call SetPlayerAllianceStateBJ(udg_players01[1],udg_players01[2],bj_ALLIANCE_ALLIED_VISION)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLoc(udg_units11[GetForLoopIndexA()],GetRectCenter(udg_rect03))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units11[GetForLoopIndexA()]),GetUnitLoc(udg_units11[GetForLoopIndexA()]),0.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(udg_trigger405)
call DisableTrigger(udg_trigger406)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect07,Condition(function Trig_juedou5_Func007001002)),function Trig_juedou5_Func007002)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_units11[1]))+("|cFF18530和|r"+(GetPlayerName(GetOwningPlayer(udg_units11[2]))+"|cFF18530EDuel time has ended,which resulted in a draw|r"))))
set udg_units11[1]=null
set udg_units11[2]=null
set udg_boolean01=false
endfunction
function Trig_juedou6_Func002Func003C takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_juedou6_Func002Func005C takes nothing returns boolean
if((GetOwningPlayer(GetTriggerUnit())==GetOwningPlayer(udg_units11[1])))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==GetOwningPlayer(udg_units11[2])))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_PASSIVE)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(10)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(11)))then
return true
endif
if((GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='npng'))then
return true
endif
return false
endfunction
function Trig_juedou6_Func002C takes nothing returns boolean
if(not Trig_juedou6_Func002Func005C())then
return false
endif
return true
endfunction
function Trig_juedou6_Actions takes nothing returns nothing
call TriggerSleepAction(0.20)
if(Trig_juedou6_Func002C())then
call DoNothing()
else
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect03))
call KillUnit(GetTriggerUnit())
if(Trig_juedou6_Func002Func003C())then
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+"attempted to enter the duel arena!The author executed him!"))
else
call DoNothing()
endif
endif
endfunction
function Trig_FYTSJ_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER))then
return false
endif
if(not(GetItemTypeId(GetManipulatedItem())=='I01U'))then
return false
endif
return true
endfunction
function Trig_FYTSJ_Func002Func001A takes nothing returns nothing
call SetPlayerTechResearchedSwap('R000',(udg_integer13+1),GetEnumPlayer())
endfunction
function Trig_FYTSJ_Func002C takes nothing returns boolean
if(not(udg_integer13>=25))then
return false
endif
return true
endfunction
function Trig_FYTSJ_Actions takes nothing returns nothing
set udg_integer13=GetPlayerTechCountSimple('R000',Player(9))
if(Trig_FYTSJ_Func002C())then
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"TRIGSTR_1516")
else
call ForForce(GetPlayersAllies(Player(9)),function Trig_FYTSJ_Func002Func001A)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+":Upgraded the Hokage's Hall,Reward: All Stats +10"))
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,10)
endif
endfunction
function Trig_boss1________4_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I03Z'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_boss1________4_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect61))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rect61),0)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+": Entered the Secret Cave. The Ultimate Item awaits!!"))
endfunction
function Trig_boss1_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I02Z'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_boss1_Actions takes nothing returns nothing
set udg_locations01[11]=GetRectCenter(udg_rect18)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations01[11])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations01[11],0)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+": Challenges the 3rd Hokage!"))
call RemoveLocation(udg_locations01[11])
endfunction
function Trig_boss1_______u_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I030'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_boss1_______u_Actions takes nothing returns nothing
set udg_locations01[12]=GetRectCenter(udg_rect19)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations01[12])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations01[12],0)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+": Challenges the 4th Hokage!"))
call RemoveLocation(udg_locations01[12])
endfunction
function Trig_boss1________2_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I02Y'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_boss1________2_Actions takes nothing returns nothing
set udg_locations01[13]=GetRectCenter(udg_rect20)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations01[13])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations01[13],0)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+": Challenges the 2nd Hokage!"))
call RemoveLocation(udg_locations01[13])
endfunction
function Trig_boss1________3_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I02X'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_boss1________3_Actions takes nothing returns nothing
set udg_locations01[14]=GetRectCenter(udg_rect21)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations01[14])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations01[14],0)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+": Challenges the 1st Hokage!"))
call RemoveLocation(udg_locations01[14])
endfunction
function Trig_boss1________3_______u_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06L'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_boss1________3_______u_Actions takes nothing returns nothing
set udg_locations28[3]=GetRectCenter(udg_rect88)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations28[3])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),0)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,(GetHeroProperName(GetTriggerUnit())+": Entered U9 Area!"))
call RemoveLocation(udg_locations28[3])
endfunction
function Trig_BOSS1_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit54))then
return false
endif
return true
endfunction
function Trig_BOSS1_Func004001 takes nothing returns boolean
return(GetRandomInt(1,15)==6)
endfunction
function Trig_BOSS1_Func005001 takes nothing returns boolean
return(GetRandomInt(1,10)==5)
endfunction
function Trig_BOSS1_Actions takes nothing returns nothing
set udg_locations01[15]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[15])
call CreateItemLoc(udg_integers07[GetRandomInt(2,5)],udg_locations01[15])
if(Trig_BOSS1_Func004001())then
call CreateItemLoc('I00Y',udg_locations01[15])
else
call DoNothing()
endif
if(Trig_BOSS1_Func005001())then
call CreateItemLoc('I04X',udg_locations01[15])
else
call DoNothing()
endif
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+"has been defeated! Wait 60 seconds for revival"))
call RemoveLocation(udg_locations01[15])
endfunction
function Trig_BOSS2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit45))then
return false
endif
return true
endfunction
function Trig_BOSS2_Func005001 takes nothing returns boolean
return(GetRandomInt(1,10)==5)
endfunction
function Trig_BOSS2_Func006001 takes nothing returns boolean
return(GetRandomInt(1,10)==5)
endfunction
function Trig_BOSS2_Actions takes nothing returns nothing
set udg_locations01[16]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[16])
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[16])
call CreateItemLoc(udg_integers07[GetRandomInt(2,5)],udg_locations01[16])
if(Trig_BOSS2_Func005001())then
call CreateItemLoc('I00Y',udg_locations01[16])
else
call DoNothing()
endif
if(Trig_BOSS2_Func006001())then
call CreateItemLoc('I04X',udg_locations01[16])
else
call DoNothing()
endif
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+"has been defeated!Wait 65 seconds for revival"))
call RemoveLocation(udg_locations01[16])
endfunction
function Trig_BOSS3_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit52))then
return false
endif
return true
endfunction
function Trig_BOSS3_Func006001 takes nothing returns boolean
return(GetRandomInt(1,7)==3)
endfunction
function Trig_BOSS3_Func007001 takes nothing returns boolean
return(GetRandomInt(1,10)==5)
endfunction
function Trig_BOSS3_Actions takes nothing returns nothing
set udg_locations01[17]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[17])
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[17])
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[17])
call CreateItemLoc(udg_integers07[GetRandomInt(6,9)],udg_locations01[17])
if(Trig_BOSS3_Func006001())then
call CreateItemLoc('I00Y',udg_locations01[17])
else
call DoNothing()
endif
if(Trig_BOSS3_Func007001())then
call CreateItemLoc('I04X',udg_locations01[17])
else
call DoNothing()
endif
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+"has been defeated!Wait 70 seconds for revival"))
call RemoveLocation(udg_locations01[17])
endfunction
function Trig_BOSS4_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit53))then
return false
endif
return true
endfunction
function Trig_BOSS4_Func007001 takes nothing returns boolean
return(GetRandomInt(1,5)==2)
endfunction
function Trig_BOSS4_Func008001 takes nothing returns boolean
return(GetRandomInt(1,10)==5)
endfunction
function Trig_BOSS4_Actions takes nothing returns nothing
set udg_locations01[18]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[18])
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[18])
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[18])
call CreateItemLoc(ChooseRandomItemExBJ(10,ITEM_TYPE_POWERUP),udg_locations01[18])
call CreateItemLoc(udg_integers07[GetRandomInt(6,9)],udg_locations01[18])
if(Trig_BOSS4_Func007001())then
call CreateItemLoc('I00Y',udg_locations01[18])
else
call DoNothing()
endif
if(Trig_BOSS4_Func008001())then
call CreateItemLoc('I04X',udg_locations01[18])
else
call DoNothing()
endif
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+"has been defeated!Wait 75 seconds for revival"))
call RemoveLocation(udg_locations01[18])
endfunction
function Trig_BOSS5_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit54))then
return false
endif
return true
endfunction
function Trig_BOSS5_Actions takes nothing returns nothing
call TriggerSleepAction(60.00)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect17),false)
call SetUnitManaPercentBJ(GetTriggerUnit(),100)
call SetUnitFacing(GetTriggerUnit(),180.00)
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+" has revived. Players who want better equips can go challenge him!"))
endfunction
function Trig_BOSS5_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit45))then
return false
endif
return true
endfunction
function Trig_BOSS5_______u_Actions takes nothing returns nothing
call TriggerSleepAction(60.00)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect16),false)
call SetUnitManaPercentBJ(GetTriggerUnit(),100)
call SetUnitFacing(GetTriggerUnit(),180.00)
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+" has revived. Players who want better equips can go challenge him!"))
endfunction
function Trig_BOSS5________2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit52))then
return false
endif
return true
endfunction
function Trig_BOSS5________2_Actions takes nothing returns nothing
call TriggerSleepAction(60.00)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect15),false)
call SetUnitManaPercentBJ(GetTriggerUnit(),100)
call SetUnitFacing(GetTriggerUnit(),180.00)
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+" has revived. Players who want better equips can go challenge him!"))
endfunction
function Trig_BOSS5________3_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit53))then
return false
endif
return true
endfunction
function Trig_BOSS5________3_Actions takes nothing returns nothing
call TriggerSleepAction(60.00)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect14),false)
call SetUnitManaPercentBJ(GetTriggerUnit(),100)
call SetUnitFacing(GetTriggerUnit(),180.00)
call DisplayTextToForce(GetPlayersAll(),(GetHeroProperName(GetTriggerUnit())+" has revived. Players who want better equips can go challenge him!"))
endfunction
function Trig_c1_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c1_Actions takes nothing returns nothing
set udg_locations04[1]=GetRectCenter(udg_rect35)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[1])
call RemoveLocation(udg_locations04[1])
endfunction
function Trig_c1_______u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c1_______u_Actions takes nothing returns nothing
set udg_locations04[2]=GetRectCenter(udg_rect29)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[2])
call RemoveLocation(udg_locations04[2])
endfunction
function Trig_c1________2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c1________2_Actions takes nothing returns nothing
set udg_locations04[3]=GetRectCenter(udg_rect33)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[3])
call RemoveLocation(udg_locations04[3])
endfunction
function Trig_c1________3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c1________3_Actions takes nothing returns nothing
set udg_locations04[4]=GetRectCenter(udg_rect32)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[4])
call RemoveLocation(udg_locations04[4])
endfunction
function Trig_c1________4_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c1________4_Actions takes nothing returns nothing
set udg_locations04[5]=GetRectCenter(udg_rect31)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[5])
call RemoveLocation(udg_locations04[5])
endfunction
function Trig_c1________5_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c1________5_Actions takes nothing returns nothing
set udg_locations04[6]=GetRectCenter(udg_rect34)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[6])
call RemoveLocation(udg_locations04[6])
endfunction
function Trig_c1________6_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c1________6_Actions takes nothing returns nothing
set udg_locations04[7]=GetRectCenter(udg_rect30)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[7])
call RemoveLocation(udg_locations04[7])
endfunction
function Trig_c2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c2_Actions takes nothing returns nothing
set udg_locations04[8]=GetRectCenter(udg_rect23)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[8])
call RemoveLocation(udg_locations04[8])
endfunction
function Trig_c2_______u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c2_______u_Actions takes nothing returns nothing
set udg_locations04[9]=GetRectCenter(udg_rect27)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[9])
call RemoveLocation(udg_locations04[9])
endfunction
function Trig_c2________2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c2________2_Actions takes nothing returns nothing
set udg_locations04[10]=GetRectCenter(udg_rect22)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[10])
call RemoveLocation(udg_locations04[10])
endfunction
function Trig_c2________3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c2________3_Actions takes nothing returns nothing
set udg_locations04[11]=GetRectCenter(udg_rect25)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[11])
call RemoveLocation(udg_locations04[11])
endfunction
function Trig_c2________4_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c2________4_Actions takes nothing returns nothing
set udg_locations04[12]=GetRectCenter(udg_rect26)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[12])
call RemoveLocation(udg_locations04[12])
endfunction
function Trig_c2________5_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c2________5_Actions takes nothing returns nothing
set udg_locations04[13]=GetRectCenter(udg_rect24)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[13])
call RemoveLocation(udg_locations04[13])
endfunction
function Trig_c2________6_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='e009'))then
return false
endif
return true
endfunction
function Trig_c2________6_Actions takes nothing returns nothing
set udg_locations04[14]=GetRectCenter(udg_rect28)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations04[14])
call RemoveLocation(udg_locations04[14])
endfunction
function Trig_c3_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_c3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations04[15]=GetRectCenter(udg_rect23)
set udg_locations04[16]=GetRectCenter(udg_rect35)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[15],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[16],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call RemoveLocation(udg_locations04[15])
call RemoveLocation(udg_locations04[16])
call TriggerSleepAction(60.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_c3_______u_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_c3_______u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations04[17]=GetRectCenter(udg_rect24)
set udg_locations04[18]=GetRectCenter(udg_rect34)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[17],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[18],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call RemoveLocation(udg_locations04[17])
call RemoveLocation(udg_locations04[18])
call TriggerSleepAction(60.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_c3________2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_c3________2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations04[19]=GetRectCenter(udg_rect22)
set udg_locations04[20]=GetRectCenter(udg_rect33)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[19],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[20],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call RemoveLocation(udg_locations04[19])
call RemoveLocation(udg_locations04[20])
call TriggerSleepAction(60.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_c3________3_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_c3________3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations04[21]=GetRectCenter(udg_rect25)
set udg_locations04[22]=GetRectCenter(udg_rect32)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[21],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[22],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call RemoveLocation(udg_locations04[21])
call RemoveLocation(udg_locations04[22])
call TriggerSleepAction(60.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_c3________4_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_c3________4_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations04[23]=GetRectCenter(udg_rect26)
set udg_locations04[24]=GetRectCenter(udg_rect31)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[23],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[24],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call RemoveLocation(udg_locations04[23])
call RemoveLocation(udg_locations04[24])
call TriggerSleepAction(60.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_c3________5_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_c3________5_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations04[25]=GetRectCenter(udg_rect27)
set udg_locations04[26]=GetRectCenter(udg_rect29)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[25],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[26],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call RemoveLocation(udg_locations04[25])
call RemoveLocation(udg_locations04[26])
call TriggerSleepAction(60.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_c3________6_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_c3________6_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_locations04[27]=GetRectCenter(udg_rect28)
set udg_locations04[28]=GetRectCenter(udg_rect30)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[27],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call CreateNUnitsAtLoc(1,'e009',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[28],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call RemoveLocation(udg_locations04[27])
call RemoveLocation(udg_locations04[28])
call TriggerSleepAction(60.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_hehe_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_hehe_Actions takes nothing returns nothing
set udg_locations04[29]=GetUnitLoc(GetTriggerUnit())
call KillUnit(GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+":accidentally activated the trap in the Secret Cave and has died!"))
call CreateNUnitsAtLoc(1,'e00A',Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations04[29],bj_UNIT_FACING)
call RemoveLocation(udg_locations04[29])
endfunction
function Trig_hlyd_______________2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AT'))then
return false
endif
return true
endfunction
function Trig_hlyd_______________2_Func008001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hlyd_______________2_Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units54[1]))==true)
endfunction
function Trig_hlyd_______________2_Func008001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd_______________2_Func008001003001(),Trig_hlyd_______________2_Func008001003002())
endfunction
function Trig_hlyd_______________2_Func008A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units54[1],GetEnumUnit(),20000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hlyd_______________2_Func016001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hlyd_______________2_Func016001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units54[1]))==true)
endfunction
function Trig_hlyd_______________2_Func016001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd_______________2_Func016001003001(),Trig_hlyd_______________2_Func016001003002())
endfunction
function Trig_hlyd_______________2_Func016A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units54[1],GetEnumUnit(),25000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hlyd_______________2_Func023001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_hlyd_______________2_Func023001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units54[1]))==true)
endfunction
function Trig_hlyd_______________2_Func023001003 takes nothing returns boolean
return GetBooleanAnd(Trig_hlyd_______________2_Func023001003001(),Trig_hlyd_______________2_Func023001003002())
endfunction
function Trig_hlyd_______________2_Func023A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units54[1],GetEnumUnit(),50000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_hlyd_______________2_Actions takes nothing returns nothing
set udg_units54[1]=GetTriggerUnit()
call CreateNUnitsAtLoc(1,'o00D',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),150.00,AngleBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())),GetUnitFacing(GetTriggerUnit()))
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(1.50,'BHwe',GetLastCreatedUnit())
set udg_units54[2]=GetLastCreatedUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(380.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_hlyd_______________2_Func008001003)),function Trig_hlyd_______________2_Func008A)
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'o00D',GetOwningPlayer(udg_units54[1]),PolarProjectionBJ(GetUnitLoc(udg_units54[2]),300.00,GetUnitFacing(udg_units54[2])),GetUnitFacing(udg_units54[2]))
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(1.50,'BHwe',GetLastCreatedUnit())
set udg_units54[3]=GetLastCreatedUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(380.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_hlyd_______________2_Func016001003)),function Trig_hlyd_______________2_Func016A)
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'o00D',GetOwningPlayer(udg_units54[1]),PolarProjectionBJ(GetUnitLoc(udg_units54[3]),300.00,GetUnitFacing(udg_units54[3])),GetUnitFacing(udg_units54[3]))
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call IssueImmediateOrder(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(1.50,'BHwe',GetLastCreatedUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(380.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_hlyd_______________2_Func023001003)),function Trig_hlyd_______________2_Func023A)
set udg_units54[3]=null
set udg_units54[2]=null
set udg_units54[1]=null
endfunction
function Trig_qn_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A069'))then
return false
endif
return true
endfunction
function Trig_qn_______u_Actions takes nothing returns nothing
set udg_units09[7]=GetTriggerUnit()
set udg_units09[8]=GetSpellTargetUnit()
call TriggerSleepAction(0.15)
call PauseUnitBJ(true,udg_units09[7])
call SetUnitPathing(udg_units09[7],false)
call SetUnitTimeScalePercent(udg_units09[7],400.00)
call SetUnitAnimation(GetTriggerUnit(),"spell therr")
call EnableTrigger(udg_trigger448)
call EnableTrigger(udg_trigger449)
endfunction
function Trig_qn2_______u_Func001Func012001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qn2_______u_Func001Func012001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_qn2_______u_Func001Func012001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_qn2_______u_Func001Func012001003001001(),Trig_qn2_______u_Func001Func012001003001002())
endfunction
function Trig_qn2_______u_Func001Func012001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[7]))==true)
endfunction
function Trig_qn2_______u_Func001Func012001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qn2_______u_Func001Func012001003001(),Trig_qn2_______u_Func001Func012001003002())
endfunction
function Trig_qn2_______u_Func001Func012A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units09[7],GetEnumUnit(),70000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_qn2_______u_Func001Func018C takes nothing returns boolean
if((IsUnitDeadBJ(udg_units09[8])==true))then
return true
endif
if((IsUnitInGroup(udg_units09[7],GetUnitsInRangeOfLocAll(100.00,GetUnitLoc(udg_units09[8])))==true))then
return true
endif
if((R2I(DistanceBetweenPoints(GetUnitLoc(udg_units09[7]),GetUnitLoc(udg_units09[8])))>1800))then
return true
endif
return false
endfunction
function Trig_qn2_______u_Func001C takes nothing returns boolean
if(not Trig_qn2_______u_Func001Func018C())then
return false
endif
return true
endfunction
function Trig_qn2_______u_Actions takes nothing returns nothing
if(Trig_qn2_______u_Func001C())then
call DisableTrigger(udg_trigger449)
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_units09[7],"spell four")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units09[7]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[8]),250.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[8]),480.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_units09[8]),Condition(function Trig_qn2_______u_Func001Func012001003)),function Trig_qn2_______u_Func001Func012A)
call SetUnitTimeScalePercent(udg_units09[7],100)
call SetUnitPathing(udg_units09[7],true)
call PauseUnitBJ(false,udg_units09[7])
set udg_units09[7]=null
set udg_units09[8]=null
else
call SetUnitPositionLocFacingLocBJ(udg_units09[7],PolarProjectionBJ(GetUnitLoc(udg_units09[7]),30.00,AngleBetweenPoints(GetUnitLoc(udg_units09[7]),GetUnitLoc(udg_units09[8]))),GetUnitLoc(udg_units09[8]))
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units09[7]),40.00,(AngleBetweenPoints(GetUnitLoc(udg_units09[7]),GetUnitLoc(udg_units09[8]))+90.00)),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_qn3_______u_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("left hand",udg_units09[7],"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("left hand",udg_units09[7],"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("left hand",udg_units09[7],"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_TZ________2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A080'))then
return false
endif
return true
endfunction
function Trig_TZ________2_Func001Func001C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit78))then
return false
endif
return true
endfunction
function Trig_TZ________2_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Eevi'))then
return false
endif
return true
endfunction
function Trig_TZ________2_Func008001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_TZ________2_Func008001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[15]))==true)
endfunction
function Trig_TZ________2_Func008001003 takes nothing returns boolean
return GetBooleanAnd(Trig_TZ________2_Func008001003001(),Trig_TZ________2_Func008001003002())
endfunction
function Trig_TZ________2_Func008A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[15],GetEnumUnit(),30000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_TZ________2_Func013001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_TZ________2_Func013001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_TZ________2_Func013001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_TZ________2_Func013001003001001(),Trig_TZ________2_Func013001003001002())
endfunction
function Trig_TZ________2_Func013001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[15]))==true)
endfunction
function Trig_TZ________2_Func013001003 takes nothing returns boolean
return GetBooleanAnd(Trig_TZ________2_Func013001003001(),Trig_TZ________2_Func013001003002())
endfunction
function Trig_TZ________2_Func013A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units07[15],GetEnumUnit(),60000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_TZ________2_Actions takes nothing returns nothing
if(Trig_TZ________2_Func001C())then
call PlaySoundBJ(udg_sound21)
else
if(Trig_TZ________2_Func001Func001C())then
call PlaySoundBJ(udg_sound33)
else
call DoNothing()
endif
endif
set udg_units07[15]=GetTriggerUnit()
set udg_units07[16]=GetSpellTargetUnit()
set udg_location22=GetUnitLoc(udg_units07[16])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00W',GetOwningPlayer(udg_units07[15]),PolarProjectionBJ(udg_location22,180.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00W',GetOwningPlayer(udg_units07[15]),PolarProjectionBJ(udg_location22,470.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.60)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location22,Condition(function Trig_TZ________2_Func008001003)),function Trig_TZ________2_Func008A)
call DestroyGroup(GetLastCreatedGroup())
call TriggerSleepAction(0.90)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e008',GetOwningPlayer(udg_units07[15]),PolarProjectionBJ(udg_location22,180.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'e008',GetOwningPlayer(udg_units07[15]),PolarProjectionBJ(udg_location22,230.00,(60.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e008',GetOwningPlayer(udg_units07[15]),PolarProjectionBJ(udg_location22,GetRandomReal(300.00,500.00),(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location22,Condition(function Trig_TZ________2_Func013001003)),function Trig_TZ________2_Func013A)
call DestroyGroup(GetLastCreatedGroup())
call RemoveLocation(udg_location22)
set udg_units07[15]=null
set udg_units07[16]=null
endfunction
function Trig_htcs_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06F'))then
return false
endif
return true
endfunction
function Trig_htcs_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound03)
call CreateNUnitsAtLoc(1,'Harf',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),256,GetRandomDirectionDeg()),GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(30.00,'BTLF',GetLastCreatedUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'Hart',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),256,GetRandomDirectionDeg()),GetUnitFacing(GetTriggerUnit()))
call UnitApplyTimedLifeBJ(30.00,'BTLF',GetLastCreatedUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_UFANSHU1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06D'))then
return false
endif
return true
endfunction
function Trig_UFANSHU1_Actions takes nothing returns nothing
set udg_unit12=GetTriggerUnit()
call SetUnitInvulnerable(udg_unit12,true)
call PauseUnitBJ(true,udg_unit12)
set udg_locations08[1]=GetUnitLoc(udg_unit12)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitVertexColorBJ(udg_unit12,100,100,100,(I2R(bj_forLoopAIndex)*15.00))
call CreateNUnitsAtLoc(1,'h00N',GetOwningPlayer(udg_unit12),udg_locations08[1],GetRandomReal(0.00,360.00))
call UnitApplyTimedLifeBJ(1.60,'BHwe',GetLastCreatedUnit())
call SetUnitFlyHeight(GetLastCreatedUnit(),GetRandomReal(100.00,600.00),500.00)
set udg_locations08[2]=PolarProjectionBJ(udg_locations08[1],1200.00,GetRandomReal(0,3600.00))
call IssuePointOrderLoc(GetLastCreatedUnit(),"move",udg_locations08[2])
call RemoveLocation(udg_locations08[2])
call TriggerSleepAction(0.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations08[1])
call ShowUnitHide(udg_unit12)
call TriggerSleepAction(1.00)
call ShowUnitShow(udg_unit12)
call SetUnitVertexColorBJ(udg_unit12,100,100,100,0.00)
call PauseUnitBJ(false,udg_unit12)
call SetUnitInvulnerable(udg_unit12,false)
set udg_unit12=null
endfunction
function Trig_UFANSHU2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='h00N'))then
return false
endif
return true
endfunction
function Trig_UFANSHU2_Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_UFANSHU2_Func003001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit12))==true)
endfunction
function Trig_UFANSHU2_Func003001003002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_UFANSHU2_Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_UFANSHU2_Func003001003002001(),Trig_UFANSHU2_Func003001003002002())
endfunction
function Trig_UFANSHU2_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_UFANSHU2_Func003001003001(),Trig_UFANSHU2_Func003001003002())
endfunction
function Trig_UFANSHU2_Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit12,GetEnumUnit(),70000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_UFANSHU2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetDyingUnit()),Condition(function Trig_UFANSHU2_Func003001003)),function Trig_UFANSHU2_Func003A)
call DestroyGroup(GetLastCreatedGroup())
endfunction
function Trig_lz_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03J'))then
return false
endif
return true
endfunction
function Trig_lz_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound08)
endfunction
function Trig_zsshu_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03K'))then
return false
endif
return true
endfunction
function Trig_zsshu_Actions takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetSpellTargetUnit(),50000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+100000.00))
endfunction
function Trig_wyzs_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04J'))then
return false
endif
return true
endfunction
function Trig_wyzs_Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_wyzs_Func002001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_wyzs_Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_wyzs_Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_wyzs_Func002001003002001(),Trig_wyzs_Func002001003002002())
endfunction
function Trig_wyzs_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_wyzs_Func002001003001(),Trig_wyzs_Func002001003002())
endfunction
function Trig_wyzs_Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),1000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_wyzs_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound13)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_wyzs_Func002001003)),function Trig_wyzs_Func002A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00K',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),GetRandomReal(1.00,600.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_BGKZ_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04B'))then
return false
endif
return true
endfunction
function Trig_BGKZ_______u_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=2
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CreateNUnitsAtLoc(1,'e00J',GetOwningPlayer(GetTriggerUnit()),GetRandomLocInRect(RectFromCenterSizeBJ(PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(30.00*I2R(GetForLoopIndexA())),GetUnitFacing(GetTriggerUnit())),100.00,100.00)),bj_UNIT_FACING)
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',5.00)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_BJ_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03G'))then
return false
endif
return true
endfunction
function Trig_BJ_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound02)
set udg_real13=0.00
set udg_units16[1]=GetTriggerUnit()
set udg_units16[2]=GetSpellTargetUnit()
set udg_locations06[1]=GetUnitLoc(udg_units16[2])
call SetUnitInvulnerable(udg_units16[1],true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLocFacingLocBJ(1,'e012',GetOwningPlayer(udg_units16[1]),PolarProjectionBJ(udg_locations06[1],350.00,(30.00*I2R(GetForLoopIndexA()))),GetUnitLoc(udg_units16[2]))
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100,100,80.00)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group05)
call CreateNUnitsAtLocFacingLocBJ(1,'e013',GetOwningPlayer(udg_units16[1]),PolarProjectionBJ(udg_locations06[1],350.00,(30.00*I2R(GetForLoopIndexA()))),GetUnitLoc(udg_units16[2]))
call SetUnitPathing(GetLastCreatedUnit(),false)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100,100,100,80.00)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group05)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnit(udg_units16[2],true)
call PauseUnit(udg_units16[1],true)
call EnableTrigger(udg_trigger460)
call TriggerSleepAction(0.85)
call DisableTrigger(udg_trigger460)
call UnitAddAbility(udg_units16[1],'A00L')
call UnitAddAbility(udg_units16[1],'Amrf')
call EnableTrigger(udg_trigger459)
endfunction
function Trig_BJ2_Func002Func012A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_BJ2_Func002C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units16[2])==true))then
return false
endif
if(not(udg_integer17<15))then
return false
endif
return true
endfunction
function Trig_BJ2_Actions takes nothing returns nothing
set udg_integer17=(udg_integer17+1)
if(Trig_BJ2_Func002C())then
call SetUnitPositionLocFacingLocBJ(udg_units16[1],PolarProjectionBJ(GetUnitLoc(udg_units16[2]),GetRandomReal(200.00,340.00),GetRandomDirectionDeg()),GetUnitLoc(udg_units16[2]))
call SetUnitFlyHeight(udg_units16[1],GetRandomReal(200.00,400.00),10000000.00)
call CreateNUnitsAtLocFacingLocBJ(1,'e00F',GetOwningPlayer(udg_units16[1]),GetUnitLoc(udg_units16[1]),GetUnitLoc(udg_units16[2]))
call SetUnitFlyHeight(GetLastCreatedUnit(),GetUnitFlyHeight(udg_units16[1]),10000000.00)
call UnitAddAbility(GetLastCreatedUnit(),'A07X')
call IssueTargetOrder(GetLastCreatedUnit(),"thunderbolt",udg_units16[2])
call UnitApplyTimedLife(GetLastCreatedUnit(),'BHwe',0.20)
call UnitDamageTargetBJ(udg_units16[1],udg_units16[2],I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units16[1],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call DisableTrigger(GetTriggeringTrigger())
set udg_integer17=0
set udg_real13=0.00
call SetUnitFlyHeight(udg_units16[1],0.00,10000.00)
call SetUnitPositionLoc(udg_units16[1],udg_locations06[1])
call RemoveLocation(udg_locations06[1])
call SetUnitInvulnerable(udg_units16[1],false)
call UnitRemoveAbilityBJ('Amrf',udg_units16[1])
call UnitRemoveAbilityBJ('A00L',udg_units16[1])
call PauseUnit(udg_units16[1],false)
call PauseUnit(udg_units16[2],false)
call ForGroupBJ(udg_group05,function Trig_BJ2_Func002Func012A)
set udg_units16[1]=null
set udg_units16[2]=null
endif
endfunction
function Trig_BJ8______________u_Func001A takes nothing returns nothing
set udg_real13=(udg_real13+0.11)
call SetUnitScalePercent(GetEnumUnit(),udg_real13,udg_real13,udg_real13)
endfunction
function Trig_BJ8______________u_Actions takes nothing returns nothing
call ForGroupBJ(udg_group05,function Trig_BJ8______________u_Func001A)
endfunction
function Trig_hhq_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03Q'))then
return false
endif
return true
endfunction
function Trig_hhq_Actions takes nothing returns nothing
set udg_reals01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=100.00
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_reals01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_reals01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+20.00)
call CreateNUnitsAtLoc(1,'n00D',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),(100.00+(20.00*I2R(GetForLoopIndexA()))),GetUnitFacing(GetTriggerUnit())),GetUnitFacing(GetTriggerUnit()))
call SetUnitScalePercent(GetLastCreatedUnit(),udg_reals01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],udg_reals01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))],udg_reals01[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
call UnitApplyTimedLifeBJ(0.50,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_zjzw_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03T'))then
return false
endif
return true
endfunction
function Trig_zjzw_Func004Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_zjzw_Func004Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit06))==true)
endfunction
function Trig_zjzw_Func004Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_zjzw_Func004Func003001003001(),Trig_zjzw_Func004Func003001003002())
endfunction
function Trig_zjzw_Func004Func003Func001C takes nothing returns boolean
if(not(GetRandomInt(1,2)==1))then
return false
endif
return true
endfunction
function Trig_zjzw_Func004Func003A takes nothing returns nothing
if(Trig_zjzw_Func004Func003Func001C())then
call UnitDamageTargetBJ(udg_unit06,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit06,true))*15.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
else
call UnitDamageTargetBJ(udg_unit06,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit06,true))*6.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endif
endfunction
function Trig_zjzw_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound14)
set udg_unit06=GetTriggerUnit()
call EnableTrigger(udg_trigger463)
set udg_integer16=1
loop
exitwhen udg_integer16>5
set udg_location08=GetUnitLoc(udg_unit06)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'u000',GetOwningPlayer(udg_unit06),PolarProjectionBJ(udg_location08,GetRandomReal(80.00,450.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),140.00)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_unit06),Condition(function Trig_zjzw_Func004Func003001003)),function Trig_zjzw_Func004Func003A)
call RemoveLocation(udg_location08)
call DestroyGroup(GetLastCreatedGroup())
call TriggerSleepAction(0.07)
set udg_integer16=udg_integer16+1
endloop
call DisableTrigger(udg_trigger463)
set udg_unit06=null
endfunction
function Trig_zjzw2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit06),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit06),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit06),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit06),GetRandomReal(100.00,300.00),GetRandomDirectionDeg()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_sczw1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03I'))then
return false
endif
return true
endfunction
function Trig_sczw1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound10)
set udg_units12[3]=GetTriggerUnit()
set udg_units12[4]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call SetUnitPathing(udg_units12[3],false)
set udg_integer14=1
loop
exitwhen udg_integer14>5
call SetUnitAnimationWithRarity(udg_units12[3],"Attack",RARITY_RARE)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units12[3]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLocFacingLocBJ(udg_units12[4],PolarProjectionBJ(GetUnitLoc(udg_units12[4]),50.00,GetUnitFacing(udg_units12[3])),GetUnitLoc(udg_units12[3]))
call SetUnitPositionLocFacingLocBJ(udg_units12[3],PolarProjectionBJ(GetUnitLoc(udg_units12[4]),90.00,GetUnitFacing(udg_units12[4])),GetUnitLoc(udg_units12[4]))
call UnitDamageTargetBJ(udg_units12[3],udg_units12[4],I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units12[3],true)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call TriggerSleepAction(0.00)
set udg_integer14=udg_integer14+1
endloop
set udg_real03=GetUnitFacing(GetTriggerUnit())
call SetUnitPathing(udg_units12[3],true)
call UnitDamageTargetBJ(udg_units12[3],udg_units12[4],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units12[3],true))*30.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units12[4]),200.00,200.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger465)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger465)
set udg_units12[3]=null
set udg_units12[4]=null
endfunction
function Trig_sczw2_Func006C takes nothing returns boolean
if(not(GetRandomInt(1,2)==1))then
return false
endif
return true
endfunction
function Trig_sczw2_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units12[4],PolarProjectionBJ(GetUnitLoc(udg_units12[4]),35.00,udg_real03))
call SetUnitPositionLoc(udg_units12[4],GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units12[4]),150.00,150.00)))
call CreateNUnitsAtLoc(1,'u000',GetOwningPlayer(udg_units12[3]),PolarProjectionBJ(GetUnitLoc(udg_units12[4]),GetRandomReal(1.00,160.00),GetRandomDirectionDeg()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
if(Trig_sczw2_Func006C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_sczw1_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03O'))then
return false
endif
return true
endfunction
function Trig_sczw1_______u_Actions takes nothing returns nothing
set udg_units12[1]=GetTriggerUnit()
set udg_units12[2]=GetSpellTargetUnit()
call TriggerSleepAction(0.10)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units12[2]),10.00)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units12[1]),10.00)
set udg_real04=GetUnitFacing(GetTriggerUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units12[2]),200.00,200.00)),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger467)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger467)
call UnitDamageTargetBJ(udg_units12[1],udg_units12[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units12[1],true))*12.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units12[1]))
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units12[2]))
set udg_units12[1]=null
set udg_units12[2]=null
endfunction
function Trig_sczw2_______u_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units12[2],PolarProjectionBJ(GetUnitLoc(udg_units12[2]),25.00,udg_real04))
call SetUnitPositionLoc(udg_units12[2],GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units12[2]),150.00,150.00)))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units12[2]),"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units12[2]),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units12[2]),"Abilities\\Spells\\Other\\Volcano\\VolcanoMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_sbsz_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03Z'))then
return false
endif
return true
endfunction
function Trig_sbsz_Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_sbsz_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_sbsz_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_sbsz_Func003001003001(),Trig_sbsz_Func003001003002())
endfunction
function Trig_sbsz_Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*10.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sbsz_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound09)
set udg_unit02=GetSpellTargetUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit02),Condition(function Trig_sbsz_Func003001003)),function Trig_sbsz_Func003A)
set udg_unit02=null
endfunction
function Trig_shouhezhimao1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03P'))then
return false
endif
return true
endfunction
function Trig_shouhezhimao1_Actions takes nothing returns nothing
set udg_units13[1]=GetTriggerUnit()
call CreateNUnitsAtLocFacingLocBJ(1,'u001',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),GetSpellTargetLoc())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
set udg_units13[2]=GetLastCreatedUnit()
call EnableTrigger(udg_trigger470)
endfunction
function Trig_shouhezhimao2_Func001Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_shouhezhimao2_Func001Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units13[2]))==true)
endfunction
function Trig_shouhezhimao2_Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_shouhezhimao2_Func001Func003001003001(),Trig_shouhezhimao2_Func001Func003001003002())
endfunction
function Trig_shouhezhimao2_Func001Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units13[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units13[1],true))*30.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_shouhezhimao2_Func001Func011001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_shouhezhimao2_Func001Func011001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units13[1]))==true)
endfunction
function Trig_shouhezhimao2_Func001Func011001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_shouhezhimao2_Func001Func011001001003001(),Trig_shouhezhimao2_Func001Func011001001003002())
endfunction
function Trig_shouhezhimao2_Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_units13[2])==false))then
return false
endif
if(not(IsUnitGroupEmptyBJ(GetUnitsInRangeOfLocMatching(125.00,GetUnitLoc(udg_units13[2]),Condition(function Trig_shouhezhimao2_Func001Func011001001003)))==true))then
return false
endif
return true
endfunction
function Trig_shouhezhimao2_Actions takes nothing returns nothing
if(Trig_shouhezhimao2_Func001C())then
call SetUnitPositionLoc(udg_units13[2],PolarProjectionBJ(GetUnitLoc(udg_units13[2]),32.00,GetUnitFacing(udg_units13[2])))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units13[2]),"Abilities\\Spells\\Other\\StrongDrink\\BrewmasterMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units13[2]),400.00,400.00)),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units13[2]),Condition(function Trig_shouhezhimao2_Func001Func003001003)),function Trig_shouhezhimao2_Func001Func003A)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units13[1]),20.00)
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units13[1]))
call RemoveUnit(udg_units13[2])
set udg_units13[1]=null
set udg_units13[2]=null
endif
endfunction
function Trig_tiehua_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03M'))then
return false
endif
return true
endfunction
function Trig_tiehua_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound22)
set udg_units09[9]=GetTriggerUnit()
set udg_units09[10]=GetSpellTargetUnit()
call SetUnitAnimation(GetTriggerUnit(),"spell attack")
call TriggerSleepAction(0.05)
call PauseUnitBJ(true,udg_units09[9])
call SetUnitPathing(udg_units09[9],false)
call SetUnitTimeScalePercent(udg_units09[9],500.00)
call UnitAddAbility(udg_units09[9],'A041')
call SetUnitAnimation(udg_units09[9],"Attack 2")
call EnableTrigger(udg_trigger472)
endfunction
function Trig_tiehua2_Func001Func001C takes nothing returns boolean
if((IsUnitDeadBJ(udg_units09[10])==true))then
return true
endif
if((IsUnitInGroup(udg_units09[9],GetUnitsInRangeOfLocAll(100.00,GetUnitLoc(udg_units09[10])))==true))then
return true
endif
if((R2I(DistanceBetweenPoints(GetUnitLoc(udg_units09[9]),GetUnitLoc(udg_units09[10])))>1400))then
return true
endif
return false
endfunction
function Trig_tiehua2_Func001Func010001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_tiehua2_Func001Func010001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[9]))==true)
endfunction
function Trig_tiehua2_Func001Func010001003 takes nothing returns boolean
return GetBooleanAnd(Trig_tiehua2_Func001Func010001003001(),Trig_tiehua2_Func001Func010001003002())
endfunction
function Trig_tiehua2_Func001Func010A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units09[9],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units09[9],true))*20.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_tiehua2_Func001C takes nothing returns boolean
if(not Trig_tiehua2_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_tiehua2_Actions takes nothing returns nothing
if(Trig_tiehua2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAnimation(udg_units09[9],"Attack")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units09[9]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units09[9]),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("overhead",udg_units09[9],"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units09[10]),Condition(function Trig_tiehua2_Func001Func010001003)),function Trig_tiehua2_Func001Func010A)
call SetUnitTimeScalePercent(udg_units09[9],100.00)
call SetUnitAnimation(udg_units09[9],"Attack")
call UnitRemoveAbility(udg_units09[9],'A041')
call SetUnitPathing(udg_units09[9],true)
call PauseUnitBJ(false,udg_units09[9])
set udg_units09[9]=null
set udg_units09[10]=null
else
call SetUnitPositionLocFacingLocBJ(udg_units09[9],PolarProjectionBJ(GetUnitLoc(udg_units09[9]),32.00,AngleBetweenPoints(GetUnitLoc(udg_units09[9]),GetUnitLoc(udg_units09[10]))),GetUnitLoc(udg_units09[10]))
endif
endfunction
function Trig_qssx_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03Y'))then
return false
endif
return true
endfunction
function Trig_qssx_Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_qssx_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_qssx_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_qssx_Func003001003001(),Trig_qssx_Func003001003002())
endfunction
function Trig_qssx_Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*15.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_qssx_Actions takes nothing returns nothing
set udg_location04=GetSpellTargetLoc()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(udg_location04,300.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitAddAbilityBJ('A042',GetLastCreatedUnit())
call IssuePointOrderLoc(GetLastCreatedUnit(),"clusterrockets",udg_location04)
call UnitApplyTimedLifeBJ(1.50,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location04,Condition(function Trig_qssx_Func003001003)),function Trig_qssx_Func003A)
call RemoveLocation(udg_location04)
endfunction
function Trig_ywsy_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03F'))then
return false
endif
return true
endfunction
function Trig_ywsy_Func005001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ywsy_Func005001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_ywsy_Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ywsy_Func005001003001(),Trig_ywsy_Func005001003002())
endfunction
function Trig_ywsy_Func005A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*12.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_ywsy_Actions takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()),30.00)
set udg_unit03=GetSpellTargetUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00C',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(udg_unit03),50.00,(30.00*I2R(GetForLoopIndexA()))),bj_UNIT_FACING)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),40.00)
call UnitApplyTimedLifeBJ(3.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_unit03),500.00,500.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit03),Condition(function Trig_ywsy_Func005001003)),function Trig_ywsy_Func005A)
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(GetTriggerUnit()))
endfunction
function Trig_fls_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03S'))then
return false
endif
return true
endfunction
function Trig_fls_Actions takes nothing returns nothing
set udg_unit04=GetTriggerUnit()
set udg_location05=GetSpellTargetLoc()
call CinematicFadeBJ(bj_CINEFADETYPE_FADEOUTIN,2.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",100.00,100.00,100.00,0)
call SetUnitTimeScalePercent(udg_unit04,400.00)
call EnableTrigger(udg_trigger476)
call TriggerSleepAction(1.00)
call SetUnitTimeScalePercent(udg_unit04,100.00)
call DisableTrigger(udg_trigger476)
set udg_unit04=null
call RemoveLocation(udg_location05)
endfunction
function Trig_fls2_Func001Func005001002003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_fls2_Func001Func005001002003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_fls2_Func001Func005001002003001 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_Func001Func005001002003001001(),Trig_fls2_Func001Func005001002003001002())
endfunction
function Trig_fls2_Func001Func005001002003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_fls2_Func001Func005001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_Func001Func005001002003001(),Trig_fls2_Func001Func005001002003002())
endfunction
function Trig_fls2_Func001Func005A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit04),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call SetUnitPositionLocFacingLocBJ(udg_unit04,GetUnitLoc(GetEnumUnit()),GetUnitLoc(GetEnumUnit()))
call SetUnitAnimation(udg_unit04,"attack")
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit04,true))*1.50),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
call CreateNUnitsAtLocFacingLocBJ(1,'e00C',GetOwningPlayer(udg_unit04),GetUnitLoc(udg_unit04),GetUnitLoc(udg_unit04))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),300.00)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call SetUnitAnimationWithRarity(GetLastCreatedUnit(),"attack",RARITY_RARE)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit04),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_fls2_Func001Func006001001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_fls2_Func001Func006001001003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_fls2_Func001Func006001001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_Func001Func006001001003001001(),Trig_fls2_Func001Func006001001003001002())
endfunction
function Trig_fls2_Func001Func006001001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_fls2_Func001Func006001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_fls2_Func001Func006001001003001(),Trig_fls2_Func001Func006001001003002())
endfunction
function Trig_fls2_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRangeOfLocMatching(400.00,udg_location05,Condition(function Trig_fls2_Func001Func006001001003)))==0))then
return false
endif
return true
endfunction
function Trig_fls2_Actions takes nothing returns nothing
if(Trig_fls2_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitTimeScalePercent(udg_unit04,100.00)
set udg_unit04=null
call RemoveLocation(udg_location05)
else
call ForGroupBJ(GetRandomSubGroup(1,GetUnitsInRangeOfLocMatching(400.00,udg_location05,Condition(function Trig_fls2_Func001Func005001002003))),function Trig_fls2_Func001Func005A)
endif
endfunction
function Trig_jglbd_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03L'))then
return false
endif
return true
endfunction
function Trig_jglbd_Func013001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jglbd_Func013001003002 takes nothing returns boolean
return(IsPlayerEnemy(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_jglbd_Func013001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jglbd_Func013001003001(),Trig_jglbd_Func013001003002())
endfunction
function Trig_jglbd_Func013A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*10.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_jglbd_Actions takes nothing returns nothing
set udg_units14[1]=GetTriggerUnit()
set udg_units14[2]=GetSpellTargetUnit()
set udg_location06=GetUnitLoc(GetTriggerUnit())
call UnitAddAbilityBJ('A00L',GetTriggerUnit())
call TriggerSleepAction(0.01)
call PauseUnitBJ(true,udg_units14[1])
call EnableTrigger(udg_trigger478)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger478)
call SetUnitPositionLoc(udg_units14[1],GetUnitLoc(udg_units14[2]))
call SetUnitAnimation(udg_units14[1],"attack")
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units14[1]),17.00)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units14[2]),Condition(function Trig_jglbd_Func013001003)),function Trig_jglbd_Func013A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units14[2]),300.00,200.00)),"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TerrainDeformationRippleBJ(2.00,false,GetUnitLoc(udg_units14[2]),300.00,1024,64,0.50,512)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=25
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00G',GetOwningPlayer(udg_units14[1]),GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_units14[2]),600.00,500.00)),bj_UNIT_FACING)
call UnitAddTypeBJ(UNIT_TYPE_UNDEAD,GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),2000.00)
call SetUnitAnimation(GetLastCreatedUnit(),"birth")
call UnitApplyTimedLifeBJ(4.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnitBJ(false,udg_units14[1])
call TriggerSleepAction(1.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units14[1]))
call SetUnitPositionLoc(udg_units14[1],udg_location06)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units14[1]),"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitRemoveAbilityBJ('A00L',GetTriggerUnit())
set udg_units14[1]=null
set udg_units14[2]=null
call RemoveLocation(udg_location06)
endfunction
function Trig_jglbd2_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units14[2],PolarProjectionBJ(GetUnitLoc(udg_units14[2]),25.00,GetUnitFacing(udg_units14[1])))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units14[2]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units14[2]),"Abilities\\Spells\\NightElf\\EntanglingRoots\\EntanglingRootsTarget.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_jgzm_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03U'))then
return false
endif
return true
endfunction
function Trig_jgzm_Func007001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_jgzm_Func007001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_jgzm_Func007001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_jgzm_Func007001003001001(),Trig_jgzm_Func007001003001002())
endfunction
function Trig_jgzm_Func007001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_jgzm_Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_jgzm_Func007001003001(),Trig_jgzm_Func007001003002())
endfunction
function Trig_jgzm_Func007A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*7.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Weapons\\SteamTank\\SteamTankImpact.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_jgzm_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'e00D',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth Large")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_jgzm_Func007001003)),function Trig_jgzm_Func007A)
endfunction
function Trig_dlys_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A040'))then
return false
endif
return true
endfunction
function Trig_dlys_Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_dlys_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_dlys_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_dlys_Func002001003001(),Trig_dlys_Func002001003002())
endfunction
function Trig_dlys_Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*10.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_dlys_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound04)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_dlys_Func002001003)),function Trig_dlys_Func002A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00F',GetOwningPlayer(GetTriggerUnit()),GetUnitLoc(GetTriggerUnit()),bj_UNIT_FACING)
call UnitAddAbilityBJ('A043',GetLastCreatedUnit())
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call IssuePointOrderLoc(GetLastCreatedUnit(),"carrionswarm",PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),200.00,GetUnitFacing(GetTriggerUnit())))
call TriggerSleepAction(0.01)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_szb_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03V'))then
return false
endif
return true
endfunction
function Trig_szb_Func002001003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_szb_Func002001003001002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==true)
endfunction
function Trig_szb_Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_szb_Func002001003001001(),Trig_szb_Func002001003001002())
endfunction
function Trig_szb_Func002001003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_szb_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_szb_Func002001003001(),Trig_szb_Func002001003002())
endfunction
function Trig_szb_Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))*10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_szb_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h009',GetOwningPlayer(GetTriggerUnit()),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),200.00,(18.00*I2R(GetForLoopIndexA()))),(18.00*I2R(GetForLoopIndexA())))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),600.00)
call SetUnitFlyHeight(GetLastCreatedUnit(),100.00,1000000000.00)
call UnitApplyTimedLifeBJ(2.00,'BTLF',GetLastCreatedUnit())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetTriggerUnit()),Condition(function Trig_szb_Func002001003)),function Trig_szb_Func002A)
endfunction
function Trig_szb2_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='h009'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='e012'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='h00V'))then
return true
endif
return false
endfunction
function Trig_szb2_Conditions takes nothing returns boolean
if(not Trig_szb2_Func001C())then
return false
endif
return true
endfunction
function Trig_szb2_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_slzs1_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03R'))then
return false
endif
return true
endfunction
function Trig_slzs1_Func006Func001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_slzs1_Func006Func001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit05))==true)
endfunction
function Trig_slzs1_Func006Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_slzs1_Func006Func001002003001(),Trig_slzs1_Func006Func001002003002())
endfunction
function Trig_slzs1_Func006Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit05,GetEnumUnit(),((I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_unit05,true))*10.00)/10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_slzs1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound12)
set udg_unit05=GetTriggerUnit()
set udg_location07=GetSpellTargetLoc()
call EnableTrigger(udg_trigger484)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h009',GetOwningPlayer(udg_unit05),PolarProjectionBJ(udg_location07,200.00,(18.00*I2R(GetForLoopIndexA()))),(18.00*I2R(GetForLoopIndexA())))
call SetUnitTimeScalePercent(GetLastCreatedUnit(),600.00)
call SetUnitFlyHeight(GetLastCreatedUnit(),100.00,1000000000.00)
call UnitApplyTimedLifeBJ(10.00,'BTLF',GetLastCreatedUnit())
call SetUnitPathing(GetLastCreatedUnit(),false)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer15=1
loop
exitwhen udg_integer15>10
set udg_groups01[1]=GetUnitsInRangeOfLocMatching(300.00,udg_location07,Condition(function Trig_slzs1_Func006Func001002003))
call ForGroupBJ(udg_groups01[1],function Trig_slzs1_Func006Func002A)
call GroupClear(udg_groups01[1])
call TriggerSleepAction(1.00)
set udg_integer15=udg_integer15+1
endloop
call DisableTrigger(udg_trigger484)
set udg_unit05=null
call RemoveLocation(udg_location07)
endfunction
function Trig_slzs2_Func001002003001001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_slzs2_Func001002003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())!='necr')
endfunction
function Trig_slzs2_Func001002003001 takes nothing returns boolean
return GetBooleanAnd(Trig_slzs2_Func001002003001001(),Trig_slzs2_Func001002003001002())
endfunction
function Trig_slzs2_Func001002003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_slzs2_Func001002003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit05))==true)
endfunction
function Trig_slzs2_Func001002003002 takes nothing returns boolean
return GetBooleanAnd(Trig_slzs2_Func001002003002001(),Trig_slzs2_Func001002003002002())
endfunction
function Trig_slzs2_Func001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_slzs2_Func001002003001(),Trig_slzs2_Func001002003002())
endfunction
function Trig_slzs2_Func002A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_location07)
endfunction
function Trig_slzs2_Actions takes nothing returns nothing
set udg_groups01[2]=GetUnitsInRangeOfLocMatching(300.00,udg_location07,Condition(function Trig_slzs2_Func001002003))
call ForGroupBJ(udg_groups01[2],function Trig_slzs2_Func002A)
call GroupClear(udg_groups01[2])
call DestroyGroup(udg_groups01[2])
endfunction
function Trig_XYLXW_______u_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03N'))then
return false
endif
return true
endfunction
function Trig_XYLXW_______u_Actions takes nothing returns nothing
set udg_units15[1]=GetTriggerUnit()
set udg_units15[2]=GetSpellTargetUnit()
call SetUnitAnimation(GetTriggerUnit(),"spell walk")
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call CreateNUnitsAtLocFacingLocBJ(1,'e00C',GetOwningPlayer(udg_units15[1]),PolarProjectionBJ(GetUnitLoc(udg_units15[2]),-128.00,GetUnitFacing(udg_units15[2])),GetUnitLoc(GetTriggerUnit()))
set udg_units15[3]=GetLastCreatedUnit()
call SetUnitPositionLocFacingBJ(udg_units15[1],GetUnitLoc(udg_units15[3]),GetUnitFacing(udg_units15[3]))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units15[2]),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units15[1],udg_units15[2],(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units15[1],true))*4.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call ShowUnitHide(udg_units15[3])
call EnableTrigger(udg_trigger486)
call TriggerSleepAction(0.80)
call DisableTrigger(udg_trigger486)
call RemoveUnit(udg_units15[3])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units15[3]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_XYLXW2_______u_Func001Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_XYLXW2_______u_Func001Func003001003002001 takes nothing returns boolean
return(GetFilterUnit()!=udg_units15[2])
endfunction
function Trig_XYLXW2_______u_Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units15[1]))==true)
endfunction
function Trig_XYLXW2_______u_Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_XYLXW2_______u_Func001Func003001003002001(),Trig_XYLXW2_______u_Func001Func003001003002002())
endfunction
function Trig_XYLXW2_______u_Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_XYLXW2_______u_Func001Func003001003001(),Trig_XYLXW2_______u_Func001Func003001003002())
endfunction
function Trig_XYLXW2_______u_Func001Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units15[1],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units15[1],true))*10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
endfunction
function Trig_XYLXW2_______u_Func001Func007001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_XYLXW2_______u_Func001Func007001001003002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units15[1]))==true)
endfunction
function Trig_XYLXW2_______u_Func001Func007001001003002002 takes nothing returns boolean
return(GetFilterUnit()!=udg_units15[2])
endfunction
function Trig_XYLXW2_______u_Func001Func007001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_XYLXW2_______u_Func001Func007001001003002001(),Trig_XYLXW2_______u_Func001Func007001001003002002())
endfunction
function Trig_XYLXW2_______u_Func001Func007001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_XYLXW2_______u_Func001Func007001001003001(),Trig_XYLXW2_______u_Func001Func007001001003002())
endfunction
function Trig_XYLXW2_______u_Func001C takes nothing returns boolean
if(not(IsUnitGroupEmptyBJ(GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(udg_units15[2]),Condition(function Trig_XYLXW2_______u_Func001Func007001001003)))==true))then
return false
endif
if(not(IsTerrainPathableBJ(GetUnitLoc(udg_units15[2]),PATHING_TYPE_WALKABILITY)!=true))then
return false
endif
return true
endfunction
function Trig_XYLXW2_______u_Actions takes nothing returns nothing
if(Trig_XYLXW2_______u_Func001C())then
call SetUnitPositionLocFacingBJ(udg_units15[2],PolarProjectionBJ(GetUnitLoc(udg_units15[2]),32.00,GetUnitFacing(udg_units15[3])),(GetUnitFacing(udg_units15[2])+20.00))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units15[2]),"Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
else
call DisableTrigger(GetTriggeringTrigger())
call RemoveUnit(udg_units15[3])
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(udg_units15[2]),Condition(function Trig_XYLXW2_______u_Func001Func003001003)),function Trig_XYLXW2_______u_Func001Func003A)
endif
endfunction
function Trig____________________002_Func007C takes nothing returns boolean
if((GetTriggerUnit()==udg_unit78))then
return true
endif
if((GetTriggerUnit()==udg_unit72))then
return true
endif
if((GetTriggerUnit()==udg_unit68))then
return true
endif
if((GetTriggerUnit()==udg_unit69))then
return true
endif
if((GetTriggerUnit()==udg_unit66))then
return true
endif
return false
endfunction
function Trig____________________002_Conditions takes nothing returns boolean
if(not Trig____________________002_Func007C())then
return false
endif
return true
endfunction
function Trig____________________002_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueTargetOrder(udg_unit66,"healingwave",GetTriggerUnit())
call IssueTargetOrder(udg_unit66,"rejuvination",GetTriggerUnit())
call IssueTargetOrder(udg_unit78,"forkedlightning",GetAttacker())
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_boss1d_Func001Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Harf'))then
return false
endif
return true
endfunction
function Trig_boss1d_Func001Func002C takes nothing returns boolean
if(not(DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetAttacker()))<=300.00))then
return false
endif
return true
endfunction
function Trig_boss1d_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Harf'))then
return false
endif
return true
endfunction
function Trig_boss1d_Actions takes nothing returns nothing
if(Trig_boss1d_Func001C())then
if(Trig_boss1d_Func001Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrder(GetTriggerUnit(),"battleroar")
call TriggerSleepAction(1.50)
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
if(Trig_boss1d_Func001Func001C())then
call IssueTargetOrder(GetTriggerUnit(),"thunderbolt",GetAttacker())
else
call DoNothing()
endif
endif
endfunction
function Trig_boss1d________3_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='Hpal'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hart'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Etyr'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H007'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H00J'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Eevi'))then
return true
endif
return false
endfunction
function Trig_boss1d________3_Conditions takes nothing returns boolean
if(not Trig_boss1d________3_Func001C())then
return false
endif
return true
endfunction
function Trig_boss1d________3_Func002C takes nothing returns boolean
if(not(DistanceBetweenPoints(GetUnitLoc(GetTriggerUnit()),GetUnitLoc(GetAttacker()))<=300.00))then
return false
endif
return true
endfunction
function Trig_boss1d________3_Actions takes nothing returns nothing
if(Trig_boss1d________3_Func002C())then
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrder(GetTriggerUnit(),"thunderclap")
call TriggerSleepAction(1.50)
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_boss1d________2_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='Hart'))then
return true
endif
if((GetTriggerUnit()==udg_unit54))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Emoo'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hpal'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Etyr'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H007'))then
return true
endif
if((GetTriggerUnit()==udg_unit80))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Eevi'))then
return true
endif
return false
endfunction
function Trig_boss1d________2_Conditions takes nothing returns boolean
if(not Trig_boss1d________2_Func001C())then
return false
endif
return true
endfunction
function Trig_boss1d________2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueTargetOrder(GetTriggerUnit(),"thunderbolt",GetAttacker())
call TriggerSleepAction(1.50)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_boss1d_______u_Actions takes nothing returns nothing
call IssueTargetOrder(udg_unit52,"thunderbolt",GetTriggerUnit())
endfunction
function Trig_boss1d_______________2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Hpal'))then
return false
endif
return true
endfunction
function Trig_boss1d_______________2_Actions takes nothing returns nothing
call IssueTargetOrder(GetTriggerUnit(),"chainlightning",GetAttacker())
endfunction
function Trig_boss1d______________u_Actions takes nothing returns nothing
call IssuePointOrderLoc(udg_unit45,"flamestrike",GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_boss1d________4_Func001Func001C takes nothing returns boolean
if((GetTriggerUnit()==udg_unit45))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Emoo'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Eill'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Huth'))then
return true
endif
if((GetTriggerUnit()==udg_unit80))then
return true
endif
if((GetTriggerUnit()==udg_unit72))then
return true
endif
return false
endfunction
function Trig_boss1d________4_Func001Func002C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit45))then
return false
endif
return true
endfunction
function Trig_boss1d________4_Func001Func003C takes nothing returns boolean
return true
endfunction
function Trig_boss1d________4_Func001C takes nothing returns boolean
if(not Trig_boss1d________4_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_boss1d________4_Actions takes nothing returns nothing
if(Trig_boss1d________4_Func001C())then
if(Trig_boss1d________4_Func001Func003C())then
call DisableTrigger(GetTriggeringTrigger())
call IssuePointOrderLoc(GetTriggerUnit(),"clusterrockets",GetUnitLoc(GetAttacker()))
call TriggerSleepAction(1.50)
call EnableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
else
if(Trig_boss1d________4_Func001Func002C())then
call IssueTargetOrder(GetTriggerUnit(),"thunderbolt",GetAttacker())
else
call DoNothing()
endif
endif
endfunction
function Trig_cha_Func006C takes nothing returns boolean
if((GetUnitTypeId(GetAttacker())=='Hamg'))then
return true
endif
if((GetUnitTypeId(GetAttacker())=='Eevi'))then
return true
endif
if((GetTriggerUnit()==udg_unit68))then
return true
endif
if((GetTriggerUnit()==udg_unit78))then
return true
endif
return false
endfunction
function Trig_cha_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit55))then
return false
endif
if(not Trig_cha_Func006C())then
return false
endif
return true
endfunction
function Trig_cha_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssuePointOrderLoc(GetAttacker(),"carrionswarm",GetUnitLoc(udg_unit55))
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_cha________2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Eevi'))then
return false
endif
return true
endfunction
function Trig_cha________2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueTargetOrder(GetTriggerUnit(),"soulburn",GetAttacker())
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_cha_______u_Func005C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='Eevi'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Hamg'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H002'))then
return true
endif
if((GetTriggerUnit()==udg_unit78))then
return true
endif
if((GetTriggerUnit()==udg_unit68))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H007'))then
return true
endif
return false
endfunction
function Trig_cha_______u_Conditions takes nothing returns boolean
if(not Trig_cha_______u_Func005C())then
return false
endif
return true
endfunction
function Trig_cha_______u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssuePointOrderLoc(GetTriggerUnit(),"carrionswarm",GetUnitLoc(GetAttacker()))
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_cha______________u_Func005C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='Hamg'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='H002'))then
return true
endif
return false
endfunction
function Trig_cha______________u_Conditions takes nothing returns boolean
if(not Trig_cha______________u_Func005C())then
return false
endif
return true
endfunction
function Trig_cha______________u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueTargetOrder(GetTriggerUnit(),"frostnova",GetAttacker())
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_cha______________________2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H002'))then
return false
endif
return true
endfunction
function Trig_cha______________________2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssuePointOrderLoc(GetTriggerUnit(),"shockwave",GetUnitLoc(GetAttacker()))
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_cha____________________________u_Func005C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='Eill'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Huth'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Ogrh'))then
return true
endif
if((GetTriggerUnit()==udg_unit72))then
return true
endif
return false
endfunction
function Trig_cha____________________________u_Conditions takes nothing returns boolean
if(not Trig_cha____________________________u_Func005C())then
return false
endif
return true
endfunction
function Trig_cha____________________________u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrder(GetTriggerUnit(),"mirrorimage")
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_cha___________________________________u_Func005C takes nothing returns boolean
if((GetUnitTypeId(GetTriggerUnit())=='Eill'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Huth'))then
return true
endif
if((GetUnitTypeId(GetTriggerUnit())=='Obla'))then
return true
endif
if((GetTriggerUnit()==udg_unit72))then
return true
endif
return false
endfunction
function Trig_cha___________________________________u_Conditions takes nothing returns boolean
if(not Trig_cha___________________________________u_Func005C())then
return false
endif
return true
endfunction
function Trig_cha___________________________________u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrder(GetTriggerUnit(),"windwalk")
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_cha__________________________________________u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H007'))then
return false
endif
return true
endfunction
function Trig_cha__________________________________________u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call IssueImmediateOrder(GetTriggerUnit(),"summonquillbeast")
call TriggerSleepAction(1.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_jidiwudi_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I043'))then
return false
endif
return true
endfunction
function Trig_jidiwudi_Actions takes nothing returns nothing
call SetUnitInvulnerable(udg_unit55,true)
call TriggerSleepAction(50.00)
call SetUnitInvulnerable(udg_unit55,false)
endfunction
function Trig_jidiwudi_______u_Conditions takes nothing returns boolean
if(not(GetUnitLifePercent(udg_unit55)<10.00))then
return false
endif
return true
endfunction
function Trig_jidiwudi_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call SetUnitInvulnerable(udg_unit55,true)
call ShowUnitShow(udg_unit71)
call PauseAllUnitsBJ(true)
call CinematicModeBJ(true,GetPlayersAll())
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit71,GetHeroProperName(udg_unit71),udg_sound17,"Can you guys cooperate? Luckily I'm here, if not you guys will lose. Please cooperate for now, okay?",bj_TIMETYPE_ADD,0.00,true)
call CinematicModeBJ(false,GetPlayersAll())
call PauseAllUnitsBJ(false)
call TriggerSleepAction(50.00)
call SetUnitInvulnerable(udg_unit55,false)
call RemoveUnit(udg_unit71)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_2335")
endfunction
function Trig_jun_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Hpal'))then
return false
endif
return true
endfunction
function Trig_jun_Func005A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(GetTriggerUnit()),0.50)
endfunction
function Trig_jun_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
set udg_location09=GetUnitLoc(GetTriggerUnit())
call PauseAllUnitsBJ(true)
call ForForce(GetPlayersAll(),function Trig_jun_Func005A)
call CinematicModeBJ(true,GetPlayersAll())
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),GetTriggerUnit(),GetHeroProperName(GetTriggerUnit()),udg_sound15,"I am not going to let you all destroy Orochimaru-sama's plans!",bj_TIMETYPE_ADD,0.00,true)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit57,"Naruto",udg_sound18,"Stupid and ignorant fellows!",bj_TIMETYPE_ADD,0.00,true)
call PauseAllUnitsBJ(false)
call CinematicModeBJ(false,GetPlayersAll())
call CreateTextTagLocBJ("Cursed Seal of the Earth!",udg_location09,0,10.50,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespan(GetLastCreatedTextTag(),5)
call SetTextTagPermanent(GetLastCreatedTextTag(),false)
call CreateNUnitsAtLoc(1,'H00J',Player(11),udg_location09,GetUnitFacing(GetTriggerUnit()))
call RemoveLocation(udg_location09)
endfunction
function Trig_jun2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H00J'))then
return false
endif
return true
endfunction
function Trig_jun2_Func006A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(GetTriggerUnit()),0.50)
endfunction
function Trig_jun2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
set udg_location09=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc('I03Z',udg_location09)
call RemoveLocation(udg_location09)
call PauseAllUnitsBJ(true)
call ForForce(GetPlayersAll(),function Trig_jun2_Func006A)
call CinematicModeBJ(true,GetPlayersAll())
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),GetTriggerUnit(),GetHeroProperName(GetTriggerUnit()),udg_sound16,"What do you guys know? Orochimaru-sama is the only one who understands me!",bj_TIMETYPE_ADD,0.00,true)
call PauseAllUnitsBJ(false)
call CinematicModeBJ(false,GetPlayersAll())
endfunction
function Trig_shibai_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit55))then
return false
endif
return true
endfunction
function Trig_shibai_Func004A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetEnumPlayer(),GetUnitLoc(udg_unit55),0.50)
endfunction
function Trig_shibai_Func016A takes nothing returns nothing
call CustomDefeatBJ(GetEnumPlayer(),"You guys lost! LMAO!")
endfunction
function Trig_shibai_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger74)
call DisplayTimedTextToForce(GetPlayersAll(),60.00,"LOL noobs! Try again!")
call DisplayTimedTextToForce(GetPlayersAll(),60.00,"You guys have lost! Understand what went wrong and try again! Game will end soon.")
call ForForce(GetPlayersAll(),function Trig_shibai_Func004A)
call TriggerSleepAction(60.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_4699")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_4700")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_4701")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_4702")
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"TRIGSTR_4703")
call TriggerSleepAction(1.00)
call ForForce(GetPlayersAllies(Player(9)),function Trig_shibai_Func016A)
endfunction
function Trig_rw_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I03T'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_rw_Func001Func001Func003C takes nothing returns boolean
if(not(GetRandomInt(1,10)==5))then
return false
endif
return true
endfunction
function Trig_rw_Func001Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03S')==true))then
return false
endif
return true
endfunction
function Trig_rw_Func001Func003C takes nothing returns boolean
if(not(GetRandomInt(1,10)==5))then
return false
endif
return true
endfunction
function Trig_rw_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I03R')==true))then
return false
endif
return true
endfunction
function Trig_rw_Actions takes nothing returns nothing
if(Trig_rw_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03R'))
if(Trig_rw_Func001Func003C())then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congrats!:|cffff0000"+(GetHeroProperName(GetTriggerUnit())+" |rcompleted Rank A Information Quest and is rewarded with gold|cff00ff0020000|r.EXP|cff00ff008000|r.All stats +5 as a reward")))
call AdjustPlayerStateBJ(20000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXPSwapped(8000,GetTriggerUnit(),true)
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_2055")
call AdjustPlayerStateBJ(15000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXPSwapped(5000,GetTriggerUnit(),true)
endif
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,5)
else
if(Trig_rw_Func001Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'I03S'))
if(Trig_rw_Func001Func001Func003C())then
call DisplayTimedTextToForce(GetPlayersAll(),10.00,("Congrats!:|cffff0000"+(GetHeroProperName(GetTriggerUnit())+" |rcompleted Rank B Information Quest and is rewarded with gold |cff00ff0010000|r.EXP|cff00ff003500|r.All stats +1 as a reward!")))
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXPSwapped(3500,GetTriggerUnit(),true)
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"This is your reward: 2500 EXP 8000 GOLD +1 to all stats!")
call AdjustPlayerStateBJ(8000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXPSwapped(2500,GetTriggerUnit(),true)
endif
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,1)
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"Don't treat me like an idiot okay?")
endif
endif
endfunction
function Trig_ye1_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ndqp'))then
return false
endif
return true
endfunction
function Trig_ye1_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ndqs'))then
return false
endif
return true
endfunction
function Trig_ye1_Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ngno'))then
return false
endif
return true
endfunction
function Trig_ye1_Func004Func001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_ye1_Func004Func001A takes nothing returns nothing
call AddHeroXP(GetEnumUnit(),15000,true)
endfunction
function Trig_ye1_Func004C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ngnv'))then
return false
endif
return true
endfunction
function Trig_ye1_Actions takes nothing returns nothing
if(Trig_ye1_Func001C())then
call CreateItemLoc('I03R',GetUnitLoc(GetTriggerUnit()))
call TriggerSleepAction(60.00)
call CreateNUnitsAtLoc(1,'ndqp',Player(10),GetRectCenter(udg_rect64),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"TRIGSTR_5053")
else
call DoNothing()
endif
if(Trig_ye1_Func002C())then
call CreateItemLoc('I03S',GetUnitLoc(GetTriggerUnit()))
call TriggerSleepAction(60.00)
call CreateNUnitsAtLoc(1,'ndqs',Player(10),GetRectCenter(udg_rect63),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"TRIGSTR_5054")
else
call DoNothing()
endif
if(Trig_ye1_Func003C())then
call TriggerSleepAction(80.00)
call CreateNUnitsAtLoc(1,'ngno',Player(10),GetRectCenter(udg_rect87),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"TRIGSTR_7239")
else
call DoNothing()
endif
if(Trig_ye1_Func004C())then
call ForGroupBJ(GetUnitsOfPlayerMatching(GetOwningPlayer(GetKillingUnitBJ()),Condition(function Trig_ye1_Func004Func001001002)),function Trig_ye1_Func004Func001A)
call TriggerSleepAction(80.00)
call CreateNUnitsAtLoc(1,'ngnv',Player(10),GetRectCenter(udg_rect86),bj_UNIT_FACING)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,"TRIGSTR_7240")
else
call DoNothing()
endif
endfunction
function Trig_ld111111111_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I03X'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_ld111111111_Actions takes nothing returns nothing
set udg_locations01[19]=GetRectCenter(udg_rect65)
call SetUnitPositionLoc(GetTriggerUnit(),udg_locations01[19])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),udg_locations01[19],0)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,(GetHeroProperName(GetTriggerUnit())+": Sneak in the Hidden Rain Village!"))
call RemoveLocation(udg_locations01[19])
endfunction
function Trig_CS_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitAlly(GetTriggerUnit(),Player(9))==true))then
return false
endif
return true
endfunction
function Trig_CS_Actions takes nothing returns nothing
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"TRIGSTR_2093")
endfunction
function Trig_ss1_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='bzbe'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_ss1_Actions takes nothing returns nothing
call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(udg_rect68),2.00,bj_MINIMAPPINGSTYLE_FLASHY,0.00,100,0.00)
call PingMinimapLocForForceEx(GetPlayersAll(),GetRectCenter(udg_rect69),2.00,bj_MINIMAPPINGSTYLE_FLASHY,0.00,100,0.00)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,"Get to the river to fill the vial, and give it back to me.")
endfunction
function Trig_ss_Func001C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bzbe')==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitAlly(GetTriggerUnit(),Player(9))==true))then
return false
endif
return true
endfunction
function Trig_ss_Func002C takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(11))==true))then
return false
endif
return true
endfunction
function Trig_ss_Actions takes nothing returns nothing
if(Trig_ss_Func001C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bzbe'))
call UnitAddItemByIdSwapped('bzbf',GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"The vial is filled, give it back to recieve your reward.")
else
call DoNothing()
endif
if(Trig_ss_Func002C())then
set udg_locations01[41]=GetRectCenter(udg_rect02)
call IssuePointOrderLoc(GetTriggerUnit(),"move",udg_locations01[41])
call RemoveLocation(udg_locations01[41])
else
call DoNothing()
endif
endfunction
function Trig_ss2_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I03Y'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_ss2_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bzbf')==true))then
return false
endif
return true
endfunction
function Trig_ss2_Actions takes nothing returns nothing
if(Trig_ss2_Func003C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bzbf'))
call AdjustPlayerStateBJ(1000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXP(GetTriggerUnit(),300,false)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"Quest complete! You get 1000 Gold 300 EXP.")
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"Don't treat me like an idiot.")
endif
endfunction
function Trig_ss2_______u_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05Q'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_ss2_______u_Func003Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==2))then
return false
endif
return true
endfunction
function Trig_ss2_______u_Func003C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetTriggerUnit(),'bzbf')==true))then
return false
endif
return true
endfunction
function Trig_ss2_______u_Actions takes nothing returns nothing
if(Trig_ss2_______u_Func003C())then
if(Trig_ss2_______u_Func003Func001C())then
call AdjustPlayerStateBJ(5000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bzbf'))
call AddHeroXP(GetTriggerUnit(),1000,false)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,(GetHeroProperName(GetTriggerUnit())+":|cffff0000rewarded with gold 5000 EXP 1000 as a reward|R"))
else
call AdjustPlayerStateBJ(3000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetTriggerUnit(),'bzbf'))
call AddHeroXP(GetTriggerUnit(),500,false)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"Thank you. You are rewarded with 3000 Gold 500 EXP")
endif
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,1.00,"Do you want to die?")
endif
endfunction
function Trig_shengshou_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00H'))then
return false
endif
return true
endfunction
function Trig_shengshou_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00I'))then
return false
endif
return true
endfunction
function Trig_shengshou_Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00G'))then
return false
endif
return true
endfunction
function Trig_shengshou_Func004C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00F'))then
return false
endif
return true
endfunction
function Trig_shengshou_Actions takes nothing returns nothing
if(Trig_shengshou_Func001C())then
call CreateItemLoc('I04E',GetUnitLoc(GetTriggerUnit()))
call TriggerSleepAction(80.00)
call CreateNUnitsAtLoc(1,'n00H',Player(10),GetRectCenter(udg_rect76),295.00)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"The Phoenix has respawned.")
else
call DoNothing()
endif
if(Trig_shengshou_Func002C())then
call CreateItemLoc('I04D',GetUnitLoc(GetTriggerUnit()))
call TriggerSleepAction(80.00)
call CreateNUnitsAtLoc(1,'n00I',Player(10),GetRectCenter(udg_rect70),50.00)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"The Dragon has respawned.")
else
call DoNothing()
endif
if(Trig_shengshou_Func003C())then
call CreateItemLoc('I04F',GetUnitLoc(GetTriggerUnit()))
call TriggerSleepAction(80.00)
call CreateNUnitsAtLoc(1,'n00G',Player(10),GetRectCenter(udg_rect71),160.00)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"The Black Tortoise has respawned.")
else
call DoNothing()
endif
if(Trig_shengshou_Func004C())then
call CreateItemLoc('I04C',GetUnitLoc(GetTriggerUnit()))
call TriggerSleepAction(80.00)
call CreateNUnitsAtLoc(1,'n00F',Player(10),GetRectCenter(udg_rect75),226.00)
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"The White Tiger has respawned.")
else
call DoNothing()
endif
endfunction
function Trig_shaji_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='nech'))then
return false
endif
return true
endfunction
function Trig_shaji_Func002001 takes nothing returns boolean
return(GetRandomInt(1,3)==2)
endfunction
function Trig_shaji_Func003001 takes nothing returns boolean
return(GetRandomInt(1,7)==4)
endfunction
function Trig_shaji_Actions takes nothing returns nothing
set udg_locations28[2]=GetUnitLoc(GetTriggerUnit())
if(Trig_shaji_Func002001())then
call UnitAddItemByIdSwapped('I06Q',GetKillingUnitBJ())
else
call DoNothing()
endif
if(Trig_shaji_Func003001())then
call UnitAddItemByIdSwapped('I06T',GetKillingUnitBJ())
else
call DoNothing()
endif
call RemoveLocation(udg_locations28[2])
call TriggerSleepAction(2)
set udg_locations28[1]=GetRandomLocInRect(udg_rect89)
call CreateNUnitsAtLoc(1,'nech',Player(PLAYER_NEUTRAL_PASSIVE),udg_locations28[1],bj_UNIT_FACING)
call RemoveLocation(udg_locations28[1])
endfunction
function Trig_shaji1_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetManipulatedItem())=='I06P'))then
return false
endif
return true
endfunction
function Trig_shaji1_Func003Func002Func003Func001C takes nothing returns boolean
if(not(GetRandomInt(1,2)==2))then
return false
endif
return true
endfunction
function Trig_shaji1_Func003Func002Func003Func003Func002Func001C takes nothing returns boolean
if(not(GetRandomInt(1,3)==2))then
return false
endif
return true
endfunction
function Trig_shaji1_Func003Func002Func003Func003Func002C takes nothing returns boolean
if(not(GetRandomInt(1,3)==1))then
return false
endif
return true
endfunction
function Trig_shaji1_Func003Func002Func003Func003C takes nothing returns boolean
if(not(udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]>=10))then
return false
endif
return true
endfunction
function Trig_shaji1_Func003Func002Func003C takes nothing returns boolean
if(not(udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==5))then
return false
endif
return true
endfunction
function Trig_shaji1_Func003Func002C takes nothing returns boolean
if(not(udg_booleans04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true))then
return false
endif
if(not(udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]>=10))then
return false
endif
return true
endfunction
function Trig_shaji1_Func003C takes nothing returns boolean
if(not(udg_booleans04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false))then
return false
endif
return true
endfunction
function Trig_shaji1_Actions takes nothing returns nothing
if(Trig_shaji1_Func003C())then
set udg_booleans04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,"Hurry up and steal 10 chickens for me.")
else
if(Trig_shaji1_Func003Func002C())then
set udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=(udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,("Your chicken quest count is now:|cffff0000"+(I2S(udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])+" |rtimes!")))
if(Trig_shaji1_Func003Func002Func003C())then
if(Trig_shaji1_Func003Func002Func003Func001C())then
call UnitAddItemByIdSwapped('I04X',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Congrats!|cff00ff00 "+(GetHeroProperName(GetTriggerUnit())+("Your chicken quest count is now |cff00ff005|r You are rewarded with|cffff0000Mysterious Gift|ras a reward!"+"!"))))
else
call DoNothing()
endif
else
if(Trig_shaji1_Func003Func002Func003Func003C())then
if(Trig_shaji1_Func003Func002Func003Func003Func002C())then
call UnitAddItemByIdSwapped('I00V',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Congrats!|cff00ff00 "+(GetHeroProperName(GetTriggerUnit())+("Your chicken quest count is now |cff00ff0010|r You are rewarded with|cffff0000Dragon Scale Shoulderpad|ras a reward!"+"!"))))
set udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=0
else
if(Trig_shaji1_Func003Func002Func003Func003Func002Func001C())then
call UnitAddItemByIdSwapped('I00V',GetTriggerUnit())
call AddHeroXP(GetTriggerUnit(),7000,true)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Congrats!|cff00ff00 "+(GetHeroProperName(GetTriggerUnit())+("Your chicken quest count is now |cff00ff0010|r You are rewarded with|cffff0000Dragon Scale Shoulderpad|rX 1as a reward!"+"Additional 7000 EXP too !"))))
set udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=0
else
set udg_integers12[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=0
endif
endif
else
call DoNothing()
endif
endif
call AdjustPlayerStateBJ(1300,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXP(GetTriggerUnit(),300,true)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,"Nice steals! I reward you 1300 gold and 300 EXP. Let's work together again.")
set udg_booleans04[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
set udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=0
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,("You only stole:"+(I2S(udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])+" and you want to claim your reward? Am I an idiot to you?")))
endif
endif
endfunction
function Trig_shaji2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='nech'))then
return false
endif
return true
endfunction
function Trig_shaji2_Func002Func001C takes nothing returns boolean
if(not(udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]>=10))then
return false
endif
return true
endfunction
function Trig_shaji2_Func002C takes nothing returns boolean
if(not(udg_booleans04[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]==true))then
return false
endif
if(not(udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]<10))then
return false
endif
return true
endfunction
function Trig_shaji2_Actions takes nothing returns nothing
if(Trig_shaji2_Func002C())then
set udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]=(udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))]+1)
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,2.00,("Chicken |cffff0000"+(I2S(udg_integers13[GetConvertedPlayerId(GetOwningPlayer(GetKillingUnitBJ()))])+"/10|r")))
else
if(Trig_shaji2_Func002Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,2.00,"You have stolen |cffff000010|r chickens. Hurry up and claim your reward.")
else
endif
endif
endfunction
function Trig_zh_Actions takes nothing returns nothing
set udg_locations28[4]=GetUnitLoc(GetTriggerUnit())
call CreateItemLoc('I03O',udg_locations28[4])
call CreateItemLoc('I06S',udg_locations28[4])
call CreateItemLoc('I05Y',udg_locations28[4])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateItemLoc('tkno',PolarProjectionBJ(udg_locations28[4],500.00,(30.00*I2R(GetForLoopIndexA()))))
call CreateItemLoc('I05T',PolarProjectionBJ(udg_locations28[4],450.00,(30.00*I2R(GetForLoopIndexA()))))
call CreateItemLoc(udg_integers06[GetRandomInt(1,41)],PolarProjectionBJ(udg_locations28[4],400.00,(30.00*I2R(GetForLoopIndexA()))))
call CreateItemLoc('I02T',PolarProjectionBJ(udg_locations28[4],300.00,(30.00*I2R(GetForLoopIndexA()))))
call CreateItemLoc('I02T',PolarProjectionBJ(udg_locations28[4],200.00,(30.00*I2R(GetForLoopIndexA()))))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_locations28[4])
endfunction
function Trig_sdlb_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I04X'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_sdlb_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==5))then
return false
endif
return true
endfunction
function Trig_sdlb_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==4))then
return false
endif
return true
endfunction
function Trig_sdlb_Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==3))then
return false
endif
return true
endfunction
function Trig_sdlb_Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==2))then
return false
endif
return true
endfunction
function Trig_sdlb_Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==1))then
return false
endif
return true
endfunction
function Trig_sdlb_Actions takes nothing returns nothing
if(Trig_sdlb_Func001C())then
call AdjustPlayerStateBJ(10000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Congrats! "+(GetHeroProperName(GetTriggerUnit())+" opened the gift and obtained 10000 gold!")))
else
if(Trig_sdlb_Func001Func001C())then
call AddHeroXPSwapped(2000,GetTriggerUnit(),true)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Congrats! "+(GetHeroProperName(GetTriggerUnit())+" opened the gift and obtained 3000 points of EXP")))
else
if(Trig_sdlb_Func001Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,10)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Congrats! "+(GetHeroProperName(GetTriggerUnit())+" opened the mysterious bag and obtained +10 to all stats!")))
else
if(Trig_sdlb_Func001Func001Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,20)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,20)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,20)
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Congrats! "+(GetHeroProperName(GetTriggerUnit())+" opened the mysterious bag and obtained +10 to all stats!")))
else
if(Trig_sdlb_Func001Func001Func001Func001Func001C())then
call UnitAddItemByIdSwapped(udg_integers07[GetRandomInt(1,9)],GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("Congrats! "+(GetHeroProperName(GetTriggerUnit())+(" opened the gift and obtained "+(GetItemName(GetLastCreatedItem())+" as a reward!")))))
else
call DisplayTimedTextToForce(GetPlayersAll(),5.00,("OMG "+(GetHeroProperName(GetTriggerUnit())+" Perhaps you did something wrong recently, that you did not obtain any reward- -!")))
endif
endif
endif
endif
endif
endfunction
function Trig_zhuanshu111_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Huth'))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
if(not(udg_integer08>=7))then
return false
endif
return true
endfunction
function Trig_zhuanshu111_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05E',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111________5_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Hamg'))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function Trig_zhuanshu111________5_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05J',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111________4_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H007'))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function Trig_zhuanshu111________4_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05D',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111________3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='Emoo'))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
if(not(udg_integer08>=7))then
return false
endif
return true
endfunction
function Trig_zhuanshu111________3_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05W',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111________2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='H00J'))then
return false
endif
return true
endfunction
function Trig_zhuanshu111________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05K',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit45))then
return false
endif
if(not(udg_integer08>=7))then
return false
endif
return true
endfunction
function Trig_zhuanshu111_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05M',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111______________u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ndqp'))then
return false
endif
if(not(udg_integer08>=7))then
return false
endif
return true
endfunction
function Trig_zhuanshu111______________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05H',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111______________________2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ndqs'))then
return false
endif
if(not(udg_integer08>=9))then
return false
endif
return true
endfunction
function Trig_zhuanshu111______________________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05I',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111_____________________________2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00H'))then
return false
endif
if(not(udg_integer08>=24))then
return false
endif
return true
endfunction
function Trig_zhuanshu111_____________________________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I065',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111_____________________________3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00F'))then
return false
endif
if(not(udg_integer08>=24))then
return false
endif
return true
endfunction
function Trig_zhuanshu111_____________________________3_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05L',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111_____________________________3_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit53))then
return false
endif
if(not(udg_integer08>=24))then
return false
endif
return true
endfunction
function Trig_zhuanshu111_____________________________3_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05O',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111_____________________________3______________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit52))then
return false
endif
if(not(udg_integer08>=23))then
return false
endif
return true
endfunction
function Trig_zhuanshu111_____________________________3______________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I05R',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111_____________________________3_____________________u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ngnv'))then
return false
endif
if(not(udg_integer08>=23))then
return false
endif
return true
endfunction
function Trig_zhuanshu111_____________________________3_____________________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I06C',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_zhuanshu111_____________________________3____________________________u_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ngno'))then
return false
endif
if(not(udg_integer08>=23))then
return false
endif
return true
endfunction
function Trig_zhuanshu111_____________________________3____________________________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call CreateItemLoc('I06F',GetUnitLoc(GetTriggerUnit()))
endfunction
function Trig_xznf_Func029C takes nothing returns boolean
if((GetRandomInt(1,100)==30))then
return true
endif
if((GetUnitLifePercent(GetAttackedUnitBJ())<30.00))then
return true
endif
return false
endfunction
function Trig_xznf_Conditions takes nothing returns boolean
if(not(GetUnitAbilityLevel(GetAttackedUnitBJ(),'A07M')>=1))then
return false
endif
if(not Trig_xznf_Func029C())then
return false
endif
return true
endfunction
function Trig_xznf_Func004C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_units29[1])==true))then
return false
endif
return true
endfunction
function Trig_xznf_Func013001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_xznf_Func013001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttackedUnitBJ()))==true)
endfunction
function Trig_xznf_Func013001003 takes nothing returns boolean
return GetBooleanAnd(Trig_xznf_Func013001003001(),Trig_xznf_Func013001003002())
endfunction
function Trig_xznf_Func013A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttackedUnitBJ(),GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttackedUnitBJ(),true))*60.00),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_xznf_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound51)
set udg_units29[1]=GetAttackedUnitBJ()
if(Trig_xznf_Func004C())then
call UnitAddAbility(udg_units29[1],'A07U')
else
call DoNothing()
endif
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_units29[1]),'A07U',false)
call CameraSetEQNoiseForPlayer(GetOwningPlayer(udg_units29[1]),30.00)
call CreateNUnitsAtLoc(1,'h00A',GetOwningPlayer(GetAttackedUnitBJ()),GetUnitLoc(GetAttackedUnitBJ()),GetUnitFacing(GetAttackedUnitBJ()))
call UnitAddAbility(GetLastCreatedUnit(),'Aloc')
call PauseUnit(GetLastCreatedUnit(),true)
call SetUnitAnimation(GetLastCreatedUnit(),"Birth")
set udg_units29[2]=GetLastCreatedUnit()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetLastCreatedUnit()),300.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_xznf_Func013001003)),function Trig_xznf_Func013A)
call TriggerSleepAction(2.00)
call CameraClearNoiseForPlayer(GetOwningPlayer(udg_units29[1]))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units29[2]),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units29[2]),300.00,(30.00*I2R(GetForLoopIndexA()))),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call DestroyEffect(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitAnimation(udg_units29[2],"stand victory")
call TriggerSleepAction(1.00)
call RemoveUnit(udg_units29[2])
set udg_units29[2]=null
call TriggerSleepAction(15.00)
call UnitRemoveAbility(udg_units29[1],'A07U')
set udg_units29[1]=null
call TriggerSleepAction(15.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_zhuanshu1_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05C'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit61))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu1_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_5522")
endfunction
function Trig_zhuanshu7_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05R'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit82))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu7_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_5642")
endfunction
function Trig_zhuanshu2_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05G'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit64))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu2_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_5523")
endfunction
function Trig_zhuanshu3_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05K'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit73))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu3_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_5524")
endfunction
function Trig_zhuanshu4_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05L'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit83))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu4_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_5525")
endfunction
function Trig_zhuanshu5_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05P'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit75))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu5_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_5565")
endfunction
function Trig_zhuanshu6_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I042'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit57))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu6_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_5575")
endfunction
function Trig_zhuanshu8_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05S'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit74))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu8_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_5668")
endfunction
function Trig_zhuanshu9_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05V'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit76))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu9_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_6104")
endfunction
function Trig_zhuanshu10_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05U'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit79))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu10_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_6105")
endfunction
function Trig_zhuanshu11_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05D'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit58))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu11_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_6475")
endfunction
function Trig_zhuanshu12_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05F'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit59))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu12_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_6586")
endfunction
function Trig_zhuanshu13_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05N'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit81))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu13_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_6588")
endfunction
function Trig_zhuanshu14_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05O'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit63))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu14_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_6590")
endfunction
function Trig_zhuanshu15_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05X'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit77))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu15_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_7015")
endfunction
function Trig_zhuanshu16_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I065'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit60))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu16_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_7164")
endfunction
function Trig_zhuanshu17_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06C'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit85))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu17_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_7388")
endfunction
function Trig_zhuanshu18_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06F'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit86))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu18_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_7560")
endfunction
function Trig_zhuanshu19_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06G'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit87))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu19_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_7766")
endfunction
function Trig_zhuanshu20_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06J'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit88))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu20_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_8011")
endfunction
function Trig_zhuanshu21_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06K'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit89))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu21_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_8170")
endfunction
function Trig_zhuanshu22_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06U'))then
return false
endif
if(not(GetTriggerUnit()!=udg_unit91))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
return true
endfunction
function Trig_zhuanshu22_Actions takes nothing returns nothing
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call DisplayTimedTextToForce(GetPlayersAll(),10.00,"TRIGSTR_8483")
endfunction
function Trig_syddd_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05E'))then
return false
endif
return true
endfunction
function Trig_syddd_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger560)
endfunction
function Trig_syddd1_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05E')==true))then
return false
endif
return true
endfunction
function Trig_syddd1_Func002C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_syddd1_Func004C takes nothing returns boolean
if(not(udg_integers09[0]>=900))then
return false
endif
return true
endfunction
function Trig_syddd1_Actions takes nothing returns nothing
set udg_integers09[0]=(udg_integers09[0]+1)
if(Trig_syddd1_Func002C())then
set udg_integers09[0]=(udg_integers09[0]+10)
else
endif
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,1.00,("Zabuza's Sword|cffff0000 Training Progress:"+(I2S(udg_integers09[0])+" / 900|r")))
if(Trig_syddd1_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetKillingUnitBJ(),'I05E'))
call UnitAddItemByIdSwapped('I05C',GetKillingUnitBJ())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,5.00,"TRIGSTR_6224")
else
call DoNothing()
endif
endfunction
function Trig_gjjj_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05H'))then
return false
endif
return true
endfunction
function Trig_gjjj_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger562)
endfunction
function Trig_gjjj1_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05H')==true))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function Trig_gjjj1_Func002C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_gjjj1_Func004C takes nothing returns boolean
if(not(udg_integers09[1]>=1300))then
return false
endif
return true
endfunction
function Trig_gjjj1_Actions takes nothing returns nothing
set udg_integers09[1]=(udg_integers09[1]+1)
if(Trig_gjjj1_Func002C())then
set udg_integers09[1]=(udg_integers09[1]+10)
else
endif
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,1.00,("Sameheda|cffff0000 Training Progress:"+(I2S(udg_integers09[1])+" / 1300|r")))
if(Trig_gjjj1_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetKillingUnitBJ(),'I05H'))
call UnitAddItemByIdSwapped('I05G',GetKillingUnitBJ())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,5.00,"TRIGSTR_6225")
else
call DoNothing()
endif
endfunction
function Trig_sssssss1_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05M'))then
return false
endif
return true
endfunction
function Trig_sssssss1_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger564)
endfunction
function Trig_sssssss2_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05M')==true))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function Trig_sssssss2_Func002C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_sssssss2_Func004C takes nothing returns boolean
if(not(udg_integers09[2]>=1000))then
return false
endif
return true
endfunction
function Trig_sssssss2_Actions takes nothing returns nothing
set udg_integers09[2]=(udg_integers09[2]+1)
if(Trig_sssssss2_Func002C())then
set udg_integers09[2]=(udg_integers09[2]+10)
else
endif
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,1.00,("Kunai|cffff0000 Training Progress:"+(I2S(udg_integers09[2])+" / 1000|r")))
if(Trig_sssssss2_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetKillingUnitBJ(),'I05M'))
call UnitAddItemByIdSwapped('I05P',GetKillingUnitBJ())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,5.00,"TRIGSTR_6226")
else
call DoNothing()
endif
endfunction
function Trig_sssssss1_______u_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05W'))then
return false
endif
return true
endfunction
function Trig_sssssss1_______u_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger566)
endfunction
function Trig_sssssss5_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05W')==true))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function Trig_sssssss5_Func002C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_sssssss5_Func004C takes nothing returns boolean
if(not(udg_integers09[3]>=800))then
return false
endif
return true
endfunction
function Trig_sssssss5_Actions takes nothing returns nothing
set udg_integers09[3]=(udg_integers09[3]+1)
if(Trig_sssssss5_Func002C())then
set udg_integers09[3]=(udg_integers09[3]+10)
else
endif
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,1.00,("Broken Mask|cffff0000 Repair Progress:"+(I2S(udg_integers09[3])+" / 800|r")))
if(Trig_sssssss5_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetKillingUnitBJ(),'I05W'))
call UnitAddItemByIdSwapped('I05S',GetKillingUnitBJ())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,5.00,"TRIGSTR_6192")
else
call DoNothing()
endif
endfunction
function Trig_sssssss1______________u_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05I'))then
return false
endif
return true
endfunction
function Trig_sssssss1______________u_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger568)
endfunction
function Trig_sssssss5_______u_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05I')==true))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function Trig_sssssss5_______u_Func002C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_sssssss5_______u_Func004C takes nothing returns boolean
if(not(udg_integers09[4]>=800))then
return false
endif
return true
endfunction
function Trig_sssssss5_______u_Actions takes nothing returns nothing
set udg_integers09[4]=(udg_integers09[4]+1)
if(Trig_sssssss5_______u_Func002C())then
set udg_integers09[4]=(udg_integers09[4]+10)
else
endif
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,1.00,("Make out Tactics|cffff0000 Reading Progress:"+(I2S(udg_integers09[4])+" / 800|r")))
if(Trig_sssssss5_______u_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetKillingUnitBJ(),'I05I'))
call UnitAddItemByIdSwapped('I05F',GetKillingUnitBJ())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,5.00,"TRIGSTR_6587")
else
call DoNothing()
endif
endfunction
function Trig_sssssss1_____________________u_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I05J'))then
return false
endif
return true
endfunction
function Trig_sssssss1_____________________u_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger570)
endfunction
function Trig_sssssss5______________u_Conditions takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I05J')==true))then
return false
endif
if(not(IsUnitIllusionBJ(GetTriggerUnit())==false))then
return false
endif
return true
endfunction
function Trig_sssssss5______________u_Func002C takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_sssssss5______________u_Func004C takes nothing returns boolean
if(not(udg_integers09[5]>=400))then
return false
endif
return true
endfunction
function Trig_sssssss5______________u_Actions takes nothing returns nothing
set udg_integers09[5]=(udg_integers09[5]+1)
if(Trig_sssssss5______________u_Func002C())then
set udg_integers09[5]=(udg_integers09[5]+10)
else
endif
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,1.00,("Sand Gourd|cffff0000 Sand Filling Progress:"+(I2S(udg_integers09[5])+" / 400|r")))
if(Trig_sssssss5______________u_Func004C())then
call RemoveItem(GetItemOfTypeFromUnitBJ(GetKillingUnitBJ(),'I05J'))
call UnitAddItemByIdSwapped('I05N',GetKillingUnitBJ())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetKillingUnitBJ()),0,0,5.00,"TRIGSTR_6589")
else
call DoNothing()
endif
endfunction
function Trig_wal111_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit81))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_wal111_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A06J')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Ryusa Bakuryu|r"))
endfunction
function Trig_wal111________5_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit77))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_wal111________5_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A07B')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Forbidden Ougi.Ultimate Ura Renge!|r"))
endfunction
function Trig_wal111________4_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit82))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_wal111________4_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A07K')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Suiton: Suishoha!|r"))
endfunction
function Trig_wal111________3_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit73))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_wal111________3_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A08B')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Cursed Seal Rampage|r"))
endfunction
function Trig_wal111________2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit75))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_wal111________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A08X')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Fuuin Jutsu: Shiki Fuujin|r"))
endfunction
function Trig_wal111________2_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit57))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=140))then
return false
endif
return true
endfunction
function Trig_wal111________2_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'AOs2')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff00004-Tail Cannon|r"))
endfunction
function Trig_wal111_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit56))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_wal111_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,500)
call UnitAddAbility(GetTriggerUnit(),'A08F')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Taijutsu Ougi.Juho Soshiken AGI+500.White Dragon Dance obtained a further advancement!|r"))
endfunction
function Trig_YIDDDDD_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit63))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_YIDDDDD_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A07T')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Mokuton: Ultimate Forest|r"))
endfunction
function Trig_kkkkx_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit59))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_kkkkx_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A0AA')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Wind, Fire, Water Combined!|r"))
endfunction
function Trig_kkkkx_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit62))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_kkkkx_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,500)
call UnitAddAbility(GetTriggerUnit(),'A088')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Jyuukenho: Hakke Hasangeki.AGI+500,Hakke Kuushou obtained a further advancement!|r"))
endfunction
function Trig_zzzzzzzz_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit58))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_zzzzzzzz_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A08E')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Raiton: Kirin|r"))
endfunction
function Trig_uuuuuuu_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit60))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Susano|r"))
endfunction
function Trig_uuuuuuu_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit74))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A08G')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+"learnt:|cffff0000Ice Spikes|r"))
endfunction
function Trig_uuuuuuu______________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit76))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu______________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddItemByIdSwapped('I05V',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" has obtained her:|cffff0000Tenmari Fan.|r"))
endfunction
function Trig_uuuuuuu______________________2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit76))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=145))then
return false
endif
return true
endfunction
function Trig_uuuuuuu______________________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A0A9')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Fuuton: Tornado Formation.|r"))
endfunction
function Trig_uuuuuuu_____________________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit79))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=120))then
return false
endif
return true
endfunction
function Trig_uuuuuuu_____________________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddItemByIdSwapped('I05U',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" obtained his:|cffff0000Adamantine Staff.|r"))
endfunction
function Trig_uuuuuuu_____________________________2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit79))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=140))then
return false
endif
return true
endfunction
function Trig_uuuuuuu_____________________________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A0AB')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Kuchiyose no Jutsu: Enma|r"))
endfunction
function Trig_uuuuuuu____________________________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit57))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=120))then
return false
endif
return true
endfunction
function Trig_uuuuuuu____________________________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddItemByIdSwapped('I042',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" obtained his:|cffff0000Necklace Heirloom|r"))
endfunction
function Trig_uuuuuuu____________________________________2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit87))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=115))then
return false
endif
return true
endfunction
function Trig_uuuuuuu____________________________________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddItemByIdSwapped('I06G',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" obtained his unique item:|cffff0000Anbu Knife|r"))
endfunction
function Trig_uuuuuuu___________________________________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit77))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=120))then
return false
endif
return true
endfunction
function Trig_uuuuuuu___________________________________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddItemByIdSwapped('I05X',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" obtained his unique item:|cffff00002-Piece Rod|r"))
endfunction
function Trig_uuuuuuu___________________________________________2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit88))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=120))then
return false
endif
return true
endfunction
function Trig_uuuuuuu___________________________________________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddItemByIdSwapped('I06J',GetTriggerUnit())
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" obtained his unique item:|cffff0000Clay Bag|r"))
endfunction
function Trig_uuuuuuu___________________________________________2_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit89))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=120))then
return false
endif
return true
endfunction
function Trig_uuuuuuu___________________________________________2_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddItemByIdSwapped('I06K',udg_unit89)
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(udg_unit89)+" obtained his unique item:|cffff0000Snacks|r"))
endfunction
function Trig_uuuuuuu___________________________________________2______________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit91))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=120))then
return false
endif
return true
endfunction
function Trig_uuuuuuu___________________________________________2______________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddItemByIdSwapped('I06U',udg_unit91)
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(udg_unit91)+" obtained his unique item:|cffff0000Camelia|r"))
endfunction
function Trig_uuuuuuu__________________________________________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit83))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu__________________________________________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A078')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Chibaku Tensei|r"))
endfunction
function Trig_uuuuuuu_________________________________________________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit61))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu_________________________________________________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A07W')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Sonic Slash|r"))
endfunction
function Trig_uuuuuuu__________________________________________________2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit64))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=140))then
return false
endif
return true
endfunction
function Trig_uuuuuuu__________________________________________________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A07L')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Suiton: Suiro Sameodori no Jutsu|r"))
endfunction
function Trig_uuuuuuu__________________________________________________2_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit85))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu__________________________________________________2_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A09O')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Chakra Enhanced Strength|r"))
endfunction
function Trig_uuuuuuu__________________________________________________2______________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit86))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu__________________________________________________2______________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A09W')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Unlimited Throw|r"))
endfunction
function Trig_uuuuuuu__________________________________________________2_____________________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit87))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu__________________________________________________2_____________________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A0A2')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Choju Giga.Dragon|r"))
endfunction
function Trig_uuuuuuu__________________________________________________2______________________2_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit88))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=140))then
return false
endif
return true
endfunction
function Trig_uuuuuuu__________________________________________________2______________________2_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A0AK')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Final Art—Self Explosion|r"))
endfunction
function Trig_uuuuuuu__________________________________________________2______________________2_______u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit89))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu__________________________________________________2______________________2_______u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A0AN')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Cho Baika no Jutsu|r"))
endfunction
function Trig_uuuuuuu__________________________________________________2______________________2_________u_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit91))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=130))then
return false
endif
return true
endfunction
function Trig_uuuuuuu__________________________________________________2______________________2_________u_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call UnitAddAbility(GetTriggerUnit(),'A0AZ')
call DisplayTimedTextToForce(GetPlayersAll(),20.00,(GetHeroProperName(GetTriggerUnit())+" learnt:|cffff0000Shoton: Suisho Meikyu no Jutsu|r"))
call SetPlayerAbilityAvailable(GetOwningPlayer(udg_unit91),'A0AZ',false)
endfunction
function Trig____________________001_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I064'))then
return false
endif
if(not(udg_booleans03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==false))then
return false
endif
return true
endfunction
function Trig____________________001_Func005001001 takes nothing returns boolean
return(udg_booleans03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]==true)
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==14))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==13))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==12))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==11))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==10))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==9))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==8))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==7))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==6))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==5))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001Func003C takes nothing returns boolean
if(not(GetRandomInt(1,15)==4))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==3))then
return false
endif
return true
endfunction
function Trig____________________001_Func006Func001C takes nothing returns boolean
if(not(GetRandomInt(1,15)==2))then
return false
endif
return true
endfunction
function Trig____________________001_Func006C takes nothing returns boolean
if(not(GetRandomInt(1,15)==1))then
return false
endif
return true
endfunction
function Trig____________________001_Func008C takes nothing returns boolean
if(not(udg_booleans03[GetConvertedPlayerId(GetOwningPlayer(udg_unit33))]==true))then
return false
endif
return true
endfunction
function Trig____________________001_Actions takes nothing returns nothing
set udg_unit33=GetTriggerUnit()
set udg_booleans03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=true
call ClearTextMessagesBJ(GetPlayersMatching(Condition(function Trig____________________001_Func005001001)))
if(Trig____________________001_Func006C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"Who is the translator of this map? |r A.BladeSaint B.BlaDeSaiNt C.Bobby")
set udg_integer46=1
else
if(Trig____________________001_Func006Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"What is the EXP rate when only 1 player is playing? |r A.200% B.100% C.150%")
set udg_integer46=2
else
if(Trig____________________001_Func006Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"What is the EXP rate when 2 players are playing? |r A.200% B.100% C.150%")
set udg_integer46=3
else
if(Trig____________________001_Func006Func001Func001Func003C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"Whose unique item is Zabuza's Sword? |r A.Suigetsu B.Itachi C.Pain")
set udg_integer46=1
else
if(Trig____________________001_Func006Func001Func001Func003Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"What is the name of this map? |r A.Naruto Castle Defense B.Naruto Shippuden RPG C.Naruto Epic Chronicles")
set udg_integer46=1
else
if(Trig____________________001_Func006Func001Func001Func003Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"Who is the original author of the map? |r A.BladeSaint B.BladeSoul C.Bobby")
set udg_integer46=3
else
if(Trig____________________001_Func006Func001Func001Func003Func001Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"During the fight with 6 Pains, what is the key strategy in winning? |r A.Kill Deva Path first B.Kill Preta Path first C.Kill Human Path first")
set udg_integer46=3
else
if(Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"How is the special effect of the Essence items being activated? |r A.Being attacked by enemies B.When attacking enemies C.It comes out whenever you like")
set udg_integer46=1
else
if(Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"What is the 5th difficulty option when you are prompted to choose the game's difficulty? |r A.Stupidly Strong B.Kage C.For PROS only")
set udg_integer46=2
else
if(Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"What is the command of teleporting back to base? |r A.HA B.HC C.HG")
set udg_integer46=3
else
if(Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"If you are hosting a map in Garena, what is the most appropriate way to act? |r A.Advertise but don't spam B.SPAM ALL THE WAY C.Clear chat and SPAM")
set udg_integer46=1
else
if(Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"Who is the main character of the anime/manga Naruto? |r A.Kuchiki Naruto B.Uzumaki Naruto C.Uzumaki Sasuke")
set udg_integer46=2
else
if(Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"According to the progress of the anime/manga, do you think Sasuke's personality have really changed? |r A.I don't know B.Definitely C.It's complicated, you never know until the end.")
set udg_integer46=3
else
if(Trig____________________001_Func006Func001Func001Func003Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"Which wave of attack will Gaara appear? |r A.8 B.18 C.28")
set udg_integer46=2
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,15.00,"Do you want the Sacred Essence? |r A.Yes B.No C.WTF is that?")
set udg_integer46=1
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
call TriggerSleepAction(15.00)
if(Trig____________________001_Func008C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,"Time for answering is up!")
set udg_booleans03[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))]=false
set udg_unit33=null
set udg_integer46=0
else
call DoNothing()
endif
endfunction
function Trig_WD11_Conditions takes nothing returns boolean
if(not(udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
return true
endfunction
function Trig_WD11_Func001Func003Func003C takes nothing returns boolean
if(not(GetRandomInt(1,10)==3))then
return false
endif
return true
endfunction
function Trig_WD11_Func001Func003C takes nothing returns boolean
if(not(GetRandomInt(1,15)==5))then
return false
endif
return true
endfunction
function Trig_WD11_Func001C takes nothing returns boolean
if(not(udg_integer46==1))then
return false
endif
return true
endfunction
function Trig_WD11_Actions takes nothing returns nothing
if(Trig_WD11_Func001C())then
if(Trig_WD11_Func001Func003C())then
call UnitAddItemByIdSwapped('I05Y',udg_unit33)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("answered correctly"+(GetHeroProperName(udg_unit33)+(" obtained"+(GetItemName(GetLastCreatedItem())+" X1")))))
else
if(Trig_WD11_Func001Func003Func003C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit33,bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit33,bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit33,bj_MODIFYMETHOD_ADD,5)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("answered correctly"+(GetHeroProperName(udg_unit33)+" All Stats +5")))
else
call AddHeroXPSwapped(500,udg_unit33,true)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("answered correctly"+(GetHeroProperName(udg_unit33)+" EXP +500")))
endif
endif
else
call DisplayTimedTextToPlayer(GetOwningPlayer(udg_unit33),0,0,30,"Wrong Answer")
endif
set udg_integer46=0
set udg_unit33=null
set udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]=false
endfunction
function Trig_WD22_Conditions takes nothing returns boolean
if(not(udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
return true
endfunction
function Trig_WD22_Func001Func003Func003C takes nothing returns boolean
if(not(GetRandomInt(1,10)==3))then
return false
endif
return true
endfunction
function Trig_WD22_Func001Func003C takes nothing returns boolean
if(not(GetRandomInt(1,15)==5))then
return false
endif
return true
endfunction
function Trig_WD22_Func001C takes nothing returns boolean
if(not(udg_integer46==2))then
return false
endif
return true
endfunction
function Trig_WD22_Actions takes nothing returns nothing
if(Trig_WD22_Func001C())then
if(Trig_WD22_Func001Func003C())then
call UnitAddItemByIdSwapped('I05Y',udg_unit33)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("answered correctly"+(GetHeroProperName(udg_unit33)+(" obtained"+(GetItemName(GetLastCreatedItem())+" X1")))))
else
if(Trig_WD22_Func001Func003Func003C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit33,bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit33,bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit33,bj_MODIFYMETHOD_ADD,5)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("answered correctly"+(GetHeroProperName(udg_unit33)+" All Stats +5")))
else
call AddHeroXPSwapped(500,udg_unit33,true)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("answered correctly"+(GetHeroProperName(udg_unit33)+" EXP +500")))
endif
endif
else
call DisplayTimedTextToPlayer(GetOwningPlayer(udg_unit33),0,0,30,"Wrong Answer")
endif
set udg_integer46=0
set udg_unit33=null
set udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]=false
endfunction
function Trig_WD33_Conditions takes nothing returns boolean
if(not(udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]==true))then
return false
endif
return true
endfunction
function Trig_WD33_Func001Func003Func003C takes nothing returns boolean
if(not(GetRandomInt(1,10)==3))then
return false
endif
return true
endfunction
function Trig_WD33_Func001Func003C takes nothing returns boolean
if(not(GetRandomInt(1,15)==5))then
return false
endif
return true
endfunction
function Trig_WD33_Func001C takes nothing returns boolean
if(not(udg_integer46==3))then
return false
endif
return true
endfunction
function Trig_WD33_Actions takes nothing returns nothing
if(Trig_WD33_Func001C())then
if(Trig_WD33_Func001Func003C())then
call UnitAddItemByIdSwapped('I05Y',udg_unit33)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("answered correctly"+(GetHeroProperName(udg_unit33)+(" obtained"+(GetItemName(GetLastCreatedItem())+" X1")))))
else
if(Trig_WD33_Func001Func003Func003C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit33,bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit33,bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit33,bj_MODIFYMETHOD_ADD,5)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("answered correctly"+(GetHeroProperName(udg_unit33)+" All Stats +5")))
else
call AddHeroXPSwapped(500,udg_unit33,true)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("answered correctly"+(GetHeroProperName(udg_unit33)+" EXP +500")))
endif
endif
else
call DisplayTimedTextToPlayer(GetOwningPlayer(udg_unit33),0,0,30,"Wrong Answer")
endif
set udg_integer46=0
set udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]=false
set udg_unit33=null
endfunction
function Trig_kongzhi_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function Trig_kongzhi_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00F'))then
return false
endif
return true
endfunction
function Trig_kongzhi_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00I'))then
return false
endif
return true
endfunction
function Trig_kongzhi_Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00H'))then
return false
endif
return true
endfunction
function Trig_kongzhi_Func004C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='n00G'))then
return false
endif
return true
endfunction
function Trig_kongzhi_Func005C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ndqp'))then
return false
endif
return true
endfunction
function Trig_kongzhi_Func006C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='ndqs'))then
return false
endif
return true
endfunction
function Trig_kongzhi_Actions takes nothing returns nothing
if(Trig_kongzhi_Func001C())then
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect75))
else
call DoNothing()
endif
if(Trig_kongzhi_Func002C())then
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect70))
else
call DoNothing()
endif
if(Trig_kongzhi_Func003C())then
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect76))
else
call DoNothing()
endif
if(Trig_kongzhi_Func004C())then
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect71))
else
call DoNothing()
endif
if(Trig_kongzhi_Func005C())then
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect64))
else
call DoNothing()
endif
if(Trig_kongzhi_Func006C())then
call IssuePointOrderLoc(GetTriggerUnit(),"attack",GetRectCenter(udg_rect63))
else
call DoNothing()
endif
endfunction
function Trig_yincangrenwu_Actions takes nothing returns nothing
call DestroyTrigger(GetTriggeringTrigger())
call ShowUnitShow(udg_unit83)
call DisplayTimedTextToForce(GetPlayersAll(),30,(GetPlayerName(GetTriggerPlayer())+" activates the secret character |cff00ff00Pain|r"))
endfunction
function Trig_duqian1_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06M'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_duqian1_Func001C takes nothing returns boolean
if(not(GetRandomInt(1,5)==3))then
return false
endif
return true
endfunction
function Trig_duqian1_Actions takes nothing returns nothing
if(Trig_duqian1_Func001C())then
call AdjustPlayerStateBJ(20000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("真是厉害啊|cffff0000"+(GetHeroProperName(GetTriggerUnit())+"|r 在与 |cffff0000缺一角|r 大战300回合中赢得 |cff00ff0020000|r 金币!")))
else
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("真是遭遇啊|cffff0000"+(GetHeroProperName(GetTriggerUnit())+"|r 在与 |cffff0000缺一角|r 大战300回合中不幸落败赔了 |cff00ff0010000|r 金币!")))
endif
endfunction
function Trig_duqian2_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06N'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_duqian2_Func001C takes nothing returns boolean
if(not(GetRandomInt(1,10)==5))then
return false
endif
return true
endfunction
function Trig_duqian2_Actions takes nothing returns nothing
if(Trig_duqian2_Func001C())then
call AdjustPlayerStateBJ(250000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("真是厉害啊|cffff0000"+(GetHeroProperName(GetTriggerUnit())+"|r 在与 |cffff0000缺一角|r 大战300回合中赢得 |cff00ff00250000|r 金币!")))
else
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("真是遭遇啊|cffff0000"+(GetHeroProperName(GetTriggerUnit())+"|r 在与 |cffff0000缺一角|r 大战300回合中不幸落败赔了 |cff00ff0050000|r 金币!")))
endif
endfunction
function Trig_duqian3_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I06O'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_duqian3_Func001C takes nothing returns boolean
if(not(GetRandomInt(1,20)==10))then
return false
endif
return true
endfunction
function Trig_duqian3_Actions takes nothing returns nothing
if(Trig_duqian3_Func001C())then
call AdjustPlayerStateBJ(1000000,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("真是厉害啊|cffff0000"+(GetHeroProperName(GetTriggerUnit())+"|r 在与 |cffff0000缺一角|r 大战300回合中赢得 |cff00ff00100万|r 金币!")))
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("有胆识,当世之赌神非|cffff0000"+(GetHeroProperName(GetTriggerUnit())+"|r 莫属!特别奖励 全属性+30")))
call ModifyHeroStat(bj_HEROSTAT_STR,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,30)
call ModifyHeroStat(bj_HEROSTAT_INT,GetTriggerUnit(),bj_MODIFYMETHOD_ADD,30)
else
call DisplayTimedTextToForce(GetPlayersAll(),1.00,("真是遭遇啊|cffff0000"+(GetHeroProperName(GetTriggerUnit())+"|r 在与 |cffff0000缺一角|r 大战300回合中不幸落败赔了 |cff00ff00100000|r 金币!")))
endif
endfunction
function Trig_TXwupin_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TXwupin_Func001C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='gcel'))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[1]))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
return true
endfunction
function Trig_TXwupin_Func002C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='rde1'))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[3]))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
return true
endfunction
function Trig_TXwupin_Func003C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='rde2'))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[4]))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
return true
endfunction
function Trig_TXwupin_Func004C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='rde3'))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[5]))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='nalb'))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!='necr'))then
return false
endif
return true
endfunction
function Trig_TXwupin_Actions takes nothing returns nothing
if(Trig_TXwupin_Func001C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,3.00,"TRIGSTR_7197")
else
endif
if(Trig_TXwupin_Func002C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,3.00,"TRIGSTR_7202")
else
endif
if(Trig_TXwupin_Func003C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,3.00,"TRIGSTR_7203")
else
endif
if(Trig_TXwupin_Func004C())then
call UnitRemoveItemSwapped(GetManipulatedItem(),GetTriggerUnit())
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,3.00,"TRIGSTR_7204")
else
endif
endfunction
function Trig_TXdengji1_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I068'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[3]))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[4]))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[5]))then
return false
endif
return true
endfunction
function Trig_TXdengji1_Func003Func001Func001Func005C takes nothing returns boolean
if(not(udg_units43[1]==null))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())<=149))then
return false
endif
return true
endfunction
function Trig_TXdengji1_Func003Func001Func001C takes nothing returns boolean
if(not(udg_units43[1]!=null))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())<=GetUnitLevel(udg_units43[1])))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[1]))then
return false
endif
return true
endfunction
function Trig_TXdengji1_Func003Func001C takes nothing returns boolean
if(not(GetTriggerUnit()!=udg_units43[1]))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>=150))then
return false
endif
if(not(GetUnitLevel(GetTriggerUnit())>GetUnitLevel(udg_units43[1])))then
return false
endif
return true
endfunction
function Trig_TXdengji1_Func003C takes nothing returns boolean
if(not(GetUnitLevel(GetTriggerUnit())>=150))then
return false
endif
if(not(udg_units43[1]==null))then
return false
endif
return true
endfunction
function Trig_TXdengji1_Actions takes nothing returns nothing
if(Trig_TXdengji1_Func003C())then
set udg_units43[1]=GetTriggerUnit()
call UnitAddItemByIdSwapped('gcel',GetTriggerUnit())
set udg_items02[1]=GetLastCreatedItem()
call SetItemInvulnerable(udg_items02[1],true)
call DisplayTimedTextToForce(GetPlayersAll(),30,("|cffff0000"+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|r with|cffff0000 "+(I2S(GetUnitLevel(GetTriggerUnit()))+(" |rLevel registers for the Top in Level and has obtained the "+(GetItemName(GetLastCreatedItem())+" as a reward!")))))))
else
if(Trig_TXdengji1_Func003Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30,("|cffff0000"+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|r with|cffff0000 "+(I2S(GetUnitLevel(GetTriggerUnit()))+(" |rLevel registers for the Top in Level.|cffff0000 "+(GetPlayerName(GetOwningPlayer(udg_units43[1]))+("|r has surrendered the "+GetItemName(udg_items02[1])))))))))
set udg_units43[1]=null
set udg_units43[1]=GetTriggerUnit()
call UnitAddItemSwapped(udg_items02[1],udg_units43[1])
else
if(Trig_TXdengji1_Func003Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,("Your current level is|cffff0000 "+(I2S(GetUnitLevel(GetTriggerUnit()))+("|r You have to exceed the current Top in Level |cffff0000"+(I2S(GetUnitLevel(udg_units43[1]))+" |rto register!")))))
else
if(Trig_TXdengji1_Func003Func001Func001Func005C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,("Your current level is|cffff0000 "+(I2S(GetUnitLevel(GetTriggerUnit()))+"|r You have to reach Level |cffff0000150|r to qualify to register")))
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,"TRIGSTR_7198")
endif
endif
endif
endif
endfunction
function Trig_TXdengji2_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I067'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[1]))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[4]))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[5]))then
return false
endif
return true
endfunction
function Trig_TXdengji2_Func003Func001Func001Func005C takes nothing returns boolean
if(not(udg_units43[3]==null))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true)<=5000))then
return false
endif
return true
endfunction
function Trig_TXdengji2_Func003Func001Func001C takes nothing returns boolean
if(not(udg_units43[3]!=null))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true)<=GetHeroStatBJ(bj_HEROSTAT_STR,udg_units43[3],true)))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[3]))then
return false
endif
return true
endfunction
function Trig_TXdengji2_Func003Func001C takes nothing returns boolean
if(not(GetTriggerUnit()!=udg_units43[3]))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true)>=5000))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true)>GetHeroStatBJ(bj_HEROSTAT_STR,udg_units43[3],true)))then
return false
endif
return true
endfunction
function Trig_TXdengji2_Func003C takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true)>=5000))then
return false
endif
if(not(udg_units43[3]==null))then
return false
endif
return true
endfunction
function Trig_TXdengji2_Actions takes nothing returns nothing
if(Trig_TXdengji2_Func003C())then
set udg_units43[3]=GetTriggerUnit()
call UnitAddItemByIdSwapped('rde1',GetTriggerUnit())
set udg_items02[3]=GetLastCreatedItem()
call SetItemInvulnerable(udg_items02[3],true)
call DisplayTimedTextToForce(GetPlayersAll(),30,("|cffff0000"+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|r with|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))+(" |rSTR registers for Top in STR, and has obtained "+(GetItemName(GetLastCreatedItem())+" as a reward!")))))))
else
if(Trig_TXdengji2_Func003Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30,("|cffff0000"+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|r 以|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))+(" |rSTR to register for Top in STR.|cffff0000 "+(GetPlayerName(GetOwningPlayer(udg_units43[3]))+("|r has surrendered the "+GetItemName(udg_items02[3])))))))))
set udg_units43[3]=null
set udg_units43[3]=GetTriggerUnit()
call UnitAddItemSwapped(udg_items02[3],udg_units43[3])
else
if(Trig_TXdengji2_Func003Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,("Your current STR is|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))+("|r You have to exceed the current Top in STR |cffff0000"+(I2S(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units43[3],true))+" |rto qualify to register!")))))
else
if(Trig_TXdengji2_Func003Func001Func001Func005C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,("Your current STR is|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_STR,GetTriggerUnit(),true))+"|r You have to achieve |cffff00005000|r STR to be able to register for the proof of Top in STR")))
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,"TRIGSTR_7199")
endif
endif
endif
endif
endfunction
function Trig_TXdengji3_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I069'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[1]))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[3]))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[5]))then
return false
endif
return true
endfunction
function Trig_TXdengji3_Func003Func001Func001Func005C takes nothing returns boolean
if(not(udg_units43[4]==null))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true)<=5000))then
return false
endif
return true
endfunction
function Trig_TXdengji3_Func003Func001Func001C takes nothing returns boolean
if(not(udg_units43[4]!=null))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true)<=GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units43[4],true)))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[4]))then
return false
endif
return true
endfunction
function Trig_TXdengji3_Func003Func001C takes nothing returns boolean
if(not(GetTriggerUnit()!=udg_units43[4]))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true)>=5000))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true)>GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units43[4],true)))then
return false
endif
return true
endfunction
function Trig_TXdengji3_Func003C takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true)>=5000))then
return false
endif
if(not(udg_units43[4]==null))then
return false
endif
return true
endfunction
function Trig_TXdengji3_Actions takes nothing returns nothing
if(Trig_TXdengji3_Func003C())then
set udg_units43[4]=GetTriggerUnit()
call UnitAddItemByIdSwapped('rde2',GetTriggerUnit())
set udg_items02[4]=GetLastCreatedItem()
call SetItemInvulnerable(udg_items02[4],true)
call DisplayTimedTextToForce(GetPlayersAll(),30,("|cffff0000"+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|r with|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))+(" |rAGI registers for Top in AGI, and has obtained "+(GetItemName(GetLastCreatedItem())+" as a reward!")))))))
else
if(Trig_TXdengji3_Func003Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30,("|cffff0000"+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|r with|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))+(" |rAGI to register for Top in AGI|cffff0000 "+(GetPlayerName(GetOwningPlayer(udg_units43[4]))+("|r has surrendered the "+GetItemName(udg_items02[4])))))))))
set udg_units43[4]=null
set udg_units43[4]=GetTriggerUnit()
call UnitAddItemSwapped(udg_items02[4],udg_units43[4])
else
if(Trig_TXdengji3_Func003Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,("Your current AGI is|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))+("|r You have to exceed the current Top in AGI |cffff0000"+(I2S(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units43[4],true))+" |rto register!")))))
else
if(Trig_TXdengji3_Func003Func001Func001Func005C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,("Your current AGI is|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_AGI,GetTriggerUnit(),true))+"|r You have to obtain |cffff00005000|r AGI to be qualified to register!")))
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,"TRIGSTR_7200")
endif
endif
endif
endif
endfunction
function Trig_TXdengji4_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I066'))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[1]))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[3]))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[4]))then
return false
endif
return true
endfunction
function Trig_TXdengji4_Func003Func001Func001Func005C takes nothing returns boolean
if(not(udg_units43[5]==null))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true)<=5000))then
return false
endif
return true
endfunction
function Trig_TXdengji4_Func003Func001Func001C takes nothing returns boolean
if(not(udg_units43[5]!=null))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true)<=GetHeroStatBJ(bj_HEROSTAT_INT,udg_units43[5],true)))then
return false
endif
if(not(GetTriggerUnit()!=udg_units43[5]))then
return false
endif
return true
endfunction
function Trig_TXdengji4_Func003Func001C takes nothing returns boolean
if(not(GetTriggerUnit()!=udg_units43[5]))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true)>=5000))then
return false
endif
if(not(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true)>GetHeroStatBJ(bj_HEROSTAT_INT,udg_units43[5],true)))then
return false
endif
return true
endfunction
function Trig_TXdengji4_Func003C takes nothing returns boolean
if(not(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true)>=5000))then
return false
endif
if(not(udg_units43[5]==null))then
return false
endif
return true
endfunction
function Trig_TXdengji4_Actions takes nothing returns nothing
if(Trig_TXdengji4_Func003C())then
set udg_units43[5]=GetTriggerUnit()
call UnitAddItemByIdSwapped('rde3',GetTriggerUnit())
set udg_items02[5]=GetLastCreatedItem()
call SetItemInvulnerable(udg_items02[5],true)
call DisplayTimedTextToForce(GetPlayersAll(),30,("|cffff0000"+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|r with|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))+(" |rINT registers for Top in INT and has obtained "+(GetItemName(GetLastCreatedItem())+" as a reward!")))))))
else
if(Trig_TXdengji4_Func003Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30,("|cffff0000"+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+("|r with|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))+(" |r INT registers for the proof of Top in INT.|cffff0000 "+(GetPlayerName(GetOwningPlayer(udg_units43[5]))+("|r has surrendered the "+GetItemName(udg_items02[5])))))))))
set udg_units43[5]=null
set udg_units43[5]=GetTriggerUnit()
call UnitAddItemSwapped(udg_items02[5],udg_units43[5])
else
if(Trig_TXdengji4_Func003Func001Func001C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,("Your current INT is|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))+("|r You must exceed the current Top in INT |cffff0000"+(I2S(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units43[5],true))+" |rto register!")))))
else
if(Trig_TXdengji4_Func003Func001Func001Func005C())then
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,10.00,("Your current INT is|cffff0000 "+(I2S(GetHeroStatBJ(bj_HEROSTAT_INT,GetTriggerUnit(),true))+"|r You have to achieve |cffff00005000|r INT to be able to apply for the proof of Top in INT")))
else
call DisplayTimedTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,5.00,"TRIGSTR_7201")
endif
endif
endif
endif
endfunction
function Trig_TZ4_______u_Conditions takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetItemTypeId(GetManipulatedItem())=='I06V'))then
return false
endif
if(not(GetPlayerController(GetOwningPlayer(GetTriggerUnit()))==MAP_CONTROL_USER))then
return false
endif
return true
endfunction
function Trig_TZ4_______u_Func001Func010Func001C takes nothing returns boolean
if((udg_units17[9]==udg_unit57))then
return true
endif
if((udg_units17[9]==udg_unit63))then
return true
endif
if((udg_units17[9]==udg_unit75))then
return true
endif
if((udg_units17[9]==udg_unit64))then
return true
endif
if((udg_units17[9]==udg_unit77))then
return true
endif
if((udg_units17[9]==udg_unit85))then
return true
endif
if((udg_units17[9]==udg_unit89))then
return true
endif
if((udg_units17[9]==udg_unit91))then
return true
endif
return false
endfunction
function Trig_TZ4_______u_Func001Func010C takes nothing returns boolean
if(not Trig_TZ4_______u_Func001Func010Func001C())then
return false
endif
return true
endfunction
function Trig_TZ4_______u_Func001C takes nothing returns boolean
if(not(udg_boolean06==false))then
return false
endif
return true
endfunction
function Trig_TZ4_______u_Actions takes nothing returns nothing
if(Trig_TZ4_______u_Func001C())then
set udg_boolean06=true
set udg_units17[9]=GetTriggerUnit()
set udg_locations05[77]=GetRectCenter(udg_rect13)
call SetUnitPositionLoc(udg_units17[9],udg_locations05[77])
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_units17[9]),udg_locations05[77],0)
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_units17[9]),Player(PLAYER_NEUTRAL_AGGRESSIVE),udg_locations05[77],bj_UNIT_FACING)
call SetHeroLevelBJ(GetLastCreatedUnit(),GetUnitLevel(udg_units17[9]),false)
set udg_units17[10]=GetLastCreatedUnit()
if(Trig_TZ4_______u_Func001Func010C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units17[10],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units17[9],false)*18))
else
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units17[10],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units17[9],false)*25))
endif
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units17[10],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units17[9],false)*25))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units17[10],bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units17[9],false)*25))
call EnableTrigger(udg_trigger618)
call EnableTrigger(udg_trigger619)
call RemoveLocation(udg_locations05[77])
else
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[9]),0,0,"TRIGSTR_8559")
endif
endfunction
function Trig_TZ5_______u_Func009C takes nothing returns boolean
if((GetTriggerUnit()==udg_units17[9]))then
return true
endif
if((GetTriggerUnit()==udg_units17[10]))then
return true
endif
return false
endfunction
function Trig_TZ5_______u_Conditions takes nothing returns boolean
if(not Trig_TZ5_______u_Func009C())then
return false
endif
if(not(udg_boolean06==true))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_TZ5_______u_Func004Func005Func001C takes nothing returns boolean
if(not(GetRandomInt(1,3)==3))then
return false
endif
return true
endfunction
function Trig_TZ5_______u_Func004Func005C takes nothing returns boolean
if(not(GetRandomInt(1,3)==2))then
return false
endif
return true
endfunction
function Trig_TZ5_______u_Func004C takes nothing returns boolean
if(not(GetTriggerUnit()==udg_units17[10]))then
return false
endif
return true
endfunction
function Trig_TZ5_______u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger619)
set udg_locations05[77]=GetRectCenter(udg_rect03)
if(Trig_TZ5_______u_Func004C())then
if(Trig_TZ5_______u_Func004Func005C())then
call AdjustPlayerStateBJ(80000,GetOwningPlayer(udg_units17[9]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[9]),0,0,"You are rewarded with 80,000 gold")
else
if(Trig_TZ5_______u_Func004Func005Func001C())then
call AdjustPlayerStateBJ(40000,GetOwningPlayer(udg_units17[9]),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXPSwapped(6000,udg_units17[9],false)
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[9]),0,0,"You are rewarded with 6000 EXP and 40,000 gold")
else
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units17[7],bj_MODIFYMETHOD_ADD,65)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units17[7],bj_MODIFYMETHOD_ADD,65)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units17[7],bj_MODIFYMETHOD_ADD,65)
call AdjustPlayerStateBJ(6000,GetOwningPlayer(udg_units17[9]),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[9]),0,0,"You are rewarded with 6000 gold and +65 to all stats")
endif
endif
call TriggerSleepAction(2)
call SetUnitPositionLoc(udg_units17[9],udg_locations05[77])
else
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[9]),0,0,"TRIGSTR_8560")
call RemoveUnit(udg_units17[10])
call TriggerSleepAction(2)
call SetUnitPositionLoc(udg_units17[9],udg_locations05[77])
endif
set udg_boolean06=false
set udg_units17[9]=null
set udg_units17[10]=null
call RemoveLocation(udg_locations05[77])
endfunction
function Trig_TZ6_______u_Func011C takes nothing returns boolean
if((GetTriggerUnit()==udg_units17[9]))then
return true
endif
if((GetTriggerUnit()==udg_units17[10]))then
return true
endif
return false
endfunction
function Trig_TZ6_______u_Conditions takes nothing returns boolean
if(not Trig_TZ6_______u_Func011C())then
return false
endif
return true
endfunction
function Trig_TZ6_______u_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger618)
set udg_locations05[77]=GetRectCenter(udg_rect03)
call SetUnitPositionLoc(udg_units17[9],udg_locations05[77])
call RemoveUnit(udg_units17[10])
call DisplayTextToPlayer(GetOwningPlayer(udg_units17[9]),0,0,"TRIGSTR_8564")
set udg_boolean06=false
set udg_units17[9]=null
set udg_units17[10]=null
call RemoveLocation(udg_locations05[77])
endfunction
function main2 takes nothing returns nothing
call SetCameraBounds(-5376.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-5632.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),5376.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),5120.0-GetCameraMargin(CAMERA_MARGIN_TOP),-5376.0+GetCameraMargin(CAMERA_MARGIN_LEFT),5120.0-GetCameraMargin(CAMERA_MARGIN_TOP),5376.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-5632.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("LordaeronSummerDay")
call SetAmbientNightSound("LordaeronSummerNight")
call SetMapMusic("Music",true,0)
set udg_sound01=CreateSound("war3mapImported\\bg64.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound01,12147)
call SetSoundChannel(udg_sound01,0)
call SetSoundVolume(udg_sound01,127)
call SetSoundPitch(udg_sound01,1.0)
set udg_sound02=CreateSound("war3mapImported\\bj.Mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound02,1358)
call SetSoundChannel(udg_sound02,0)
call SetSoundVolume(udg_sound02,127)
call SetSoundPitch(udg_sound02,1.0)
set udg_sound03=CreateSound("war3mapImported\\czw.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound03,1332)
call SetSoundChannel(udg_sound03,0)
call SetSoundVolume(udg_sound03,127)
call SetSoundPitch(udg_sound03,1.0)
set udg_sound04=CreateSound("war3mapImported\\dlzzs.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound04,1881)
call SetSoundChannel(udg_sound04,0)
call SetSoundVolume(udg_sound04,127)
call SetSoundPitch(udg_sound04,1.0)
set udg_sound05=CreateSound("war3mapImported\\fs.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound05,1463)
call SetSoundChannel(udg_sound05,0)
call SetSoundVolume(udg_sound05,127)
call SetSoundPitch(udg_sound05,1.0)
set udg_sound06=CreateSound("war3mapImported\\huitian.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound06,1071)
call SetSoundChannel(udg_sound06,0)
call SetSoundVolume(udg_sound06,127)
call SetSoundPitch(udg_sound06,1.0)
set udg_sound07=CreateSound("war3mapImported\\lq.Mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound07,940)
call SetSoundChannel(udg_sound07,0)
call SetSoundVolume(udg_sound07,127)
call SetSoundPitch(udg_sound07,1.0)
set udg_sound08=CreateSound("war3mapImported\\lz.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound08,1411)
call SetSoundChannel(udg_sound08,0)
call SetSoundVolume(udg_sound08,127)
call SetSoundPitch(udg_sound08,1.0)
set udg_sound09=CreateSound("war3mapImported\\sbsz.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound09,1489)
call SetSoundChannel(udg_sound09,0)
call SetSoundVolume(udg_sound09,127)
call SetSoundPitch(udg_sound09,1.0)
set udg_sound10=CreateSound("war3mapImported\\sczw.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound10,1175)
call SetSoundChannel(udg_sound10,0)
call SetSoundVolume(udg_sound10,127)
call SetSoundPitch(udg_sound10,1.0)
set udg_sound11=CreateSound("war3mapImported\\shjx.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound11,2873)
call SetSoundChannel(udg_sound11,0)
call SetSoundVolume(udg_sound11,127)
call SetSoundPitch(udg_sound11,1.0)
set udg_sound12=CreateSound("war3mapImported\\sls.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound12,1463)
call SetSoundChannel(udg_sound12,0)
call SetSoundVolume(udg_sound12,127)
call SetSoundPitch(udg_sound12,1.0)
set udg_sound13=CreateSound("war3mapImported\\wy.Mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound13,2795)
call SetSoundChannel(udg_sound13,0)
call SetSoundVolume(udg_sound13,127)
call SetSoundPitch(udg_sound13,1.0)
set udg_sound14=CreateSound("war3mapImported\\zjzw.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound14,2544)
call SetSoundChannel(udg_sound14,0)
call SetSoundVolume(udg_sound14,127)
call SetSoundPitch(udg_sound14,1.0)
set udg_sound15=CreateSound("Sound\\Interface\\Warning\\Undead\\AcolyteCannotBuildThere1.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound15,"CantPlaceUndead")
call SetSoundDuration(udg_sound15,1672)
set udg_sound16=CreateSound("Sound\\Interface\\Warning\\Undead\\AcolytePlacedOffBlight1.wav",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound16,"OffBlightUndead")
call SetSoundDuration(udg_sound16,2856)
set udg_sound17=CreateSound("Sound\\Dialogue\\HumanCampaign\\Human03\\H03Captain01.mp3",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound17,"H03Captain01")
call SetSoundDuration(udg_sound17,5538)
set udg_sound18=CreateSound("Sound\\Dialogue\\HumanCampaign\\Human03\\H03Captain03.mp3",false,false,false,10,10,"")
call SetSoundParamsFromLabel(udg_sound18,"H03Captain03")
call SetSoundDuration(udg_sound18,1045)
set udg_sound19=CreateSound("war3mapImported\\lsbl11.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound19,2534)
call SetSoundChannel(udg_sound19,0)
call SetSoundVolume(udg_sound19,127)
call SetSoundPitch(udg_sound19,1.0)
set udg_sound20=CreateSound("war3mapImported\\paomo.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound20,3526)
call SetSoundChannel(udg_sound20,0)
call SetSoundVolume(udg_sound20,105)
call SetSoundPitch(udg_sound20,1.0)
set udg_sound21=CreateSound("war3mapImported\\tz2.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound21,2403)
call SetSoundChannel(udg_sound21,0)
call SetSoundVolume(udg_sound21,127)
call SetSoundPitch(udg_sound21,1.0)
set udg_sound22=CreateSound("war3mapImported\\txhzw.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound22,1594)
call SetSoundChannel(udg_sound22,0)
call SetSoundVolume(udg_sound22,127)
call SetSoundPitch(udg_sound22,1.0)
set udg_sound23=CreateSound("war3mapImported\\sfl.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound23,1384)
call SetSoundChannel(udg_sound23,0)
call SetSoundVolume(udg_sound23,127)
call SetSoundPitch(udg_sound23,1.0)
set udg_sound24=CreateSound("war3mapImported\\qsssssss.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound24,1019)
call SetSoundChannel(udg_sound24,0)
call SetSoundVolume(udg_sound24,100)
call SetSoundPitch(udg_sound24,1.0)
set udg_sound25=CreateSound("war3mapImported\\ywsr.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound25,2847)
call SetSoundChannel(udg_sound25,0)
call SetSoundVolume(udg_sound25,100)
call SetSoundPitch(udg_sound25,1.0)
set udg_sound26=CreateSound("war3mapImported\\wushijao.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound26,2220)
call SetSoundChannel(udg_sound26,0)
call SetSoundVolume(udg_sound26,110)
call SetSoundPitch(udg_sound26,1.0)
set udg_sound27=CreateSound("war3mapImported\\sjjl1.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound27,3866)
call SetSoundChannel(udg_sound27,0)
call SetSoundVolume(udg_sound27,127)
call SetSoundPitch(udg_sound27,1.0)
set udg_sound28=CreateSound("war3mapImported\\qiling.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound28,3500)
call SetSoundChannel(udg_sound28,0)
call SetSoundVolume(udg_sound28,110)
call SetSoundPitch(udg_sound28,1.0)
set udg_sound29=CreateSound("war3mapImported\\sj.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound29,2690)
call SetSoundChannel(udg_sound29,0)
call SetSoundVolume(udg_sound29,127)
call SetSoundPitch(udg_sound29,1.0)
set udg_sound30=CreateSound("war3mapImported\\fdlxslj.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound30,2351)
call SetSoundChannel(udg_sound30,0)
call SetSoundVolume(udg_sound30,127)
call SetSoundPitch(udg_sound30,1.0)
set udg_sound31=CreateSound("war3mapImported\\lxw.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound31,1907)
call SetSoundChannel(udg_sound31,0)
call SetSoundVolume(udg_sound31,127)
call SetSoundPitch(udg_sound31,1.0)
set udg_sound32=CreateSound("war3mapImported\\Uhq.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound32,2268)
call SetSoundChannel(udg_sound32,0)
call SetSoundVolume(udg_sound32,127)
call SetSoundPitch(udg_sound32,1.0)
set udg_sound33=CreateSound("war3mapImported\\zztz.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound33,2403)
call SetSoundChannel(udg_sound33,0)
call SetSoundVolume(udg_sound33,127)
call SetSoundPitch(udg_sound33,1.0)
set udg_sound34=CreateSound("war3mapImported\\sltz.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound34,3265)
call SetSoundChannel(udg_sound34,0)
call SetSoundVolume(udg_sound34,127)
call SetSoundPitch(udg_sound34,1.0)
set udg_sound35=CreateSound("war3mapImported\\ZZhqs.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound35,2064)
call SetSoundChannel(udg_sound35,0)
call SetSoundVolume(udg_sound35,127)
call SetSoundPitch(udg_sound35,1.0)
set udg_sound36=CreateSound("war3mapImported\\DDl.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound36,784)
call SetSoundChannel(udg_sound36,0)
call SetSoundVolume(udg_sound36,127)
call SetSoundPitch(udg_sound36,1.0)
set udg_sound37=CreateSound("war3mapImported\\DDL2.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound37,1594)
call SetSoundChannel(udg_sound37,0)
call SetSoundVolume(udg_sound37,127)
call SetSoundPitch(udg_sound37,1.0)
set udg_sound38=CreateSound("war3mapImported\\zyzskk.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound38,1437)
call SetSoundChannel(udg_sound38,0)
call SetSoundVolume(udg_sound38,127)
call SetSoundPitch(udg_sound38,1.0)
set udg_sound39=CreateSound("war3mapImported\\baguaznc.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound39,2586)
call SetSoundChannel(udg_sound39,0)
call SetSoundVolume(udg_sound39,127)
call SetSoundPitch(udg_sound39,1.0)
set udg_sound40=CreateSound("war3mapImported\\sdsxy.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound40,1802)
call SetSoundChannel(udg_sound40,0)
call SetSoundVolume(udg_sound40,127)
call SetSoundPitch(udg_sound40,1.0)
set udg_sound41=CreateSound("war3mapImported\\why.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound41,1437)
call SetSoundChannel(udg_sound41,0)
call SetSoundVolume(udg_sound41,127)
call SetSoundPitch(udg_sound41,1.0)
set udg_sound42=CreateSound("war3mapImported\\hdhlyd.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound42,2142)
call SetSoundChannel(udg_sound42,0)
call SetSoundVolume(udg_sound42,90)
call SetSoundPitch(udg_sound42,1.0)
set udg_sound43=CreateSound("war3mapImported\\ldqnlll.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound43,2016)
call SetSoundChannel(udg_sound43,0)
call SetSoundVolume(udg_sound43,127)
call SetSoundPitch(udg_sound43,1.0)
set udg_sound44=CreateSound("war3mapImported\\jinsesg.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound44,3004)
call SetSoundChannel(udg_sound44,0)
call SetSoundVolume(udg_sound44,127)
call SetSoundPitch(udg_sound44,1.0)
set udg_sound45=CreateSound("war3mapImported\\kkwhy.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound45,1698)
call SetSoundChannel(udg_sound45,0)
call SetSoundVolume(udg_sound45,127)
call SetSoundPitch(udg_sound45,1.0)
set udg_sound46=CreateSound("war3mapImported\\li1.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound46,2664)
call SetSoundChannel(udg_sound46,0)
call SetSoundVolume(udg_sound46,127)
call SetSoundPitch(udg_sound46,1.0)
set udg_sound47=CreateSound("war3mapImported\\li2.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound47,3004)
call SetSoundChannel(udg_sound47,0)
call SetSoundVolume(udg_sound47,127)
call SetSoundPitch(udg_sound47,1.0)
set udg_sound48=CreateSound("war3mapImported\\li3.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound48,2560)
call SetSoundChannel(udg_sound48,0)
call SetSoundVolume(udg_sound48,127)
call SetSoundPitch(udg_sound48,1.0)
set udg_sound49=CreateSound("war3mapImported\\sdwxjao.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound49,2978)
call SetSoundChannel(udg_sound49,0)
call SetSoundVolume(udg_sound49,127)
call SetSoundPitch(udg_sound49,1.0)
set udg_sound50=CreateSound("war3mapImported\\tldh3d.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound50,2012)
call SetSoundChannel(udg_sound50,0)
call SetSoundVolume(udg_sound50,127)
call SetSoundPitch(udg_sound50,1.0)
set udg_sound51=CreateSound("war3mapImported\\xuzzn.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound51,2847)
call SetSoundChannel(udg_sound51,0)
call SetSoundVolume(udg_sound51,100)
call SetSoundPitch(udg_sound51,1.0)
set udg_sound52=CreateSound("war3mapImported\\li4.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound52,4101)
call SetSoundChannel(udg_sound52,0)
call SetSoundVolume(udg_sound52,127)
call SetSoundPitch(udg_sound52,1.0)
set udg_sound53=CreateSound("war3mapImported\\GJsljw.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound53,3292)
call SetSoundChannel(udg_sound53,0)
call SetSoundVolume(udg_sound53,127)
call SetSoundPitch(udg_sound53,1.0)
set udg_sound54=CreateSound("war3mapImported\\fdljjf.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound54,2612)
call SetSoundChannel(udg_sound54,0)
call SetSoundVolume(udg_sound54,80)
call SetSoundPitch(udg_sound54,1.0)
set udg_sound55=CreateSound("war3mapImported\\qingniao.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound55,89391)
call SetSoundChannel(udg_sound55,0)
call SetSoundVolume(udg_sound55,110)
call SetSoundPitch(udg_sound55,1.0)
set udg_sound56=CreateSound("war3mapImported\\baiyan1.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound56,1541)
call SetSoundChannel(udg_sound56,0)
call SetSoundVolume(udg_sound56,100)
call SetSoundPitch(udg_sound56,1.0)
set udg_sound57=CreateSound("war3mapImported\\baiyan2.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound57,1254)
call SetSoundChannel(udg_sound57,0)
call SetSoundVolume(udg_sound57,127)
call SetSoundPitch(udg_sound57,1.0)
set udg_sound58=CreateSound("war3mapImported\\bg32.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound58,9796)
call SetSoundChannel(udg_sound58,0)
call SetSoundVolume(udg_sound58,127)
call SetSoundPitch(udg_sound58,1.0)
set udg_sound59=CreateSound("war3mapImported\\guaili.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound59,2220)
call SetSoundChannel(udg_sound59,0)
call SetSoundVolume(udg_sound59,127)
call SetSoundPitch(udg_sound59,1.0)
set udg_sound60=CreateSound("war3mapImported\\tjsss.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound60,2377)
call SetSoundChannel(udg_sound60,0)
call SetSoundVolume(udg_sound60,110)
call SetSoundPitch(udg_sound60,1.0)
set udg_sound61=CreateSound("war3mapImported\\sssshhhhlll.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound61,1907)
call SetSoundChannel(udg_sound61,0)
call SetSoundVolume(udg_sound61,127)
call SetSoundPitch(udg_sound61,1.0)
set udg_sound62=CreateSound("war3mapImported\\cswh.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound62,2037)
call SetSoundChannel(udg_sound62,0)
call SetSoundVolume(udg_sound62,100)
call SetSoundPitch(udg_sound62,1.0)
set udg_sound63=CreateSound("war3mapImported\\cswhzzzzzzz.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound63,7784)
call SetSoundChannel(udg_sound63,0)
call SetSoundVolume(udg_sound63,127)
call SetSoundPitch(udg_sound63,1.0)
set udg_sound64=CreateSound("war3mapImported\\yuedu.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound64,1358)
call SetSoundChannel(udg_sound64,0)
call SetSoundVolume(udg_sound64,127)
call SetSoundPitch(udg_sound64,1.0)
set udg_sound65=CreateSound("war3mapImported\\pnsl.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound65,1646)
call SetSoundChannel(udg_sound65,0)
call SetSoundVolume(udg_sound65,127)
call SetSoundPitch(udg_sound65,1.0)
set udg_sound66=CreateSound("war3mapImported\\gaocao32.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound66,96874)
call SetSoundChannel(udg_sound66,0)
call SetSoundVolume(udg_sound66,127)
call SetSoundPitch(udg_sound66,1.0)
set udg_sound67=CreateSound("war3mapImported\\pndddd.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound67,2700)
call SetSoundChannel(udg_sound67,0)
call SetSoundVolume(udg_sound67,127)
call SetSoundPitch(udg_sound67,1.0)
set udg_sound68=CreateSound("war3mapImported\\dcbhzs.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound68,2534)
call SetSoundChannel(udg_sound68,0)
call SetSoundVolume(udg_sound68,127)
call SetSoundPitch(udg_sound68,1.0)
set udg_sound69=CreateSound("war3mapImported\\hl4.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound69,3108)
call SetSoundChannel(udg_sound69,0)
call SetSoundVolume(udg_sound69,127)
call SetSoundPitch(udg_sound69,1.0)
set udg_sound70=CreateSound("war3mapImported\\hl6.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound70,2612)
call SetSoundChannel(udg_sound70,0)
call SetSoundVolume(udg_sound70,127)
call SetSoundPitch(udg_sound70,1.0)
set udg_sound71=CreateSound("war3mapImported\\hl7.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound71,2612)
call SetSoundChannel(udg_sound71,0)
call SetSoundVolume(udg_sound71,127)
call SetSoundPitch(udg_sound71,1.0)
set udg_sound72=CreateSound("war3mapImported\\dashewan333.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound72,2952)
call SetSoundChannel(udg_sound72,0)
call SetSoundVolume(udg_sound72,127)
call SetSoundPitch(udg_sound72,1.0)
call CreateRegions2()
call CreateAllItems()
call CreateNeutralPassiveBuildings2()
call CreateBuildingsForPlayer9()
call CreateNeutralPassive2()
call CreateUnitsForPlayer0()
call CreateUnitsForPlayer1()
call CreateUnitsForPlayer2()
call CreateUnitsForPlayer3()
call CreateUnitsForPlayer4()
call CreateUnitsForPlayer5()
call CreateUnitsForPlayer9()
call CreateUnitsForPlayer10()
call InitGlobals2()
set udg_trigger01=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger01,500.00)
call TriggerAddAction(udg_trigger01,function Trig_tq_Actions)
set udg_trigger02=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger02,30.00)
call TriggerAddAction(udg_trigger02,function Trig_rwmb_Actions)
set udg_trigger03=CreateTrigger()
call TriggerAddAction(udg_trigger03,function Trig_CSH_Actions)
set udg_trigger04=CreateTrigger()
call DisableTrigger(udg_trigger04)
call TriggerRegisterAnyUnitEventBJ(udg_trigger04,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger04,Condition(function Trig_wuCDmoshi_Conditions))
call TriggerAddAction(udg_trigger04,function Trig_wuCDmoshi_Actions)
set udg_trigger05=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger05,3.00)
call TriggerAddAction(udg_trigger05,function Trig_nandu1111111_Actions)
set udg_trigger06=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger06,udg_dialog02)
call TriggerAddAction(udg_trigger06,function Trig_nandu2222222_Actions)
set udg_trigger07=CreateTrigger()
call DisableTrigger(udg_trigger07)
call TriggerRegisterDialogEventBJ(udg_trigger07,udg_dialog02)
call TriggerAddAction(udg_trigger07,function Trig_nandu3333333_Actions)
set udg_trigger08=CreateTrigger()
call DisableTrigger(udg_trigger08)
call TriggerRegisterDialogEventBJ(udg_trigger08,udg_dialog02)
call TriggerAddAction(udg_trigger08,function Trig_nandu4444444_Actions)
set udg_trigger09=CreateTrigger()
call DisableTrigger(udg_trigger09)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger09,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger09,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger09,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger09,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger09,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger09,Player(5),true)
call TriggerAddCondition(udg_trigger09,Condition(function Trig_xuanze111111_Conditions))
call TriggerAddAction(udg_trigger09,function Trig_xuanze111111_Actions)
set udg_trigger10=CreateTrigger()
call DisableTrigger(udg_trigger10)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger10,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger10,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger10,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger10,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger10,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger10,Player(5),true)
call TriggerAddCondition(udg_trigger10,Condition(function Trig_xuanze222222_Conditions))
call TriggerAddAction(udg_trigger10,function Trig_xuanze222222_Actions)
set udg_trigger11=CreateTrigger()
call TriggerAddAction(udg_trigger11,function Trig_MB1_Actions)
set udg_trigger12=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger12,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger12,Condition(function Trig_MB2_Conditions))
call TriggerAddAction(udg_trigger12,function Trig_MB2_Actions)
set udg_trigger13=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger13,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger13,Condition(function Trig_MB3_Conditions))
call TriggerAddAction(udg_trigger13,function Trig_MB3_Actions)
set udg_trigger14=CreateTrigger()
call DisableTrigger(udg_trigger14)
call TriggerRegisterAnyUnitEventBJ(udg_trigger14,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger14,Condition(function Trig_MB4_Conditions))
call TriggerAddAction(udg_trigger14,function Trig_MB4_Actions)
set udg_trigger15=CreateTrigger()
call DisableTrigger(udg_trigger15)
call TriggerRegisterAnyUnitEventBJ(udg_trigger15,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger15,Condition(function Trig_MB5_Conditions))
call TriggerAddAction(udg_trigger15,function Trig_MB5_Actions)
set udg_trigger16=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger16,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger16,Condition(function Trig_MB6_Conditions))
call TriggerAddAction(udg_trigger16,function Trig_MB6_Actions)
set udg_trigger17=CreateTrigger()
call DisableTrigger(udg_trigger17)
call TriggerRegisterTimerEventPeriodic(udg_trigger17,1.00)
call TriggerAddAction(udg_trigger17,function Trig_shijian1111_Actions)
set udg_trigger18=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_trigger18,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger18,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger18,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger18,Player(3))
call TriggerRegisterPlayerEventLeave(udg_trigger18,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger18,Player(5))
call TriggerAddAction(udg_trigger18,function Trig_LKYX111111_Actions)
set udg_trigger19=CreateTrigger()
call TriggerAddAction(udg_trigger19,function Trig_jingyan_Actions)
set udg_trigger20=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger20,Player(0),EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger20,Condition(function Trig_XN1_Conditions))
call TriggerAddAction(udg_trigger20,function Trig_XN1_Actions)
set udg_trigger21=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger21,Player(1),EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger21,Condition(function Trig_XN2_Conditions))
call TriggerAddAction(udg_trigger21,function Trig_XN2_Actions)
set udg_trigger22=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger22,Player(2),EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger22,Condition(function Trig_XN3_Conditions))
call TriggerAddAction(udg_trigger22,function Trig_XN3_Actions)
set udg_trigger23=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger23,Player(3),EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger23,Condition(function Trig_XN4_Conditions))
call TriggerAddAction(udg_trigger23,function Trig_XN4_Actions)
set udg_trigger24=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger24,Player(4),EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger24,Condition(function Trig_XN5_Conditions))
call TriggerAddAction(udg_trigger24,function Trig_XN5_Actions)
set udg_trigger25=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger25,Player(5),EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger25,Condition(function Trig_XN6_Conditions))
call TriggerAddAction(udg_trigger25,function Trig_XN6_Actions)
set udg_trigger26=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger26,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger26,Condition(function Trig_TZ1_Conditions))
call TriggerAddAction(udg_trigger26,function Trig_TZ1_Actions)
set udg_trigger27=CreateTrigger()
call DisableTrigger(udg_trigger27)
call TriggerRegisterAnyUnitEventBJ(udg_trigger27,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger27,Condition(function Trig_TZ2_Conditions))
call TriggerAddAction(udg_trigger27,function Trig_TZ2_Actions)
set udg_trigger28=CreateTrigger()
call DisableTrigger(udg_trigger28)
call TriggerRegisterLeaveRectSimple(udg_trigger28,udg_rect62)
call TriggerAddCondition(udg_trigger28,Condition(function Trig_TZ3_Conditions))
call TriggerAddAction(udg_trigger28,function Trig_TZ3_Actions)
set udg_trigger29=CreateTrigger()
call DisableTrigger(udg_trigger29)
call TriggerRegisterAnyUnitEventBJ(udg_trigger29,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger29,Condition(function Trig_TZ4_Conditions))
call TriggerAddAction(udg_trigger29,function Trig_TZ4_Actions)
set udg_trigger30=CreateTrigger()
call DisableTrigger(udg_trigger30)
call TriggerRegisterAnyUnitEventBJ(udg_trigger30,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger30,Condition(function Trig_TZ5_Conditions))
call TriggerAddAction(udg_trigger30,function Trig_TZ5_Actions)
set udg_trigger31=CreateTrigger()
call DisableTrigger(udg_trigger31)
call TriggerRegisterLeaveRectSimple(udg_trigger31,udg_rect74)
call TriggerAddCondition(udg_trigger31,Condition(function Trig_TZ6_Conditions))
call TriggerAddAction(udg_trigger31,function Trig_TZ6_Actions)
set udg_trigger32=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger32,Player(0),"请作者赐死",true)
call TriggerRegisterPlayerChatEvent(udg_trigger32,Player(1),"请作者赐死",true)
call TriggerRegisterPlayerChatEvent(udg_trigger32,Player(2),"请作者赐死",true)
call TriggerRegisterPlayerChatEvent(udg_trigger32,Player(3),"请作者赐死",true)
call TriggerRegisterPlayerChatEvent(udg_trigger32,Player(4),"请作者赐死",true)
call TriggerRegisterPlayerChatEvent(udg_trigger32,Player(5),"请作者赐死",true)
call TriggerAddAction(udg_trigger32,function Trig_zisha_Actions)
set udg_trigger33=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger33,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger33,Condition(function Trig_hygj_Conditions))
call TriggerAddAction(udg_trigger33,function Trig_hygj_Actions)
set udg_trigger34=CreateTrigger()
call TriggerRegisterPlayerStateEvent(udg_trigger34,Player(0),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,800000.00)
call TriggerRegisterPlayerStateEvent(udg_trigger34,Player(1),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,800000.00)
call TriggerRegisterPlayerStateEvent(udg_trigger34,Player(2),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,800000.00)
call TriggerRegisterPlayerStateEvent(udg_trigger34,Player(3),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,800000.00)
call TriggerRegisterPlayerStateEvent(udg_trigger34,Player(4),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,800000.00)
call TriggerRegisterPlayerStateEvent(udg_trigger34,Player(5),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,800000.00)
call TriggerAddAction(udg_trigger34,function Trig_jinbitaiduo_Actions)
set udg_trigger35=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger35,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger35,Condition(function Trig_jbduihuan_Conditions))
call TriggerAddAction(udg_trigger35,function Trig_jbduihuan_Actions)
set udg_trigger36=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger36,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddAction(udg_trigger36,function Trig_heyao_Actions)
set udg_trigger37=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger37,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddAction(udg_trigger37,function Trig_heyao2_Actions)
set udg_trigger38=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger38,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger38,Condition(function Trig_buneng_Conditions))
call TriggerAddAction(udg_trigger38,function Trig_buneng_Actions)
set udg_trigger39=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger39,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(udg_trigger39,Condition(function Trig_diudongxi_Conditions))
call TriggerAddAction(udg_trigger39,function Trig_diudongxi_Actions)
set udg_trigger40=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger40,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger40,Condition(function Trig_FH_Conditions))
call TriggerAddAction(udg_trigger40,function Trig_FH_Actions)
set udg_trigger41=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger41,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger41,function Trig_fh2_Actions)
set udg_trigger42=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger42,Player(0),"HG",true)
call TriggerRegisterPlayerChatEvent(udg_trigger42,Player(1),"HG",true)
call TriggerRegisterPlayerChatEvent(udg_trigger42,Player(2),"HG",true)
call TriggerRegisterPlayerChatEvent(udg_trigger42,Player(3),"HG",true)
call TriggerRegisterPlayerChatEvent(udg_trigger42,Player(4),"HG",true)
call TriggerRegisterPlayerChatEvent(udg_trigger42,Player(5),"HG",true)
call TriggerAddCondition(udg_trigger42,Condition(function Trig_HG_Conditions))
call TriggerAddAction(udg_trigger42,function Trig_HG_Actions)
set udg_trigger43=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(0),"save return point",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(1),"save return point",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(2),"save return point",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(3),"save return point",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(4),"save return point",true)
call TriggerRegisterPlayerChatEvent(udg_trigger43,Player(5),"save return point",true)
call TriggerAddCondition(udg_trigger43,Condition(function Trig_HG2_Conditions))
call TriggerAddAction(udg_trigger43,function Trig_HG2_Actions)
set udg_trigger44=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger44,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger44,Condition(function Trig_TL_Conditions))
call TriggerAddAction(udg_trigger44,function Trig_TL_Actions)
set udg_trigger45=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger45,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger45,Condition(function Trig_jinengpiaofuzi_Conditions))
call TriggerAddAction(udg_trigger45,function Trig_jinengpiaofuzi_Actions)
set udg_trigger46=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger46,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger46,Condition(function Trig_wupindiejia_Conditions))
call TriggerAddAction(udg_trigger46,function Trig_wupindiejia_Actions)
set udg_trigger47=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger47,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger47,Condition(function Trig_BOSS_Conditions))
call TriggerAddAction(udg_trigger47,function Trig_BOSS_Actions)
set udg_trigger48=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger48,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger48,Condition(function Trig_dw_Conditions))
call TriggerAddAction(udg_trigger48,function Trig_dw_Actions)
set udg_trigger49=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger49,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger49,Condition(function Trig_zhuha_Conditions))
call TriggerAddAction(udg_trigger49,function Trig_zhuha_Actions)
set udg_trigger50=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger50,udg_rect04)
call TriggerRegisterEnterRectSimple(udg_trigger50,udg_rect02)
call TriggerAddCondition(udg_trigger50,Condition(function Trig_syin_Conditions))
call TriggerAddAction(udg_trigger50,function Trig_syin_Actions)
set udg_trigger51=CreateTrigger()
call DisableTrigger(udg_trigger51)
call TriggerRegisterEnterRectSimple(udg_trigger51,udg_rect04)
call TriggerRegisterEnterRectSimple(udg_trigger51,udg_rect02)
call TriggerAddCondition(udg_trigger51,Condition(function Trig_syin3_Conditions))
call TriggerAddAction(udg_trigger51,function Trig_syin3_Actions)
set udg_trigger52=CreateTrigger()
call TriggerAddAction(udg_trigger52,function Trig_shezhi_Actions)
set udg_trigger53=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger53,10.00)
call TriggerAddAction(udg_trigger53,function Trig_BOSSshezhi_Actions)
set udg_trigger54=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger54,5)
call TriggerAddAction(udg_trigger54,function Trig_BOSSxiao_Actions)
set udg_trigger55=CreateTrigger()
call TriggerAddAction(udg_trigger55,function Trig_shuiguajishiqi_Actions)
set udg_trigger56=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_trigger56,udg_timer01)
call TriggerAddAction(udg_trigger56,function Trig_chubin_Actions)
set udg_trigger57=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger57,8.00)
call TriggerAddAction(udg_trigger57,function Trig_CCC_Actions)
set udg_trigger58=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger58,udg_rect06)
call TriggerAddCondition(udg_trigger58,Condition(function Trig_a_Conditions))
call TriggerAddAction(udg_trigger58,function Trig_a_Actions)
set udg_trigger59=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger59,udg_rect04)
call TriggerAddCondition(udg_trigger59,Condition(function Trig_b_Conditions))
call TriggerAddAction(udg_trigger59,function Trig_b_Actions)
set udg_trigger60=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger60,udg_rect05)
call TriggerRegisterEnterRectSimple(udg_trigger60,udg_rect72)
call TriggerRegisterEnterRectSimple(udg_trigger60,udg_rect73)
call TriggerAddCondition(udg_trigger60,Condition(function Trig_c_Conditions))
call TriggerAddAction(udg_trigger60,function Trig_c_Actions)
set udg_trigger61=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_trigger61,udg_timer03)
call TriggerAddAction(udg_trigger61,function Trig_touxi_Actions)
set udg_trigger62=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger62,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger62,Condition(function Trig_wal_Conditions))
call TriggerAddAction(udg_trigger62,function Trig_wal_Actions)
set udg_trigger63=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger63,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger63,Condition(function Trig_U_Conditions))
call TriggerAddAction(udg_trigger63,function Trig_U_Actions)
set udg_trigger64=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger64,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger64,Condition(function Trig_U_______u_Conditions))
call TriggerAddAction(udg_trigger64,function Trig_U_______u_Actions)
set udg_trigger65=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger65,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger65,Condition(function Trig_U______________u_Conditions))
call TriggerAddAction(udg_trigger65,function Trig_U______________u_Actions)
set udg_trigger66=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger66,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger66,Condition(function Trig_U____________________________u_Conditions))
call TriggerAddAction(udg_trigger66,function Trig_U____________________________u_Actions)
set udg_trigger67=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger67,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger67,Condition(function Trig_U___________________________________u_Conditions))
call TriggerAddAction(udg_trigger67,function Trig_U___________________________________u_Actions)
set udg_trigger68=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger68,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger68,function Trig_ZX_Actions)
set udg_trigger69=CreateTrigger()
call DisableTrigger(udg_trigger69)
call TriggerRegisterAnyUnitEventBJ(udg_trigger69,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger69,Condition(function Trig_hhhhhhhhhhh1_Conditions))
call TriggerAddAction(udg_trigger69,function Trig_hhhhhhhhhhh1_Actions)
set udg_trigger70=CreateTrigger()
call DisableTrigger(udg_trigger70)
call TriggerRegisterEnterRectSimple(udg_trigger70,udg_rect85)
call TriggerAddCondition(udg_trigger70,Condition(function Trig_hhhhhhhhhhh2_Conditions))
call TriggerAddAction(udg_trigger70,function Trig_hhhhhhhhhhh2_Actions)
set udg_trigger71=CreateTrigger()
call DisableTrigger(udg_trigger71)
call TriggerRegisterAnyUnitEventBJ(udg_trigger71,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger71,Condition(function Trig_wal2_Conditions))
call TriggerAddAction(udg_trigger71,function Trig_wal2_Actions)
set udg_trigger72=CreateTrigger()
call DisableTrigger(udg_trigger72)
call TriggerRegisterTimerExpireEventBJ(udg_trigger72,udg_timer04)
call TriggerAddAction(udg_trigger72,function Trig_SBaaaaaa_Actions)
set udg_trigger73=CreateTrigger()
call DisableTrigger(udg_trigger73)
call TriggerRegisterAnyUnitEventBJ(udg_trigger73,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger73,Condition(function Trig_wal_______u_Conditions))
call TriggerAddAction(udg_trigger73,function Trig_wal_______u_Actions)
set udg_trigger74=CreateTrigger()
call DisableTrigger(udg_trigger74)
call TriggerRegisterAnyUnitEventBJ(udg_trigger74,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger74,Condition(function Trig_wal______________u_Conditions))
call TriggerAddAction(udg_trigger74,function Trig_wal______________u_Actions)
set udg_trigger75=CreateTrigger()
call DisableTrigger(udg_trigger75)
call TriggerRegisterAnyUnitEventBJ(udg_trigger75,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger75,Condition(function Trig_fuhuo_Conditions))
call TriggerAddAction(udg_trigger75,function Trig_fuhuo_Actions)
set udg_trigger76=CreateTrigger()
call DisableTrigger(udg_trigger76)
call TriggerRegisterAnyUnitEventBJ(udg_trigger76,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger76,Condition(function Trig_rjdcskz_Conditions))
call TriggerAddAction(udg_trigger76,function Trig_rjdcskz_Actions)
set udg_trigger77=CreateTrigger()
call DisableTrigger(udg_trigger77)
call TriggerRegisterAnyUnitEventBJ(udg_trigger77,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger77,Condition(function Trig_rjdcskz2_Conditions))
call TriggerAddAction(udg_trigger77,function Trig_rjdcskz2_Actions)
set udg_trigger78=CreateTrigger()
call DisableTrigger(udg_trigger78)
call TriggerRegisterDialogEventBJ(udg_trigger78,udg_dialog02)
call TriggerAddAction(udg_trigger78,function Trig_zhpk1_Actions)
set udg_trigger79=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger79,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger79,Condition(function Trig_DDL1_Conditions))
call TriggerAddAction(udg_trigger79,function Trig_DDL1_Actions)
set udg_trigger80=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger80,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger80,Condition(function Trig_DDL3_Conditions))
call TriggerAddAction(udg_trigger80,function Trig_DDL3_Actions)
set udg_trigger81=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger81,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger81,Condition(function Trig_DDL4_Conditions))
call TriggerAddAction(udg_trigger81,function Trig_DDL4_Actions)
set udg_trigger82=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger82,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger82,Condition(function Trig_DDL5_Conditions))
call TriggerAddAction(udg_trigger82,function Trig_DDL5_Actions)
set udg_trigger83=CreateTrigger()
call DisableTrigger(udg_trigger83)
call TriggerRegisterTimerEventPeriodic(udg_trigger83,0.02)
call TriggerAddAction(udg_trigger83,function Trig_DDL6_Actions)
set udg_trigger84=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger84,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger84,Condition(function Trig_DDL7_Conditions))
call TriggerAddAction(udg_trigger84,function Trig_DDL7_Actions)
set udg_trigger85=CreateTrigger()
call DisableTrigger(udg_trigger85)
call TriggerRegisterTimerEventPeriodic(udg_trigger85,0.15)
call TriggerAddAction(udg_trigger85,function Trig_DDL8_Actions)
set udg_trigger86=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger86,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger86,Condition(function Trig_DDL9_Conditions))
call TriggerAddAction(udg_trigger86,function Trig_DDL9_Actions)
set udg_trigger87=CreateTrigger()
call DisableTrigger(udg_trigger87)
call TriggerRegisterAnyUnitEventBJ(udg_trigger87,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger87,Condition(function Trig_DDL10_Conditions))
call TriggerAddAction(udg_trigger87,function Trig_DDL10_Actions)
set udg_trigger88=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger88,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger88,Condition(function Trig_DDL11_Conditions))
call TriggerAddAction(udg_trigger88,function Trig_DDL11_Actions)
set udg_trigger89=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger89,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger89,Condition(function Trig_dbtx1_Conditions))
call TriggerAddAction(udg_trigger89,function Trig_dbtx1_Actions)
set udg_trigger90=CreateTrigger()
call DisableTrigger(udg_trigger90)
call TriggerRegisterTimerEventPeriodic(udg_trigger90,0.01)
call TriggerAddAction(udg_trigger90,function Trig_dbtx2_Actions)
set udg_trigger91=CreateTrigger()
call DisableTrigger(udg_trigger91)
call TriggerRegisterTimerEventPeriodic(udg_trigger91,0.50)
call TriggerAddAction(udg_trigger91,function Trig_dbtx3_Actions)
set udg_trigger92=CreateTrigger()
call DisableTrigger(udg_trigger92)
call TriggerRegisterAnyUnitEventBJ(udg_trigger92,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger92,Condition(function Trig_dbtx4_Conditions))
call TriggerAddAction(udg_trigger92,function Trig_dbtx4_Actions)
set udg_trigger93=CreateTrigger()
call DisableTrigger(udg_trigger93)
call TriggerRegisterTimerEventPeriodic(udg_trigger93,0.03)
call TriggerAddAction(udg_trigger93,function Trig_dbtx5_Actions)
set udg_trigger94=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger94,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger94,Condition(function Trig_YHZZS1_Conditions))
call TriggerAddAction(udg_trigger94,function Trig_YHZZS1_Actions)
set udg_trigger95=CreateTrigger()
call DisableTrigger(udg_trigger95)
call TriggerRegisterTimerEventPeriodic(udg_trigger95,1.00)
call TriggerAddAction(udg_trigger95,function Trig_YHZZS2_Actions)
set udg_trigger96=CreateTrigger()
call DisableTrigger(udg_trigger96)
call TriggerRegisterAnyUnitEventBJ(udg_trigger96,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger96,Condition(function Trig_YHZZS3_Conditions))
call TriggerAddAction(udg_trigger96,function Trig_YHZZS3_Actions)
set udg_trigger97=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger97,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger97,Condition(function Trig_csltz2_Conditions))
call TriggerAddAction(udg_trigger97,function Trig_csltz2_Actions)
set udg_trigger98=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger98,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger98,Condition(function Trig_csltz3_Conditions))
call TriggerAddAction(udg_trigger98,function Trig_csltz3_Actions)
set udg_trigger99=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger99,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger99,Condition(function Trig_wxty1_Conditions))
call TriggerAddAction(udg_trigger99,function Trig_wxty1_Actions)
set udg_trigger100=CreateTrigger()
call DisableTrigger(udg_trigger100)
call TriggerRegisterTimerEventPeriodic(udg_trigger100,0.03)
call TriggerAddAction(udg_trigger100,function Trig_wxty2_Actions)
set udg_trigger101=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger101,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger101,Condition(function Trig_csltz2_______u_Conditions))
call TriggerAddAction(udg_trigger101,function Trig_csltz2_______u_Actions)
set udg_trigger102=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger102,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger102,Condition(function Trig_wxty1_______u_Conditions))
call TriggerAddAction(udg_trigger102,function Trig_wxty1_______u_Actions)
set udg_trigger103=CreateTrigger()
call DisableTrigger(udg_trigger103)
call TriggerRegisterTimerEventPeriodic(udg_trigger103,0.03)
call TriggerAddAction(udg_trigger103,function Trig_wxty2_______u_Actions)
set udg_trigger104=CreateTrigger()
call DisableTrigger(udg_trigger104)
call TriggerRegisterUnitInRangeSimple(udg_trigger104,550.00,udg_unit80)
call TriggerAddAction(udg_trigger104,function Trig_PE1_Actions)
set udg_trigger105=CreateTrigger()
call DisableTrigger(udg_trigger105)
call TriggerRegisterUnitInRangeSimple(udg_trigger105,600.00,udg_unit80)
call TriggerAddAction(udg_trigger105,function Trig_PE2_Actions)
set udg_trigger106=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger106,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger106,Condition(function Trig_tlzs_Conditions))
call TriggerAddAction(udg_trigger106,function Trig_tlzs_Actions)
set udg_trigger107=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger107,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger107,Condition(function Trig_axiuluoq1_Conditions))
call TriggerAddAction(udg_trigger107,function Trig_axiuluoq1_Actions)
set udg_trigger108=CreateTrigger()
call DisableTrigger(udg_trigger108)
call TriggerRegisterTimerEventPeriodic(udg_trigger108,0.01)
call TriggerAddAction(udg_trigger108,function Trig_axiuluoq2_Actions)
set udg_trigger109=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger109,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger109,Condition(function Trig_jueduixishou_Conditions))
call TriggerAddAction(udg_trigger109,function Trig_jueduixishou_Actions)
set udg_trigger110=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger110,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger110,Condition(function Trig_ZZqilin1_Conditions))
call TriggerAddAction(udg_trigger110,function Trig_ZZqilin1_Actions)
set udg_trigger111=CreateTrigger()
call DisableTrigger(udg_trigger111)
call TriggerRegisterTimerEventPeriodic(udg_trigger111,0.03)
call TriggerAddAction(udg_trigger111,function Trig_zzqilin3_Actions)
set udg_trigger112=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger112,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger112,Condition(function Trig_jiuweiwanzi1_Conditions))
call TriggerAddAction(udg_trigger112,function Trig_jiuweiwanzi1_Actions)
set udg_trigger113=CreateTrigger()
call DisableTrigger(udg_trigger113)
call TriggerRegisterTimerEventPeriodic(udg_trigger113,0.01)
call TriggerAddAction(udg_trigger113,function Trig_jiuweiwanzi2_Actions)
set udg_trigger114=CreateTrigger()
call DisableTrigger(udg_trigger114)
call TriggerRegisterTimerEventPeriodic(udg_trigger114,0.02)
call TriggerAddAction(udg_trigger114,function Trig_jiuweiwanzi3_Actions)
set udg_trigger115=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger115,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger115,Condition(function Trig_hlyd_Conditions))
call TriggerAddAction(udg_trigger115,function Trig_hlyd_Actions)
set udg_trigger116=CreateTrigger()
call DisableTrigger(udg_trigger116)
call TriggerRegisterAnyUnitEventBJ(udg_trigger116,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger116,Condition(function Trig_hlyd2_Conditions))
call TriggerAddAction(udg_trigger116,function Trig_hlyd2_Actions)
set udg_trigger117=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger117,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger117,Condition(function Trig_lxslj_Conditions))
call TriggerAddAction(udg_trigger117,function Trig_lxslj_Actions)
set udg_trigger118=CreateTrigger()
call DisableTrigger(udg_trigger118)
call TriggerRegisterTimerEventPeriodic(udg_trigger118,0.01)
call TriggerAddAction(udg_trigger118,function Trig_lxslj2_Actions)
set udg_trigger119=CreateTrigger()
call DisableTrigger(udg_trigger119)
call TriggerRegisterTimerEventPeriodic(udg_trigger119,0.02)
call TriggerAddAction(udg_trigger119,function Trig_lxslj4_Actions)
set udg_trigger120=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger120,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger120,Condition(function Trig_XF_Conditions))
call TriggerAddAction(udg_trigger120,function Trig_XF_Actions)
set udg_trigger121=CreateTrigger()
call DisableTrigger(udg_trigger121)
call TriggerRegisterTimerEventPeriodic(udg_trigger121,1.00)
call TriggerAddCondition(udg_trigger121,Condition(function Trig_xf2_Conditions))
call TriggerAddAction(udg_trigger121,function Trig_xf2_Actions)
set udg_trigger122=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger122,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger122,Condition(function Trig_fs_Conditions))
call TriggerAddAction(udg_trigger122,function Trig_fs_Actions)
set udg_trigger123=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger123,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger123,Condition(function Trig_luoxuanwanMR1_Conditions))
call TriggerAddAction(udg_trigger123,function Trig_luoxuanwanMR1_Actions)
set udg_trigger124=CreateTrigger()
call DisableTrigger(udg_trigger124)
call TriggerRegisterTimerEventPeriodic(udg_trigger124,0.04)
call TriggerAddAction(udg_trigger124,function Trig_luoxuanwanMR2_Actions)
set udg_trigger125=CreateTrigger()
call DisableTrigger(udg_trigger125)
call TriggerRegisterTimerEventPeriodic(udg_trigger125,0.04)
call TriggerAddAction(udg_trigger125,function Trig_luoxuanwanMR3_Actions)
set udg_trigger126=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger126,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger126,Condition(function Trig_bgpsj1_Conditions))
call TriggerAddAction(udg_trigger126,function Trig_bgpsj1_Actions)
set udg_trigger127=CreateTrigger()
call DisableTrigger(udg_trigger127)
call TriggerRegisterTimerEventPeriodic(udg_trigger127,0.02)
call TriggerAddAction(udg_trigger127,function Trig_bgpsj2_Actions)
set udg_trigger128=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger128,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger128,Condition(function Trig_bgkz1_Conditions))
call TriggerAddAction(udg_trigger128,function Trig_bgkz1_Actions)
set udg_trigger129=CreateTrigger()
call DisableTrigger(udg_trigger129)
call TriggerRegisterTimerEventPeriodic(udg_trigger129,0.01)
call TriggerAddAction(udg_trigger129,function Trig_bgkz2_Actions)
set udg_trigger130=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger130,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger130,Condition(function Trig_bg128_1_Conditions))
call TriggerAddAction(udg_trigger130,function Trig_bg128_1_Actions)
set udg_trigger131=CreateTrigger()
call DisableTrigger(udg_trigger131)
call TriggerRegisterTimerEventPeriodic(udg_trigger131,0.17)
call TriggerAddAction(udg_trigger131,function Trig_bg128_2_Actions)
set udg_trigger132=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger132,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger132,Condition(function Trig_bgsj1_Conditions))
call TriggerAddAction(udg_trigger132,function Trig_bgsj1_Actions)
set udg_trigger133=CreateTrigger()
call TriggerAddAction(udg_trigger133,function Trig_bgsj2_Actions)
set udg_trigger134=CreateTrigger()
call DisableTrigger(udg_trigger134)
call TriggerRegisterTimerEventPeriodic(udg_trigger134,0.02)
call TriggerAddAction(udg_trigger134,function Trig_bgsj3_Actions)
set udg_trigger135=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger135,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger135,Condition(function Trig_ht1_Conditions))
call TriggerAddAction(udg_trigger135,function Trig_ht1_Actions)
set udg_trigger136=CreateTrigger()
call DisableTrigger(udg_trigger136)
call TriggerRegisterTimerEventPeriodic(udg_trigger136,0.03)
call TriggerAddAction(udg_trigger136,function Trig_ht2_Actions)
set udg_trigger137=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger137,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger137,Condition(function Trig_BGKZ_Conditions))
call TriggerAddAction(udg_trigger137,function Trig_BGKZ_Actions)
set udg_trigger138=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger138,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger138,Condition(function Trig_by_Conditions))
call TriggerAddAction(udg_trigger138,function Trig_by_Actions)
set udg_trigger139=CreateTrigger()
call TriggerAddAction(udg_trigger139,function Trig_by2_Actions)
set udg_trigger140=CreateTrigger()
call DisableTrigger(udg_trigger140)
call TriggerRegisterAnyUnitEventBJ(udg_trigger140,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger140,Condition(function Trig_by3_Conditions))
call TriggerAddAction(udg_trigger140,function Trig_by3_Actions)
set udg_trigger141=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger141,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger141,Condition(function Trig_by4_Conditions))
call TriggerAddAction(udg_trigger141,function Trig_by4_Actions)
set udg_trigger142=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger142,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger142,Condition(function Trig_by5_Conditions))
call TriggerAddAction(udg_trigger142,function Trig_by5_Actions)
set udg_trigger143=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger143,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger143,Condition(function Trig_baiyan_Conditions))
call TriggerAddAction(udg_trigger143,function Trig_baiyan_Actions)
set udg_trigger144=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger144,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger144,Condition(function Trig_by_______u_Conditions))
call TriggerAddAction(udg_trigger144,function Trig_by_______u_Actions)
set udg_trigger145=CreateTrigger()
call TriggerAddAction(udg_trigger145,function Trig_by2_______u_Actions)
set udg_trigger146=CreateTrigger()
call DisableTrigger(udg_trigger146)
call TriggerRegisterAnyUnitEventBJ(udg_trigger146,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger146,Condition(function Trig_by3_______u_Conditions))
call TriggerAddAction(udg_trigger146,function Trig_by3_______u_Actions)
set udg_trigger147=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger147,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger147,Condition(function Trig_by4_______u_Conditions))
call TriggerAddAction(udg_trigger147,function Trig_by4_______u_Actions)
set udg_trigger148=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger148,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger148,Condition(function Trig_by5_______u_Conditions))
call TriggerAddAction(udg_trigger148,function Trig_by5_______u_Actions)
set udg_trigger149=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger149,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger149,Condition(function Trig_U2______________u_Conditions))
call TriggerAddAction(udg_trigger149,function Trig_U2______________u_Actions)
set udg_trigger150=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger150,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger150,Condition(function Trig_sw1_Conditions))
call TriggerAddAction(udg_trigger150,function Trig_sw1_Actions)
set udg_trigger151=CreateTrigger()
call DisableTrigger(udg_trigger151)
call TriggerRegisterTimerEventPeriodic(udg_trigger151,0.50)
call TriggerAddAction(udg_trigger151,function Trig_sw2_Actions)
set udg_trigger152=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger152,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger152,Condition(function Trig_LQ_Conditions))
call TriggerAddAction(udg_trigger152,function Trig_LQ_Actions)
set udg_trigger153=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger153,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger153,Condition(function Trig_LQ2LT_Conditions))
call TriggerAddAction(udg_trigger153,function Trig_LQ2LT_Actions)
set udg_trigger154=CreateTrigger()
call DisableTrigger(udg_trigger154)
call TriggerRegisterTimerEventPeriodic(udg_trigger154,0.02)
call TriggerAddAction(udg_trigger154,function Trig_LQ2_Actions)
set udg_trigger155=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger155,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger155,Condition(function Trig_zyzs_Conditions))
call TriggerAddAction(udg_trigger155,function Trig_zyzs_Actions)
set udg_trigger156=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger156,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger156,Condition(function Trig_zyzs2_Conditions))
call TriggerAddAction(udg_trigger156,function Trig_zyzs2_Actions)
set udg_trigger157=CreateTrigger()
call DisableTrigger(udg_trigger157)
call TriggerRegisterTimerEventPeriodic(udg_trigger157,0.02)
call TriggerAddAction(udg_trigger157,function Trig_yzzs3_Actions)
set udg_trigger158=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger158,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger158,Condition(function Trig_kky1_Conditions))
call TriggerAddAction(udg_trigger158,function Trig_kky1_Actions)
set udg_trigger159=CreateTrigger()
call TriggerAddAction(udg_trigger159,function Trig_kky2_Actions)
set udg_trigger160=CreateTrigger()
call DisableTrigger(udg_trigger160)
call TriggerRegisterAnyUnitEventBJ(udg_trigger160,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger160,Condition(function Trig_kky3_Conditions))
call TriggerAddAction(udg_trigger160,function Trig_kky3_Actions)
set udg_trigger161=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger161,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger161,Condition(function Trig_kky4_Conditions))
call TriggerAddAction(udg_trigger161,function Trig_kky4_Actions)
set udg_trigger162=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger162,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger162,Condition(function Trig_kky5_Conditions))
call TriggerAddAction(udg_trigger162,function Trig_kky5_Actions)
set udg_trigger163=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger163,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger163,Condition(function Trig_kky1_______u_Conditions))
call TriggerAddAction(udg_trigger163,function Trig_kky1_______u_Actions)
set udg_trigger164=CreateTrigger()
call TriggerAddAction(udg_trigger164,function Trig_kky2_______u_Actions)
set udg_trigger165=CreateTrigger()
call DisableTrigger(udg_trigger165)
call TriggerRegisterAnyUnitEventBJ(udg_trigger165,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger165,Condition(function Trig_kky3_______u_Conditions))
call TriggerAddAction(udg_trigger165,function Trig_kky3_______u_Actions)
set udg_trigger166=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger166,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger166,Condition(function Trig_kky4_______u_Conditions))
call TriggerAddAction(udg_trigger166,function Trig_kky4_______u_Actions)
set udg_trigger167=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger167,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger167,Condition(function Trig_kky5_______u_Conditions))
call TriggerAddAction(udg_trigger167,function Trig_kky5_______u_Actions)
set udg_trigger168=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger168,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger168,Condition(function Trig_Uhhq1_Conditions))
call TriggerAddAction(udg_trigger168,function Trig_Uhhq1_Actions)
set udg_trigger169=CreateTrigger()
call DisableTrigger(udg_trigger169)
call TriggerRegisterTimerEventPeriodic(udg_trigger169,0.01)
call TriggerAddAction(udg_trigger169,function Trig_Uhhq2_Actions)
set udg_trigger170=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger170,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger170,Condition(function Trig_U7_Conditions))
call TriggerAddAction(udg_trigger170,function Trig_U7_Actions)
set udg_trigger171=CreateTrigger()
call DisableTrigger(udg_trigger171)
call TriggerRegisterTimerEventPeriodic(udg_trigger171,0.04)
call TriggerAddAction(udg_trigger171,function Trig_U8_Actions)
set udg_trigger172=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger172,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger172,Condition(function Trig_yudu_______u_Conditions))
call TriggerAddAction(udg_trigger172,function Trig_yudu_______u_Actions)
set udg_trigger173=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger173,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger173,Condition(function Trig_pm1_Conditions))
call TriggerAddAction(udg_trigger173,function Trig_pm1_Actions)
set udg_trigger174=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger174,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger174,Condition(function Trig_pm2_Conditions))
call TriggerAddAction(udg_trigger174,function Trig_pm2_Actions)
set udg_trigger175=CreateTrigger()
call DisableTrigger(udg_trigger175)
call TriggerRegisterTimerEventPeriodic(udg_trigger175,0.02)
call TriggerAddAction(udg_trigger175,function Trig_pm3_Actions)
set udg_trigger176=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger176,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger176,Condition(function Trig__fd1_Conditions))
call TriggerAddAction(udg_trigger176,function Trig__fd1_Actions)
set udg_trigger177=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger177,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger177,Condition(function Trig_TZZ_Conditions))
call TriggerAddAction(udg_trigger177,function Trig_TZZ_Actions)
set udg_trigger178=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger178,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger178,Condition(function Trig_TZ_Conditions))
call TriggerAddAction(udg_trigger178,function Trig_TZ_Actions)
set udg_trigger179=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger179,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger179,Condition(function Trig_Uwttxly1_Conditions))
call TriggerAddAction(udg_trigger179,function Trig_Uwttxly1_Actions)
set udg_trigger180=CreateTrigger()
call TriggerAddAction(udg_trigger180,function Trig_Uwttxly2_Actions)
set udg_trigger181=CreateTrigger()
call DisableTrigger(udg_trigger181)
call TriggerRegisterAnyUnitEventBJ(udg_trigger181,EVENT_PLAYER_UNIT_ISSUED_ORDER)
call TriggerAddCondition(udg_trigger181,Condition(function Trig_Uwttxly3_Conditions))
call TriggerAddAction(udg_trigger181,function Trig_Uwttxly3_Actions)
set udg_trigger182=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger182,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger182,Condition(function Trig_zzq1_Conditions))
call TriggerAddAction(udg_trigger182,function Trig_zzq1_Actions)
set udg_trigger183=CreateTrigger()
call DisableTrigger(udg_trigger183)
call TriggerRegisterAnyUnitEventBJ(udg_trigger183,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger183,Condition(function Trig_zzq2_Conditions))
call TriggerAddAction(udg_trigger183,function Trig_zzq2_Actions)
set udg_trigger184=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger184,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger184,Condition(function Trig_U2_______u_Conditions))
call TriggerAddAction(udg_trigger184,function Trig_U2_______u_Actions)
set udg_trigger185=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger185,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger185,Condition(function Trig_qn_Conditions))
call TriggerAddAction(udg_trigger185,function Trig_qn_Actions)
set udg_trigger186=CreateTrigger()
call DisableTrigger(udg_trigger186)
call TriggerRegisterTimerEventPeriodic(udg_trigger186,0.03)
call TriggerAddAction(udg_trigger186,function Trig_qn2_Actions)
set udg_trigger187=CreateTrigger()
call DisableTrigger(udg_trigger187)
call TriggerRegisterTimerEventPeriodic(udg_trigger187,0.20)
call TriggerAddAction(udg_trigger187,function Trig_qn3_Actions)
set udg_trigger188=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger188,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger188,Condition(function Trig_qnlm1_Conditions))
call TriggerAddAction(udg_trigger188,function Trig_qnlm1_Actions)
set udg_trigger189=CreateTrigger()
call DisableTrigger(udg_trigger189)
call TriggerRegisterTimerEventPeriodic(udg_trigger189,0.04)
call TriggerAddAction(udg_trigger189,function Trig_qnlm2_Actions)
set udg_trigger190=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger190,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger190,Condition(function Trig_ZZtianzao1_Conditions))
call TriggerAddAction(udg_trigger190,function Trig_ZZtianzao1_Actions)
set udg_trigger191=CreateTrigger()
call DisableTrigger(udg_trigger191)
call TriggerRegisterTimerEventPeriodic(udg_trigger191,0.02)
call TriggerAddAction(udg_trigger191,function Trig_ZZtianzhao2_Actions)
set udg_trigger192=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger192,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger192,Condition(function Trig_ZZtianzhao3_Conditions))
call TriggerAddAction(udg_trigger192,function Trig_ZZtianzhao3_Actions)
set udg_trigger193=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger193,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger193,Condition(function Trig_CZW_Conditions))
call TriggerAddAction(udg_trigger193,function Trig_CZW_Actions)
set udg_trigger194=CreateTrigger()
call DisableTrigger(udg_trigger194)
call TriggerRegisterTimerEventPeriodic(udg_trigger194,0.11)
call TriggerAddAction(udg_trigger194,function Trig_CZW2_Actions)
set udg_trigger195=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger195,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger195,Condition(function Trig_txhzw1_Conditions))
call TriggerAddAction(udg_trigger195,function Trig_txhzw1_Actions)
set udg_trigger196=CreateTrigger()
call DisableTrigger(udg_trigger196)
call TriggerRegisterTimerEventPeriodic(udg_trigger196,0.02)
call TriggerAddAction(udg_trigger196,function Trig_txhzw2_Actions)
set udg_trigger197=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger197,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger197,Condition(function Trig_tszw1_Conditions))
call TriggerAddAction(udg_trigger197,function Trig_tszw1_Actions)
set udg_trigger198=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger198,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger198,Condition(function Trig_sczww1_Conditions))
call TriggerAddAction(udg_trigger198,function Trig_sczww1_Actions)
set udg_trigger199=CreateTrigger()
call DisableTrigger(udg_trigger199)
call TriggerRegisterTimerEventPeriodic(udg_trigger199,0.04)
call TriggerAddAction(udg_trigger199,function Trig_sczww2_Actions)
set udg_trigger200=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger200,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger200,Condition(function Trig_zjzw4_Conditions))
call TriggerAddAction(udg_trigger200,function Trig_zjzw4_Actions)
set udg_trigger201=CreateTrigger()
call DisableTrigger(udg_trigger201)
call TriggerRegisterTimerEventPeriodic(udg_trigger201,0.09)
call TriggerAddAction(udg_trigger201,function Trig_zjzw5_Actions)
set udg_trigger202=CreateTrigger()
call DisableTrigger(udg_trigger202)
call TriggerRegisterTimerEventPeriodic(udg_trigger202,0.08)
call TriggerAddAction(udg_trigger202,function Trig_zjzw6_Actions)
set udg_trigger203=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger203,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger203,Condition(function Trig_zybz1_Conditions))
call TriggerAddAction(udg_trigger203,function Trig_zybz1_Actions)
set udg_trigger204=CreateTrigger()
call DisableTrigger(udg_trigger204)
call TriggerRegisterTimerEventPeriodic(udg_trigger204,0.02)
call TriggerAddAction(udg_trigger204,function Trig_zybz2_Actions)
set udg_trigger205=CreateTrigger()
call DisableTrigger(udg_trigger205)
call TriggerRegisterTimerEventPeriodic(udg_trigger205,0.09)
call TriggerAddAction(udg_trigger205,function Trig_zybz3_Actions)
set udg_trigger206=CreateTrigger()
call DisableTrigger(udg_trigger206)
call TriggerRegisterTimerEventPeriodic(udg_trigger206,0.08)
call TriggerAddAction(udg_trigger206,function Trig_zybz4_Actions)
set udg_trigger207=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger207,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger207,Condition(function Trig_hfz_Conditions))
call TriggerAddAction(udg_trigger207,function Trig_hfz_Actions)
set udg_trigger208=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger208,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger208,Condition(function Trig_jssg1_Conditions))
call TriggerAddAction(udg_trigger208,function Trig_jssg1_Actions)
set udg_trigger209=CreateTrigger()
call DisableTrigger(udg_trigger209)
call TriggerRegisterTimerEventPeriodic(udg_trigger209,0.25)
call TriggerAddAction(udg_trigger209,function Trig_jssg2_Actions)
set udg_trigger210=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger210,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger210,Condition(function Trig_Sg_Conditions))
call TriggerAddAction(udg_trigger210,function Trig_Sg_Actions)
set udg_trigger211=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger211,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger211,Condition(function Trig_SD2_Conditions))
call TriggerAddAction(udg_trigger211,function Trig_SD2_Actions)
set udg_trigger212=CreateTrigger()
call DisableTrigger(udg_trigger212)
call TriggerRegisterTimerEventPeriodic(udg_trigger212,0.01)
call TriggerAddAction(udg_trigger212,function Trig_SD3_Actions)
set udg_trigger213=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger213,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger213,Condition(function Trig_fls_______u_Conditions))
call TriggerAddAction(udg_trigger213,function Trig_fls_______u_Actions)
set udg_trigger214=CreateTrigger()
call DisableTrigger(udg_trigger214)
call TriggerRegisterTimerEventPeriodic(udg_trigger214,0.10)
call TriggerAddAction(udg_trigger214,function Trig_fls2_______u_Actions)
set udg_trigger215=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger215,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger215,Condition(function Trig_qssx1_Conditions))
call TriggerAddAction(udg_trigger215,function Trig_qssx1_Actions)
set udg_trigger216=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger216,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger216,Condition(function Trig_BJ3_Conditions))
call TriggerAddAction(udg_trigger216,function Trig_BJ3_Actions)
set udg_trigger217=CreateTrigger()
call DisableTrigger(udg_trigger217)
call TriggerRegisterTimerEventPeriodic(udg_trigger217,0.38)
call TriggerAddAction(udg_trigger217,function Trig_BJ4_Actions)
set udg_trigger218=CreateTrigger()
call DisableTrigger(udg_trigger218)
call TriggerRegisterTimerEventPeriodic(udg_trigger218,0.01)
call TriggerAddAction(udg_trigger218,function Trig_BJ8_______u_Actions)
set udg_trigger219=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger219,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger219,Condition(function Trig_mieshashuixiang1_Conditions))
call TriggerAddAction(udg_trigger219,function Trig_mieshashuixiang1_Actions)
set udg_trigger220=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger220,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger220,Condition(function Trig_BJ5_Conditions))
call TriggerAddAction(udg_trigger220,function Trig_BJ5_Actions)
set udg_trigger221=CreateTrigger()
call DisableTrigger(udg_trigger221)
call TriggerRegisterTimerEventPeriodic(udg_trigger221,0.01)
call TriggerAddAction(udg_trigger221,function Trig_BJ8_Actions)
set udg_trigger222=CreateTrigger()
call DisableTrigger(udg_trigger222)
call TriggerRegisterTimerEventPeriodic(udg_trigger222,0.38)
call TriggerAddAction(udg_trigger222,function Trig_BJ6_Actions)
set udg_trigger223=CreateTrigger()
call DisableTrigger(udg_trigger223)
call TriggerRegisterTimerEventPeriodic(udg_trigger223,0.50)
call TriggerAddAction(udg_trigger223,function Trig_BJ7_Actions)
set udg_trigger224=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger224,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger224,Condition(function Trig_IceLotus_Conditions))
call TriggerAddAction(udg_trigger224,function Trig_IceLotus_Actions)
set udg_trigger225=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger225,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger225,Condition(function Trig_jdfy_Conditions))
call TriggerAddAction(udg_trigger225,function Trig_jdfy_Actions)
set udg_trigger226=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger226,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger226,Condition(function Trig_ssy1_Conditions))
call TriggerAddAction(udg_trigger226,function Trig_ssy1_Actions)
set udg_trigger227=CreateTrigger()
call TriggerAddAction(udg_trigger227,function Trig_ssy2_Actions)
set udg_trigger228=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger228,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger228,Condition(function Trig_sbsz2_Conditions))
call TriggerAddAction(udg_trigger228,function Trig_sbsz2_Actions)
set udg_trigger229=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger229,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger229,Condition(function Trig_shouhezhimao3_Conditions))
call TriggerAddAction(udg_trigger229,function Trig_shouhezhimao3_Actions)
set udg_trigger230=CreateTrigger()
call DisableTrigger(udg_trigger230)
call TriggerRegisterTimerEventPeriodic(udg_trigger230,0.03)
call TriggerAddAction(udg_trigger230,function Trig_shouhezhimao4_Actions)
set udg_trigger231=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger231,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger231,Condition(function Trig_lsbl_Conditions))
call TriggerAddAction(udg_trigger231,function Trig_lsbl_Actions)
set udg_trigger232=CreateTrigger()
call DisableTrigger(udg_trigger232)
call TriggerRegisterTimerEventPeriodic(udg_trigger232,0.38)
call TriggerAddAction(udg_trigger232,function Trig_lsbl2_Actions)
set udg_trigger233=CreateTrigger()
call DisableTrigger(udg_trigger233)
call TriggerRegisterAnyUnitEventBJ(udg_trigger233,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger233,Condition(function Trig_lsbl3_Conditions))
call TriggerAddAction(udg_trigger233,function Trig_lsbl3_Actions)
set udg_trigger234=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger234,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger234,Condition(function Trig_ssy_Conditions))
call TriggerAddAction(udg_trigger234,function Trig_ssy_Actions)
set udg_trigger235=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger235,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger235,Condition(function Trig_haxzs_Conditions))
call TriggerAddAction(udg_trigger235,function Trig_haxzs_Actions)
set udg_trigger236=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger236,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger236,Condition(function Trig_szb3_Conditions))
call TriggerAddAction(udg_trigger236,function Trig_szb3_Actions)
set udg_trigger237=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger237,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger237,Condition(function Trig_haxzs2_Conditions))
call TriggerAddAction(udg_trigger237,function Trig_haxzs2_Actions)
set udg_trigger238=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger238,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger238,Condition(function Trig_ywsy2_Conditions))
call TriggerAddAction(udg_trigger238,function Trig_ywsy2_Actions)
set udg_trigger239=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger239,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger239,Condition(function Trig_sxy1_Conditions))
call TriggerAddAction(udg_trigger239,function Trig_sxy1_Actions)
set udg_trigger240=CreateTrigger()
call DisableTrigger(udg_trigger240)
call TriggerRegisterTimerEventPeriodic(udg_trigger240,1.00)
call TriggerAddAction(udg_trigger240,function Trig_sxy2_Actions)
set udg_trigger241=CreateTrigger()
call DisableTrigger(udg_trigger241)
call TriggerRegisterAnyUnitEventBJ(udg_trigger241,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger241,Condition(function Trig_sxy3_Conditions))
call TriggerAddAction(udg_trigger241,function Trig_sxy3_Actions)
set udg_trigger242=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger242,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger242,Condition(function Trig_slzs3_Conditions))
call TriggerAddAction(udg_trigger242,function Trig_slzs3_Actions)
set udg_trigger243=CreateTrigger()
call DisableTrigger(udg_trigger243)
call TriggerRegisterTimerEventPeriodic(udg_trigger243,0.50)
call TriggerAddAction(udg_trigger243,function Trig_slzs4_Actions)
set udg_trigger244=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger244,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger244,Condition(function Trig_bgkz1_______u_Conditions))
call TriggerAddAction(udg_trigger244,function Trig_bgkz1_______u_Actions)
set udg_trigger245=CreateTrigger()
call DisableTrigger(udg_trigger245)
call TriggerRegisterTimerEventPeriodic(udg_trigger245,0.01)
call TriggerAddAction(udg_trigger245,function Trig_bgkz2_______u_Actions)
set udg_trigger246=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger246,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger246,Condition(function Trig_xhxs_Conditions))
call TriggerAddAction(udg_trigger246,function Trig_xhxs_Actions)
set udg_trigger247=CreateTrigger()
call DisableTrigger(udg_trigger247)
call TriggerRegisterTimerEventPeriodic(udg_trigger247,0.03)
call TriggerAddAction(udg_trigger247,function Trig_XHXS2_Actions)
set udg_trigger248=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger248,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger248,Condition(function Trig_SZZ_Conditions))
call TriggerAddAction(udg_trigger248,function Trig_SZZ_Actions)
set udg_trigger249=CreateTrigger()
call DisableTrigger(udg_trigger249)
call TriggerRegisterTimerEventPeriodic(udg_trigger249,0.30)
call TriggerAddAction(udg_trigger249,function Trig_SZZ2_Actions)
set udg_trigger250=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger250,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger250,Condition(function Trig_qjxm1_Conditions))
call TriggerAddAction(udg_trigger250,function Trig_qjxm1_Actions)
set udg_trigger251=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger251,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger251,Condition(function Trig_Sg_______u_Conditions))
call TriggerAddAction(udg_trigger251,function Trig_Sg_______u_Actions)
set udg_trigger252=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger252,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger252,Condition(function Trig_jgzm2_Conditions))
call TriggerAddAction(udg_trigger252,function Trig_jgzm2_Actions)
set udg_trigger253=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger253,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger253,Condition(function Trig_jglbd4_Conditions))
call TriggerAddAction(udg_trigger253,function Trig_jglbd4_Actions)
set udg_trigger254=CreateTrigger()
call DisableTrigger(udg_trigger254)
call TriggerRegisterTimerEventPeriodic(udg_trigger254,0.03)
call TriggerAddAction(udg_trigger254,function Trig_jglbd3_Actions)
set udg_trigger255=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger255,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger255,Condition(function Trig_sjjl1_Conditions))
call TriggerAddAction(udg_trigger255,function Trig_sjjl1_Actions)
set udg_trigger256=CreateTrigger()
call DisableTrigger(udg_trigger256)
call TriggerRegisterTimerEventPeriodic(udg_trigger256,0.30)
call TriggerAddAction(udg_trigger256,function Trig_sjjl2_Actions)
set udg_trigger257=CreateTrigger()
call DisableTrigger(udg_trigger257)
call TriggerRegisterAnyUnitEventBJ(udg_trigger257,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger257,Condition(function Trig_sjjl3_Conditions))
call TriggerAddAction(udg_trigger257,function Trig_sjjl3_Actions)
set udg_trigger258=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger258,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger258,Condition(function Trig_Sg________2_Conditions))
call TriggerAddAction(udg_trigger258,function Trig_Sg________2_Actions)
set udg_trigger259=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger259,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger259,Condition(function Trig_chudai1501_Conditions))
call TriggerAddAction(udg_trigger259,function Trig_chudai1501_Actions)
set udg_trigger260=CreateTrigger()
call DisableTrigger(udg_trigger260)
call TriggerRegisterTimerEventPeriodic(udg_trigger260,0.04)
call TriggerAddAction(udg_trigger260,function Trig_chudai1502_Actions)
set udg_trigger261=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger261,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger261,Condition(function Trig_hlyd_______u_Conditions))
call TriggerAddAction(udg_trigger261,function Trig_hlyd_______u_Actions)
set udg_trigger262=CreateTrigger()
call DisableTrigger(udg_trigger262)
call TriggerRegisterAnyUnitEventBJ(udg_trigger262,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger262,Condition(function Trig_hlyd2_______u_Conditions))
call TriggerAddAction(udg_trigger262,function Trig_hlyd2_______u_Actions)
set udg_trigger263=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger263,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger263,Condition(function Trig_SZZ_______u_Conditions))
call TriggerAddAction(udg_trigger263,function Trig_SZZ_______u_Actions)
set udg_trigger264=CreateTrigger()
call DisableTrigger(udg_trigger264)
call TriggerRegisterTimerEventPeriodic(udg_trigger264,0.30)
call TriggerAddAction(udg_trigger264,function Trig_SZZ2_______u_Actions)
set udg_trigger265=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger265,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger265,Condition(function Trig_hlyd______________u_Conditions))
call TriggerAddAction(udg_trigger265,function Trig_hlyd______________u_Actions)
set udg_trigger266=CreateTrigger()
call DisableTrigger(udg_trigger266)
call TriggerRegisterAnyUnitEventBJ(udg_trigger266,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger266,Condition(function Trig_hlyd2______________u_Conditions))
call TriggerAddAction(udg_trigger266,function Trig_hlyd2______________u_Actions)
set udg_trigger267=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger267,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger267,Condition(function Trig_Spell2_Conditions))
call TriggerAddAction(udg_trigger267,function Trig_Spell2_Actions)
set udg_trigger268=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger268,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger268,Condition(function Trig_sysjr1_Conditions))
call TriggerAddAction(udg_trigger268,function Trig_sysjr1_Actions)
set udg_trigger269=CreateTrigger()
call DisableTrigger(udg_trigger269)
call TriggerRegisterTimerEventPeriodic(udg_trigger269,0.03)
call TriggerAddAction(udg_trigger269,function Trig_sysjr2_Actions)
set udg_trigger270=CreateTrigger()
call DisableTrigger(udg_trigger270)
call TriggerRegisterTimerEventPeriodic(udg_trigger270,0.10)
call TriggerAddAction(udg_trigger270,function Trig_sysjr3_Actions)
set udg_trigger271=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger271,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger271,Condition(function Trig_KK3D_Conditions))
call TriggerAddAction(udg_trigger271,function Trig_KK3D_Actions)
set udg_trigger275=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger275,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger275,Condition(function Trig_sljw1_Conditions))
call TriggerAddAction(udg_trigger275,function Trig_sljw1_Actions)
set udg_trigger276=CreateTrigger()
call DisableTrigger(udg_trigger276)
call TriggerRegisterTimerEventPeriodic(udg_trigger276,0.40)
call TriggerAddAction(udg_trigger276,function Trig_sljw2_Actions)
set udg_trigger277=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger277,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger277,Condition(function Trig_sljw3_Conditions))
call TriggerAddAction(udg_trigger277,function Trig_sljw3_Actions)
set udg_trigger278=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger278,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger278,Condition(function Trig_guaili_Conditions))
call TriggerAddAction(udg_trigger278,function Trig_guaili_Actions)
set udg_trigger279=CreateTrigger()
call DisableTrigger(udg_trigger279)
call TriggerRegisterTimerEventPeriodic(udg_trigger279,0.01)
call TriggerAddAction(udg_trigger279,function Trig_guaili2_Actions)
set udg_trigger280=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger280,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger280,Condition(function Trig_yhcxs1_Conditions))
call TriggerAddAction(udg_trigger280,function Trig_yhcxs1_Actions)
set udg_trigger281=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger281,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger281,Condition(function Trig_yhcxs2_Conditions))
call TriggerAddAction(udg_trigger281,function Trig_yhcxs2_Actions)
set udg_trigger282=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger282,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger282,Condition(function Trig_lxy_Conditions))
call TriggerAddAction(udg_trigger282,function Trig_lxy_Actions)
set udg_trigger283=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger283,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger283,Condition(function Trig_zxs_Conditions))
call TriggerAddAction(udg_trigger283,function Trig_zxs_Actions)
set udg_trigger284=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger284,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger284,Condition(function Trig_bq1_Conditions))
call TriggerAddAction(udg_trigger284,function Trig_bq1_Actions)
set udg_trigger285=CreateTrigger()
call DisableTrigger(udg_trigger285)
call TriggerRegisterAnyUnitEventBJ(udg_trigger285,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger285,Condition(function Trig_bq2_Conditions))
call TriggerAddAction(udg_trigger285,function Trig_bq2_Actions)
set udg_trigger286=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger286,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger286,Condition(function Trig_ddbj_Conditions))
call TriggerAddAction(udg_trigger286,function Trig_ddbj_Actions)
set udg_trigger287=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger287,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger287,Condition(function Trig_pangzi1_Conditions))
call TriggerAddAction(udg_trigger287,function Trig_pangzi1_Actions)
set udg_trigger288=CreateTrigger()
call DisableTrigger(udg_trigger288)
call TriggerRegisterTimerEventPeriodic(udg_trigger288,0.02)
call TriggerAddAction(udg_trigger288,function Trig_pangzi2_Actions)
set udg_trigger289=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger289,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger289,Condition(function Trig_pangzi3_Conditions))
call TriggerAddAction(udg_trigger289,function Trig_pangzi3_Actions)
set udg_trigger290=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger290,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger290,Condition(function Trig_pangzi4_Conditions))
call TriggerAddAction(udg_trigger290,function Trig_pangzi4_Actions)
set udg_trigger291=CreateTrigger()
call DisableTrigger(udg_trigger291)
call TriggerRegisterTimerEventPeriodic(udg_trigger291,0.02)
call TriggerAddAction(udg_trigger291,function Trig_pangzi5_Actions)
set udg_trigger292=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger292,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger292,Condition(function Trig_shbg64z_Conditions))
call TriggerAddAction(udg_trigger292,function Trig_shbg64z_Actions)
set udg_trigger293=CreateTrigger()
call TriggerAddAction(udg_trigger293,function Trig_shbg64z2_Actions)
set udg_trigger294=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger294,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger294,Condition(function Trig_bg321_Conditions))
call TriggerAddAction(udg_trigger294,function Trig_bg321_Actions)
set udg_trigger295=CreateTrigger()
call DisableTrigger(udg_trigger295)
call TriggerRegisterTimerEventPeriodic(udg_trigger295,0.21)
call TriggerAddAction(udg_trigger295,function Trig_bg322_Actions)
set udg_trigger296=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger296,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger296,Condition(function Trig_bptw2_Conditions))
call TriggerAddAction(udg_trigger296,function Trig_bptw2_Actions)
set udg_trigger297=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger297,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger297,Condition(function Trig_rbssz1_Conditions))
call TriggerAddAction(udg_trigger297,function Trig_rbssz1_Actions)
set udg_trigger298=CreateTrigger()
call DisableTrigger(udg_trigger298)
call TriggerRegisterTimerEventPeriodic(udg_trigger298,0.02)
call TriggerAddAction(udg_trigger298,function Trig_rbssz2_Actions)
set udg_trigger299=CreateTrigger()
call DisableTrigger(udg_trigger299)
call TriggerRegisterTimerEventPeriodic(udg_trigger299,0.02)
call TriggerAddAction(udg_trigger299,function Trig_rbssz3_Actions)
set udg_trigger300=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger300,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger300,Condition(function Trig_dlys1_Conditions))
call TriggerAddAction(udg_trigger300,function Trig_dlys1_Actions)
set udg_trigger301=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger301,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger301,Condition(function Trig_dhbs_Conditions))
call TriggerAddAction(udg_trigger301,function Trig_dhbs_Actions)
set udg_trigger302=CreateTrigger()
call DisableTrigger(udg_trigger302)
call TriggerRegisterTimerEventPeriodic(udg_trigger302,0.02)
call TriggerAddAction(udg_trigger302,function Trig_dhbs2_Actions)
set udg_trigger303=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger303,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger303,Condition(function Trig_zzw1_Conditions))
call TriggerAddAction(udg_trigger303,function Trig_zzw1_Actions)
set udg_trigger304=CreateTrigger()
call DisableTrigger(udg_trigger304)
call TriggerRegisterTimerEventPeriodic(udg_trigger304,0.02)
call TriggerAddAction(udg_trigger304,function Trig_zzw2_Actions)
set udg_trigger305=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger305,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger305,Condition(function Trig_jfz1_Conditions))
call TriggerAddAction(udg_trigger305,function Trig_jfz1_Actions)
set udg_trigger306=CreateTrigger()
call DisableTrigger(udg_trigger306)
call TriggerRegisterTimerEventPeriodic(udg_trigger306,0.02)
call TriggerAddAction(udg_trigger306,function Trig_jfz2_Actions)
set udg_trigger307=CreateTrigger()
call DisableTrigger(udg_trigger307)
call TriggerRegisterTimerEventPeriodic(udg_trigger307,0.04)
call TriggerAddAction(udg_trigger307,function Trig_jfz3_Actions)
set udg_trigger308=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger308,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger308,Condition(function Trig_jfz11_Conditions))
call TriggerAddAction(udg_trigger308,function Trig_jfz11_Actions)
set udg_trigger309=CreateTrigger()
call DisableTrigger(udg_trigger309)
call TriggerRegisterTimerEventPeriodic(udg_trigger309,0.70)
call TriggerAddAction(udg_trigger309,function Trig_jfzlll_Actions)
set udg_trigger310=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger310,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger310,Condition(function Trig_szb4_Conditions))
call TriggerAddAction(udg_trigger310,function Trig_szb4_Actions)
set udg_trigger311=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger311,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger311,Condition(function Trig_szb5_Conditions))
call TriggerAddAction(udg_trigger311,function Trig_szb5_Actions)
set udg_trigger312=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger312,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger312,Condition(function Trig_hdhlyd_Conditions))
call TriggerAddAction(udg_trigger312,function Trig_hdhlyd_Actions)
set udg_trigger313=CreateTrigger()
call DisableTrigger(udg_trigger313)
call TriggerRegisterTimerEventPeriodic(udg_trigger313,0.02)
call TriggerAddAction(udg_trigger313,function Trig_hdhlyd2_Actions)
set udg_trigger314=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger314,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger314,Condition(function Trig_rfyfszs1_Conditions))
call TriggerAddAction(udg_trigger314,function Trig_rfyfszs1_Actions)
set udg_trigger315=CreateTrigger()
call DisableTrigger(udg_trigger315)
call TriggerRegisterTimerEventPeriodic(udg_trigger315,0.04)
call TriggerAddAction(udg_trigger315,function Trig_rfyfszs2_Actions)
set udg_trigger316=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger316,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger316,Condition(function Trig_sczw1______________u_Conditions))
call TriggerAddAction(udg_trigger316,function Trig_sczw1______________u_Actions)
set udg_trigger317=CreateTrigger()
call DisableTrigger(udg_trigger317)
call TriggerRegisterTimerEventPeriodic(udg_trigger317,0.04)
call TriggerAddAction(udg_trigger317,function Trig_sczw2______________u_Actions)
set udg_trigger318=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger318,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger318,Condition(function Trig_wxty1________2_Conditions))
call TriggerAddAction(udg_trigger318,function Trig_wxty1________2_Actions)
set udg_trigger319=CreateTrigger()
call DisableTrigger(udg_trigger319)
call TriggerRegisterTimerEventPeriodic(udg_trigger319,0.03)
call TriggerAddAction(udg_trigger319,function Trig_wxty2________2_Actions)
set udg_trigger320=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger320,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger320,Condition(function Trig_wxty1________2_______u_Conditions))
call TriggerAddAction(udg_trigger320,function Trig_wxty1________2_______u_Actions)
set udg_trigger321=CreateTrigger()
call DisableTrigger(udg_trigger321)
call TriggerRegisterTimerEventPeriodic(udg_trigger321,0.03)
call TriggerAddAction(udg_trigger321,function Trig_wxty2________2_______u_Actions)
set udg_trigger322=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger322,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger322,Condition(function Trig_yuanmo_Conditions))
call TriggerAddAction(udg_trigger322,function Trig_yuanmo_Actions)
set udg_trigger323=CreateTrigger()
call DisableTrigger(udg_trigger323)
call TriggerRegisterAnyUnitEventBJ(udg_trigger323,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger323,Condition(function Trig_yuanmo2_Conditions))
call TriggerAddAction(udg_trigger323,function Trig_yuanmo2_Actions)
set udg_trigger324=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger324,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger324,Condition(function Trig_yuanmo3_Conditions))
call TriggerAddAction(udg_trigger324,function Trig_yuanmo3_Actions)
set udg_trigger325=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger325,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger325,Condition(function Trig_bmtj_Conditions))
call TriggerAddAction(udg_trigger325,function Trig_bmtj_Actions)
set udg_trigger326=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger326,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger326,Condition(function Trig_blh_Conditions))
call TriggerAddAction(udg_trigger326,function Trig_blh_Actions)
set udg_trigger327=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger327,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger327,Condition(function Trig_llh1_Conditions))
call TriggerAddAction(udg_trigger327,function Trig_llh1_Actions)
set udg_trigger328=CreateTrigger()
call DisableTrigger(udg_trigger328)
call TriggerRegisterTimerEventPeriodic(udg_trigger328,0.20)
call TriggerAddAction(udg_trigger328,function Trig_llh2_Actions)
set udg_trigger329=CreateTrigger()
call DisableTrigger(udg_trigger329)
call TriggerRegisterTimerEventPeriodic(udg_trigger329,0.20)
call TriggerAddAction(udg_trigger329,function Trig_llh3_Actions)
set udg_trigger330=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger330,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger330,Condition(function Trig_dlf_Conditions))
call TriggerAddAction(udg_trigger330,function Trig_dlf_Actions)
set udg_trigger331=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger331,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger331,Condition(function Trig_SQ_Conditions))
call TriggerAddAction(udg_trigger331,function Trig_SQ_Actions)
set udg_trigger332=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger332,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger332,Condition(function Trig_caojuqiuqianren_Conditions))
call TriggerAddAction(udg_trigger332,function Trig_caojuqiuqianren_Actions)
set udg_trigger333=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger333,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger333,Condition(function Trig_sh2_Conditions))
call TriggerAddAction(udg_trigger333,function Trig_sh2_Actions)
set udg_trigger334=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger334,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger334,Condition(function Trig_fmslj_Conditions))
call TriggerAddAction(udg_trigger334,function Trig_fmslj_Actions)
set udg_trigger335=CreateTrigger()
call DisableTrigger(udg_trigger335)
call TriggerRegisterTimerEventPeriodic(udg_trigger335,0.05)
call TriggerAddAction(udg_trigger335,function Trig_fmslj2_Actions)
set udg_trigger336=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger336,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger336,Condition(function Trig_tjs1_Conditions))
call TriggerAddAction(udg_trigger336,function Trig_tjs1_Actions)
set udg_trigger337=CreateTrigger()
call DisableTrigger(udg_trigger337)
call TriggerRegisterTimerEventPeriodic(udg_trigger337,0.07)
call TriggerAddAction(udg_trigger337,function Trig_tjs2_Actions)
set udg_trigger338=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger338,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger338,Condition(function Trig_tjs3_Conditions))
call TriggerAddAction(udg_trigger338,function Trig_tjs3_Actions)
set udg_trigger339=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger339,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger339,Condition(function Trig_cswhsz1_Conditions))
call TriggerAddAction(udg_trigger339,function Trig_cswhsz1_Actions)
set udg_trigger340=CreateTrigger()
call DisableTrigger(udg_trigger340)
call TriggerRegisterTimerEventPeriodic(udg_trigger340,0.01)
call TriggerAddAction(udg_trigger340,function Trig_cswhsz2_Actions)
set udg_trigger341=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger341,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger341,Condition(function Trig_CSWH1_Conditions))
call TriggerAddAction(udg_trigger341,function Trig_CSWH1_Actions)
set udg_trigger342=CreateTrigger()
call DisableTrigger(udg_trigger342)
call TriggerRegisterTimerEventPeriodic(udg_trigger342,0.01)
call TriggerAddAction(udg_trigger342,function Trig_CSWH2_Actions)
set udg_trigger343=CreateTrigger()
call DisableTrigger(udg_trigger343)
call TriggerRegisterTimerEventPeriodic(udg_trigger343,0.40)
call TriggerAddCondition(udg_trigger343,Condition(function Trig_cswh3_Conditions))
call TriggerAddAction(udg_trigger343,function Trig_cswh3_Actions)
set udg_trigger344=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger344,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger344,Condition(function Trig_long1_Conditions))
call TriggerAddAction(udg_trigger344,function Trig_long1_Actions)
set udg_trigger345=CreateTrigger()
call DisableTrigger(udg_trigger345)
call TriggerRegisterTimerEventPeriodic(udg_trigger345,0.02)
call TriggerAddAction(udg_trigger345,function Trig_long2_Actions)
set udg_trigger346=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger346,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger346,Condition(function Trig_zyzs_______u_Conditions))
call TriggerAddAction(udg_trigger346,function Trig_zyzs_______u_Actions)
set udg_trigger347=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger347,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger347,Condition(function Trig_zyzs2_______u_Conditions))
call TriggerAddAction(udg_trigger347,function Trig_zyzs2_______u_Actions)
set udg_trigger348=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger348,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger348,function Trig_sljw3_______u_Actions)
set udg_trigger349=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger349,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger349,Condition(function Trig_zhuque_______u_Conditions))
call TriggerAddAction(udg_trigger349,function Trig_zhuque_______u_Actions)
set udg_trigger350=CreateTrigger()
call DisableTrigger(udg_trigger350)
call TriggerRegisterTimerEventPeriodic(udg_trigger350,0.02)
call TriggerAddAction(udg_trigger350,function Trig_zhuque2_______u_Actions)
set udg_trigger351=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger351,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger351,Condition(function Trig_honglian1_Conditions))
call TriggerAddAction(udg_trigger351,function Trig_honglian1_Actions)
set udg_trigger352=CreateTrigger()
call DisableTrigger(udg_trigger352)
call TriggerRegisterTimerEventPeriodic(udg_trigger352,0.10)
call TriggerAddAction(udg_trigger352,function Trig_honglian2_Actions)
set udg_trigger353=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger353,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger353,Condition(function Trig_honglian3_Conditions))
call TriggerAddAction(udg_trigger353,function Trig_honglian3_Actions)
set udg_trigger354=CreateTrigger()
call DisableTrigger(udg_trigger354)
call TriggerRegisterAnyUnitEventBJ(udg_trigger354,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger354,Condition(function Trig_honglian4_Conditions))
call TriggerAddAction(udg_trigger354,function Trig_honglian4_Actions)
set udg_trigger355=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger355,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger355,Condition(function Trig_honglian5_Conditions))
call TriggerAddAction(udg_trigger355,function Trig_honglian5_Actions)
set udg_trigger356=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger356,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger356,Condition(function Trig_honglian6_Conditions))
call TriggerAddAction(udg_trigger356,function Trig_honglian6_Actions)
set udg_trigger357=CreateTrigger()
call DisableTrigger(udg_trigger357)
call TriggerRegisterTimerEventPeriodic(udg_trigger357,0.02)
call TriggerAddAction(udg_trigger357,function Trig_honglian7_Actions)
set udg_trigger358=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger358,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger358,Condition(function Trig_hpnglian8_Conditions))
call TriggerAddAction(udg_trigger358,function Trig_hpnglian8_Actions)
set udg_trigger359=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger359,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger359,Condition(function Trig_honglian9_Conditions))
call TriggerAddAction(udg_trigger359,function Trig_honglian9_Actions)
set udg_trigger360=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger360,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger360,Condition(function Trig_yuXG1_Conditions))
call TriggerAddAction(udg_trigger360,function Trig_yuXG1_Actions)
set udg_trigger361=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger361,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger361,Condition(function Trig_yuXG2_Conditions))
call TriggerAddAction(udg_trigger361,function Trig_yuXG2_Actions)
set udg_trigger362=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger362,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger362,Condition(function Trig_yuXG3_Conditions))
call TriggerAddAction(udg_trigger362,function Trig_yuXG3_Actions)
set udg_trigger363=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger363,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger363,Condition(function Trig_yuXG4_Conditions))
call TriggerAddAction(udg_trigger363,function Trig_yuXG4_Actions)
set udg_trigger364=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger364,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger364,Condition(function Trig_lszn_Conditions))
call TriggerAddAction(udg_trigger364,function Trig_lszn_Actions)
set udg_trigger365=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger365,6.00)
call TriggerAddAction(udg_trigger365,function Trig_BOSSdw_Actions)
set udg_trigger366=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger366,8.00)
call TriggerAddAction(udg_trigger366,function Trig_myyu_Actions)
set udg_trigger367=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger367,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger367,Condition(function Trig_hx_Conditions))
call TriggerAddAction(udg_trigger367,function Trig_hx_Actions)
set udg_trigger368=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger368,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger368,Condition(function Trig_hw_Conditions))
call TriggerAddAction(udg_trigger368,function Trig_hw_Actions)
set udg_trigger369=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger369,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger369,Condition(function Trig_he_Conditions))
call TriggerAddAction(udg_trigger369,function Trig_he_Actions)
set udg_trigger370=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger370,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger370,Condition(function Trig_yifu_Conditions))
call TriggerAddAction(udg_trigger370,function Trig_yifu_Actions)
set udg_trigger371=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger371,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger371,Condition(function Trig_jian_Conditions))
call TriggerAddAction(udg_trigger371,function Trig_jian_Actions)
set udg_trigger372=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger372,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger372,Condition(function Trig_yu_Conditions))
call TriggerAddAction(udg_trigger372,function Trig_yu_Actions)
set udg_trigger373=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger373,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger373,Condition(function Trig_my_Conditions))
call TriggerAddAction(udg_trigger373,function Trig_my_Actions)
set udg_trigger374=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger374,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger374,Condition(function Trig_fj_Conditions))
call TriggerAddAction(udg_trigger374,function Trig_fj_Actions)
set udg_trigger375=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger375,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger375,Condition(function Trig_sq_Conditions))
call TriggerAddAction(udg_trigger375,function Trig_sq_Actions)
set udg_trigger376=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger376,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger376,Condition(function Trig_hy_Conditions))
call TriggerAddAction(udg_trigger376,function Trig_hy_Actions)
set udg_trigger377=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger377,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger377,Condition(function Trig_sw_Conditions))
call TriggerAddAction(udg_trigger377,function Trig_sw_Actions)
set udg_trigger378=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger378,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger378,Condition(function Trig_th_Conditions))
call TriggerAddAction(udg_trigger378,function Trig_th_Actions)
set udg_trigger379=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger379,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger379,Condition(function Trig_yz_Conditions))
call TriggerAddAction(udg_trigger379,function Trig_yz_Actions)
set udg_trigger380=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger380,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger380,Condition(function Trig_bd_Conditions))
call TriggerAddAction(udg_trigger380,function Trig_bd_Actions)
set udg_trigger381=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger381,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger381,Condition(function Trig_tn_Conditions))
call TriggerAddAction(udg_trigger381,function Trig_tn_Actions)
set udg_trigger382=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger382,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger382,Condition(function Trig_huy_Conditions))
call TriggerAddAction(udg_trigger382,function Trig_huy_Actions)
set udg_trigger383=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger383,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger383,Condition(function Trig_hying_Conditions))
call TriggerAddAction(udg_trigger383,function Trig_hying_Actions)
set udg_trigger384=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger384,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger384,Condition(function Trig_BH_Conditions))
call TriggerAddAction(udg_trigger384,function Trig_BH_Actions)
set udg_trigger385=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger385,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger385,Condition(function Trig_ql_Conditions))
call TriggerAddAction(udg_trigger385,function Trig_ql_Actions)
set udg_trigger386=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger386,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger386,Condition(function Trig_zq_Conditions))
call TriggerAddAction(udg_trigger386,function Trig_zq_Actions)
set udg_trigger387=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger387,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger387,Condition(function Trig_xw_Conditions))
call TriggerAddAction(udg_trigger387,function Trig_xw_Actions)
set udg_trigger388=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger388,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger388,Condition(function Trig_hehehe_Conditions))
call TriggerAddAction(udg_trigger388,function Trig_hehehe_Actions)
set udg_trigger389=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger389,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger389,Condition(function Trig_bshc_Conditions))
call TriggerAddAction(udg_trigger389,function Trig_bshc_Actions)
set udg_trigger390=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger390,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger390,Condition(function Trig_tZ_Conditions))
call TriggerAddAction(udg_trigger390,function Trig_tZ_Actions)
set udg_trigger391=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger391,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(udg_trigger391,Condition(function Trig_tZ2_Conditions))
call TriggerAddAction(udg_trigger391,function Trig_tZ2_Actions)
set udg_trigger392=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger392,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger392,Condition(function Trig_tnjl_Conditions))
call TriggerAddAction(udg_trigger392,function Trig_tnjl_Actions)
set udg_trigger393=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger393,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger393,Condition(function Trig_lgyc_Conditions))
call TriggerAddAction(udg_trigger393,function Trig_lgyc_Actions)
set udg_trigger394=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger394,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger394,function Trig_baihu1_Actions)
set udg_trigger395=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger395,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger395,function Trig_xuanwu_Actions)
set udg_trigger396=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger396,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger396,function Trig_qinglong_Actions)
set udg_trigger397=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger397,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger397,function Trig_zhuque_Actions)
set udg_trigger398=CreateTrigger()
call DisableTrigger(udg_trigger398)
call TriggerRegisterTimerEventPeriodic(udg_trigger398,0.02)
call TriggerAddAction(udg_trigger398,function Trig_zhuque2_Actions)
set udg_trigger399=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger399,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger399,Condition(function Trig_LG1_Conditions))
call TriggerAddAction(udg_trigger399,function Trig_LG1_Actions)
set udg_trigger400=CreateTrigger()
call DisableTrigger(udg_trigger400)
call TriggerRegisterTimerEventPeriodic(udg_trigger400,4.00)
call TriggerAddAction(udg_trigger400,function Trig_LG2_Actions)
set udg_trigger401=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger401,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger401,Condition(function Trig_boosF1_Conditions))
call TriggerAddAction(udg_trigger401,function Trig_boosF1_Actions)
set udg_trigger402=CreateTrigger()
call DisableTrigger(udg_trigger402)
call TriggerRegisterTimerEventPeriodic(udg_trigger402,4.00)
call TriggerAddAction(udg_trigger402,function Trig_bossF2_Actions)
set udg_trigger403=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger403,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger403,Condition(function Trig_juedou1_Conditions))
call TriggerAddAction(udg_trigger403,function Trig_juedou1_Actions)
set udg_trigger404=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger404,udg_dialog01)
call TriggerAddAction(udg_trigger404,function Trig_juedou2_Actions)
set udg_trigger405=CreateTrigger()
call DisableTrigger(udg_trigger405)
call TriggerRegisterAnyUnitEventBJ(udg_trigger405,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger405,Condition(function Trig_juedou3_Conditions))
call TriggerAddAction(udg_trigger405,function Trig_juedou3_Actions)
set udg_trigger406=CreateTrigger()
call DisableTrigger(udg_trigger406)
call TriggerRegisterLeaveRectSimple(udg_trigger406,udg_rect07)
call TriggerAddCondition(udg_trigger406,Condition(function Trig_juedou4_Conditions))
call TriggerAddAction(udg_trigger406,function Trig_juedou4_Actions)
set udg_trigger407=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_trigger407,udg_timer02)
call TriggerAddCondition(udg_trigger407,Condition(function Trig_juedou5_Conditions))
call TriggerAddAction(udg_trigger407,function Trig_juedou5_Actions)
set udg_trigger408=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger408,udg_rect07)
call TriggerAddAction(udg_trigger408,function Trig_juedou6_Actions)
set udg_trigger409=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger409,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger409,Condition(function Trig_FYTSJ_Conditions))
call TriggerAddAction(udg_trigger409,function Trig_FYTSJ_Actions)
set udg_trigger410=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger410,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger410,Condition(function Trig_boss1________4_Conditions))
call TriggerAddAction(udg_trigger410,function Trig_boss1________4_Actions)
set udg_trigger411=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger411,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger411,Condition(function Trig_boss1_Conditions))
call TriggerAddAction(udg_trigger411,function Trig_boss1_Actions)
set udg_trigger412=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger412,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger412,Condition(function Trig_boss1_______u_Conditions))
call TriggerAddAction(udg_trigger412,function Trig_boss1_______u_Actions)
set udg_trigger413=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger413,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger413,Condition(function Trig_boss1________2_Conditions))
call TriggerAddAction(udg_trigger413,function Trig_boss1________2_Actions)
set udg_trigger414=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger414,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger414,Condition(function Trig_boss1________3_Conditions))
call TriggerAddAction(udg_trigger414,function Trig_boss1________3_Actions)
set udg_trigger415=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger415,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger415,Condition(function Trig_boss1________3_______u_Conditions))
call TriggerAddAction(udg_trigger415,function Trig_boss1________3_______u_Actions)
set udg_trigger416=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger416,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger416,Condition(function Trig_BOSS1_Conditions))
call TriggerAddAction(udg_trigger416,function Trig_BOSS1_Actions)
set udg_trigger417=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger417,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger417,Condition(function Trig_BOSS2_Conditions))
call TriggerAddAction(udg_trigger417,function Trig_BOSS2_Actions)
set udg_trigger418=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger418,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger418,Condition(function Trig_BOSS3_Conditions))
call TriggerAddAction(udg_trigger418,function Trig_BOSS3_Actions)
set udg_trigger419=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger419,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger419,Condition(function Trig_BOSS4_Conditions))
call TriggerAddAction(udg_trigger419,function Trig_BOSS4_Actions)
set udg_trigger420=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger420,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger420,Condition(function Trig_BOSS5_Conditions))
call TriggerAddAction(udg_trigger420,function Trig_BOSS5_Actions)
set udg_trigger421=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger421,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger421,Condition(function Trig_BOSS5_______u_Conditions))
call TriggerAddAction(udg_trigger421,function Trig_BOSS5_______u_Actions)
set udg_trigger422=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger422,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger422,Condition(function Trig_BOSS5________2_Conditions))
call TriggerAddAction(udg_trigger422,function Trig_BOSS5________2_Actions)
set udg_trigger423=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger423,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger423,Condition(function Trig_BOSS5________3_Conditions))
call TriggerAddAction(udg_trigger423,function Trig_BOSS5________3_Actions)
set udg_trigger424=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger424,udg_rect23)
call TriggerAddCondition(udg_trigger424,Condition(function Trig_c1_Conditions))
call TriggerAddAction(udg_trigger424,function Trig_c1_Actions)
set udg_trigger425=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger425,udg_rect24)
call TriggerAddCondition(udg_trigger425,Condition(function Trig_c1_______u_Conditions))
call TriggerAddAction(udg_trigger425,function Trig_c1_______u_Actions)
set udg_trigger426=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger426,udg_rect22)
call TriggerAddCondition(udg_trigger426,Condition(function Trig_c1________2_Conditions))
call TriggerAddAction(udg_trigger426,function Trig_c1________2_Actions)
set udg_trigger427=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger427,udg_rect25)
call TriggerAddCondition(udg_trigger427,Condition(function Trig_c1________3_Conditions))
call TriggerAddAction(udg_trigger427,function Trig_c1________3_Actions)
set udg_trigger428=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger428,udg_rect26)
call TriggerAddCondition(udg_trigger428,Condition(function Trig_c1________4_Conditions))
call TriggerAddAction(udg_trigger428,function Trig_c1________4_Actions)
set udg_trigger429=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger429,udg_rect27)
call TriggerAddCondition(udg_trigger429,Condition(function Trig_c1________5_Conditions))
call TriggerAddAction(udg_trigger429,function Trig_c1________5_Actions)
set udg_trigger430=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger430,udg_rect28)
call TriggerAddCondition(udg_trigger430,Condition(function Trig_c1________6_Conditions))
call TriggerAddAction(udg_trigger430,function Trig_c1________6_Actions)
set udg_trigger431=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger431,udg_rect35)
call TriggerAddCondition(udg_trigger431,Condition(function Trig_c2_Conditions))
call TriggerAddAction(udg_trigger431,function Trig_c2_Actions)
set udg_trigger432=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger432,udg_rect34)
call TriggerAddCondition(udg_trigger432,Condition(function Trig_c2_______u_Conditions))
call TriggerAddAction(udg_trigger432,function Trig_c2_______u_Actions)
set udg_trigger433=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger433,udg_rect33)
call TriggerAddCondition(udg_trigger433,Condition(function Trig_c2________2_Conditions))
call TriggerAddAction(udg_trigger433,function Trig_c2________2_Actions)
set udg_trigger434=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger434,udg_rect32)
call TriggerAddCondition(udg_trigger434,Condition(function Trig_c2________3_Conditions))
call TriggerAddAction(udg_trigger434,function Trig_c2________3_Actions)
set udg_trigger435=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger435,udg_rect31)
call TriggerAddCondition(udg_trigger435,Condition(function Trig_c2________4_Conditions))
call TriggerAddAction(udg_trigger435,function Trig_c2________4_Actions)
set udg_trigger436=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger436,udg_rect29)
call TriggerAddCondition(udg_trigger436,Condition(function Trig_c2________5_Conditions))
call TriggerAddAction(udg_trigger436,function Trig_c2________5_Actions)
set udg_trigger437=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger437,udg_rect30)
call TriggerAddCondition(udg_trigger437,Condition(function Trig_c2________6_Conditions))
call TriggerAddAction(udg_trigger437,function Trig_c2________6_Actions)
set udg_trigger438=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger438,udg_rect39)
call TriggerAddCondition(udg_trigger438,Condition(function Trig_c3_Conditions))
call TriggerAddAction(udg_trigger438,function Trig_c3_Actions)
set udg_trigger439=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger439,udg_rect36)
call TriggerAddCondition(udg_trigger439,Condition(function Trig_c3_______u_Conditions))
call TriggerAddAction(udg_trigger439,function Trig_c3_______u_Actions)
set udg_trigger440=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger440,udg_rect37)
call TriggerAddCondition(udg_trigger440,Condition(function Trig_c3________2_Conditions))
call TriggerAddAction(udg_trigger440,function Trig_c3________2_Actions)
set udg_trigger441=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger441,udg_rect38)
call TriggerAddCondition(udg_trigger441,Condition(function Trig_c3________3_Conditions))
call TriggerAddAction(udg_trigger441,function Trig_c3________3_Actions)
set udg_trigger442=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger442,udg_rect40)
call TriggerAddCondition(udg_trigger442,Condition(function Trig_c3________4_Conditions))
call TriggerAddAction(udg_trigger442,function Trig_c3________4_Actions)
set udg_trigger443=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger443,udg_rect41)
call TriggerAddCondition(udg_trigger443,Condition(function Trig_c3________5_Conditions))
call TriggerAddAction(udg_trigger443,function Trig_c3________5_Actions)
set udg_trigger444=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger444,udg_rect42)
call TriggerAddCondition(udg_trigger444,Condition(function Trig_c3________6_Conditions))
call TriggerAddAction(udg_trigger444,function Trig_c3________6_Actions)
set udg_trigger445=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect53)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect43)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect50)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect49)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect52)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect44)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect51)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect45)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect46)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect47)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect48)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect59)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect60)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect54)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect55)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect56)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect57)
call TriggerRegisterEnterRectSimple(udg_trigger445,udg_rect58)
call TriggerAddCondition(udg_trigger445,Condition(function Trig_hehe_Conditions))
call TriggerAddAction(udg_trigger445,function Trig_hehe_Actions)
set udg_trigger446=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger446,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger446,Condition(function Trig_hlyd_______________2_Conditions))
call TriggerAddAction(udg_trigger446,function Trig_hlyd_______________2_Actions)
set udg_trigger447=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger447,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger447,Condition(function Trig_qn_______u_Conditions))
call TriggerAddAction(udg_trigger447,function Trig_qn_______u_Actions)
set udg_trigger448=CreateTrigger()
call DisableTrigger(udg_trigger448)
call TriggerRegisterTimerEventPeriodic(udg_trigger448,0.03)
call TriggerAddAction(udg_trigger448,function Trig_qn2_______u_Actions)
set udg_trigger449=CreateTrigger()
call DisableTrigger(udg_trigger449)
call TriggerRegisterTimerEventPeriodic(udg_trigger449,0.20)
call TriggerAddAction(udg_trigger449,function Trig_qn3_______u_Actions)
set udg_trigger450=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger450,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger450,Condition(function Trig_TZ________2_Conditions))
call TriggerAddAction(udg_trigger450,function Trig_TZ________2_Actions)
set udg_trigger451=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger451,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger451,Condition(function Trig_htcs_Conditions))
call TriggerAddAction(udg_trigger451,function Trig_htcs_Actions)
set udg_trigger452=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger452,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger452,Condition(function Trig_UFANSHU1_Conditions))
call TriggerAddAction(udg_trigger452,function Trig_UFANSHU1_Actions)
set udg_trigger453=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger453,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger453,Condition(function Trig_UFANSHU2_Conditions))
call TriggerAddAction(udg_trigger453,function Trig_UFANSHU2_Actions)
set udg_trigger454=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger454,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger454,Condition(function Trig_lz_Conditions))
call TriggerAddAction(udg_trigger454,function Trig_lz_Actions)
set udg_trigger455=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger455,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger455,Condition(function Trig_zsshu_Conditions))
call TriggerAddAction(udg_trigger455,function Trig_zsshu_Actions)
set udg_trigger456=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger456,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger456,Condition(function Trig_wyzs_Conditions))
call TriggerAddAction(udg_trigger456,function Trig_wyzs_Actions)
set udg_trigger457=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger457,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger457,Condition(function Trig_BGKZ_______u_Conditions))
call TriggerAddAction(udg_trigger457,function Trig_BGKZ_______u_Actions)
set udg_trigger458=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger458,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger458,Condition(function Trig_BJ_Conditions))
call TriggerAddAction(udg_trigger458,function Trig_BJ_Actions)
set udg_trigger459=CreateTrigger()
call DisableTrigger(udg_trigger459)
call TriggerRegisterTimerEventPeriodic(udg_trigger459,0.45)
call TriggerAddAction(udg_trigger459,function Trig_BJ2_Actions)
set udg_trigger460=CreateTrigger()
call DisableTrigger(udg_trigger460)
call TriggerRegisterTimerEventPeriodic(udg_trigger460,0.01)
call TriggerAddAction(udg_trigger460,function Trig_BJ8______________u_Actions)
set udg_trigger461=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger461,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger461,Condition(function Trig_hhq_Conditions))
call TriggerAddAction(udg_trigger461,function Trig_hhq_Actions)
set udg_trigger462=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger462,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger462,Condition(function Trig_zjzw_Conditions))
call TriggerAddAction(udg_trigger462,function Trig_zjzw_Actions)
set udg_trigger463=CreateTrigger()
call DisableTrigger(udg_trigger463)
call TriggerRegisterTimerEventPeriodic(udg_trigger463,0.09)
call TriggerAddAction(udg_trigger463,function Trig_zjzw2_Actions)
set udg_trigger464=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger464,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger464,Condition(function Trig_sczw1_Conditions))
call TriggerAddAction(udg_trigger464,function Trig_sczw1_Actions)
set udg_trigger465=CreateTrigger()
call DisableTrigger(udg_trigger465)
call TriggerRegisterTimerEventPeriodic(udg_trigger465,0.04)
call TriggerAddAction(udg_trigger465,function Trig_sczw2_Actions)
set udg_trigger466=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger466,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger466,Condition(function Trig_sczw1_______u_Conditions))
call TriggerAddAction(udg_trigger466,function Trig_sczw1_______u_Actions)
set udg_trigger467=CreateTrigger()
call DisableTrigger(udg_trigger467)
call TriggerRegisterTimerEventPeriodic(udg_trigger467,0.04)
call TriggerAddAction(udg_trigger467,function Trig_sczw2_______u_Actions)
set udg_trigger468=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger468,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger468,Condition(function Trig_sbsz_Conditions))
call TriggerAddAction(udg_trigger468,function Trig_sbsz_Actions)
set udg_trigger469=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger469,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger469,Condition(function Trig_shouhezhimao1_Conditions))
call TriggerAddAction(udg_trigger469,function Trig_shouhezhimao1_Actions)
set udg_trigger470=CreateTrigger()
call DisableTrigger(udg_trigger470)
call TriggerRegisterTimerEventPeriodic(udg_trigger470,0.03)
call TriggerAddAction(udg_trigger470,function Trig_shouhezhimao2_Actions)
set udg_trigger471=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger471,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger471,Condition(function Trig_tiehua_Conditions))
call TriggerAddAction(udg_trigger471,function Trig_tiehua_Actions)
set udg_trigger472=CreateTrigger()
call DisableTrigger(udg_trigger472)
call TriggerRegisterTimerEventPeriodic(udg_trigger472,0.02)
call TriggerAddAction(udg_trigger472,function Trig_tiehua2_Actions)
set udg_trigger473=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger473,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger473,Condition(function Trig_qssx_Conditions))
call TriggerAddAction(udg_trigger473,function Trig_qssx_Actions)
set udg_trigger474=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger474,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger474,Condition(function Trig_ywsy_Conditions))
call TriggerAddAction(udg_trigger474,function Trig_ywsy_Actions)
set udg_trigger475=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger475,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger475,Condition(function Trig_fls_Conditions))
call TriggerAddAction(udg_trigger475,function Trig_fls_Actions)
set udg_trigger476=CreateTrigger()
call DisableTrigger(udg_trigger476)
call TriggerRegisterTimerEventPeriodic(udg_trigger476,0.10)
call TriggerAddAction(udg_trigger476,function Trig_fls2_Actions)
set udg_trigger477=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger477,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger477,Condition(function Trig_jglbd_Conditions))
call TriggerAddAction(udg_trigger477,function Trig_jglbd_Actions)
set udg_trigger478=CreateTrigger()
call DisableTrigger(udg_trigger478)
call TriggerRegisterTimerEventPeriodic(udg_trigger478,0.03)
call TriggerAddAction(udg_trigger478,function Trig_jglbd2_Actions)
set udg_trigger479=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger479,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger479,Condition(function Trig_jgzm_Conditions))
call TriggerAddAction(udg_trigger479,function Trig_jgzm_Actions)
set udg_trigger480=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger480,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger480,Condition(function Trig_dlys_Conditions))
call TriggerAddAction(udg_trigger480,function Trig_dlys_Actions)
set udg_trigger481=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger481,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger481,Condition(function Trig_szb_Conditions))
call TriggerAddAction(udg_trigger481,function Trig_szb_Actions)
set udg_trigger482=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger482,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger482,Condition(function Trig_szb2_Conditions))
call TriggerAddAction(udg_trigger482,function Trig_szb2_Actions)
set udg_trigger483=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger483,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger483,Condition(function Trig_slzs1_Conditions))
call TriggerAddAction(udg_trigger483,function Trig_slzs1_Actions)
set udg_trigger484=CreateTrigger()
call DisableTrigger(udg_trigger484)
call TriggerRegisterTimerEventPeriodic(udg_trigger484,0.50)
call TriggerAddAction(udg_trigger484,function Trig_slzs2_Actions)
set udg_trigger485=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger485,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger485,Condition(function Trig_XYLXW_______u_Conditions))
call TriggerAddAction(udg_trigger485,function Trig_XYLXW_______u_Actions)
set udg_trigger486=CreateTrigger()
call DisableTrigger(udg_trigger486)
call TriggerRegisterTimerEventPeriodic(udg_trigger486,0.04)
call TriggerAddAction(udg_trigger486,function Trig_XYLXW2_______u_Actions)
set udg_trigger487=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger487,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger487,Condition(function Trig____________________002_Conditions))
call TriggerAddAction(udg_trigger487,function Trig____________________002_Actions)
set udg_trigger488=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger488,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger488,function Trig_boss1d_Actions)
set udg_trigger489=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger489,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger489,Condition(function Trig_boss1d________3_Conditions))
call TriggerAddAction(udg_trigger489,function Trig_boss1d________3_Actions)
set udg_trigger490=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger490,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger490,Condition(function Trig_boss1d________2_Conditions))
call TriggerAddAction(udg_trigger490,function Trig_boss1d________2_Actions)
set udg_trigger491=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger491,550.00,udg_unit52)
call TriggerAddAction(udg_trigger491,function Trig_boss1d_______u_Actions)
set udg_trigger492=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger492,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger492,Condition(function Trig_boss1d_______________2_Conditions))
call TriggerAddAction(udg_trigger492,function Trig_boss1d_______________2_Actions)
set udg_trigger493=CreateTrigger()
call TriggerRegisterUnitInRangeSimple(udg_trigger493,400.00,udg_unit45)
call TriggerAddAction(udg_trigger493,function Trig_boss1d______________u_Actions)
set udg_trigger494=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger494,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger494,function Trig_boss1d________4_Actions)
set udg_trigger495=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger495,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger495,Condition(function Trig_cha_Conditions))
call TriggerAddAction(udg_trigger495,function Trig_cha_Actions)
set udg_trigger496=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger496,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger496,Condition(function Trig_cha________2_Conditions))
call TriggerAddAction(udg_trigger496,function Trig_cha________2_Actions)
set udg_trigger497=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger497,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger497,Condition(function Trig_cha_______u_Conditions))
call TriggerAddAction(udg_trigger497,function Trig_cha_______u_Actions)
set udg_trigger498=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger498,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger498,Condition(function Trig_cha______________u_Conditions))
call TriggerAddAction(udg_trigger498,function Trig_cha______________u_Actions)
set udg_trigger499=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger499,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger499,Condition(function Trig_cha______________________2_Conditions))
call TriggerAddAction(udg_trigger499,function Trig_cha______________________2_Actions)
set udg_trigger500=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger500,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger500,Condition(function Trig_cha____________________________u_Conditions))
call TriggerAddAction(udg_trigger500,function Trig_cha____________________________u_Actions)
set udg_trigger501=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger501,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger501,Condition(function Trig_cha___________________________________u_Conditions))
call TriggerAddAction(udg_trigger501,function Trig_cha___________________________________u_Actions)
set udg_trigger502=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger502,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger502,Condition(function Trig_cha__________________________________________u_Conditions))
call TriggerAddAction(udg_trigger502,function Trig_cha__________________________________________u_Actions)
set udg_trigger503=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger503,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger503,Condition(function Trig_jidiwudi_Conditions))
call TriggerAddAction(udg_trigger503,function Trig_jidiwudi_Actions)
set udg_trigger504=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger504,udg_unit55,EVENT_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger504,Condition(function Trig_jidiwudi_______u_Conditions))
call TriggerAddAction(udg_trigger504,function Trig_jidiwudi_______u_Actions)
set udg_trigger505=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger505,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger505,Condition(function Trig_jun_Conditions))
call TriggerAddAction(udg_trigger505,function Trig_jun_Actions)
set udg_trigger506=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger506,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger506,Condition(function Trig_jun2_Conditions))
call TriggerAddAction(udg_trigger506,function Trig_jun2_Actions)
set udg_trigger507=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger507,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger507,Condition(function Trig_shibai_Conditions))
call TriggerAddAction(udg_trigger507,function Trig_shibai_Actions)
set udg_trigger508=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger508,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger508,Condition(function Trig_rw_Conditions))
call TriggerAddAction(udg_trigger508,function Trig_rw_Actions)
set udg_trigger509=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger509,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger509,function Trig_ye1_Actions)
set udg_trigger510=CreateTrigger()
call DisableTrigger(udg_trigger510)
call TriggerRegisterAnyUnitEventBJ(udg_trigger510,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger510,Condition(function Trig_ld111111111_Conditions))
call TriggerAddAction(udg_trigger510,function Trig_ld111111111_Actions)
set udg_trigger511=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger511,udg_rect66)
call TriggerRegisterEnterRectSimple(udg_trigger511,udg_rect67)
call TriggerAddCondition(udg_trigger511,Condition(function Trig_CS_Conditions))
call TriggerAddAction(udg_trigger511,function Trig_CS_Actions)
set udg_trigger512=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger512,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger512,Condition(function Trig_ss1_Conditions))
call TriggerAddAction(udg_trigger512,function Trig_ss1_Actions)
set udg_trigger513=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger513,udg_rect69)
call TriggerRegisterEnterRectSimple(udg_trigger513,udg_rect68)
call TriggerAddAction(udg_trigger513,function Trig_ss_Actions)
set udg_trigger514=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger514,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger514,Condition(function Trig_ss2_Conditions))
call TriggerAddAction(udg_trigger514,function Trig_ss2_Actions)
set udg_trigger515=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger515,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger515,Condition(function Trig_ss2_______u_Conditions))
call TriggerAddAction(udg_trigger515,function Trig_ss2_______u_Actions)
set udg_trigger516=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger516,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger516,function Trig_shengshou_Actions)
set udg_trigger517=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger517,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger517,Condition(function Trig_shaji_Conditions))
call TriggerAddAction(udg_trigger517,function Trig_shaji_Actions)
set udg_trigger518=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger518,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger518,Condition(function Trig_shaji1_Conditions))
call TriggerAddAction(udg_trigger518,function Trig_shaji1_Actions)
set udg_trigger519=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger519,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger519,Condition(function Trig_shaji2_Conditions))
call TriggerAddAction(udg_trigger519,function Trig_shaji2_Actions)
set udg_trigger520=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger520,udg_unit90,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger520,function Trig_zh_Actions)
set udg_trigger521=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger521,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger521,Condition(function Trig_sdlb_Conditions))
call TriggerAddAction(udg_trigger521,function Trig_sdlb_Actions)
set udg_trigger522=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger522,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger522,Condition(function Trig_zhuanshu111_Conditions))
call TriggerAddAction(udg_trigger522,function Trig_zhuanshu111_Actions)
set udg_trigger523=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger523,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger523,Condition(function Trig_zhuanshu111________5_Conditions))
call TriggerAddAction(udg_trigger523,function Trig_zhuanshu111________5_Actions)
set udg_trigger524=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger524,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger524,Condition(function Trig_zhuanshu111________4_Conditions))
call TriggerAddAction(udg_trigger524,function Trig_zhuanshu111________4_Actions)
set udg_trigger525=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger525,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger525,Condition(function Trig_zhuanshu111________3_Conditions))
call TriggerAddAction(udg_trigger525,function Trig_zhuanshu111________3_Actions)
set udg_trigger526=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger526,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger526,Condition(function Trig_zhuanshu111________2_Conditions))
call TriggerAddAction(udg_trigger526,function Trig_zhuanshu111________2_Actions)
set udg_trigger527=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger527,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger527,Condition(function Trig_zhuanshu111_______u_Conditions))
call TriggerAddAction(udg_trigger527,function Trig_zhuanshu111_______u_Actions)
set udg_trigger528=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger528,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger528,Condition(function Trig_zhuanshu111______________u_Conditions))
call TriggerAddAction(udg_trigger528,function Trig_zhuanshu111______________u_Actions)
set udg_trigger529=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger529,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger529,Condition(function Trig_zhuanshu111______________________2_Conditions))
call TriggerAddAction(udg_trigger529,function Trig_zhuanshu111______________________2_Actions)
set udg_trigger530=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger530,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger530,Condition(function Trig_zhuanshu111_____________________________2_Conditions))
call TriggerAddAction(udg_trigger530,function Trig_zhuanshu111_____________________________2_Actions)
set udg_trigger531=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger531,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger531,Condition(function Trig_zhuanshu111_____________________________3_Conditions))
call TriggerAddAction(udg_trigger531,function Trig_zhuanshu111_____________________________3_Actions)
set udg_trigger532=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger532,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger532,Condition(function Trig_zhuanshu111_____________________________3_______u_Conditions))
call TriggerAddAction(udg_trigger532,function Trig_zhuanshu111_____________________________3_______u_Actions)
set udg_trigger533=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger533,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger533,Condition(function Trig_zhuanshu111_____________________________3______________u_Conditions))
call TriggerAddAction(udg_trigger533,function Trig_zhuanshu111_____________________________3______________u_Actions)
set udg_trigger534=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger534,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger534,Condition(function Trig_zhuanshu111_____________________________3_____________________u_Conditions))
call TriggerAddAction(udg_trigger534,function Trig_zhuanshu111_____________________________3_____________________u_Actions)
set udg_trigger535=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger535,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger535,Condition(function Trig_zhuanshu111_____________________________3____________________________u_Conditions))
call TriggerAddAction(udg_trigger535,function Trig_zhuanshu111_____________________________3____________________________u_Actions)
set udg_trigger536=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger536,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger536,Condition(function Trig_xznf_Conditions))
call TriggerAddAction(udg_trigger536,function Trig_xznf_Actions)
set udg_trigger537=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger537,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger537,Condition(function Trig_zhuanshu1_Conditions))
call TriggerAddAction(udg_trigger537,function Trig_zhuanshu1_Actions)
set udg_trigger538=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger538,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger538,Condition(function Trig_zhuanshu7_Conditions))
call TriggerAddAction(udg_trigger538,function Trig_zhuanshu7_Actions)
set udg_trigger539=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger539,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger539,Condition(function Trig_zhuanshu2_Conditions))
call TriggerAddAction(udg_trigger539,function Trig_zhuanshu2_Actions)
set udg_trigger540=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger540,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger540,Condition(function Trig_zhuanshu3_Conditions))
call TriggerAddAction(udg_trigger540,function Trig_zhuanshu3_Actions)
set udg_trigger541=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger541,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger541,Condition(function Trig_zhuanshu4_Conditions))
call TriggerAddAction(udg_trigger541,function Trig_zhuanshu4_Actions)
set udg_trigger542=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger542,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger542,Condition(function Trig_zhuanshu5_Conditions))
call TriggerAddAction(udg_trigger542,function Trig_zhuanshu5_Actions)
set udg_trigger543=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger543,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger543,Condition(function Trig_zhuanshu6_Conditions))
call TriggerAddAction(udg_trigger543,function Trig_zhuanshu6_Actions)
set udg_trigger544=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger544,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger544,Condition(function Trig_zhuanshu8_Conditions))
call TriggerAddAction(udg_trigger544,function Trig_zhuanshu8_Actions)
set udg_trigger545=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger545,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger545,Condition(function Trig_zhuanshu9_Conditions))
call TriggerAddAction(udg_trigger545,function Trig_zhuanshu9_Actions)
set udg_trigger546=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger546,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger546,Condition(function Trig_zhuanshu10_Conditions))
call TriggerAddAction(udg_trigger546,function Trig_zhuanshu10_Actions)
set udg_trigger547=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger547,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger547,Condition(function Trig_zhuanshu11_Conditions))
call TriggerAddAction(udg_trigger547,function Trig_zhuanshu11_Actions)
set udg_trigger548=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger548,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger548,Condition(function Trig_zhuanshu12_Conditions))
call TriggerAddAction(udg_trigger548,function Trig_zhuanshu12_Actions)
set udg_trigger549=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger549,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger549,Condition(function Trig_zhuanshu13_Conditions))
call TriggerAddAction(udg_trigger549,function Trig_zhuanshu13_Actions)
set udg_trigger550=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger550,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger550,Condition(function Trig_zhuanshu14_Conditions))
call TriggerAddAction(udg_trigger550,function Trig_zhuanshu14_Actions)
set udg_trigger551=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger551,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger551,Condition(function Trig_zhuanshu15_Conditions))
call TriggerAddAction(udg_trigger551,function Trig_zhuanshu15_Actions)
set udg_trigger552=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger552,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger552,Condition(function Trig_zhuanshu16_Conditions))
call TriggerAddAction(udg_trigger552,function Trig_zhuanshu16_Actions)
set udg_trigger553=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger553,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger553,Condition(function Trig_zhuanshu17_Conditions))
call TriggerAddAction(udg_trigger553,function Trig_zhuanshu17_Actions)
set udg_trigger554=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger554,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger554,Condition(function Trig_zhuanshu18_Conditions))
call TriggerAddAction(udg_trigger554,function Trig_zhuanshu18_Actions)
set udg_trigger555=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger555,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger555,Condition(function Trig_zhuanshu19_Conditions))
call TriggerAddAction(udg_trigger555,function Trig_zhuanshu19_Actions)
set udg_trigger556=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger556,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger556,Condition(function Trig_zhuanshu20_Conditions))
call TriggerAddAction(udg_trigger556,function Trig_zhuanshu20_Actions)
set udg_trigger557=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger557,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger557,Condition(function Trig_zhuanshu21_Conditions))
call TriggerAddAction(udg_trigger557,function Trig_zhuanshu21_Actions)
set udg_trigger558=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger558,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger558,Condition(function Trig_zhuanshu22_Conditions))
call TriggerAddAction(udg_trigger558,function Trig_zhuanshu22_Actions)
set udg_trigger559=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger559,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger559,Condition(function Trig_syddd_Conditions))
call TriggerAddAction(udg_trigger559,function Trig_syddd_Actions)
set udg_trigger560=CreateTrigger()
call DisableTrigger(udg_trigger560)
call TriggerRegisterAnyUnitEventBJ(udg_trigger560,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger560,Condition(function Trig_syddd1_Conditions))
call TriggerAddAction(udg_trigger560,function Trig_syddd1_Actions)
set udg_trigger561=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger561,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger561,Condition(function Trig_gjjj_Conditions))
call TriggerAddAction(udg_trigger561,function Trig_gjjj_Actions)
set udg_trigger562=CreateTrigger()
call DisableTrigger(udg_trigger562)
call TriggerRegisterAnyUnitEventBJ(udg_trigger562,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger562,Condition(function Trig_gjjj1_Conditions))
call TriggerAddAction(udg_trigger562,function Trig_gjjj1_Actions)
set udg_trigger563=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger563,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger563,Condition(function Trig_sssssss1_Conditions))
call TriggerAddAction(udg_trigger563,function Trig_sssssss1_Actions)
set udg_trigger564=CreateTrigger()
call DisableTrigger(udg_trigger564)
call TriggerRegisterAnyUnitEventBJ(udg_trigger564,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger564,Condition(function Trig_sssssss2_Conditions))
call TriggerAddAction(udg_trigger564,function Trig_sssssss2_Actions)
set udg_trigger565=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger565,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger565,Condition(function Trig_sssssss1_______u_Conditions))
call TriggerAddAction(udg_trigger565,function Trig_sssssss1_______u_Actions)
set udg_trigger566=CreateTrigger()
call DisableTrigger(udg_trigger566)
call TriggerRegisterAnyUnitEventBJ(udg_trigger566,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger566,Condition(function Trig_sssssss5_Conditions))
call TriggerAddAction(udg_trigger566,function Trig_sssssss5_Actions)
set udg_trigger567=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger567,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger567,Condition(function Trig_sssssss1______________u_Conditions))
call TriggerAddAction(udg_trigger567,function Trig_sssssss1______________u_Actions)
set udg_trigger568=CreateTrigger()
call DisableTrigger(udg_trigger568)
call TriggerRegisterAnyUnitEventBJ(udg_trigger568,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger568,Condition(function Trig_sssssss5_______u_Conditions))
call TriggerAddAction(udg_trigger568,function Trig_sssssss5_______u_Actions)
set udg_trigger569=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger569,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger569,Condition(function Trig_sssssss1_____________________u_Conditions))
call TriggerAddAction(udg_trigger569,function Trig_sssssss1_____________________u_Actions)
set udg_trigger570=CreateTrigger()
call DisableTrigger(udg_trigger570)
call TriggerRegisterAnyUnitEventBJ(udg_trigger570,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger570,Condition(function Trig_sssssss5______________u_Conditions))
call TriggerAddAction(udg_trigger570,function Trig_sssssss5______________u_Actions)
set udg_trigger571=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger571,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger571,Condition(function Trig_wal111_Conditions))
call TriggerAddAction(udg_trigger571,function Trig_wal111_Actions)
set udg_trigger572=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger572,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger572,Condition(function Trig_wal111________5_Conditions))
call TriggerAddAction(udg_trigger572,function Trig_wal111________5_Actions)
set udg_trigger573=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger573,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger573,Condition(function Trig_wal111________4_Conditions))
call TriggerAddAction(udg_trigger573,function Trig_wal111________4_Actions)
set udg_trigger574=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger574,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger574,Condition(function Trig_wal111________3_Conditions))
call TriggerAddAction(udg_trigger574,function Trig_wal111________3_Actions)
set udg_trigger575=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger575,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger575,Condition(function Trig_wal111________2_Conditions))
call TriggerAddAction(udg_trigger575,function Trig_wal111________2_Actions)
set udg_trigger576=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger576,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger576,Condition(function Trig_wal111________2_______u_Conditions))
call TriggerAddAction(udg_trigger576,function Trig_wal111________2_______u_Actions)
set udg_trigger577=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger577,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger577,Condition(function Trig_wal111_______u_Conditions))
call TriggerAddAction(udg_trigger577,function Trig_wal111_______u_Actions)
set udg_trigger578=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger578,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger578,Condition(function Trig_YIDDDDD_Conditions))
call TriggerAddAction(udg_trigger578,function Trig_YIDDDDD_Actions)
set udg_trigger579=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger579,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger579,Condition(function Trig_kkkkx_Conditions))
call TriggerAddAction(udg_trigger579,function Trig_kkkkx_Actions)
set udg_trigger580=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger580,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger580,Condition(function Trig_kkkkx_______u_Conditions))
call TriggerAddAction(udg_trigger580,function Trig_kkkkx_______u_Actions)
set udg_trigger581=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger581,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger581,Condition(function Trig_zzzzzzzz_Conditions))
call TriggerAddAction(udg_trigger581,function Trig_zzzzzzzz_Actions)
set udg_trigger582=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger582,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger582,Condition(function Trig_uuuuuuu_Conditions))
call TriggerAddAction(udg_trigger582,function Trig_uuuuuuu_Actions)
set udg_trigger583=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger583,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger583,Condition(function Trig_uuuuuuu_______u_Conditions))
call TriggerAddAction(udg_trigger583,function Trig_uuuuuuu_______u_Actions)
set udg_trigger584=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger584,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger584,Condition(function Trig_uuuuuuu______________u_Conditions))
call TriggerAddAction(udg_trigger584,function Trig_uuuuuuu______________u_Actions)
set udg_trigger585=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger585,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger585,Condition(function Trig_uuuuuuu______________________2_Conditions))
call TriggerAddAction(udg_trigger585,function Trig_uuuuuuu______________________2_Actions)
set udg_trigger586=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger586,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger586,Condition(function Trig_uuuuuuu_____________________u_Conditions))
call TriggerAddAction(udg_trigger586,function Trig_uuuuuuu_____________________u_Actions)
set udg_trigger587=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger587,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger587,Condition(function Trig_uuuuuuu_____________________________2_Conditions))
call TriggerAddAction(udg_trigger587,function Trig_uuuuuuu_____________________________2_Actions)
set udg_trigger588=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger588,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger588,Condition(function Trig_uuuuuuu____________________________u_Conditions))
call TriggerAddAction(udg_trigger588,function Trig_uuuuuuu____________________________u_Actions)
set udg_trigger589=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger589,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger589,Condition(function Trig_uuuuuuu____________________________________2_Conditions))
call TriggerAddAction(udg_trigger589,function Trig_uuuuuuu____________________________________2_Actions)
set udg_trigger590=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger590,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger590,Condition(function Trig_uuuuuuu___________________________________u_Conditions))
call TriggerAddAction(udg_trigger590,function Trig_uuuuuuu___________________________________u_Actions)
set udg_trigger591=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger591,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger591,Condition(function Trig_uuuuuuu___________________________________________2_Conditions))
call TriggerAddAction(udg_trigger591,function Trig_uuuuuuu___________________________________________2_Actions)
set udg_trigger592=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger592,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger592,Condition(function Trig_uuuuuuu___________________________________________2_______u_Conditions))
call TriggerAddAction(udg_trigger592,function Trig_uuuuuuu___________________________________________2_______u_Actions)
set udg_trigger593=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger593,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger593,Condition(function Trig_uuuuuuu___________________________________________2______________u_Conditions))
call TriggerAddAction(udg_trigger593,function Trig_uuuuuuu___________________________________________2______________u_Actions)
set udg_trigger594=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger594,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger594,Condition(function Trig_uuuuuuu__________________________________________u_Conditions))
call TriggerAddAction(udg_trigger594,function Trig_uuuuuuu__________________________________________u_Actions)
set udg_trigger595=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger595,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger595,Condition(function Trig_uuuuuuu_________________________________________________u_Conditions))
call TriggerAddAction(udg_trigger595,function Trig_uuuuuuu_________________________________________________u_Actions)
set udg_trigger596=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger596,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger596,Condition(function Trig_uuuuuuu__________________________________________________2_Conditions))
call TriggerAddAction(udg_trigger596,function Trig_uuuuuuu__________________________________________________2_Actions)
set udg_trigger597=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger597,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger597,Condition(function Trig_uuuuuuu__________________________________________________2_______u_Conditions))
call TriggerAddAction(udg_trigger597,function Trig_uuuuuuu__________________________________________________2_______u_Actions)
set udg_trigger598=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger598,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger598,Condition(function Trig_uuuuuuu__________________________________________________2______________u_Conditions))
call TriggerAddAction(udg_trigger598,function Trig_uuuuuuu__________________________________________________2______________u_Actions)
set udg_trigger599=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger599,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger599,Condition(function Trig_uuuuuuu__________________________________________________2_____________________u_Conditions))
call TriggerAddAction(udg_trigger599,function Trig_uuuuuuu__________________________________________________2_____________________u_Actions)
set udg_trigger600=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger600,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger600,Condition(function Trig_uuuuuuu__________________________________________________2______________________2_Conditions))
call TriggerAddAction(udg_trigger600,function Trig_uuuuuuu__________________________________________________2______________________2_Actions)
set udg_trigger601=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger601,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger601,Condition(function Trig_uuuuuuu__________________________________________________2______________________2_______u_Conditions))
call TriggerAddAction(udg_trigger601,function Trig_uuuuuuu__________________________________________________2______________________2_______u_Actions)
set udg_trigger602=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger602,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger602,Condition(function Trig_uuuuuuu__________________________________________________2______________________2_________u_Conditions))
call TriggerAddAction(udg_trigger602,function Trig_uuuuuuu__________________________________________________2______________________2_________u_Actions)
set udg_trigger603=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger603,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger603,Condition(function Trig____________________001_Conditions))
call TriggerAddAction(udg_trigger603,function Trig____________________001_Actions)
set udg_trigger604=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger604,Player(0),"A",true)
call TriggerRegisterPlayerChatEvent(udg_trigger604,Player(1),"A",true)
call TriggerRegisterPlayerChatEvent(udg_trigger604,Player(2),"A",true)
call TriggerRegisterPlayerChatEvent(udg_trigger604,Player(3),"A",true)
call TriggerRegisterPlayerChatEvent(udg_trigger604,Player(4),"A",true)
call TriggerRegisterPlayerChatEvent(udg_trigger604,Player(5),"A",true)
call TriggerAddCondition(udg_trigger604,Condition(function Trig_WD11_Conditions))
call TriggerAddAction(udg_trigger604,function Trig_WD11_Actions)
set udg_trigger605=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger605,Player(0),"B",true)
call TriggerRegisterPlayerChatEvent(udg_trigger605,Player(1),"B",true)
call TriggerRegisterPlayerChatEvent(udg_trigger605,Player(2),"B",true)
call TriggerRegisterPlayerChatEvent(udg_trigger605,Player(3),"B",true)
call TriggerRegisterPlayerChatEvent(udg_trigger605,Player(4),"B",true)
call TriggerRegisterPlayerChatEvent(udg_trigger605,Player(5),"B",true)
call TriggerAddCondition(udg_trigger605,Condition(function Trig_WD22_Conditions))
call TriggerAddAction(udg_trigger605,function Trig_WD22_Actions)
set udg_trigger606=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger606,Player(0),"C",true)
call TriggerRegisterPlayerChatEvent(udg_trigger606,Player(1),"C",true)
call TriggerRegisterPlayerChatEvent(udg_trigger606,Player(2),"C",true)
call TriggerRegisterPlayerChatEvent(udg_trigger606,Player(3),"C",true)
call TriggerRegisterPlayerChatEvent(udg_trigger606,Player(4),"C",true)
call TriggerRegisterPlayerChatEvent(udg_trigger606,Player(5),"C",true)
call TriggerAddCondition(udg_trigger606,Condition(function Trig_WD33_Conditions))
call TriggerAddAction(udg_trigger606,function Trig_WD33_Actions)
set udg_trigger607=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger607,udg_rect66)
call TriggerRegisterEnterRectSimple(udg_trigger607,udg_rect67)
call TriggerRegisterEnterRectSimple(udg_trigger607,udg_rect79)
call TriggerRegisterEnterRectSimple(udg_trigger607,udg_rect78)
call TriggerAddCondition(udg_trigger607,Condition(function Trig_kongzhi_Conditions))
call TriggerAddAction(udg_trigger607,function Trig_kongzhi_Actions)
set udg_trigger608=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger608,Player(0),"hyrzjb.uuu9.com",true)
call TriggerRegisterPlayerChatEvent(udg_trigger608,Player(1),"hyrzjb.uuu9.com",true)
call TriggerRegisterPlayerChatEvent(udg_trigger608,Player(2),"hyrzjb.uuu9.com",true)
call TriggerRegisterPlayerChatEvent(udg_trigger608,Player(3),"hyrzjb.uuu9.com",true)
call TriggerRegisterPlayerChatEvent(udg_trigger608,Player(4),"hyrzjb.uuu9.com",true)
call TriggerRegisterPlayerChatEvent(udg_trigger608,Player(5),"hyrzjb.uuu9.com",true)
call TriggerAddAction(udg_trigger608,function Trig_yincangrenwu_Actions)
set udg_trigger609=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger609,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger609,Condition(function Trig_duqian1_Conditions))
call TriggerAddAction(udg_trigger609,function Trig_duqian1_Actions)
set udg_trigger610=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger610,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger610,Condition(function Trig_duqian2_Conditions))
call TriggerAddAction(udg_trigger610,function Trig_duqian2_Actions)
set udg_trigger611=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger611,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger611,Condition(function Trig_duqian3_Conditions))
call TriggerAddAction(udg_trigger611,function Trig_duqian3_Actions)
set udg_trigger612=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger612,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger612,Condition(function Trig_TXwupin_Conditions))
call TriggerAddAction(udg_trigger612,function Trig_TXwupin_Actions)
set udg_trigger613=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger613,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger613,Condition(function Trig_TXdengji1_Conditions))
call TriggerAddAction(udg_trigger613,function Trig_TXdengji1_Actions)
set udg_trigger614=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger614,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger614,Condition(function Trig_TXdengji2_Conditions))
call TriggerAddAction(udg_trigger614,function Trig_TXdengji2_Actions)
set udg_trigger615=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger615,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger615,Condition(function Trig_TXdengji3_Conditions))
call TriggerAddAction(udg_trigger615,function Trig_TXdengji3_Actions)
set udg_trigger616=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger616,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger616,Condition(function Trig_TXdengji4_Conditions))
call TriggerAddAction(udg_trigger616,function Trig_TXdengji4_Actions)
set udg_trigger617=CreateTrigger()
call DisableTrigger(udg_trigger617)
call TriggerRegisterAnyUnitEventBJ(udg_trigger617,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger617,Condition(function Trig_TZ4_______u_Conditions))
call TriggerAddAction(udg_trigger617,function Trig_TZ4_______u_Actions)
set udg_trigger618=CreateTrigger()
call DisableTrigger(udg_trigger618)
call TriggerRegisterAnyUnitEventBJ(udg_trigger618,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger618,Condition(function Trig_TZ5_______u_Conditions))
call TriggerAddAction(udg_trigger618,function Trig_TZ5_______u_Actions)
set udg_trigger619=CreateTrigger()
call DisableTrigger(udg_trigger619)
call TriggerRegisterLeaveRectSimple(udg_trigger619,udg_rect13)
call TriggerAddCondition(udg_trigger619,Condition(function Trig_TZ6_______u_Conditions))
call TriggerAddAction(udg_trigger619,function Trig_TZ6_______u_Actions)
call ConditionalTriggerExecute(udg_trigger03)
call ConditionalTriggerExecute(udg_trigger52)
endfunction
function InitTrig_init takes nothing returns nothing
call ExecuteFunc("main2")
endfunction