Name | Type | is_array | initial_value |
boolean01 | boolean | No | false |
boolean02 | boolean | No | false |
boolean03 | boolean | No | false |
boolean04 | boolean | No | false |
boolean05 | boolean | No | false |
boolean06 | boolean | No | false |
boolean07 | boolean | No | false |
boolean08 | boolean | No | false |
boolean09 | boolean | No | false |
booleans01 | boolean | Yes | false |
booleans02 | boolean | Yes | false |
booleans03 | boolean | Yes | false |
buttons01 | button | Yes | |
camerasetup01 | camerasetup | No | |
camerasetup02 | camerasetup | No | |
camerasetup03 | camerasetup | No | |
camerasetup04 | camerasetup | No | |
camerasetup05 | camerasetup | No | |
camerasetup06 | camerasetup | No | |
destructable01 | destructable | No | |
destructable02 | destructable | No | |
destructable03 | destructable | No | |
destructable04 | destructable | No | |
dialog01 | dialog | No | |
effect01 | effect | No | |
effects01 | effect | Yes | |
fogmodifier01 | fogmodifier | No | |
fogmodifier02 | fogmodifier | No | |
fogmodifier03 | fogmodifier | No | |
fogmodifier04 | fogmodifier | No | |
fogmodifiers01 | fogmodifier | Yes | |
fogmodifiers02 | fogmodifier | Yes | |
fogmodifiers03 | fogmodifier | Yes | |
fogmodifiers04 | fogmodifier | Yes | |
fogmodifiers05 | fogmodifier | Yes | |
force01 | force | No | |
force02 | force | No | |
force03 | force | No | |
force04 | force | No | |
force05 | force | No | |
force06 | force | No | |
force07 | force | No | |
group01 | group | No | |
group02 | group | No | |
group03 | group | No | |
group04 | group | No | |
group05 | group | No | |
integer01 | integer | No | 0 |
integer02 | integer | No | 0 |
integer03 | integer | No | 0 |
integer04 | integer | No | 0 |
integer05 | integer | No | 0 |
integer06 | integer | No | 0 |
integer07 | integer | No | 0 |
integer08 | integer | No | 0 |
integer09 | integer | No | 0 |
integer10 | integer | No | 0 |
integer11 | integer | No | 0 |
integer12 | integer | No | 0 |
integer13 | integer | No | 0 |
integer14 | integer | No | 0 |
integer15 | integer | No | 0 |
integer16 | integer | No | 0 |
integer17 | integer | No | 0 |
integer18 | integer | No | 0 |
integer19 | integer | No | 0 |
integers01 | integer | Yes | 0 |
integers02 | integer | Yes | 0 |
integers03 | integer | Yes | 0 |
item01 | item | No | |
item02 | item | No | |
item03 | item | No | |
item04 | item | No | |
item05 | item | No | |
item06 | item | No | |
item07 | item | No | |
item08 | item | No | |
item09 | item | No | |
item10 | item | No | |
item11 | item | No | |
item12 | item | No | |
item13 | item | No | |
item14 | item | No | |
item15 | item | No | |
item16 | item | No | |
item17 | item | No | |
item18 | item | No | |
item19 | item | No | |
item20 | item | No | |
items01 | item | Yes | |
leaderboard01 | leaderboard | No | |
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 | |
locations01 | location | Yes | |
player01 | player | No | |
real01 | real | No | 0 |
real02 | real | No | 0 |
reals01 | real | Yes | 0 |
reals02 | real | Yes | 0 |
rect01 | rect | No | |
rect02 | rect | No | |
rect03 | rect | No | |
rect04 | rect | No | |
rect05 | rect | No | |
rect06 | rect | No | |
rect07 | rect | No | |
rect08 | rect | No | |
rect09 | rect | No | |
rect10 | rect | No | |
rect100 | rect | No | |
rect101 | rect | No | |
rect102 | rect | No | |
rect103 | rect | No | |
rect104 | rect | No | |
rect105 | rect | No | |
rect106 | rect | No | |
rect107 | rect | No | |
rect108 | rect | No | |
rect109 | rect | No | |
rect11 | rect | No | |
rect110 | rect | No | |
rect111 | rect | No | |
rect112 | rect | No | |
rect113 | rect | No | |
rect114 | rect | No | |
rect115 | rect | No | |
rect116 | rect | No | |
rect117 | rect | No | |
rect118 | rect | No | |
rect119 | rect | No | |
rect12 | rect | No | |
rect120 | rect | No | |
rect121 | rect | No | |
rect122 | rect | No | |
rect123 | rect | No | |
rect124 | rect | No | |
rect125 | rect | No | |
rect126 | rect | No | |
rect127 | rect | No | |
rect128 | rect | No | |
rect129 | rect | No | |
rect13 | rect | No | |
rect130 | rect | No | |
rect131 | rect | No | |
rect132 | rect | No | |
rect133 | rect | No | |
rect134 | rect | No | |
rect135 | rect | No | |
rect136 | rect | No | |
rect137 | rect | No | |
rect138 | rect | No | |
rect139 | rect | No | |
rect14 | rect | No | |
rect140 | rect | No | |
rect141 | rect | No | |
rect142 | rect | No | |
rect143 | rect | No | |
rect144 | rect | No | |
rect145 | rect | No | |
rect146 | rect | No | |
rect147 | rect | No | |
rect148 | rect | No | |
rect149 | rect | No | |
rect15 | rect | No | |
rect150 | rect | No | |
rect151 | rect | No | |
rect152 | rect | No | |
rect153 | rect | No | |
rect154 | rect | No | |
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 | |
rect90 | rect | No | |
rect91 | rect | No | |
rect92 | rect | No | |
rect93 | rect | No | |
rect94 | rect | No | |
rect95 | rect | No | |
rect96 | rect | No | |
rect97 | rect | No | |
rect98 | rect | No | |
rect99 | rect | No | |
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 | |
string01 | string | No | Sound\\\\\\\\Music\\\\\\\\mp3Music\\\\\\\\DarkVictory.mp3 |
string02 | string | No | Sound\\\\\\\\Music\\\\\\\\mp3Music\\\\\\\\SadMystery.mp3 |
string03 | string | No | Sound\\\\\\\\Music\\\\\\\\mp3Music\\\\\\\\Tension.mp3 |
timer01 | timer | No | |
timer02 | timer | No | |
timer03 | timer | No | |
timer04 | timer | No | |
timer05 | timer | No | |
timer06 | timer | No | |
timer07 | timer | No | |
timer08 | timer | No | |
timer09 | timer | No | |
timer10 | timer | No | |
timer11 | timer | No | |
timer12 | timer | No | |
timer13 | timer | No | |
timer14 | timer | No | |
timer15 | timer | No | |
timer16 | timer | No | |
timer17 | timer | No | |
timerdialog01 | timerdialog | No | |
timerdialog02 | timerdialog | No | |
timerdialog03 | timerdialog | No | |
timerdialog04 | timerdialog | No | |
timerdialog05 | timerdialog | No | |
timerdialog06 | timerdialog | No | |
timerdialog07 | timerdialog | No | |
timerdialog08 | timerdialog | No | |
timerdialog09 | timerdialog | No | |
timerdialog10 | timerdialog | No | |
timerdialog11 | timerdialog | No | |
timerdialog12 | timerdialog | No | |
timerdialog13 | timerdialog | No | |
timerdialog14 | timerdialog | No | |
timers01 | timer | Yes | |
trigger01 | trigger | No | |
trigger02 | trigger | No | |
trigger03 | trigger | No | |
trigger04 | trigger | No | |
trigger05 | trigger | No | |
trigger06 | trigger | No | |
trigger07 | trigger | No | |
trigger08 | trigger | No | |
trigger09 | trigger | No | |
trigger10 | trigger | No | |
trigger100 | trigger | No | |
trigger101 | trigger | No | |
trigger102 | trigger | No | |
trigger103 | trigger | No | |
trigger104 | trigger | No | |
trigger105 | trigger | No | |
trigger106 | trigger | No | |
trigger107 | trigger | No | |
trigger108 | trigger | No | |
trigger109 | trigger | No | |
trigger11 | trigger | No | |
trigger110 | trigger | No | |
trigger111 | trigger | No | |
trigger112 | trigger | No | |
trigger113 | trigger | No | |
trigger114 | trigger | No | |
trigger115 | trigger | No | |
trigger116 | trigger | No | |
trigger117 | trigger | No | |
trigger118 | trigger | No | |
trigger119 | trigger | No | |
trigger12 | trigger | No | |
trigger120 | trigger | No | |
trigger121 | trigger | No | |
trigger122 | trigger | No | |
trigger123 | trigger | No | |
trigger124 | trigger | No | |
trigger125 | trigger | No | |
trigger126 | trigger | No | |
trigger127 | trigger | No | |
trigger128 | trigger | No | |
trigger129 | trigger | No | |
trigger13 | trigger | No | |
trigger130 | trigger | No | |
trigger131 | trigger | No | |
trigger132 | trigger | No | |
trigger133 | trigger | No | |
trigger134 | trigger | No | |
trigger135 | trigger | No | |
trigger136 | trigger | No | |
trigger137 | trigger | No | |
trigger138 | trigger | No | |
trigger139 | trigger | No | |
trigger14 | trigger | No | |
trigger140 | trigger | No | |
trigger141 | trigger | No | |
trigger142 | trigger | No | |
trigger143 | trigger | No | |
trigger144 | trigger | No | |
trigger145 | trigger | No | |
trigger146 | trigger | No | |
trigger147 | trigger | No | |
trigger148 | trigger | No | |
trigger149 | trigger | No | |
trigger15 | trigger | No | |
trigger150 | trigger | No | |
trigger151 | trigger | No | |
trigger152 | trigger | No | |
trigger153 | trigger | No | |
trigger154 | trigger | No | |
trigger155 | trigger | No | |
trigger156 | trigger | No | |
trigger157 | trigger | No | |
trigger158 | trigger | No | |
trigger159 | trigger | No | |
trigger16 | trigger | No | |
trigger160 | trigger | No | |
trigger161 | trigger | No | |
trigger162 | trigger | No | |
trigger163 | trigger | No | |
trigger164 | trigger | No | |
trigger165 | trigger | No | |
trigger166 | trigger | No | |
trigger167 | trigger | No | |
trigger168 | trigger | No | |
trigger169 | trigger | No | |
trigger17 | trigger | No | |
trigger170 | trigger | No | |
trigger171 | trigger | No | |
trigger172 | trigger | No | |
trigger173 | trigger | No | |
trigger174 | trigger | No | |
trigger175 | trigger | No | |
trigger176 | trigger | No | |
trigger177 | trigger | No | |
trigger178 | trigger | No | |
trigger179 | trigger | No | |
trigger18 | trigger | No | |
trigger180 | trigger | No | |
trigger181 | trigger | No | |
trigger182 | trigger | No | |
trigger183 | trigger | No | |
trigger184 | trigger | No | |
trigger185 | trigger | No | |
trigger186 | trigger | No | |
trigger187 | trigger | No | |
trigger188 | trigger | No | |
trigger189 | trigger | No | |
trigger19 | trigger | No | |
trigger190 | trigger | No | |
trigger191 | trigger | No | |
trigger192 | trigger | No | |
trigger193 | trigger | No | |
trigger194 | trigger | No | |
trigger195 | trigger | No | |
trigger196 | trigger | No | |
trigger197 | trigger | No | |
trigger198 | trigger | No | |
trigger199 | trigger | No | |
trigger20 | trigger | No | |
trigger200 | trigger | No | |
trigger201 | trigger | No | |
trigger202 | trigger | No | |
trigger203 | trigger | No | |
trigger204 | trigger | No | |
trigger205 | trigger | No | |
trigger206 | trigger | No | |
trigger207 | trigger | No | |
trigger208 | trigger | No | |
trigger209 | trigger | No | |
trigger21 | trigger | No | |
trigger210 | trigger | No | |
trigger211 | trigger | No | |
trigger212 | trigger | No | |
trigger213 | trigger | No | |
trigger214 | trigger | No | |
trigger215 | trigger | No | |
trigger216 | trigger | No | |
trigger217 | trigger | No | |
trigger218 | trigger | No | |
trigger219 | trigger | No | |
trigger22 | trigger | No | |
trigger220 | trigger | No | |
trigger221 | trigger | No | |
trigger222 | trigger | No | |
trigger223 | trigger | No | |
trigger224 | trigger | No | |
trigger225 | trigger | No | |
trigger226 | trigger | No | |
trigger227 | trigger | No | |
trigger228 | trigger | No | |
trigger229 | trigger | No | |
trigger23 | trigger | No | |
trigger230 | trigger | No | |
trigger231 | trigger | No | |
trigger232 | trigger | No | |
trigger233 | trigger | No | |
trigger234 | trigger | No | |
trigger235 | trigger | No | |
trigger236 | trigger | No | |
trigger237 | trigger | No | |
trigger238 | trigger | No | |
trigger239 | trigger | No | |
trigger24 | trigger | No | |
trigger240 | trigger | No | |
trigger241 | trigger | No | |
trigger242 | trigger | No | |
trigger243 | trigger | No | |
trigger244 | trigger | No | |
trigger245 | trigger | No | |
trigger246 | trigger | No | |
trigger247 | trigger | No | |
trigger248 | trigger | No | |
trigger249 | trigger | No | |
trigger25 | trigger | No | |
trigger250 | trigger | No | |
trigger251 | trigger | No | |
trigger252 | trigger | No | |
trigger253 | trigger | No | |
trigger254 | trigger | No | |
trigger255 | trigger | No | |
trigger256 | trigger | No | |
trigger257 | trigger | No | |
trigger258 | trigger | No | |
trigger259 | trigger | No | |
trigger26 | trigger | No | |
trigger260 | trigger | No | |
trigger261 | trigger | No | |
trigger262 | trigger | No | |
trigger263 | trigger | No | |
trigger264 | trigger | No | |
trigger265 | trigger | No | |
trigger266 | trigger | No | |
trigger267 | trigger | No | |
trigger268 | trigger | No | |
trigger269 | trigger | No | |
trigger27 | trigger | No | |
trigger270 | trigger | No | |
trigger271 | trigger | No | |
trigger272 | trigger | No | |
trigger273 | trigger | No | |
trigger274 | trigger | No | |
trigger275 | trigger | No | |
trigger276 | trigger | No | |
trigger277 | trigger | No | |
trigger278 | trigger | No | |
trigger279 | trigger | No | |
trigger28 | trigger | No | |
trigger280 | trigger | No | |
trigger281 | trigger | No | |
trigger282 | trigger | No | |
trigger283 | trigger | No | |
trigger284 | trigger | No | |
trigger285 | trigger | No | |
trigger286 | trigger | No | |
trigger287 | trigger | No | |
trigger288 | trigger | No | |
trigger289 | trigger | No | |
trigger29 | trigger | No | |
trigger290 | trigger | No | |
trigger291 | trigger | No | |
trigger292 | trigger | No | |
trigger293 | trigger | No | |
trigger294 | trigger | No | |
trigger295 | trigger | No | |
trigger296 | trigger | No | |
trigger297 | trigger | No | |
trigger298 | trigger | No | |
trigger299 | trigger | No | |
trigger30 | trigger | No | |
trigger300 | trigger | No | |
trigger301 | trigger | No | |
trigger302 | trigger | No | |
trigger303 | trigger | No | |
trigger304 | trigger | No | |
trigger305 | trigger | No | |
trigger306 | trigger | No | |
trigger307 | trigger | No | |
trigger308 | trigger | No | |
trigger309 | trigger | No | |
trigger31 | trigger | No | |
trigger310 | trigger | No | |
trigger311 | trigger | No | |
trigger312 | trigger | No | |
trigger313 | trigger | No | |
trigger314 | trigger | No | |
trigger315 | trigger | No | |
trigger316 | trigger | No | |
trigger317 | trigger | No | |
trigger318 | trigger | No | |
trigger319 | trigger | No | |
trigger32 | trigger | No | |
trigger320 | trigger | No | |
trigger321 | trigger | No | |
trigger322 | trigger | No | |
trigger323 | trigger | No | |
trigger324 | trigger | No | |
trigger325 | trigger | No | |
trigger326 | trigger | No | |
trigger327 | trigger | No | |
trigger328 | trigger | No | |
trigger329 | trigger | No | |
trigger33 | trigger | No | |
trigger330 | trigger | No | |
trigger331 | trigger | No | |
trigger332 | trigger | No | |
trigger333 | trigger | No | |
trigger334 | trigger | No | |
trigger335 | trigger | No | |
trigger336 | trigger | No | |
trigger337 | trigger | No | |
trigger338 | trigger | No | |
trigger339 | trigger | No | |
trigger34 | trigger | No | |
trigger340 | trigger | No | |
trigger341 | trigger | No | |
trigger342 | trigger | No | |
trigger343 | trigger | No | |
trigger344 | trigger | No | |
trigger345 | trigger | No | |
trigger346 | trigger | No | |
trigger347 | trigger | No | |
trigger348 | trigger | No | |
trigger349 | trigger | No | |
trigger35 | trigger | No | |
trigger350 | trigger | No | |
trigger351 | trigger | No | |
trigger352 | trigger | No | |
trigger353 | trigger | No | |
trigger354 | trigger | No | |
trigger355 | trigger | No | |
trigger356 | trigger | No | |
trigger357 | trigger | No | |
trigger358 | trigger | No | |
trigger359 | trigger | No | |
trigger36 | trigger | No | |
trigger360 | trigger | No | |
trigger361 | trigger | No | |
trigger362 | trigger | No | |
trigger363 | trigger | No | |
trigger364 | trigger | No | |
trigger365 | trigger | No | |
trigger366 | trigger | No | |
trigger367 | trigger | No | |
trigger368 | trigger | No | |
trigger369 | trigger | No | |
trigger37 | trigger | No | |
trigger370 | trigger | No | |
trigger371 | trigger | No | |
trigger372 | trigger | No | |
trigger373 | trigger | No | |
trigger374 | trigger | No | |
trigger375 | trigger | No | |
trigger376 | trigger | No | |
trigger377 | trigger | No | |
trigger378 | trigger | No | |
trigger379 | trigger | No | |
trigger38 | trigger | No | |
trigger380 | trigger | No | |
trigger381 | trigger | No | |
trigger382 | trigger | No | |
trigger383 | trigger | No | |
trigger384 | trigger | No | |
trigger385 | trigger | No | |
trigger386 | trigger | No | |
trigger387 | trigger | No | |
trigger388 | trigger | No | |
trigger389 | trigger | No | |
trigger39 | trigger | No | |
trigger390 | trigger | No | |
trigger391 | trigger | No | |
trigger392 | trigger | No | |
trigger393 | trigger | No | |
trigger394 | trigger | No | |
trigger395 | trigger | No | |
trigger396 | trigger | No | |
trigger397 | trigger | No | |
trigger398 | trigger | No | |
trigger399 | trigger | No | |
trigger40 | trigger | No | |
trigger400 | trigger | No | |
trigger401 | trigger | No | |
trigger402 | trigger | No | |
trigger403 | trigger | No | |
trigger404 | trigger | No | |
trigger405 | trigger | No | |
trigger406 | trigger | No | |
trigger407 | trigger | No | |
trigger408 | trigger | No | |
trigger409 | trigger | No | |
trigger41 | trigger | No | |
trigger410 | trigger | No | |
trigger411 | trigger | No | |
trigger412 | trigger | No | |
trigger413 | trigger | No | |
trigger414 | trigger | No | |
trigger415 | trigger | No | |
trigger416 | trigger | No | |
trigger417 | trigger | No | |
trigger418 | trigger | No | |
trigger419 | trigger | No | |
trigger42 | trigger | No | |
trigger420 | trigger | No | |
trigger421 | trigger | No | |
trigger422 | trigger | No | |
trigger423 | trigger | No | |
trigger424 | trigger | No | |
trigger425 | trigger | No | |
trigger426 | trigger | No | |
trigger427 | trigger | No | |
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 | |
trigger620 | trigger | No | |
trigger621 | trigger | No | |
trigger622 | trigger | No | |
trigger623 | trigger | No | |
trigger63 | trigger | No | |
trigger64 | trigger | No | |
trigger65 | trigger | No | |
trigger66 | trigger | No | |
trigger67 | trigger | No | |
trigger68 | trigger | No | |
trigger69 | trigger | No | |
trigger70 | trigger | No | |
trigger71 | trigger | No | |
trigger72 | trigger | No | |
trigger73 | trigger | No | |
trigger74 | trigger | No | |
trigger75 | trigger | No | |
trigger76 | trigger | No | |
trigger77 | trigger | No | |
trigger78 | trigger | No | |
trigger79 | trigger | No | |
trigger80 | trigger | No | |
trigger81 | trigger | No | |
trigger82 | trigger | No | |
trigger83 | trigger | No | |
trigger84 | trigger | No | |
trigger85 | trigger | No | |
trigger86 | trigger | No | |
trigger87 | trigger | No | |
trigger88 | trigger | No | |
trigger89 | trigger | No | |
trigger90 | trigger | No | |
trigger91 | trigger | No | |
trigger92 | trigger | No | |
trigger93 | trigger | No | |
trigger94 | trigger | No | |
trigger95 | trigger | No | |
trigger96 | trigger | No | |
trigger97 | trigger | No | |
trigger98 | trigger | No | |
trigger99 | trigger | No | |
unit01 | unit | No | |
unit02 | unit | No | |
unit03 | unit | No | |
unit04 | unit | No | |
unit05 | unit | No | |
unit06 | unit | No | |
unit07 | unit | No | |
unit08 | unit | No | |
unit09 | unit | No | |
unit10 | unit | No | |
unit100 | unit | No | |
unit101 | unit | No | |
unit102 | unit | No | |
unit103 | unit | No | |
unit104 | unit | No | |
unit105 | unit | No | |
unit106 | unit | No | |
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 | |
unit92 | unit | No | |
unit93 | unit | No | |
unit94 | unit | No | |
unit95 | unit | No | |
unit96 | unit | No | |
unit97 | unit | No | |
unit98 | unit | No | |
unit99 | unit | No | |
units01 | unit | Yes | |
units02 | unit | Yes | |
units03 | unit | Yes | |
units04 | unit | Yes | |
units05 | unit | Yes | |
units06 | unit | Yes | |
units07 | unit | Yes | |
weathereffects01 | weathereffect | Yes |
// Trigger: init
//===========================================================================
// Trigger: init
//===========================================================================
// 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 Trig_Melee_Initialization_Actions takes nothing returns nothing
call UnitAddItemByIdSwapped('I01O',udg_unit76)
call UnitAddItemByIdSwapped('I011',udg_unit35)
call UnitAddItem(udg_unit28,udg_item15)
call FogMaskEnableOn()
call SetSkyModel("Environment\\Sky\\FelwoodSky\\FelwoodSky.mdl")
call SetTimeOfDay(12.00)
call UseTimeOfDayBJ(false)
call ShowUnitHide(udg_unit29)
call SetUserControlForceOff(bj_FORCE_ALL_PLAYERS)
call CinematicFadeBJ(1,0.00,"ReplaceableTextures\\CameraMasks\\White_mask.blp",0,0,0,0)
call TriggerSleepAction(1.00)
call CinematicFadeBJ(0,3.00,"ReplaceableTextures\\CameraMasks\\White_mask.blp",0,0,0,0)
call TriggerExecute(udg_trigger02)
call TriggerExecute(udg_trigger03)
call TriggerExecute(udg_trigger608)
call SetUnitFlyHeight(udg_unit33,0.00,225.00)
call TriggerSleepAction(0.20)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect118),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound30,100,GetRectCenter(udg_rect118),0)
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.50,"TRIGSTR_3611")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.50,"TRIGSTR_3612")
call TriggerSleepAction(3.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect118),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationRippleBJ(3.00,true,GetRectCenter(udg_rect118),500.00,500.00,64,0.20,256.00)
call TriggerExecute(udg_trigger04)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.00,"TRIGSTR_6609")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],7.00,"TRIGSTR_3376")
call DisplayTextToForce(bj_FORCE_PLAYER[4],"TRIGSTR_3377")
call DisplayTextToForce(bj_FORCE_PLAYER[7],"TRIGSTR_3378")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],7.00,"TRIGSTR_6582")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],7.00,"TRIGSTR_3379")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],7.00,"TRIGSTR_3380")
call TriggerSleepAction(3.00)
call ShowUnitShow(udg_unit29)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit29),"Abilities\\Spells\\Items\\AIil\\AIilTarget.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit33,Player(15),true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],3.00,"TRIGSTR_3381")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],3.00,"TRIGSTR_3382")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],5.00,"TRIGSTR_3383")
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Player_Init_Func001002001001 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Player_Init_Func025A takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(4),0)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(7),0)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(8),0)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(9),0)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(10),0)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(11),0)
call SetPlayerAllianceStateBJ(Player(15),GetEnumPlayer(),2)
call CreateFogModifierRadiusLocBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect113),500.00)
call CreateFogModifierRadiusLocBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetUnitLoc(udg_unit69),250.00)
call CreateFogModifierRadiusLocBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetUnitLoc(udg_unit72),250.00)
endfunction
function Trig_Player_Init_Func032A takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(4),3)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(7),3)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(8),3)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(9),3)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(10),3)
call SetPlayerAllianceStateBJ(GetEnumPlayer(),Player(11),3)
call CreateFogModifierRadiusLocBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect113),500.00)
call CreateFogModifierRadiusLocBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetDestructableLoc(udg_destructable03),300.00)
call CreateFogModifierRadiusLocBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetUnitLoc(udg_unit69),250.00)
call CreateFogModifierRadiusLocBJ(true,GetEnumPlayer(),FOG_OF_WAR_VISIBLE,GetUnitLoc(udg_unit72),250.00)
endfunction
function Trig_Player_Init_Actions takes nothing returns nothing
set udg_integer12=CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Player_Init_Func001002001001)))
set udg_integer12=(udg_integer12+4)
call SetPlayerName(Player(0),"TRIGSTR_6890")
call SetPlayerName(Player(1),"TRIGSTR_6891")
call SetPlayerName(Player(2),"TRIGSTR_6892")
call SetPlayerName(Player(3),"TRIGSTR_6893")
call SetPlayerName(Player(4),"TRIGSTR_6894")
call SetPlayerName(Player(5),"TRIGSTR_6895")
call SetPlayerName(Player(6),"TRIGSTR_6896")
call SetPlayerName(Player(7),"TRIGSTR_6897")
call SetPlayerName(Player(8),"TRIGSTR_6898")
call SetPlayerName(Player(9),"TRIGSTR_6899")
call SetPlayerName(Player(10),"TRIGSTR_6900")
call SetPlayerName(Player(11),"TRIGSTR_6901")
call SetPlayerAllianceStateBJ(Player(14),Player(12),5)
call SetPlayerAllianceStateBJ(Player(12),Player(14),5)
call SetPlayerStateBJ(Player(11),PLAYER_STATE_RESOURCE_GOLD,500)
call CreateFogModifierRectBJ(false,Player(1),FOG_OF_WAR_VISIBLE,udg_rect139)
call ForceAddPlayer(udg_force01,Player(0))
call ForceAddPlayer(udg_force01,Player(1))
call ForceAddPlayer(udg_force01,Player(2))
call ForceAddPlayer(udg_force01,Player(3))
call ForceAddPlayer(udg_force01,Player(5))
call ForceAddPlayer(udg_force01,Player(6))
call ForForce(udg_force01,function Trig_Player_Init_Func025A)
call ForceAddPlayer(udg_force05,Player(4))
call ForceAddPlayer(udg_force05,Player(7))
call ForceAddPlayer(udg_force05,Player(8))
call ForceAddPlayer(udg_force05,Player(9))
call ForceAddPlayer(udg_force05,Player(10))
call ForceAddPlayer(udg_force05,Player(11))
call ForForce(udg_force05,function Trig_Player_Init_Func032A)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Unit_Init_Func001002 takes nothing returns nothing
call PauseUnit(GetEnumUnit(),true)
endfunction
function Trig_Unit_Init_Func047002 takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(14),false)
endfunction
function Trig_Unit_Init_Func048002 takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(14),false)
endfunction
function Trig_Unit_Init_Func049A takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(14),false)
call PauseUnit(GetEnumUnit(),true)
call SetUnitInvulnerable(GetEnumUnit(),true)
endfunction
function Trig_Unit_Init_Func050A takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(14),false)
call PauseUnit(GetEnumUnit(),true)
endfunction
function Trig_Unit_Init_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('h00U'),function Trig_Unit_Init_Func001002)
call SetUnitInvulnerable(udg_unit31,true)
call SetUnitInvulnerable(udg_unit105,true)
call SetUnitInvulnerable(udg_unit106,true)
call SetUnitInvulnerable(udg_unit103,true)
call SetUnitInvulnerable(udg_unit102,true)
call SetUnitInvulnerable(udg_unit101,true)
call SetUnitInvulnerable(udg_unit100,true)
call SetUnitInvulnerable(udg_unit104,true)
call SetUnitInvulnerable(udg_unit97,true)
call SetUnitInvulnerable(udg_unit66,true)
call SetUnitInvulnerable(udg_unit44,true)
call SetUnitInvulnerable(udg_unit90,true)
call SetUnitInvulnerable(udg_unit89,true)
call SetUnitInvulnerable(udg_unit56,true)
call SetUnitInvulnerable(udg_unit88,true)
call SetUnitInvulnerable(udg_unit87,true)
call SetUnitInvulnerable(udg_unit60,true)
call PauseUnit(udg_unit48,true)
call PauseUnit(udg_unit105,true)
call PauseUnit(udg_unit106,true)
call PauseUnit(udg_unit66,true)
call PauseUnit(udg_unit44,true)
call PauseUnit(udg_unit97,true)
call PauseUnit(udg_unit87,true)
call PauseUnit(udg_unit88,true)
call PauseUnit(udg_unit56,true)
call PauseUnit(udg_unit89,true)
call PauseUnit(udg_unit60,true)
call SetDestructableInvulnerable(udg_destructable03,true)
call SetDestructableInvulnerable(udg_destructable04,true)
call SetHeroLevelBJ(udg_unit56,15,false)
call SetHeroLevelBJ(udg_unit89,5,false)
call SetHeroLevelBJ(udg_unit60,3,false)
call SetHeroLevelBJ(udg_unit88,12,false)
call SetHeroLevelBJ(udg_unit87,8,false)
call ShowUnitHide(udg_unit64)
call ShowUnitHide(udg_unit37)
call CreateNUnitsAtLoc(1,'N01Y',Player(14),GetRectCenter(udg_rect57),250.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'N029',Player(14),GetRectCenter(udg_rect134),180.00)
call TriggerExecute(udg_trigger127)
call CreateNUnitsAtLoc(1,'N02A',Player(14),GetRectCenter(udg_rect133),180.00)
call TriggerExecute(udg_trigger127)
call SetUnitOwner(udg_unit64,Player(14),false)
call SetUnitOwner(udg_unit37,Player(14),false)
call ForGroupBJ(GetUnitsOfTypeIdAll('h037'),function Trig_Unit_Init_Func047002)
call ForGroupBJ(GetUnitsOfTypeIdAll('h00U'),function Trig_Unit_Init_Func048002)
call ForGroupBJ(GetUnitsInRectAll(udg_rect97),function Trig_Unit_Init_Func049A)
call ForGroupBJ(GetUnitsInRectAll(udg_rect144),function Trig_Unit_Init_Func050A)
call PauseUnit(udg_unit66,true)
call SetUnitScalePercent(udg_unit45,80.00,50.00,90.00)
call SetUnitScalePercent(udg_unit58,100,120.00,160.00)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Broly_Initialization_Actions takes nothing returns nothing
call SetUnitFacingTimed(udg_unit67,GetUnitFacing(udg_unit74),0)
call TriggerSleepAction(0.45)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],10.00,"TRIGSTR_3610")
call TriggerSleepAction(8.50)
call PlaySoundOnUnitBJ(udg_sound23,100,udg_unit74)
call CameraSetEQNoiseForPlayer(Player(9),3)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit74),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit74),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call RemoveUnit(udg_unit74)
call SetUnitVertexColorBJ(udg_unit67,50.00,75.00,100,0)
call SetUnitPositionLoc(udg_unit67,GetRectCenter(udg_rect83))
call SetUnitOwner(udg_unit67,Player(9),true)
call TriggerSleepAction(0.35)
call CameraClearNoiseForPlayer(Player(9))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],7.00,"TRIGSTR_3661")
call TriggerSleepAction(1.30)
call SetUserControlForceOn(bj_FORCE_PLAYER[9])
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Rush_Game_Func013A takes nothing returns nothing
call DialogDisplayBJ(false,udg_dialog01,GetEnumPlayer())
endfunction
function Trig_Rush_Game_Func014C takes nothing returns boolean
return((udg_integer18>0))
endfunction
function Trig_Rush_Game_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUserControlForceOn(bj_FORCE_ALL_PLAYERS)
call DialogSetMessage(udg_dialog01,"TRIGSTR_6886")
set udg_buttons01[2]=DialogAddButtonBJ(udg_dialog01,"TRIGSTR_6887")
call EnableTrigger(udg_trigger07)
call TriggerSleepAction(8.00)
call DisableTrigger(udg_trigger07)
call PlaySoundBJ(udg_sound38)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Rush_Game_Func013A)
if(Trig_Rush_Game_Func014C())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,8.00,"TRIGSTR_6888")
call SetPlayerHandicapXPBJ(Player(0),400.00)
call SetPlayerHandicapXPBJ(Player(1),400.00)
call SetPlayerHandicapXPBJ(Player(2),425.00)
call SetPlayerHandicapXPBJ(Player(3),400.00)
call SetPlayerHandicapXPBJ(Player(5),400.00)
call SetPlayerHandicapXPBJ(Player(6),500.00)
call SetPlayerHandicapXPBJ(Player(7),500.00)
call SetPlayerHandicapXPBJ(Player(8),450.00)
call SetPlayerHandicapXPBJ(Player(10),400.00)
call SetPlayerHandicapXPBJ(Player(4),400.00)
call SetPlayerHandicapXPBJ(Player(9),400.00)
call SetPlayerHandicapXPBJ(Player(11),475.00)
set udg_integer02=(udg_integer02+100)
call EnableTrigger(udg_trigger481)
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],8.00,"TRIGSTR_6902")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],8.00,"TRIGSTR_6903")
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,8.00,"TRIGSTR_6889")
call SetPlayerHandicapXPBJ(Player(0),200.00)
call SetPlayerHandicapXPBJ(Player(1),200.00)
call SetPlayerHandicapXPBJ(Player(2),200.00)
call SetPlayerHandicapXPBJ(Player(3),200.00)
call SetPlayerHandicapXPBJ(Player(5),200.00)
call SetPlayerHandicapXPBJ(Player(6),250.00)
call SetPlayerHandicapXPBJ(Player(7),250.00)
call SetPlayerHandicapXPBJ(Player(8),225.00)
call SetPlayerHandicapXPBJ(Player(10),200.00)
call SetPlayerHandicapXPBJ(Player(4),200.00)
call SetPlayerHandicapXPBJ(Player(9),200.00)
call SetPlayerHandicapXPBJ(Player(11),200.00)
endif
call DestroyTrigger(udg_trigger06)
call DestroyTrigger(udg_trigger07)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Choose_Game_Func002C takes nothing returns boolean
return((GetClickedButton()==udg_buttons01[1]))
endfunction
function Trig_Choose_Game_Actions takes nothing returns nothing
set udg_booleans03[(1+GetPlayerId(GetTriggerPlayer()))]=true
if(Trig_Choose_Game_Func002C())then
set udg_integer18=(udg_integer18-1)
else
set udg_integer18=(udg_integer18+1)
endif
call DialogDisplayBJ(false,udg_dialog01,GetTriggerPlayer())
endfunction
function Trig_Keep_Game_Type_Dialog_On_Func001002001 takes nothing returns boolean
return(udg_booleans03[(1+GetPlayerId(GetFilterPlayer()))]==false)
endfunction
function Trig_Keep_Game_Type_Dialog_On_Func002A takes nothing returns nothing
call DialogDisplayBJ(true,udg_dialog01,GetEnumPlayer())
endfunction
function Trig_Keep_Game_Type_Dialog_On_Actions takes nothing returns nothing
set udg_force07=GetPlayersMatching(Condition(function Trig_Keep_Game_Type_Dialog_On_Func001002001))
call ForForce(udg_force07,function Trig_Keep_Game_Type_Dialog_On_Func002A)
call DestroyForce(udg_force07)
endfunction
function Trig_Uses_Revive_Ticket_Func002C takes nothing returns boolean
return((GetOwningPlayer(GetManipulatingUnit())==Player(0)))or((GetOwningPlayer(GetManipulatingUnit())==Player(1)))or((GetOwningPlayer(GetManipulatingUnit())==Player(2)))or((GetOwningPlayer(GetManipulatingUnit())==Player(3)))or((GetOwningPlayer(GetManipulatingUnit())==Player(5)))or((GetOwningPlayer(GetManipulatingUnit())==Player(6)))
endfunction
function Trig_Uses_Revive_Ticket_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I01X'))and(Trig_Uses_Revive_Ticket_Func002C())
endfunction
function Trig_Uses_Revive_Ticket_Actions takes nothing returns nothing
call SetUnitLifePercentBJ(GetManipulatingUnit(),100)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetManipulatingUnit()),GetRectCenter(udg_rect84),0.30)
call SetUnitPositionLoc(GetManipulatingUnit(),GetRectCenter(udg_rect84))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I02K'))
call SetUnitUserData(GetManipulatingUnit(),0)
endfunction
function Trig_Good_Unit_dies_Func005C takes nothing returns boolean
return((GetDyingUnit()==udg_unit31))or((GetDyingUnit()==udg_unit26))or((GetDyingUnit()==udg_unit93))or((GetDyingUnit()==udg_unit92))or((GetDyingUnit()==udg_unit91))or((GetDyingUnit()==udg_unit27))or((GetDyingUnit()==udg_unit82))or((GetDyingUnit()==udg_unit32))or((GetDyingUnit()==udg_unit30))or((GetDyingUnit()==udg_unit45))or((GetDyingUnit()==udg_unit28))or((GetDyingUnit()==udg_unit83))or((GetDyingUnit()==udg_unit29))
endfunction
function Trig_Good_Unit_dies_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect98,GetDyingUnit())==false))and((RectContainsUnit(udg_rect145,GetDyingUnit())==false))and(Trig_Good_Unit_dies_Func005C())
endfunction
function Trig_Good_Unit_dies_Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetDyingUnit(),'I02K')==false))
endfunction
function Trig_Good_Unit_dies_Actions takes nothing returns nothing
call TriggerSleepAction(2)
if(Trig_Good_Unit_dies_Func002C())then
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect89),false)
set udg_unit18=GetDyingUnit()
call TriggerExecute(udg_trigger612)
call UnitAddItemByIdSwapped('I02K',GetDyingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),10.00,"TRIGSTR_6480")
else
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),10.00,"TRIGSTR_6495")
call TriggerSleepAction(30.00)
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect89),false)
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),10.00,"TRIGSTR_6496")
endif
endfunction
function Trig_Enter_Kais_Planet_Conditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_Enter_Kais_Planet_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetEnteringUnit())),10.00,"TRIGSTR_2939")
endfunction
function Trig_One_Ticket_Only_Func003C takes nothing returns boolean
return((GetOwningPlayer(GetManipulatingUnit())==Player(0)))or((GetOwningPlayer(GetManipulatingUnit())==Player(1)))or((GetOwningPlayer(GetManipulatingUnit())==Player(2)))or((GetOwningPlayer(GetManipulatingUnit())==Player(3)))or((GetOwningPlayer(GetManipulatingUnit())==Player(5)))or((GetOwningPlayer(GetManipulatingUnit())==Player(6)))
endfunction
function Trig_One_Ticket_Only_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I01X'))and(Trig_One_Ticket_Only_Func003C())
endfunction
function Trig_One_Ticket_Only_Func001C takes nothing returns boolean
return((GetUnitUserData(GetManipulatingUnit())==1))
endfunction
function Trig_One_Ticket_Only_Actions takes nothing returns nothing
if(Trig_One_Ticket_Only_Func001C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I01X'),GetManipulatingUnit())
else
call SetUnitUserData(GetManipulatingUnit(),1)
endif
endfunction
function Trig_Stop_Saga_Baddies_Func001C takes nothing returns boolean
return((RectContainsUnit(udg_rect89,GetTriggerUnit())))
endfunction
function Trig_Stop_Saga_Baddies_Actions takes nothing returns nothing
if(Trig_Stop_Saga_Baddies_Func001C())then
call SetUnitInvulnerable(GetTriggerUnit(),true)
else
call SetUnitInvulnerable(GetTriggerUnit(),false)
endif
endfunction
function Trig_Evil_dies_Func003Func001Func002C takes nothing returns boolean
return((GetDyingUnit()==udg_unit68))or((GetDyingUnit()==udg_unit85))or((GetDyingUnit()==udg_unit70))
endfunction
function Trig_Evil_dies_Func003Func001C takes nothing returns boolean
return((IsUnitAliveBJ(udg_unit98)==false))and(Trig_Evil_dies_Func003Func001Func002C())
endfunction
function Trig_Evil_dies_Func003Func012C takes nothing returns boolean
return((udg_integer02<250))and((GetDyingUnit()==udg_unit34))
endfunction
function Trig_Evil_dies_Func003Func016C takes nothing returns boolean
return((GetDyingUnit()==udg_unit41))and((UnitHasItem(udg_unit41,udg_item09)==false))
endfunction
function Trig_Evil_dies_Func003C takes nothing returns boolean
return(Trig_Evil_dies_Func003Func001C())or((GetDyingUnit()==udg_unit65))or((GetDyingUnit()==udg_unit71))or((GetDyingUnit()==udg_unit67))or((GetDyingUnit()==udg_unit46))or((GetDyingUnit()==udg_unit77))or((GetDyingUnit()==udg_unit94))or((GetDyingUnit()==udg_unit80))or((GetDyingUnit()==udg_unit76))or((GetDyingUnit()==udg_unit75))or((GetDyingUnit()==udg_unit79))or(Trig_Evil_dies_Func003Func012C())or((GetDyingUnit()==udg_unit35))or((GetDyingUnit()==udg_unit43))or((GetDyingUnit()==udg_unit42))or(Trig_Evil_dies_Func003Func016C())
endfunction
function Trig_Evil_dies_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect98,GetDyingUnit())==false))and(Trig_Evil_dies_Func003C())
endfunction
function Trig_Evil_dies_Func005C takes nothing returns boolean
return((RectContainsUnit(udg_rect45,GetDyingUnit())==false))
endfunction
function Trig_Evil_dies_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)
if(Trig_Evil_dies_Func005C())then
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect23),false)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_rect23),0.00)
else
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),10.00,"TRIGSTR_6497")
call TriggerSleepAction(50.00)
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect23),false)
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),10.00,"TRIGSTR_6498")
endif
endfunction
function Trig_Death_Annin_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='N01Y'))
endfunction
function Trig_Death_Annin_Func001C takes nothing returns boolean
return((GetUnitTypeId(GetKillingUnit())=='H022'))
endfunction
function Trig_Death_Annin_Actions takes nothing returns nothing
if(Trig_Death_Annin_Func001C())then
call ModifyHeroStat(0,udg_unit34,0,5)
call ModifyHeroStat(1,udg_unit34,0,5)
call ModifyHeroStat(2,udg_unit34,0,5)
else
call ModifyHeroStat(0,GetKillingUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
call ModifyHeroStat(1,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
call ModifyHeroStat(2,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
endif
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect57),"Abilities\\Spells\\Human\\Polymorph\\PolyMorphTarget.mdl")
call TriggerExecute(udg_trigger620)
call CreateItemLoc('I008',GetRectCenter(udg_rect57))
call TriggerSleepAction(10.00)
call RemoveUnit(GetDyingUnit())
call TriggerSleepAction(470.00)
call CreateNUnitsAtLoc(1,'N01Y',Player(14),GetRectCenter(udg_rect57),250.00)
call TriggerExecute(udg_trigger126)
endfunction
function Trig_Evil_Revive_Func005C takes nothing returns boolean
return((GetOwningPlayer(GetManipulatingUnit())==Player(4)))or((GetOwningPlayer(GetManipulatingUnit())==Player(7)))or((GetOwningPlayer(GetManipulatingUnit())==Player(8)))or((GetOwningPlayer(GetManipulatingUnit())==Player(9)))or((GetOwningPlayer(GetManipulatingUnit())==Player(10)))or((GetOwningPlayer(GetManipulatingUnit())==Player(11)))
endfunction
function Trig_Evil_Revive_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I008'))and(Trig_Evil_Revive_Func005C())
endfunction
function Trig_Evil_Revive_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetManipulatingUnit()),GetRectCenter(udg_rect25),0.30)
call SetUnitPositionLoc(GetManipulatingUnit(),GetRectCenter(udg_rect25))
call SetUnitLifePercentBJ(GetManipulatingUnit(),100)
endfunction
function Trig_Stop_Death_Cheats_Func001C takes nothing returns boolean
return((RectContainsUnit(udg_rect23,GetTriggerUnit())))
endfunction
function Trig_Stop_Death_Cheats_Actions takes nothing returns nothing
if(Trig_Stop_Death_Cheats_Func001C())then
call SetUnitInvulnerable(GetTriggerUnit(),true)
else
call SetUnitInvulnerable(GetTriggerUnit(),false)
endif
endfunction
function Trig_Death_Goz_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='N029'))
endfunction
function Trig_Death_Goz_Func001C takes nothing returns boolean
return((GetUnitTypeId(GetKillingUnit())=='H022'))
endfunction
function Trig_Death_Goz_Actions takes nothing returns nothing
if(Trig_Death_Goz_Func001C())then
call ModifyHeroStat(0,udg_unit34,0,5)
call ModifyHeroStat(1,udg_unit34,0,5)
call ModifyHeroStat(2,udg_unit34,0,5)
else
call ModifyHeroStat(0,GetKillingUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
call ModifyHeroStat(1,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
call ModifyHeroStat(2,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
endif
call TriggerSleepAction(10.00)
call RemoveUnit(GetDyingUnit())
call TriggerSleepAction(230.00)
call CreateNUnitsAtLoc(1,'N029',Player(14),GetRectCenter(udg_rect134),180.00)
call TriggerExecute(udg_trigger127)
endfunction
function Trig_Death_Mez_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='N02A'))
endfunction
function Trig_Death_Mez_Func001C takes nothing returns boolean
return((GetUnitTypeId(GetKillingUnit())=='H022'))
endfunction
function Trig_Death_Mez_Actions takes nothing returns nothing
if(Trig_Death_Mez_Func001C())then
call ModifyHeroStat(0,udg_unit34,0,5)
call ModifyHeroStat(1,udg_unit34,0,5)
call ModifyHeroStat(2,udg_unit34,0,5)
else
call ModifyHeroStat(0,GetKillingUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
call ModifyHeroStat(1,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
call ModifyHeroStat(2,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
endif
call TriggerSleepAction(10.00)
call RemoveUnit(GetDyingUnit())
call TriggerSleepAction(230.00)
call CreateNUnitsAtLoc(1,'N02A',Player(14),GetRectCenter(udg_rect133),180.00)
call TriggerExecute(udg_trigger127)
endfunction
function Trig_Tournament_Init_Func010C takes nothing returns boolean
return((udg_units04[1]!=null))
endfunction
function Trig_Tournament_Init_Actions takes nothing returns nothing
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect102),15.00,1,100,0.00,0.00)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_3910")
call StartTimerBJ(udg_timer16,false,120.00)
set udg_timerdialog13=CreateTimerDialogBJ(bj_lastStartedTimer,"TRIGSTR_3911")
call EnableTrigger(udg_trigger20)
call TriggerSleepAction(120.00)
call DisableTrigger(udg_trigger20)
if(Trig_Tournament_Init_Func010C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_fogmodifiers03[bj_forLoopAIndex]=CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,udg_rect99)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTimerDialog(udg_timerdialog13)
call DisplayTextToForce(udg_force06,"TRIGSTR_3913")
call TriggerExecute(udg_trigger22)
call TriggerSleepAction(5.00)
call TriggerExecute(udg_trigger23)
else
call DestroyTimerDialog(udg_timerdialog13)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_3912")
call TriggerSleepAction(450.00)
call TriggerExecute(GetTriggeringTrigger())
endif
endfunction
function Trig_Tournament_Reg_Func001Func014001 takes nothing returns boolean
return(GetEnteringUnit()==udg_unit76)
endfunction
function Trig_Tournament_Reg_Func001Func014002 takes nothing returns boolean
return(GetOwningPlayer(udg_unit76)==Player(7))
endfunction
function Trig_Tournament_Reg_Func001C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit31))or((GetEnteringUnit()==udg_unit26))or((GetEnteringUnit()==udg_unit93))or((GetEnteringUnit()==udg_unit92))or((GetEnteringUnit()==udg_unit91))or((GetEnteringUnit()==udg_unit27))or((GetEnteringUnit()==udg_unit82))or((GetEnteringUnit()==udg_unit32))or((GetEnteringUnit()==udg_unit30))or((GetEnteringUnit()==udg_unit45))or((GetEnteringUnit()==udg_unit29))or((GetEnteringUnit()==udg_unit28))or((GetEnteringUnit()==udg_unit83))or(GetBooleanAnd(Trig_Tournament_Reg_Func001Func014001(),Trig_Tournament_Reg_Func001Func014002()))or((GetEnteringUnit()==udg_unit75))or((GetEnteringUnit()==udg_unit79))or((GetEnteringUnit()==udg_unit46))or((GetEnteringUnit()==udg_unit77))or((GetEnteringUnit()==udg_unit94))or((GetEnteringUnit()==udg_unit43))or((GetEnteringUnit()==udg_unit41))or((GetEnteringUnit()==udg_unit42))or((GetEnteringUnit()==udg_unit68))or((GetEnteringUnit()==udg_unit85))or((GetEnteringUnit()==udg_unit70))or((GetEnteringUnit()==udg_unit65))or((GetEnteringUnit()==udg_unit71))or((GetEnteringUnit()==udg_unit67))or((GetEnteringUnit()==udg_unit52))
endfunction
function Trig_Tournament_Reg_Conditions takes nothing returns boolean
return(Trig_Tournament_Reg_Func001C())
endfunction
function Trig_Tournament_Reg_Func002001 takes nothing returns boolean
return(udg_integer08==0)
endfunction
function Trig_Tournament_Reg_Func003001 takes nothing returns boolean
return(udg_integer08==1)
endfunction
function Trig_Tournament_Reg_Func004001 takes nothing returns boolean
return(udg_integer08==2)
endfunction
function Trig_Tournament_Reg_Func005001 takes nothing returns boolean
return(udg_integer08==3)
endfunction
function Trig_Tournament_Reg_Func006001 takes nothing returns boolean
return(udg_integer08==4)
endfunction
function Trig_Tournament_Reg_Func007001 takes nothing returns boolean
return(udg_integer08==5)
endfunction
function Trig_Tournament_Reg_Func008001 takes nothing returns boolean
return(udg_integer08==6)
endfunction
function Trig_Tournament_Reg_Func009001 takes nothing returns boolean
return(udg_integer08==7)
endfunction
function Trig_Tournament_Reg_Func010001 takes nothing returns boolean
return(udg_integer08==8)
endfunction
function Trig_Tournament_Reg_Func011001 takes nothing returns boolean
return(udg_integer08==9)
endfunction
function Trig_Tournament_Reg_Func012001 takes nothing returns boolean
return(udg_integer08==10)
endfunction
function Trig_Tournament_Reg_Func013001 takes nothing returns boolean
return(udg_integer08==11)
endfunction
function Trig_Tournament_Reg_Func014001 takes nothing returns boolean
return(udg_integer08<=5)
endfunction
function Trig_Tournament_Reg_Func015001 takes nothing returns boolean
return(udg_integer08>5)
endfunction
function Trig_Tournament_Reg_Func017Func002001 takes nothing returns boolean
return(GetEnteringUnit()==udg_unit45)
endfunction
function Trig_Tournament_Reg_Func017C takes nothing returns boolean
return((udg_boolean04==false))
endfunction
function Trig_Tournament_Reg_Func018001 takes nothing returns boolean
return(GetEnteringUnit()==udg_unit91)
endfunction
function Trig_Tournament_Reg_Func019001 takes nothing returns boolean
return(GetEnteringUnit()==udg_unit92)
endfunction
function Trig_Tournament_Reg_Actions takes nothing returns nothing
if(Trig_Tournament_Reg_Func002001())then
set udg_units04[1]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func003001())then
set udg_units04[2]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func004001())then
set udg_units04[3]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func005001())then
set udg_units04[4]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func006001())then
set udg_units04[5]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func007001())then
set udg_units04[6]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func008001())then
set udg_units04[7]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func009001())then
set udg_units04[8]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func010001())then
set udg_units04[9]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func011001())then
set udg_units04[10]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func012001())then
set udg_units04[11]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func013001())then
set udg_units04[12]=GetEnteringUnit()
endif
if(Trig_Tournament_Reg_Func014001())then
call SetUnitPositionLocFacingLocBJ(GetEnteringUnit(),GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
endif
if(Trig_Tournament_Reg_Func015001())then
call SetUnitPositionLocFacingLocBJ(GetEnteringUnit(),GetRandomLocInRect(udg_rect104),GetRectCenter(udg_rect98))
endif
set udg_integer08=(udg_integer08+1)
if(Trig_Tournament_Reg_Func017C())then
if(Trig_Tournament_Reg_Func017Func002001())then
call PauseTimerBJ(true,udg_timer12)
endif
endif
if(Trig_Tournament_Reg_Func018001())then
call PauseTimerBJ(true,udg_timer14)
endif
if(Trig_Tournament_Reg_Func019001())then
call PauseTimerBJ(true,udg_timer14)
endif
call ForceAddPlayer(udg_force06,GetOwningPlayer(GetEnteringUnit()))
call SetUnitLifePercentBJ(GetEnteringUnit(),100)
call SetUnitInvulnerable(GetEnteringUnit(),true)
endfunction
function Trig_Tournament_Fusion_loser_check_Func001Func002001 takes nothing returns boolean
return(udg_unit13==udg_unit45)
endfunction
function Trig_Tournament_Fusion_loser_check_Func001C takes nothing returns boolean
return((udg_boolean04==false))
endfunction
function Trig_Tournament_Fusion_loser_check_Func002001 takes nothing returns boolean
return(udg_unit13==udg_unit91)
endfunction
function Trig_Tournament_Fusion_loser_check_Func003001 takes nothing returns boolean
return(udg_unit13==udg_unit92)
endfunction
function Trig_Tournament_Fusion_loser_check_Actions takes nothing returns nothing
if(Trig_Tournament_Fusion_loser_check_Func001C())then
if(Trig_Tournament_Fusion_loser_check_Func001Func002001())then
call PauseTimerBJ(false,udg_timer12)
endif
endif
if(Trig_Tournament_Fusion_loser_check_Func002001())then
call PauseTimerBJ(false,udg_timer14)
endif
if(Trig_Tournament_Fusion_loser_check_Func003001())then
call PauseTimerBJ(false,udg_timer14)
endif
endfunction
function Trig_Tournament_Char_Repl_Func001001 takes nothing returns boolean
return(udg_units04[2]==null)
endfunction
function Trig_Tournament_Char_Repl_Func002001 takes nothing returns boolean
return(udg_units04[3]==null)
endfunction
function Trig_Tournament_Char_Repl_Func003001 takes nothing returns boolean
return(udg_units04[4]==null)
endfunction
function Trig_Tournament_Char_Repl_Func004001 takes nothing returns boolean
return(udg_units04[5]==null)
endfunction
function Trig_Tournament_Char_Repl_Func005001 takes nothing returns boolean
return(udg_units04[6]==null)
endfunction
function Trig_Tournament_Char_Repl_Func006001 takes nothing returns boolean
return(udg_units04[7]==null)
endfunction
function Trig_Tournament_Char_Repl_Func007001 takes nothing returns boolean
return(udg_units04[8]==null)
endfunction
function Trig_Tournament_Char_Repl_Func008001 takes nothing returns boolean
return(udg_units04[9]==null)
endfunction
function Trig_Tournament_Char_Repl_Func009001 takes nothing returns boolean
return(udg_units04[10]==null)
endfunction
function Trig_Tournament_Char_Repl_Func010001 takes nothing returns boolean
return(udg_units04[11]==null)
endfunction
function Trig_Tournament_Char_Repl_Func011001 takes nothing returns boolean
return(udg_units04[12]==null)
endfunction
function Trig_Tournament_Char_Repl_Actions takes nothing returns nothing
if(Trig_Tournament_Char_Repl_Func001001())then
set udg_units04[2]=udg_unit61
endif
if(Trig_Tournament_Char_Repl_Func002001())then
set udg_units04[3]=udg_unit40
endif
if(Trig_Tournament_Char_Repl_Func003001())then
set udg_units04[4]=udg_unit59
endif
if(Trig_Tournament_Char_Repl_Func004001())then
set udg_units04[5]=udg_unit47
endif
if(Trig_Tournament_Char_Repl_Func005001())then
set udg_units04[6]=udg_unit57
endif
if(Trig_Tournament_Char_Repl_Func006001())then
set udg_units04[7]=udg_unit38
endif
if(Trig_Tournament_Char_Repl_Func007001())then
set udg_units04[8]=udg_unit51
endif
if(Trig_Tournament_Char_Repl_Func008001())then
set udg_units04[9]=udg_unit53
endif
if(Trig_Tournament_Char_Repl_Func009001())then
set udg_units04[10]=udg_unit55
endif
if(Trig_Tournament_Char_Repl_Func010001())then
set udg_units04[11]=udg_unit36
endif
if(Trig_Tournament_Char_Repl_Func011001())then
set udg_units04[12]=udg_unit84
endif
set udg_units05[4]=udg_unit81
endfunction
function Trig_Tournament_Round_1_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[1]),GetOwningPlayer(udg_units04[2]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[2]),GetOwningPlayer(udg_units04[1]),0)
call SetUnitPositionLocFacingLocBJ(udg_units04[1],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units04[2],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_3914")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_3915")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_3916")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_3917")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units04[1],false)
call SetUnitInvulnerable(udg_units04[2],false)
call PauseUnit(udg_units04[1],false)
call PauseUnit(udg_units04[2],false)
call IssueTargetOrder(udg_units04[1],"attack",udg_units04[2])
call IssueTargetOrder(udg_units04[2],"attack",udg_units04[1])
call EnableTrigger(udg_trigger35)
endfunction
function Trig_Tournament_Round_2_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[3]),GetOwningPlayer(udg_units04[4]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[4]),GetOwningPlayer(udg_units04[3]),0)
call SetUnitPositionLocFacingLocBJ(udg_units04[3],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units04[4],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4052")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4053")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4054")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4055")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units04[3],false)
call SetUnitInvulnerable(udg_units04[4],false)
call PauseUnit(udg_units04[3],false)
call PauseUnit(udg_units04[4],false)
call IssueTargetOrder(udg_units04[3],"attack",udg_units04[4])
call IssueTargetOrder(udg_units04[4],"attack",udg_units04[3])
call EnableTrigger(udg_trigger36)
endfunction
function Trig_Tournament_Round_3_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[5]),GetOwningPlayer(udg_units04[6]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[6]),GetOwningPlayer(udg_units04[5]),0)
call SetUnitPositionLocFacingLocBJ(udg_units04[5],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units04[6],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4056")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4057")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4058")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4059")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units04[5],false)
call SetUnitInvulnerable(udg_units04[6],false)
call PauseUnit(udg_units04[5],false)
call PauseUnit(udg_units04[6],false)
call IssueTargetOrder(udg_units04[5],"attack",udg_units04[6])
call IssueTargetOrder(udg_units04[6],"attack",udg_units04[5])
call EnableTrigger(udg_trigger37)
endfunction
function Trig_Tournament_Round_4_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[7]),GetOwningPlayer(udg_units04[8]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[8]),GetOwningPlayer(udg_units04[7]),0)
call SetUnitPositionLocFacingLocBJ(udg_units04[7],GetRectCenter(udg_rect101),GetRectCenter(udg_rect100))
call SetUnitPositionLocFacingLocBJ(udg_units04[8],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4060")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4061")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4062")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4063")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units04[7],false)
call SetUnitInvulnerable(udg_units04[8],false)
call PauseUnit(udg_units04[7],false)
call PauseUnit(udg_units04[8],false)
call IssueTargetOrder(udg_units04[7],"attack",udg_units04[8])
call IssueTargetOrder(udg_units04[8],"attack",udg_units04[7])
call EnableTrigger(udg_trigger38)
endfunction
function Trig_Tournament_Round_5_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[9]),GetOwningPlayer(udg_units04[10]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[10]),GetOwningPlayer(udg_units04[9]),0)
call SetUnitPositionLocFacingLocBJ(udg_units04[10],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units04[9],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4064")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4065")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4066")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4067")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units04[10],false)
call SetUnitInvulnerable(udg_units04[9],false)
call PauseUnit(udg_units04[10],false)
call PauseUnit(udg_units04[9],false)
call IssueTargetOrder(udg_units04[9],"attack",udg_units04[10])
call IssueTargetOrder(udg_units04[10],"attack",udg_units04[9])
call EnableTrigger(udg_trigger39)
endfunction
function Trig_Tournament_Round_6_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[11]),GetOwningPlayer(udg_units04[12]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units04[12]),GetOwningPlayer(udg_units04[11]),0)
call SetUnitPositionLocFacingLocBJ(udg_units04[12],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units04[11],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4068")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4069")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4070")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4071")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units04[12],false)
call SetUnitInvulnerable(udg_units04[11],false)
call PauseUnit(udg_units04[11],false)
call PauseUnit(udg_units04[12],false)
call IssueTargetOrder(udg_units04[11],"attack",udg_units04[12])
call IssueTargetOrder(udg_units04[12],"attack",udg_units04[11])
call EnableTrigger(udg_trigger40)
endfunction
function Trig_Tournament_Round_7_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units07[1]),GetOwningPlayer(udg_units07[2]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units07[2]),GetOwningPlayer(udg_units07[1]),0)
call SetUnitPositionLocFacingLocBJ(udg_units07[1],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units07[2],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4072")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4073")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4074")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4075")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units07[1],false)
call SetUnitInvulnerable(udg_units07[2],false)
call PauseUnit(udg_units07[1],false)
call PauseUnit(udg_units07[2],false)
call IssueTargetOrder(udg_units07[1],"attack",udg_units07[2])
call IssueTargetOrder(udg_units07[2],"attack",udg_units07[1])
call EnableTrigger(udg_trigger41)
endfunction
function Trig_Tournament_Round_8_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units07[3]),GetOwningPlayer(udg_units07[4]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units07[4]),GetOwningPlayer(udg_units07[3]),0)
call SetUnitPositionLocFacingLocBJ(udg_units07[3],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units07[4],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4076")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4077")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4078")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4079")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units07[3],false)
call SetUnitInvulnerable(udg_units07[4],false)
call PauseUnit(udg_units07[3],false)
call PauseUnit(udg_units07[4],false)
call IssueTargetOrder(udg_units07[3],"attack",udg_units07[4])
call IssueTargetOrder(udg_units07[4],"attack",udg_units07[3])
call EnableTrigger(udg_trigger42)
endfunction
function Trig_Tournament_Round_9_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units07[5]),GetOwningPlayer(udg_units07[6]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units07[6]),GetOwningPlayer(udg_units07[5]),0)
call SetUnitPositionLocFacingLocBJ(udg_units07[5],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units07[6],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4080")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4081")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4082")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4083")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units07[5],false)
call SetUnitInvulnerable(udg_units07[6],false)
call PauseUnit(udg_units07[5],false)
call PauseUnit(udg_units07[6],false)
call IssueTargetOrder(udg_units07[5],"attack",udg_units07[6])
call IssueTargetOrder(udg_units07[6],"attack",udg_units07[5])
call EnableTrigger(udg_trigger43)
endfunction
function Trig_Tournament_Round_10_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units05[1]),GetOwningPlayer(udg_units05[2]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units05[2]),GetOwningPlayer(udg_units05[1]),0)
call SetUnitPositionLocFacingLocBJ(udg_units05[1],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units05[2],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4084")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4085")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4086")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4087")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units05[1],false)
call SetUnitInvulnerable(udg_units05[2],false)
call PauseUnit(udg_units05[1],false)
call PauseUnit(udg_units05[2],false)
call IssueTargetOrder(udg_units05[1],"attack",udg_units05[2])
call IssueTargetOrder(udg_units05[2],"attack",udg_units05[1])
call EnableTrigger(udg_trigger44)
endfunction
function Trig_Tournament_Round_11_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units05[3]),GetOwningPlayer(udg_units05[4]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units05[4]),GetOwningPlayer(udg_units05[3]),0)
call SetUnitPositionLocFacingLocBJ(udg_units05[3],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units05[4],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
call DisplayTextToForce(udg_force06,"TRIGSTR_4088")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4089")
call TriggerSleepAction(0.55)
call DisplayTextToForce(udg_force06,"TRIGSTR_4090")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_4091")
call TriggerSleepAction(0.55)
call SetUnitInvulnerable(udg_units05[3],false)
call SetUnitInvulnerable(udg_units05[4],false)
call PauseUnit(udg_units05[3],false)
call PauseUnit(udg_units05[4],false)
call IssueTargetOrder(udg_units05[4],"attack",udg_units05[3])
call IssueTargetOrder(udg_units05[3],"attack",udg_units05[4])
call EnableTrigger(udg_trigger45)
endfunction
function Trig_Tournament_Round_Finals_Func005001001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_units06[1],'I01P'))
endfunction
function Trig_Tournament_Round_Finals_Func005001002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_units06[2],'I01P')==false)
endfunction
function Trig_Tournament_Round_Finals_Func005001 takes nothing returns boolean
return GetBooleanAnd(Trig_Tournament_Round_Finals_Func005001001(),Trig_Tournament_Round_Finals_Func005001002())
endfunction
function Trig_Tournament_Round_Finals_Func006001001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_units06[1],'I01P')==false)
endfunction
function Trig_Tournament_Round_Finals_Func006001002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_units06[2],'I01P'))
endfunction
function Trig_Tournament_Round_Finals_Func006001 takes nothing returns boolean
return GetBooleanAnd(Trig_Tournament_Round_Finals_Func006001001(),Trig_Tournament_Round_Finals_Func006001002())
endfunction
function Trig_Tournament_Round_Finals_Func007001001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_units06[1],'I01P'))
endfunction
function Trig_Tournament_Round_Finals_Func007001002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_units06[2],'I01P'))
endfunction
function Trig_Tournament_Round_Finals_Func007001 takes nothing returns boolean
return GetBooleanAnd(Trig_Tournament_Round_Finals_Func007001001(),Trig_Tournament_Round_Finals_Func007001002())
endfunction
function Trig_Tournament_Round_Finals_Func008001001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_units06[1],'I01P')==false)
endfunction
function Trig_Tournament_Round_Finals_Func008001002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_units06[2],'I01P')==false)
endfunction
function Trig_Tournament_Round_Finals_Func008001 takes nothing returns boolean
return GetBooleanAnd(Trig_Tournament_Round_Finals_Func008001001(),Trig_Tournament_Round_Finals_Func008001002())
endfunction
function Trig_Tournament_Round_Finals_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units06[1]),GetOwningPlayer(udg_units06[2]),0)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_units06[2]),GetOwningPlayer(udg_units06[1]),0)
call SetUnitPositionLocFacingLocBJ(udg_units06[1],GetRectCenter(udg_rect101),GetRectCenter(udg_rect98))
call SetUnitPositionLocFacingLocBJ(udg_units06[2],GetRectCenter(udg_rect100),GetRectCenter(udg_rect98))
if(Trig_Tournament_Round_Finals_Func005001())then
call DisplayTimedTextToForce(udg_force06,5.00,(("Welcome to the finals everybody! Our match up is! "+GetUnitName(udg_units06[1]))+(" Vs "+GetPlayerName(GetOwningPlayer(udg_units06[2])))))
endif
if(Trig_Tournament_Round_Finals_Func006001())then
call DisplayTimedTextToForce(udg_force06,5.00,(("Welcome to the finals everybody! Our match up is! "+GetPlayerName(GetOwningPlayer(udg_units06[1])))+(" Vs "+GetUnitName(udg_units06[2]))))
endif
if(Trig_Tournament_Round_Finals_Func007001())then
call DisplayTimedTextToForce(udg_force06,5.00,(("Welcome to the finals everybody! Our match up is! "+GetUnitName(udg_units06[1]))+(" Vs "+GetUnitName(udg_units06[2]))))
endif
if(Trig_Tournament_Round_Finals_Func008001())then
call DisplayTimedTextToForce(udg_force06,5.00,(("Welcome to the finals everybody! Our match up is! "+GetPlayerName(GetOwningPlayer(udg_units06[1])))+(" Vs "+GetPlayerName(GetOwningPlayer(udg_units06[2])))))
endif
call TriggerSleepAction(4.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_3958")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_3959")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_3960")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force06,"TRIGSTR_3961")
call TriggerSleepAction(0.25)
call SetUnitInvulnerable(udg_units06[1],false)
call SetUnitInvulnerable(udg_units06[2],false)
call PauseUnit(udg_units06[1],false)
call PauseUnit(udg_units06[2],false)
call IssueTargetOrder(udg_units06[1],"attack",udg_units06[2])
call IssueTargetOrder(udg_units06[2],"attack",udg_units06[1])
call EnableTrigger(udg_trigger46)
endfunction
function Trig_Tournament_Finish_Round_1_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[1])
endfunction
function Trig_Tournament_Finish_Round_1_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[2])
endfunction
function Trig_Tournament_Finish_Round_1_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_1_Func016001(),Trig_Tournament_Finish_Round_1_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_1_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units04[2])
endfunction
function Trig_Tournament_Finish_Round_1_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_1_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_1_Func003001())then
set udg_units07[1]=udg_units04[1]
else
set udg_units07[1]=udg_units04[2]
endif
set udg_units04[1]=null
set udg_units04[2]=null
call SetUnitFacingToFaceLocTimed(udg_units07[1],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units07[1],true)
call SetUnitLifePercentBJ(udg_units07[1],100)
call SetUnitManaPercentBJ(udg_units07[1],100)
if(Trig_Tournament_Finish_Round_1_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the first bout is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the first bout is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_1_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units07[1],GetRandomLocInRect(udg_rect104),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units07[1],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger24)
endfunction
function Trig_Tournament_Finish_Round_2_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[3])
endfunction
function Trig_Tournament_Finish_Round_2_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[4])
endfunction
function Trig_Tournament_Finish_Round_2_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_2_Func016001(),Trig_Tournament_Finish_Round_2_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_2_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units04[4])
endfunction
function Trig_Tournament_Finish_Round_2_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_2_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_2_Func003001())then
set udg_units07[2]=udg_units04[3]
else
set udg_units07[2]=udg_units04[4]
endif
set udg_units04[3]=null
set udg_units04[4]=null
call SetUnitFacingToFaceLocTimed(udg_units07[2],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units07[2],true)
call SetUnitLifePercentBJ(udg_units07[2],100)
call SetUnitManaPercentBJ(udg_units07[2],100)
if(Trig_Tournament_Finish_Round_2_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the second bout is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the second bout is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_2_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units07[2],GetRandomLocInRect(udg_rect104),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units07[2],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger25)
endfunction
function Trig_Tournament_Finish_Round_3_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[5])
endfunction
function Trig_Tournament_Finish_Round_3_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[6])
endfunction
function Trig_Tournament_Finish_Round_3_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_3_Func016001(),Trig_Tournament_Finish_Round_3_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_3_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units04[6])
endfunction
function Trig_Tournament_Finish_Round_3_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_3_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_3_Func003001())then
set udg_units07[3]=udg_units04[5]
else
set udg_units07[3]=udg_units04[6]
endif
set udg_units04[5]=null
set udg_units04[6]=null
call SetUnitFacingToFaceLocTimed(udg_units07[3],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units07[3],true)
call SetUnitLifePercentBJ(udg_units07[3],100)
call SetUnitManaPercentBJ(udg_units07[3],100)
if(Trig_Tournament_Finish_Round_3_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the third bout is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the third bout is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_3_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units07[3],GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units07[3],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger26)
endfunction
function Trig_Tournament_Finish_Round_4_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[7])
endfunction
function Trig_Tournament_Finish_Round_4_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[8])
endfunction
function Trig_Tournament_Finish_Round_4_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_4_Func016001(),Trig_Tournament_Finish_Round_4_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_4_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units04[8])
endfunction
function Trig_Tournament_Finish_Round_4_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_4_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_4_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_4_Func003001())then
set udg_units07[4]=udg_units04[7]
else
set udg_units07[4]=udg_units04[8]
endif
set udg_units04[7]=null
set udg_units04[8]=null
call SetUnitFacingToFaceLocTimed(udg_units07[4],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units07[4],true)
call SetUnitLifePercentBJ(udg_units07[4],100)
call SetUnitManaPercentBJ(udg_units07[4],100)
if(Trig_Tournament_Finish_Round_4_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the fourth bout is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the fourth bout is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_4_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units07[4],GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units07[4],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger27)
endfunction
function Trig_Tournament_Finish_Round_5_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[9])
endfunction
function Trig_Tournament_Finish_Round_5_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[10])
endfunction
function Trig_Tournament_Finish_Round_5_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_5_Func016001(),Trig_Tournament_Finish_Round_5_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_5_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units04[10])
endfunction
function Trig_Tournament_Finish_Round_5_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_5_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_5_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_5_Func003001())then
set udg_units07[5]=udg_units04[9]
else
set udg_units07[5]=udg_units04[10]
endif
set udg_units04[9]=null
set udg_units04[10]=null
call SetUnitFacingToFaceLocTimed(udg_units07[5],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units07[5],true)
call SetUnitLifePercentBJ(udg_units07[5],100)
call SetUnitManaPercentBJ(udg_units07[5],100)
if(Trig_Tournament_Finish_Round_5_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the fifth bout is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the fifth bout is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_5_Func011001())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units07[5],GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units07[5],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger28)
endfunction
function Trig_Tournament_Finish_Round_6_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[11])
endfunction
function Trig_Tournament_Finish_Round_6_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units04[12])
endfunction
function Trig_Tournament_Finish_Round_6_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_6_Func016001(),Trig_Tournament_Finish_Round_6_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_6_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units04[12])
endfunction
function Trig_Tournament_Finish_Round_6_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_6_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_6_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_6_Func003001())then
set udg_units07[6]=udg_units04[11]
else
set udg_units07[6]=udg_units04[12]
endif
set udg_units04[11]=null
set udg_units04[12]=null
call SetUnitFacingToFaceLocTimed(udg_units07[6],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units07[6],true)
call SetUnitLifePercentBJ(udg_units07[6],100)
call SetUnitManaPercentBJ(udg_units07[6],100)
if(Trig_Tournament_Finish_Round_6_Func010001())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,4.00,("Winner of the sixth bout is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,4.00,("Winner of the sixth bout is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_6_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units07[6],GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units07[6],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger29)
endfunction
function Trig_Tournament_Finish_Round_7_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units07[1])
endfunction
function Trig_Tournament_Finish_Round_7_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units07[2])
endfunction
function Trig_Tournament_Finish_Round_7_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_7_Func016001(),Trig_Tournament_Finish_Round_7_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_7_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units07[2])
endfunction
function Trig_Tournament_Finish_Round_7_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_7_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_7_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_7_Func003001())then
set udg_units05[1]=udg_units07[1]
else
set udg_units05[1]=udg_units07[2]
endif
set udg_units07[2]=null
set udg_units07[1]=null
call SetUnitFacingToFaceLocTimed(udg_units05[1],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units05[1],true)
call SetUnitLifePercentBJ(udg_units05[1],100)
call SetUnitManaPercentBJ(udg_units05[1],100)
if(Trig_Tournament_Finish_Round_7_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the seventh bout is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the seventh bout is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_7_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units05[1],GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units05[1],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger30)
endfunction
function Trig_Tournament_Finish_Round_8_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units07[3])
endfunction
function Trig_Tournament_Finish_Round_8_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units07[4])
endfunction
function Trig_Tournament_Finish_Round_8_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_8_Func016001(),Trig_Tournament_Finish_Round_8_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_8_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units07[4])
endfunction
function Trig_Tournament_Finish_Round_8_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_8_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_8_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_8_Func003001())then
set udg_units05[2]=udg_units07[3]
else
set udg_units05[2]=udg_units07[4]
endif
set udg_units07[3]=null
set udg_units07[4]=null
call SetUnitFacingToFaceLocTimed(udg_units05[2],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units05[2],true)
call SetUnitLifePercentBJ(udg_units05[2],100)
call SetUnitManaPercentBJ(udg_units05[2],100)
if(Trig_Tournament_Finish_Round_8_Func010001())then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,4.00,("Winner of the eighth bout is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,4.00,("Winner of the eighth bout is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_8_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units05[2],GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units05[2],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger31)
endfunction
function Trig_Tournament_Finish_Round_9_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units07[5])
endfunction
function Trig_Tournament_Finish_Round_9_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units07[6])
endfunction
function Trig_Tournament_Finish_Round_9_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_9_Func016001(),Trig_Tournament_Finish_Round_9_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_9_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units07[6])
endfunction
function Trig_Tournament_Finish_Round_9_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_9_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_9_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_9_Func003001())then
set udg_units05[3]=udg_units07[5]
else
set udg_units05[3]=udg_units07[6]
endif
set udg_units07[5]=null
set udg_units07[6]=null
call SetUnitFacingToFaceLocTimed(udg_units05[3],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units05[3],true)
call SetUnitLifePercentBJ(udg_units05[3],100)
call SetUnitManaPercentBJ(udg_units05[3],100)
if(Trig_Tournament_Finish_Round_9_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the ninth bout is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the ninth bout is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_9_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units05[3],GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units05[3],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger32)
endfunction
function Trig_Tournament_Finish_Round_10_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units05[1])
endfunction
function Trig_Tournament_Finish_Round_10_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units05[2])
endfunction
function Trig_Tournament_Finish_Round_10_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_10_Func016001(),Trig_Tournament_Finish_Round_10_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_10_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units05[2])
endfunction
function Trig_Tournament_Finish_Round_10_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_10_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_10_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_10_Func003001())then
set udg_units06[1]=udg_units05[1]
else
set udg_units06[1]=udg_units05[2]
endif
set udg_units05[1]=null
set udg_units05[2]=null
call SetUnitFacingToFaceLocTimed(udg_units06[1],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units06[1],true)
call SetUnitLifePercentBJ(udg_units06[1],100)
call SetUnitManaPercentBJ(udg_units06[1],100)
if(Trig_Tournament_Finish_Round_10_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the first semi final's match is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the first semi final's match is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_10_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units06[1],GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units06[1],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger33)
endfunction
function Trig_Tournament_Finish_Round_11_Func016001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units05[3])
endfunction
function Trig_Tournament_Finish_Round_11_Func016002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units05[4])
endfunction
function Trig_Tournament_Finish_Round_11_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_11_Func016001(),Trig_Tournament_Finish_Round_11_Func016002()))
endfunction
function Trig_Tournament_Finish_Round_11_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units05[4])
endfunction
function Trig_Tournament_Finish_Round_11_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_11_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_11_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_11_Func003001())then
set udg_units06[2]=udg_units05[3]
else
set udg_units06[2]=udg_units05[4]
endif
set udg_units05[3]=null
set udg_units05[4]=null
call SetUnitFacingToFaceLocTimed(udg_units06[2],GetRectCenter(udg_rect116),0)
call PauseUnit(udg_units06[2],true)
call SetUnitLifePercentBJ(udg_units06[2],100)
call SetUnitManaPercentBJ(udg_units06[2],100)
if(Trig_Tournament_Finish_Round_11_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the second semi final's match is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the second semi final's match is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_11_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
call SetUnitPositionLocFacingLocBJ(udg_units06[2],GetRandomLocInRect(udg_rect103),GetRectCenter(udg_rect98))
call SetUnitInvulnerable(udg_units06[2],true)
call ConditionalTriggerExecute(udg_trigger47)
call TriggerExecute(udg_trigger34)
endfunction
function Trig_Tournament_Finish_Round_Finals_Func019001 takes nothing returns boolean
return(GetTriggerUnit()==udg_units06[1])
endfunction
function Trig_Tournament_Finish_Round_Finals_Func019002 takes nothing returns boolean
return(GetTriggerUnit()==udg_units06[2])
endfunction
function Trig_Tournament_Finish_Round_Finals_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Tournament_Finish_Round_Finals_Func019001(),Trig_Tournament_Finish_Round_Finals_Func019002()))
endfunction
function Trig_Tournament_Finish_Round_Finals_Func003001 takes nothing returns boolean
return(udg_unit13==udg_units06[2])
endfunction
function Trig_Tournament_Finish_Round_Finals_Func010001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetKillingUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_Finals_Func011001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01P'))
endfunction
function Trig_Tournament_Finish_Round_Finals_Func015C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit14,'I01P')))
endfunction
function Trig_Tournament_Finish_Round_Finals_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit13=GetTriggerUnit()
if(Trig_Tournament_Finish_Round_Finals_Func003001())then
set udg_unit14=udg_units06[1]
else
set udg_unit14=udg_units06[2]
endif
set udg_units06[1]=null
set udg_units06[2]=null
call SetUnitFacingToFaceLocTimed(udg_unit14,GetRectCenter(udg_rect116),0)
call PauseUnit(udg_unit14,true)
call SetUnitLifePercentBJ(udg_unit14,100)
call SetUnitManaPercentBJ(udg_unit14,100)
if(Trig_Tournament_Finish_Round_Finals_Func010001())then
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the Tournament is "+GetUnitName(GetKillingUnit())))
else
call DisplayTimedTextToForce(udg_force06,4.00,("Winner of the Tournament is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
if(Trig_Tournament_Finish_Round_Finals_Func011001())then
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetUnitName(udg_unit13)))
else
call DisplayTimedTextToForce(udg_force06,3.00,("Better luck next time "+GetPlayerName(GetOwningPlayer(udg_unit13))))
endif
set udg_unit18=udg_unit14
call TriggerExecute(udg_trigger612)
call UnitAddItemByIdSwapped('I01Q',udg_unit14)
if(Trig_Tournament_Finish_Round_Finals_Func015C())then
call SetUnitPositionLoc(udg_unit14,GetRectCenter(udg_rect97))
else
call SetUnitPositionLoc(udg_unit14,GetRectCenter(udg_rect102))
call PauseUnit(udg_unit14,false)
endif
set udg_unit13=udg_unit14
call ConditionalTriggerExecute(udg_trigger47)
call ConditionalTriggerExecute(udg_trigger48)
endfunction
function Trig_Tournament_Ally_Sorter_Func002Func002C takes nothing returns boolean
return((GetOwningPlayer(udg_unit13)==Player(0)))or((GetOwningPlayer(udg_unit13)==Player(1)))or((GetOwningPlayer(udg_unit13)==Player(2)))or((GetOwningPlayer(udg_unit13)==Player(3)))or((GetOwningPlayer(udg_unit13)==Player(5)))or((GetOwningPlayer(udg_unit13)==Player(6)))
endfunction
function Trig_Tournament_Ally_Sorter_Func002C takes nothing returns boolean
return(Trig_Tournament_Ally_Sorter_Func002Func002C())
endfunction
function Trig_Tournament_Ally_Sorter_Func003Func009C takes nothing returns boolean
return((GetOwningPlayer(udg_unit13)==Player(4)))or((GetOwningPlayer(udg_unit13)==Player(7)))or((GetOwningPlayer(udg_unit13)==Player(8)))or((GetOwningPlayer(udg_unit13)==Player(9)))or((GetOwningPlayer(udg_unit13)==Player(10)))or((GetOwningPlayer(udg_unit13)==Player(11)))
endfunction
function Trig_Tournament_Ally_Sorter_Func003C takes nothing returns boolean
return(Trig_Tournament_Ally_Sorter_Func003Func009C())
endfunction
function Trig_Tournament_Ally_Sorter_Func004001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit13)==Player(14))
endfunction
function Trig_Tournament_Ally_Sorter_Func007Func001Func001C takes nothing returns boolean
return((GetUnitTypeId(GetEnumUnit())=='H01J'))or((GetUnitTypeId(GetEnumUnit())=='n01Z'))or((GetUnitTypeId(GetEnumUnit())=='h00B'))or((GetUnitTypeId(GetEnumUnit())=='o00R'))or((GetUnitTypeId(GetEnumUnit())=='o00S'))or((GetUnitTypeId(GetEnumUnit())=='O00T'))or((GetUnitTypeId(GetEnumUnit())=='O00U'))or((GetUnitTypeId(GetEnumUnit())=='O00V'))or((GetUnitTypeId(GetEnumUnit())=='O00W'))or((GetUnitTypeId(GetEnumUnit())=='O00X'))or((IsUnitIllusion(GetEnumUnit())))
endfunction
function Trig_Tournament_Ally_Sorter_Func007Func001C takes nothing returns boolean
return(Trig_Tournament_Ally_Sorter_Func007Func001Func001C())
endfunction
function Trig_Tournament_Ally_Sorter_Func007A takes nothing returns nothing
if(Trig_Tournament_Ally_Sorter_Func007Func001C())then
call RemoveUnit(GetEnumUnit())
endif
endfunction
function Trig_Tournament_Ally_Sorter_Actions takes nothing returns nothing
call ForceRemovePlayer(udg_force06,GetOwningPlayer(udg_unit13))
if(Trig_Tournament_Ally_Sorter_Func002C())then
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(0),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(1),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(2),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(3),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(5),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(6),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(15),6)
endif
if(Trig_Tournament_Ally_Sorter_Func003C())then
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(4),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(7),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(8),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(9),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(10),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(11),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(15),6)
endif
if(Trig_Tournament_Ally_Sorter_Func004001())then
call SetPlayerAllianceStateBJ(Player(14),Player(14),3)
endif
call TriggerExecute(udg_trigger21)
set udg_unit13=null
call ForGroupBJ(GetUnitsInRectAll(udg_rect98),function Trig_Tournament_Ally_Sorter_Func007A)
endfunction
function Trig_Tournament_Reset_Func007A takes nothing returns nothing
call SetHeroLevelBJ(GetEnumUnit(),(GetHeroLevel(GetEnumUnit())+3),false)
call ModifyHeroStat(0,GetEnumUnit(),0,10)
call ModifyHeroStat(1,GetEnumUnit(),0,10)
call ModifyHeroStat(2,GetEnumUnit(),0,10)
endfunction
function Trig_Tournament_Reset_Actions takes nothing returns nothing
call ForceClear(udg_force06)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units04[bj_forLoopAIndex]=null
call DestroyFogModifier(udg_fogmodifiers03[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units05[bj_forLoopAIndex]=null
set udg_units06[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_units07[bj_forLoopAIndex]=null
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer08=0
call TriggerSleepAction(480.00)
call ForGroupBJ(GetUnitsInRectAll(udg_rect97),function Trig_Tournament_Reset_Func007A)
call TriggerExecute(udg_trigger19)
endfunction
function Trig_Tourney_Hero_dies_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I01P')))
endfunction
function Trig_Tourney_Hero_dies_Actions takes nothing returns nothing
call TriggerSleepAction(2.00)
call SetUnitOwner(GetTriggerUnit(),Player(7),false)
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect97),false)
call SetUnitOwner(GetTriggerUnit(),Player(14),false)
call ModifyHeroStat(0,GetTriggerUnit(),0,(GetHeroStatBJ(0,GetKillingUnit(),false)/3))
call ModifyHeroStat(1,GetTriggerUnit(),0,(GetHeroStatBJ(1,GetKillingUnit(),false)/3))
call ModifyHeroStat(2,GetTriggerUnit(),0,(GetHeroStatBJ(2,GetKillingUnit(),false)/3))
call SetUnitInvulnerable(GetTriggerUnit(),true)
endfunction
function Trig_Tourny_Player_Hero_dies_Func003C takes nothing returns boolean
return((GetDyingUnit()==udg_unit31))or((GetDyingUnit()==udg_unit26))or((GetDyingUnit()==udg_unit93))or((GetDyingUnit()==udg_unit92))or((GetDyingUnit()==udg_unit91))or((GetDyingUnit()==udg_unit27))or((GetDyingUnit()==udg_unit82))or((GetDyingUnit()==udg_unit32))or((GetDyingUnit()==udg_unit30))or((GetDyingUnit()==udg_unit45))or((GetDyingUnit()==udg_unit28))or((GetDyingUnit()==udg_unit83))or((GetDyingUnit()==udg_unit29))or((GetDyingUnit()==udg_unit68))or((GetDyingUnit()==udg_unit85))or((GetDyingUnit()==udg_unit70))or((GetDyingUnit()==udg_unit65))or((GetDyingUnit()==udg_unit71))or((GetDyingUnit()==udg_unit67))or((GetDyingUnit()==udg_unit46))or((GetDyingUnit()==udg_unit77))or((GetDyingUnit()==udg_unit94))or((GetDyingUnit()==udg_unit80))or((GetDyingUnit()==udg_unit76))or((GetDyingUnit()==udg_unit75))or((GetDyingUnit()==udg_unit79))or((GetDyingUnit()==udg_unit43))or((GetDyingUnit()==udg_unit41))or((GetDyingUnit()==udg_unit42))or((GetDyingUnit()==udg_unit52))
endfunction
function Trig_Tourny_Player_Hero_dies_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect98,GetDyingUnit())))and(Trig_Tourny_Player_Hero_dies_Func003C())
endfunction
function Trig_Tourny_Player_Hero_dies_Actions takes nothing returns nothing
call TriggerSleepAction(1.00)
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect102),false)
endfunction
function Trig_AL_Tournament_Revive_Conditions takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02L')))
endfunction
function Trig_AL_Tournament_Revive_Actions takes nothing returns nothing
call TriggerSleepAction(2.00)
call SetUnitOwner(GetTriggerUnit(),Player(7),false)
call ReviveHeroLoc(GetTriggerUnit(),GetRandomLocInRect(udg_rect144),false)
call SetUnitOwner(GetTriggerUnit(),Player(14),false)
call ModifyHeroStat(0,GetTriggerUnit(),0,(GetHeroStatBJ(0,GetKillingUnit(),false)/3))
call ModifyHeroStat(1,GetTriggerUnit(),0,(GetHeroStatBJ(1,GetKillingUnit(),false)/3))
call ModifyHeroStat(2,GetTriggerUnit(),0,(GetHeroStatBJ(2,GetKillingUnit(),false)/3))
call SetUnitInvulnerable(GetTriggerUnit(),true)
call PauseUnit(GetTriggerUnit(),true)
endfunction
function Trig_AL_Tournament_Init_Actions takes nothing returns nothing
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect146),15.00,1,100,0.00,0.00)
call DisplayTextToForce(udg_force01,"TRIGSTR_6680")
call StartTimerBJ(udg_timer17,false,120.00)
set udg_timerdialog14=CreateTimerDialogBJ(bj_lastStartedTimer,"TRIGSTR_6681")
call EnableTrigger(udg_trigger53)
call TriggerSleepAction(120.00)
call DisableTrigger(udg_trigger53)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_fogmodifiers05[bj_forLoopAIndex]=CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,udg_rect148)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyTimerDialog(udg_timerdialog14)
call DisplayTextToForce(udg_force01,"TRIGSTR_6700")
call TriggerSleepAction(4.00)
call DisplayTextToForce(udg_force01,"TRIGSTR_6701")
call TriggerSleepAction(4.00)
call DisplayTextToForce(udg_force01,"TRIGSTR_6702")
call TriggerSleepAction(4.00)
call TriggerExecute(udg_trigger54)
endfunction
function Trig_AL_Tournament_Reg_Func001C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit31))or((GetEnteringUnit()==udg_unit26))or((GetEnteringUnit()==udg_unit93))or((GetEnteringUnit()==udg_unit92))or((GetEnteringUnit()==udg_unit91))or((GetEnteringUnit()==udg_unit27))or((GetEnteringUnit()==udg_unit82))or((GetEnteringUnit()==udg_unit32))or((GetEnteringUnit()==udg_unit30))or((GetEnteringUnit()==udg_unit45))or((GetEnteringUnit()==udg_unit29))or((GetEnteringUnit()==udg_unit28))or((GetEnteringUnit()==udg_unit83))
endfunction
function Trig_AL_Tournament_Reg_Conditions takes nothing returns boolean
return(Trig_AL_Tournament_Reg_Func001C())
endfunction
function Trig_AL_Tournament_Reg_Func003Func002001 takes nothing returns boolean
return(GetEnteringUnit()==udg_unit45)
endfunction
function Trig_AL_Tournament_Reg_Func003C takes nothing returns boolean
return((udg_boolean04==false))
endfunction
function Trig_AL_Tournament_Reg_Func004001 takes nothing returns boolean
return(GetEnteringUnit()==udg_unit91)
endfunction
function Trig_AL_Tournament_Reg_Func005001 takes nothing returns boolean
return(GetEnteringUnit()==udg_unit92)
endfunction
function Trig_AL_Tournament_Reg_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRandomLocInRect(udg_rect144))
if(Trig_AL_Tournament_Reg_Func003C())then
if(Trig_AL_Tournament_Reg_Func003Func002001())then
call PauseTimerBJ(true,udg_timer12)
endif
endif
if(Trig_AL_Tournament_Reg_Func004001())then
call PauseTimerBJ(true,udg_timer14)
endif
if(Trig_AL_Tournament_Reg_Func005001())then
call PauseTimerBJ(true,udg_timer14)
endif
call SetUnitLifePercentBJ(GetEnteringUnit(),100)
call PauseUnit(GetEnteringUnit(),true)
call SetUnitInvulnerable(GetEnteringUnit(),true)
endfunction
function Trig_AL_Tournament_Start_Round_Func001Func001001001 takes nothing returns boolean
return(CountUnitsInGroup(GetUnitsInRectOfPlayer(udg_rect151,GetFilterPlayer()))==1)
endfunction
function Trig_AL_Tournament_Start_Round_Func001Func001A takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetOwningPlayer(GetEnumUnit()),GetEnumPlayer(),0)
endfunction
function Trig_AL_Tournament_Start_Round_Func001A takes nothing returns nothing
call ForForce(GetPlayersMatching(Condition(function Trig_AL_Tournament_Start_Round_Func001Func001001001)),function Trig_AL_Tournament_Start_Round_Func001Func001A)
endfunction
function Trig_AL_Tournament_Start_Round_Func002A takes nothing returns nothing
call SetUnitPositionLocFacingLocBJ(GetEnumUnit(),GetRandomLocInRect(udg_rect152),GetRectCenter(udg_rect144))
endfunction
function Trig_AL_Tournament_Start_Round_Func009A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_AL_Tournament_Start_Round_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectAll(udg_rect151),function Trig_AL_Tournament_Start_Round_Func001A)
call ForGroupBJ(GetUnitsInRectAll(udg_rect151),function Trig_AL_Tournament_Start_Round_Func002A)
call DisplayTextToForce(udg_force01,"TRIGSTR_6707")
call TriggerSleepAction(4.00)
call DisplayTextToForce(udg_force01,"TRIGSTR_6708")
call TriggerSleepAction(1.00)
call DisplayTextToForce(udg_force01,"TRIGSTR_6709")
call TriggerSleepAction(0.25)
call ForGroupBJ(GetUnitsInRectAll(udg_rect145),function Trig_AL_Tournament_Start_Round_Func009A)
call EnableTrigger(udg_trigger57)
call EnableTrigger(udg_trigger56)
call EnableTrigger(udg_trigger55)
endfunction
function Trig_Order_Extras_to_fight_Func001Func001003001002 takes nothing returns boolean
return(GetFilterUnit()!=GetEnumUnit())
endfunction
function Trig_Order_Extras_to_fight_Func001A takes nothing returns nothing
call IssueTargetOrder(GetEnumUnit(),"attack",GroupPickRandomUnit(GetUnitsInRectMatching(udg_rect145,Condition(function Trig_Order_Extras_to_fight_Func001Func001003001002))))
endfunction
function Trig_Order_Extras_to_fight_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rect145,Player(14)),function Trig_Order_Extras_to_fight_Func001A)
endfunction
function Trig_AL_Tournament_Hero_dies_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect145,GetTriggerUnit())))
endfunction
function Trig_AL_Tournament_Hero_dies_Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(GetTriggerUnit(),'I02L')==false))
endfunction
function Trig_AL_Tournament_Hero_dies_Actions takes nothing returns nothing
if(Trig_AL_Tournament_Hero_dies_Func001C())then
call ReviveHeroLoc(GetTriggerUnit(),GetRectCenter(udg_rect147),false)
endif
call DisplayTextToForce(udg_force01,("|cff9999aaGrand Kai|r: Better luck next time "+GetHeroProperName(GetTriggerUnit())))
set udg_unit13=GetTriggerUnit()
call ConditionalTriggerExecute(udg_trigger47)
endfunction
function Trig_AL_Tournament_Finish_Round_Conditions takes nothing returns boolean
return((CountUnitsInGroup(GetUnitsInRectAll(udg_rect145))<=1))
endfunction
function Trig_AL_Tournament_Finish_Round_Func006002001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_AL_Tournament_Finish_Round_Func019C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit21,'I02L')))
endfunction
function Trig_AL_Tournament_Finish_Round_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger55)
call DisableTrigger(udg_trigger56)
set udg_unit21=GroupPickRandomUnit(GetUnitsInRectMatching(udg_rect145,Condition(function Trig_AL_Tournament_Finish_Round_Func006002001002)))
call SetUnitLifePercentBJ(udg_unit21,100)
call SetUnitManaPercentBJ(udg_unit21,100)
call DisplayTextToForce(udg_force01,("|cff9999aaGrand Kai|r: Congratulations to "+GetHeroProperName(udg_unit21)))
call TriggerSleepAction(3.00)
call DisplayTextToForce(udg_force01,"TRIGSTR_6711")
call TriggerSleepAction(3.00)
call DisplayTextToForce(udg_force01,"TRIGSTR_6712")
call TriggerSleepAction(3.00)
call DisplayTextToForce(udg_force01,"TRIGSTR_6713")
set udg_unit18=udg_unit21
call TriggerExecute(udg_trigger612)
call UnitAddItemByIdSwapped('I01Q',udg_unit21)
if(Trig_AL_Tournament_Finish_Round_Func019C())then
call SetUnitPositionLoc(udg_unit21,GetRandomLocInRect(udg_rect144))
else
call SetUnitPositionLoc(udg_unit21,GetRectCenter(udg_rect147))
endif
set udg_unit13=udg_unit21
call ConditionalTriggerExecute(udg_trigger58)
call ConditionalTriggerExecute(udg_trigger59)
endfunction
function Trig_AL_Tournament_Ally_Sorter_Func001Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit13)==Player(0)))or((GetOwningPlayer(udg_unit13)==Player(1)))or((GetOwningPlayer(udg_unit13)==Player(2)))or((GetOwningPlayer(udg_unit13)==Player(3)))or((GetOwningPlayer(udg_unit13)==Player(5)))or((GetOwningPlayer(udg_unit13)==Player(6)))
endfunction
function Trig_AL_Tournament_Ally_Sorter_Func001C takes nothing returns boolean
return(Trig_AL_Tournament_Ally_Sorter_Func001Func001C())
endfunction
function Trig_AL_Tournament_Ally_Sorter_Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit13)==Player(14))
endfunction
function Trig_AL_Tournament_Ally_Sorter_Func005Func001Func001C takes nothing returns boolean
return((GetUnitTypeId(GetEnumUnit())=='n01Z'))or((GetUnitTypeId(GetEnumUnit())=='h00B'))or((GetUnitTypeId(GetEnumUnit())=='o00R'))or((GetUnitTypeId(GetEnumUnit())=='o00S'))or((IsUnitIllusion(GetEnumUnit())))
endfunction
function Trig_AL_Tournament_Ally_Sorter_Func005Func001C takes nothing returns boolean
return(Trig_AL_Tournament_Ally_Sorter_Func005Func001Func001C())
endfunction
function Trig_AL_Tournament_Ally_Sorter_Func005A takes nothing returns nothing
if(Trig_AL_Tournament_Ally_Sorter_Func005Func001C())then
call RemoveUnit(GetEnumUnit())
endif
endfunction
function Trig_AL_Tournament_Ally_Sorter_Actions takes nothing returns nothing
if(Trig_AL_Tournament_Ally_Sorter_Func001C())then
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(0),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(1),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(2),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(3),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(5),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(6),3)
call SetPlayerAllianceStateBJ(GetOwningPlayer(udg_unit13),Player(15),6)
endif
if(Trig_AL_Tournament_Ally_Sorter_Func002001())then
call SetPlayerAllianceStateBJ(Player(14),Player(14),3)
endif
call TriggerExecute(udg_trigger21)
set udg_unit13=null
call ForGroupBJ(GetUnitsInRectAll(udg_rect145),function Trig_AL_Tournament_Ally_Sorter_Func005A)
endfunction
function Trig_AL_Tournament_Reset_Func003A takes nothing returns nothing
call SetHeroLevelBJ(GetEnumUnit(),(GetHeroLevel(GetEnumUnit())+3),false)
endfunction
function Trig_AL_Tournament_Reset_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyFogModifier(udg_fogmodifiers05[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(560.00)
call ForGroupBJ(GetUnitsInRectAll(udg_rect151),function Trig_AL_Tournament_Reset_Func003A)
call TriggerExecute(udg_trigger52)
endfunction
function Trig_Gain_Neutral_Unit_Func001C takes nothing returns boolean
return((GetOwningPlayer(GetDyingUnit())==Player(12)))or((GetOwningPlayer(GetDyingUnit())==Player(14)))
endfunction
function Trig_Gain_Neutral_Unit_Conditions takes nothing returns boolean
return(Trig_Gain_Neutral_Unit_Func001C())and((IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==false))and((GetUnitTypeId(GetKillingUnit())!='H01Z'))
endfunction
function Trig_Gain_Neutral_Unit_Func004002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Gain_Neutral_Unit_Func004002002002 takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==1)
endfunction
function Trig_Gain_Neutral_Unit_Func004002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Gain_Neutral_Unit_Func004002002001(),Trig_Gain_Neutral_Unit_Func004002002002())
endfunction
function Trig_Gain_Neutral_Unit_Func006Func001Func001C takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='n003'))or((GetUnitTypeId(GetDyingUnit())=='n004'))
endfunction
function Trig_Gain_Neutral_Unit_Func006Func001Func002C takes nothing returns boolean
return((GetRandomInt(1,udg_integer14)==1))
endfunction
function Trig_Gain_Neutral_Unit_Func006Func001Func003C takes nothing returns boolean
return((GetRandomInt(1,(2*udg_integer14))==1))
endfunction
function Trig_Gain_Neutral_Unit_Func006Func001C takes nothing returns boolean
return(Trig_Gain_Neutral_Unit_Func006Func001Func001C())
endfunction
function Trig_Gain_Neutral_Unit_Func006A takes nothing returns nothing
if(Trig_Gain_Neutral_Unit_Func006Func001C())then
if(Trig_Gain_Neutral_Unit_Func006Func001Func003C())then
call ModifyHeroStat(0,GetEnumUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*I2R(GetUnitFoodMade(GetDyingUnit())))))
call ModifyHeroStat(1,GetEnumUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*I2R(GetUnitFoodMade(GetDyingUnit())))))
call ModifyHeroStat(2,GetEnumUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*I2R(GetUnitFoodMade(GetDyingUnit())))))
endif
else
if(Trig_Gain_Neutral_Unit_Func006Func001Func002C())then
call ModifyHeroStat(0,GetEnumUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*I2R(GetUnitFoodMade(GetDyingUnit())))))
call ModifyHeroStat(1,GetEnumUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*I2R(GetUnitFoodMade(GetDyingUnit())))))
call ModifyHeroStat(2,GetEnumUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*I2R(GetUnitFoodMade(GetDyingUnit())))))
endif
endif
endfunction
function Trig_Gain_Neutral_Unit_Func008C takes nothing returns boolean
return((GetOwningPlayer(GetKillingUnit())==Player(8)))and((udg_unit20!=null))and((GetOwningPlayer(udg_unit20)!=Player(8)))
endfunction
function Trig_Gain_Neutral_Unit_Actions takes nothing returns nothing
set udg_group05=GetUnitsOfPlayerMatching(GetOwningPlayer(GetKillingUnit()),Condition(function Trig_Gain_Neutral_Unit_Func004002002))
set udg_integer14=CountUnitsInGroup(udg_group05)
call ForGroupBJ(udg_group05,function Trig_Gain_Neutral_Unit_Func006A)
call DestroyGroup(udg_group05)
if(Trig_Gain_Neutral_Unit_Func008C())then
call ModifyHeroStat(0,udg_unit20,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(1,udg_unit20,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(2,udg_unit20,0,GetUnitFoodMade(GetDyingUnit()))
endif
endfunction
function Trig_Gain_Saga_Hero_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetDyingUnit())==Player(14)))and((IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)))and((UnitHasItemOfTypeBJ(GetDyingUnit(),'I01P')==false))and((UnitHasItemOfTypeBJ(GetDyingUnit(),'I02L')==false))
endfunction
function Trig_Gain_Saga_Hero_Func005002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Gain_Saga_Hero_Func005002002002 takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==1)
endfunction
function Trig_Gain_Saga_Hero_Func005002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Gain_Saga_Hero_Func005002002001(),Trig_Gain_Saga_Hero_Func005002002002())
endfunction
function Trig_Gain_Saga_Hero_Func007Func001C takes nothing returns boolean
return((GetRandomInt(1,udg_integer14)==1))
endfunction
function Trig_Gain_Saga_Hero_Func007A takes nothing returns nothing
if(Trig_Gain_Saga_Hero_Func007Func001C())then
call ModifyHeroStat(0,GetEnumUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*(5.00+(I2R(GetUnitFoodMade(GetDyingUnit()))*2.00)))))
call ModifyHeroStat(1,GetEnumUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*(5.00+(I2R(GetUnitFoodMade(GetDyingUnit()))*2.00)))))
call ModifyHeroStat(2,GetEnumUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*(5.00+(I2R(GetUnitFoodMade(GetDyingUnit()))*2.00)))))
endif
endfunction
function Trig_Gain_Saga_Hero_Func009C takes nothing returns boolean
return((GetOwningPlayer(GetKillingUnit())==Player(8)))and((udg_unit20!=null))and((GetOwningPlayer(udg_unit20)!=Player(8)))
endfunction
function Trig_Gain_Saga_Hero_Actions takes nothing returns nothing
set udg_group05=GetUnitsOfPlayerMatching(GetOwningPlayer(GetKillingUnit()),Condition(function Trig_Gain_Saga_Hero_Func005002002))
set udg_integer14=CountUnitsInGroup(udg_group05)
call ForGroupBJ(udg_group05,function Trig_Gain_Saga_Hero_Func007A)
call DestroyGroup(udg_group05)
if(Trig_Gain_Saga_Hero_Func009C())then
call ModifyHeroStat(0,udg_unit20,0,(5+(GetUnitFoodMade(GetDyingUnit())*2)))
call ModifyHeroStat(1,udg_unit20,0,(5+(GetUnitFoodMade(GetDyingUnit())*2)))
call ModifyHeroStat(2,udg_unit20,0,(5+(GetUnitFoodMade(GetDyingUnit())*2)))
endif
endfunction
function Trig_Gain_Exp_Henchmen_Func003C takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='n01O'))or((GetUnitTypeId(GetDyingUnit())=='n01Z'))or((GetUnitTypeId(GetDyingUnit())=='n022'))or((GetUnitTypeId(GetDyingUnit())=='o00D'))or((GetUnitTypeId(GetDyingUnit())=='h01I'))or((GetUnitTypeId(GetDyingUnit())=='z003'))or((GetDyingUnit()==udg_units03[2]))or((GetDyingUnit()==udg_units03[3]))or((GetDyingUnit()==udg_units03[4]))or((GetDyingUnit()==udg_units03[5]))
endfunction
function Trig_Gain_Exp_Henchmen_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetDyingUnit())==Player(14)))and(Trig_Gain_Exp_Henchmen_Func003C())
endfunction
function Trig_Gain_Exp_Henchmen_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetDyingUnit())
call CreateItemLoc('I023',udg_location07)
call RemoveLocation(udg_location07)
endfunction
function Trig_Gain_Neutral_Unit_Fuse_Func001C takes nothing returns boolean
return((GetOwningPlayer(GetKillingUnit())==Player(0)))or((GetOwningPlayer(GetKillingUnit())==Player(1)))
endfunction
function Trig_Gain_Neutral_Unit_Fuse_Func003C takes nothing returns boolean
return((GetOwningPlayer(udg_unit92)==Player(0)))or((GetOwningPlayer(udg_unit93)==Player(1)))
endfunction
function Trig_Gain_Neutral_Unit_Fuse_Func004C takes nothing returns boolean
return((GetOwningPlayer(GetDyingUnit())==Player(12)))or((GetOwningPlayer(GetDyingUnit())==Player(14)))
endfunction
function Trig_Gain_Neutral_Unit_Fuse_Conditions takes nothing returns boolean
return(Trig_Gain_Neutral_Unit_Fuse_Func001C())and(Trig_Gain_Neutral_Unit_Fuse_Func003C())and(Trig_Gain_Neutral_Unit_Fuse_Func004C())and((IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==false))
endfunction
function Trig_Gain_Neutral_Unit_Fuse_Func002Func001C takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='n003'))or((GetUnitTypeId(GetDyingUnit())=='n004'))
endfunction
function Trig_Gain_Neutral_Unit_Fuse_Func002Func008C takes nothing returns boolean
return((GetRandomInt(1,2)==2))
endfunction
function Trig_Gain_Neutral_Unit_Fuse_Func002C takes nothing returns boolean
return(Trig_Gain_Neutral_Unit_Fuse_Func002Func001C())
endfunction
function Trig_Gain_Neutral_Unit_Fuse_Actions takes nothing returns nothing
if(Trig_Gain_Neutral_Unit_Fuse_Func002C())then
if(Trig_Gain_Neutral_Unit_Fuse_Func002Func008C())then
call ModifyHeroStat(0,udg_unit31,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(1,udg_unit31,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(2,udg_unit31,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(0,udg_unit26,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(1,udg_unit26,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(2,udg_unit26,0,GetUnitFoodMade(GetDyingUnit()))
endif
else
call ModifyHeroStat(0,udg_unit31,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(1,udg_unit31,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(2,udg_unit31,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(0,udg_unit26,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(1,udg_unit26,0,GetUnitFoodMade(GetDyingUnit()))
call ModifyHeroStat(2,udg_unit26,0,GetUnitFoodMade(GetDyingUnit()))
endif
endfunction
function Trig_Saga_Items_Func001C takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I021'))or((GetItemTypeId(GetManipulatedItem())=='I02F'))or((GetItemTypeId(GetManipulatedItem())=='I02G'))or((GetItemTypeId(GetManipulatedItem())=='I02C'))or((GetItemTypeId(GetManipulatedItem())=='I02H'))or((GetItemTypeId(GetManipulatedItem())=='I02D'))or((GetItemTypeId(GetManipulatedItem())=='I02I'))
endfunction
function Trig_Saga_Items_Conditions takes nothing returns boolean
return(Trig_Saga_Items_Func001C())
endfunction
function Trig_Saga_Items_Actions takes nothing returns nothing
call ModifyHeroStat(0,GetManipulatingUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]*(I2R(GetItemLevel(GetManipulatedItem()))*20.00))))
call ModifyHeroStat(1,GetManipulatingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]*(I2R(GetItemLevel(GetManipulatedItem()))*20.00))))
call ModifyHeroStat(2,GetManipulatingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]*(I2R(GetItemLevel(GetManipulatedItem()))*20.00))))
endfunction
function Trig_Candy_Items_Func001C takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='tpow'))or((GetItemTypeId(GetManipulatedItem())=='I00V'))or((GetItemTypeId(GetManipulatedItem())=='I00W'))
endfunction
function Trig_Candy_Items_Conditions takes nothing returns boolean
return(Trig_Candy_Items_Func001C())
endfunction
function Trig_Candy_Items_Actions takes nothing returns nothing
call ModifyHeroStat(0,GetManipulatingUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]*(I2R(GetItemLevel(GetManipulatedItem()))*3.00))))
call ModifyHeroStat(1,GetManipulatingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]*(I2R(GetItemLevel(GetManipulatedItem()))*3.00))))
call ModifyHeroStat(2,GetManipulatingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]*(I2R(GetItemLevel(GetManipulatedItem()))*3.00))))
endfunction
function Trig_Use_Item_Func001C takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I01Q'))or((GetItemTypeId(GetManipulatedItem())=='I026'))
endfunction
function Trig_Use_Item_Conditions takes nothing returns boolean
return(Trig_Use_Item_Func001C())
endfunction
function Trig_Use_Item_Actions takes nothing returns nothing
call SetHeroLevelBJ(GetManipulatingUnit(),(GetHeroLevel(GetManipulatingUnit())+GetItemLevel(GetManipulatedItem())),true)
call ModifyHeroStat(0,GetManipulatingUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]*(I2R(GetItemLevel(GetManipulatedItem()))*50.00))))
call ModifyHeroStat(1,GetManipulatingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]*(I2R(GetItemLevel(GetManipulatedItem()))*50.00))))
call ModifyHeroStat(2,GetManipulatingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetManipulatingUnit())))]*(I2R(GetItemLevel(GetManipulatedItem()))*50.00))))
endfunction
function Trig_Bubbles_spawn_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_Bubbles_spawn_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n003',Player(14),GetRectCenter(udg_rect07),GetUnitFacing(GetTriggerUnit()))
endfunction
function Trig_Gregory_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_Gregory_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n004',Player(14),GetRectCenter(udg_rect39),GetUnitFacing(GetTriggerUnit()))
endfunction
function Trig_Yamcha_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_Yamcha_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'n01W',Player(14),GetRectCenter(udg_rect117),GetUnitFacing(GetTriggerUnit()))
call TriggerSleepAction(0.50)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Olibu_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_Olibu_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'H027',Player(14),GetRectCenter(udg_rect149),GetUnitFacing(GetTriggerUnit()))
call TriggerExecute(udg_trigger127)
call SetHeroLevelBJ(bj_lastCreatedUnit,15,false)
call TriggerSleepAction(2.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Pikkon_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_Pikkon_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'O010',Player(14),GetRectCenter(udg_rect150),GetUnitFacing(GetTriggerUnit()))
call TriggerExecute(udg_trigger127)
call SetHeroLevelBJ(bj_lastCreatedUnit,20,false)
call TriggerSleepAction(2.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Goku_Enter_Conditions takes nothing returns boolean
return((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()==udg_unit31))and((GetEnteringUnit()!=udg_unit12))
endfunction
function Trig_Goku_Enter_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect48))
call StartTimerBJ(udg_timer05,false,120.00)
set udg_timerdialog03=CreateTimerDialogBJ(udg_timer05,"TRIGSTR_393")
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog03,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Goku_Enter_again_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()==udg_unit31))and((TimerGetRemaining(udg_timer05)>=1.00))
endfunction
function Trig_Goku_Enter_again_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect48))
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialog03,Player(0))
call PauseTimerBJ(false,udg_timer05)
endfunction
function Trig_Goku_Leaves_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit31))and((TimerGetRemaining(udg_timer05)>=1.00))
endfunction
function Trig_Goku_Leaves_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect26))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog03,Player(0))
call PauseTimerBJ(true,udg_timer05)
endfunction
function Trig_Goku_Time_ends_Func001001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit31))
endfunction
function Trig_Goku_Time_ends_Func001002001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit93))
endfunction
function Trig_Goku_Time_ends_Func001002002001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit92))
endfunction
function Trig_Goku_Time_ends_Func001002002002 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit91))
endfunction
function Trig_Goku_Time_ends_Func001002002 takes nothing returns boolean
return GetBooleanOr(Trig_Goku_Time_ends_Func001002002001(),Trig_Goku_Time_ends_Func001002002002())
endfunction
function Trig_Goku_Time_ends_Func001002 takes nothing returns boolean
return GetBooleanOr(Trig_Goku_Time_ends_Func001002001(),Trig_Goku_Time_ends_Func001002002())
endfunction
function Trig_Goku_Time_ends_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Goku_Time_ends_Func001001(),Trig_Goku_Time_ends_Func001002()))
endfunction
function Trig_Goku_Time_ends_Func002Func006001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit92))
endfunction
function Trig_Goku_Time_ends_Func002Func007001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit91))
endfunction
function Trig_Goku_Time_ends_Func002Func008001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit93))
endfunction
function Trig_Goku_Time_ends_Func002C takes nothing returns boolean
return((RectContainsUnit(udg_rect17,udg_unit31)))
endfunction
function Trig_Goku_Time_ends_Actions takes nothing returns nothing
if(Trig_Goku_Time_ends_Func002C())then
call DestroyTimerDialog(udg_timerdialog03)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect26))
call AddHeroXPSwapped(1000,udg_unit31,false)
call DisableTrigger(udg_trigger73)
else
if(Trig_Goku_Time_ends_Func002Func006001())then
call TriggerExecute(udg_trigger80)
endif
if(Trig_Goku_Time_ends_Func002Func007001())then
call TriggerExecute(udg_trigger82)
endif
if(Trig_Goku_Time_ends_Func002Func008001())then
call TriggerExecute(udg_trigger81)
endif
endif
endfunction
function Trig_Vegeta_Enter_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()==udg_unit26))
endfunction
function Trig_Vegeta_Enter_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect48))
call StartTimerBJ(udg_timer06,false,120.00)
set udg_timerdialog04=CreateTimerDialogBJ(udg_timer06,"TRIGSTR_398")
set bj_forLoopAIndex=3
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog04,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog04,Player(0))
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Vegeta_Enter_Again_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()==udg_unit26))and((TimerGetRemaining(udg_timer06)>=1.00))
endfunction
function Trig_Vegeta_Enter_Again_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
call SetUnitPositionLoc(udg_unit26,GetRectCenter(udg_rect48))
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialog04,Player(1))
call PauseTimerBJ(false,udg_timer06)
endfunction
function Trig_Vegeta_Leaves_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit26))and((TimerGetRemaining(udg_timer06)>=1.00))
endfunction
function Trig_Vegeta_Leaves_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect26))
call TimerDialogDisplay(udg_timerdialog04,false)
call PauseTimerBJ(true,udg_timer06)
endfunction
function Trig_Vegeta_Time_Ends_Func001001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit26))
endfunction
function Trig_Vegeta_Time_Ends_Func001002001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit93))
endfunction
function Trig_Vegeta_Time_Ends_Func001002002001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit92))
endfunction
function Trig_Vegeta_Time_Ends_Func001002002002 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit91))
endfunction
function Trig_Vegeta_Time_Ends_Func001002002 takes nothing returns boolean
return GetBooleanOr(Trig_Vegeta_Time_Ends_Func001002002001(),Trig_Vegeta_Time_Ends_Func001002002002())
endfunction
function Trig_Vegeta_Time_Ends_Func001002 takes nothing returns boolean
return GetBooleanOr(Trig_Vegeta_Time_Ends_Func001002001(),Trig_Vegeta_Time_Ends_Func001002002())
endfunction
function Trig_Vegeta_Time_Ends_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Vegeta_Time_Ends_Func001001(),Trig_Vegeta_Time_Ends_Func001002()))
endfunction
function Trig_Vegeta_Time_Ends_Func002Func006001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit92))
endfunction
function Trig_Vegeta_Time_Ends_Func002Func007001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit91))
endfunction
function Trig_Vegeta_Time_Ends_Func002Func008001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit93))
endfunction
function Trig_Vegeta_Time_Ends_Func002C takes nothing returns boolean
return((RectContainsUnit(udg_rect17,udg_unit26)))
endfunction
function Trig_Vegeta_Time_Ends_Actions takes nothing returns nothing
if(Trig_Vegeta_Time_Ends_Func002C())then
call DestroyTimerDialog(udg_timerdialog04)
call SetUnitPositionLoc(udg_unit26,GetRectCenter(udg_rect26))
call AddHeroXPSwapped(1000,udg_unit26,false)
call DisableTrigger(udg_trigger77)
else
if(Trig_Vegeta_Time_Ends_Func002Func006001())then
call TriggerExecute(udg_trigger80)
endif
if(Trig_Vegeta_Time_Ends_Func002Func007001())then
call TriggerExecute(udg_trigger82)
endif
if(Trig_Vegeta_Time_Ends_Func002Func008001())then
call TriggerExecute(udg_trigger81)
endif
endif
endfunction
function Trig_Gogeta_is_in_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog04)
call DestroyTimerDialog(udg_timerdialog03)
call SetUnitPositionLoc(udg_unit92,GetRectCenter(udg_rect26))
call AddHeroXPSwapped(1000,udg_unit92,false)
call DisableTrigger(udg_trigger77)
call DisableTrigger(udg_trigger73)
endfunction
function Trig_Vegito_is_in_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog04)
call DestroyTimerDialog(udg_timerdialog03)
call SetUnitPositionLoc(udg_unit93,GetRectCenter(udg_rect26))
call AddHeroXPSwapped(1000,udg_unit93,false)
call DisableTrigger(udg_trigger77)
call DisableTrigger(udg_trigger73)
endfunction
function Trig_Fat_Gogeta_is_in_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog04)
call DestroyTimerDialog(udg_timerdialog03)
call SetUnitPositionLoc(udg_unit91,GetRectCenter(udg_rect26))
call DisableTrigger(udg_trigger77)
call DisableTrigger(udg_trigger73)
endfunction
function Trig_Gohan_Enter_Conditions takes nothing returns boolean
return((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()!=udg_unit12))and((GetEnteringUnit()==udg_unit27))
endfunction
function Trig_Gohan_Enter_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect48))
call StartTimerBJ(udg_timer07,false,120.00)
set udg_timerdialog05=CreateTimerDialogBJ(udg_timer07,"TRIGSTR_395")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog05,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=4
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog05,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Gohan_Enter_again_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()==udg_unit27))and((TimerGetRemaining(udg_timer07)>=1.00))
endfunction
function Trig_Gohan_Enter_again_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
call SetUnitPositionLoc(udg_unit27,GetRectCenter(udg_rect48))
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialog05,Player(2))
call PauseTimerBJ(false,udg_timer07)
endfunction
function Trig_Gohan_Leaves_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit27))and((TimerGetRemaining(udg_timer07)>=1.00))
endfunction
function Trig_Gohan_Leaves_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect26))
call TimerDialogDisplay(udg_timerdialog05,false)
call PauseTimerBJ(true,udg_timer07)
endfunction
function Trig_Gohan_Time_ends_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect17,udg_unit27)))
endfunction
function Trig_Gohan_Time_ends_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_unit27,GetRectCenter(udg_rect26))
call AddHeroXPSwapped(1000,udg_unit27,false)
call DestroyTimerDialog(udg_timerdialog05)
call DisableTrigger(udg_trigger84)
endfunction
function Trig_Gotenks_Enter_Func003C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit30))or((GetEnteringUnit()==udg_unit32))or((GetEnteringUnit()==udg_unit45))
endfunction
function Trig_Gotenks_Enter_Conditions takes nothing returns boolean
return((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()!=udg_unit12))and(Trig_Gotenks_Enter_Func003C())
endfunction
function Trig_Gotenks_Enter_Func005Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit30,'I02K')==false))and((udg_unit30!=udg_unit12))
endfunction
function Trig_Gotenks_Enter_Func005Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit32,'I02K')==false))and((udg_unit32!=udg_unit12))
endfunction
function Trig_Gotenks_Enter_Func005C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit45))
endfunction
function Trig_Gotenks_Enter_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_Gotenks_Enter_Func005C())then
call SetUnitPositionLoc(udg_unit45,GetRectCenter(udg_rect48))
else
if(Trig_Gotenks_Enter_Func005Func001C())then
call SetUnitPositionLoc(udg_unit30,GetRectCenter(udg_rect48))
endif
if(Trig_Gotenks_Enter_Func005Func002C())then
call SetUnitPositionLoc(udg_unit32,GetRectCenter(udg_rect48))
endif
endif
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
call StartTimerBJ(udg_timer09,false,120.00)
set udg_timerdialog07=CreateTimerDialogBJ(udg_timer09,"TRIGSTR_001")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog07,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog07,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Gotenks_Enter_again_Func007C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit30))or((GetEnteringUnit()==udg_unit32))or((GetEnteringUnit()==udg_unit45))
endfunction
function Trig_Gotenks_Enter_again_Conditions takes nothing returns boolean
return((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()!=udg_unit12))and(Trig_Gotenks_Enter_again_Func007C())and((TimerGetRemaining(udg_timer09)>=1.00))
endfunction
function Trig_Gotenks_Enter_again_Func004Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit30,'I02K')==false))and((udg_unit30!=udg_unit12))
endfunction
function Trig_Gotenks_Enter_again_Func004Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit32,'I02K')==false))and((udg_unit32!=udg_unit12))
endfunction
function Trig_Gotenks_Enter_again_Func004C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit45))
endfunction
function Trig_Gotenks_Enter_again_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
if(Trig_Gotenks_Enter_again_Func004C())then
call SetUnitPositionLoc(udg_unit45,GetRectCenter(udg_rect48))
else
if(Trig_Gotenks_Enter_again_Func004Func001C())then
call SetUnitPositionLoc(udg_unit30,GetRectCenter(udg_rect48))
endif
if(Trig_Gotenks_Enter_again_Func004Func002C())then
call SetUnitPositionLoc(udg_unit32,GetRectCenter(udg_rect48))
endif
endif
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialog07,Player(3))
call PauseTimerBJ(false,udg_timer09)
endfunction
function Trig_Gotenks_Leaves_Func002C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit30))or((GetEnteringUnit()==udg_unit32))or((GetEnteringUnit()==udg_unit45))
endfunction
function Trig_Gotenks_Leaves_Conditions takes nothing returns boolean
return(Trig_Gotenks_Leaves_Func002C())and((TimerGetRemaining(udg_timer09)>=1.00))
endfunction
function Trig_Gotenks_Leaves_Func001Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit30,'I02K')==false))and((udg_unit30!=udg_unit12))
endfunction
function Trig_Gotenks_Leaves_Func001Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit32,'I02K')==false))and((udg_unit32!=udg_unit12))
endfunction
function Trig_Gotenks_Leaves_Func001C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit45))
endfunction
function Trig_Gotenks_Leaves_Actions takes nothing returns nothing
if(Trig_Gotenks_Leaves_Func001C())then
call SetUnitPositionLoc(udg_unit45,GetRectCenter(udg_rect26))
else
if(Trig_Gotenks_Leaves_Func001Func001C())then
call SetUnitPositionLoc(udg_unit30,GetRectCenter(udg_rect26))
endif
if(Trig_Gotenks_Leaves_Func001Func002C())then
call SetUnitPositionLoc(udg_unit32,GetRectCenter(udg_rect26))
endif
endif
call TimerDialogDisplay(udg_timerdialog07,false)
call PauseTimerBJ(true,udg_timer09)
endfunction
function Trig_Gotenks_Time_Ends_Func001Func001C takes nothing returns boolean
return((RectContainsUnit(udg_rect17,udg_unit45)))
endfunction
function Trig_Gotenks_Time_Ends_Func001Func003C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit30,'I02K')==false))and((udg_unit30!=udg_unit12))
endfunction
function Trig_Gotenks_Time_Ends_Func001Func004C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit32,'I02K')==false))and((udg_unit32!=udg_unit12))
endfunction
function Trig_Gotenks_Time_Ends_Func001Func008001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit32))
endfunction
function Trig_Gotenks_Time_Ends_Func001Func008002 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit30))
endfunction
function Trig_Gotenks_Time_Ends_Func001C takes nothing returns boolean
return(GetBooleanOr(Trig_Gotenks_Time_Ends_Func001Func008001(),Trig_Gotenks_Time_Ends_Func001Func008002()))
endfunction
function Trig_Gotenks_Time_Ends_Actions takes nothing returns nothing
if(Trig_Gotenks_Time_Ends_Func001C())then
call DestroyTimerDialog(udg_timerdialog07)
if(Trig_Gotenks_Time_Ends_Func001Func003C())then
call SetUnitPositionLoc(udg_unit30,GetRectCenter(udg_rect26))
endif
if(Trig_Gotenks_Time_Ends_Func001Func004C())then
call SetUnitPositionLoc(udg_unit32,GetRectCenter(udg_rect26))
endif
call AddHeroXPSwapped(1000,udg_unit30,false)
call AddHeroXPSwapped(1000,udg_unit32,false)
call DisableTrigger(udg_trigger88)
else
if(Trig_Gotenks_Time_Ends_Func001Func001C())then
call DestroyTimerDialog(udg_timerdialog07)
call SetUnitPositionLoc(udg_unit45,GetRectCenter(udg_rect26))
call AddHeroXPSwapped(2000,udg_unit45,false)
call DisableTrigger(udg_trigger88)
endif
endif
endfunction
function Trig_Piccolo_Enter_Func011C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit28))or((GetEnteringUnit()==udg_unit83))
endfunction
function Trig_Piccolo_Enter_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=35))and(Trig_Piccolo_Enter_Func011C())
endfunction
function Trig_Piccolo_Enter_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect48))
call StartTimerBJ(udg_timer10,false,120.00)
set udg_timerdialog08=CreateTimerDialogBJ(udg_timer10,"TRIGSTR_379")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog08,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=8
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog08,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Piccolo_Enter_Again_Func007C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit28))or((GetEnteringUnit()==udg_unit83))
endfunction
function Trig_Piccolo_Enter_Again_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=35))and((TimerGetRemaining(udg_timer10)>=1.00))and(Trig_Piccolo_Enter_Again_Func007C())
endfunction
function Trig_Piccolo_Enter_Again_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect48))
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialog08,Player(6))
call PauseTimerBJ(false,udg_timer10)
endfunction
function Trig_Piccolo_Leaves_Func001C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit28))or((GetEnteringUnit()==udg_unit83))
endfunction
function Trig_Piccolo_Leaves_Conditions takes nothing returns boolean
return(Trig_Piccolo_Leaves_Func001C())and((TimerGetRemaining(udg_timer10)>=1.00))
endfunction
function Trig_Piccolo_Leaves_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect26))
call TimerDialogDisplay(udg_timerdialog08,false)
call PauseTimerBJ(true,udg_timer10)
endfunction
function Trig_Piccolo_Time_Ends_Func001C takes nothing returns boolean
return((RectContainsUnit(udg_rect17,udg_unit28)))or((RectContainsUnit(udg_rect17,udg_unit83)))
endfunction
function Trig_Piccolo_Time_Ends_Conditions takes nothing returns boolean
return(Trig_Piccolo_Time_Ends_Func001C())
endfunction
function Trig_Piccolo_Time_Ends_Func003C takes nothing returns boolean
return((GetOwningPlayer(udg_unit28)==Player(6)))
endfunction
function Trig_Piccolo_Time_Ends_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog08)
if(Trig_Piccolo_Time_Ends_Func003C())then
call SetUnitPositionLoc(udg_unit28,GetRectCenter(udg_rect26))
else
call SetUnitPositionLoc(udg_unit83,GetRectCenter(udg_rect26))
endif
call AddHeroXPSwapped(1000,udg_unit28,false)
call DisableTrigger(udg_trigger92)
endfunction
function Trig_FTrunks_Enter_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()==udg_unit29))
endfunction
function Trig_FTrunks_Enter_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect48),0)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect48))
call StartTimerBJ(udg_timer08,false,120.00)
set udg_timerdialog06=CreateTimerDialogBJ(udg_timer08,"TRIGSTR_380")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog06,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=7
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog06,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_FTrunks_Enter_Again_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=35))and((GetEnteringUnit()==udg_unit29))and((TimerGetRemaining(udg_timer08)>=1.00))
endfunction
function Trig_FTrunks_Enter_Again_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_unit29,GetRectCenter(udg_rect48))
call TimerDialogDisplayForPlayerBJ(true,udg_timerdialog06,Player(5))
call PauseTimerBJ(false,udg_timer08)
endfunction
function Trig_FTrunks_Leaves_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit29))and((TimerGetRemaining(udg_timer08)>=1.00))
endfunction
function Trig_FTrunks_Leaves_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect26))
call TimerDialogDisplay(udg_timerdialog06,false)
call PauseTimerBJ(true,udg_timer08)
endfunction
function Trig_FTrunks_Time_Ends_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect17,udg_unit29)))
endfunction
function Trig_FTrunks_Time_Ends_Actions takes nothing returns nothing
call DestroyTimerDialog(udg_timerdialog06)
call SetUnitPositionLoc(udg_unit29,GetRectCenter(udg_rect26))
call AddHeroXPSwapped(1000,udg_unit29,false)
call DisableTrigger(udg_trigger96)
endfunction
function Trig_Less_than_35_Func005Func004001 takes nothing returns boolean
return(GetEnteringUnit()==udg_unit30)
endfunction
function Trig_Less_than_35_Func005Func004002 takes nothing returns boolean
return(GetEnteringUnit()==udg_unit32)
endfunction
function Trig_Less_than_35_Func005C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit31))or((GetEnteringUnit()==udg_unit26))or((GetEnteringUnit()==udg_unit27))or(GetBooleanOr(Trig_Less_than_35_Func005Func004001(),Trig_Less_than_35_Func005Func004002()))or((GetEnteringUnit()==udg_unit29))or((GetEnteringUnit()==udg_unit28))or((GetEnteringUnit()==udg_unit83))
endfunction
function Trig_Less_than_35_Conditions takes nothing returns boolean
return((GetUnitLevel(GetEnteringUnit())<35))and((GetEnteringUnit()!=udg_unit12))and(Trig_Less_than_35_Func005C())
endfunction
function Trig_Less_than_35_Actions takes nothing returns nothing
call DisplayTextToForce(GetForceOfPlayer(GetOwningPlayer(GetTriggerUnit())),"TRIGSTR_6720")
endfunction
function Trig_Bonus_Goku_Gohan_Func018001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit31))
endfunction
function Trig_Bonus_Goku_Gohan_Func018002 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit27))
endfunction
function Trig_Bonus_Goku_Gohan_Conditions takes nothing returns boolean
return(GetBooleanAnd(Trig_Bonus_Goku_Gohan_Func018001(),Trig_Bonus_Goku_Gohan_Func018002()))
endfunction
function Trig_Bonus_Goku_Gohan_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],5.00,"TRIGSTR_381")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],5.00,"TRIGSTR_382")
call PolledWait(2)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddHeroXPSwapped(200,udg_unit27,true)
call ModifyHeroStat(0,udg_unit27,0,10)
call ModifyHeroStat(1,udg_unit27,0,10)
call ModifyHeroStat(2,udg_unit27,0,10)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddHeroXPSwapped(200,udg_unit31,true)
call ModifyHeroStat(0,udg_unit31,0,10)
call ModifyHeroStat(1,udg_unit31,0,10)
call ModifyHeroStat(2,udg_unit31,0,10)
call TriggerSleepAction(2.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Bonus_Vegeta_FTrunks_Func018001 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit31))
endfunction
function Trig_Bonus_Vegeta_FTrunks_Func018002 takes nothing returns boolean
return(RectContainsUnit(udg_rect17,udg_unit27))
endfunction
function Trig_Bonus_Vegeta_FTrunks_Conditions takes nothing returns boolean
return(GetBooleanAnd(Trig_Bonus_Vegeta_FTrunks_Func018001(),Trig_Bonus_Vegeta_FTrunks_Func018002()))
endfunction
function Trig_Bonus_Vegeta_FTrunks_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],5.00,"TRIGSTR_383")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],5.00,"TRIGSTR_384")
call TriggerSleepAction(2)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit29),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddHeroXPSwapped(200,udg_unit26,true)
call ModifyHeroStat(0,udg_unit26,0,10)
call ModifyHeroStat(1,udg_unit26,0,10)
call ModifyHeroStat(2,udg_unit26,0,10)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddHeroXPSwapped(200,udg_unit29,true)
call ModifyHeroStat(0,udg_unit29,0,10)
call ModifyHeroStat(1,udg_unit29,0,10)
call ModifyHeroStat(2,udg_unit29,0,10)
call TriggerSleepAction(2.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Exploit_protection_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetEnteringUnit())==Player(14)))
endfunction
function Trig_Exploit_protection_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnteringUnit()),"Abilities\\Spells\\Human\\Polymorph\\PolyMorphDoneGround.mdl")
call TriggerExecute(udg_trigger620)
call RemoveUnit(GetEnteringUnit())
endfunction
function Trig_krillin_spawn_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_krillin_spawn_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'N01G',Player(14),GetRectCenter(udg_rect58),GetUnitFacing(GetTriggerUnit()))
call TriggerExecute(udg_trigger127)
call SetHeroLevelBJ(bj_lastCreatedUnit,3,false)
call TriggerSleepAction(2.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_goku_spawn_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_goku_spawn_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'H005',Player(14),GetRectCenter(udg_rect36),GetUnitFacing(GetTriggerUnit()))
call TriggerExecute(udg_trigger127)
call SetHeroLevelBJ(bj_lastCreatedUnit,15,false)
call TriggerSleepAction(2.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_vegeta_spawn_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_vegeta_spawn_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'E006',Player(14),GetRectCenter(udg_rect111),GetUnitFacing(GetTriggerUnit()))
call TriggerExecute(udg_trigger127)
call SetHeroLevelBJ(bj_lastCreatedUnit,12,false)
call TriggerSleepAction(2.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_ftrunks_spawn_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_ftrunks_spawn_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'H00P',Player(14),GetRectCenter(udg_rect29),GetUnitFacing(GetTriggerUnit()))
call TriggerExecute(udg_trigger127)
call SetHeroLevelBJ(bj_lastCreatedUnit,8,false)
call TriggerSleepAction(2.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_gohan_spawn_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(14)))
endfunction
function Trig_gohan_spawn_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'H00O',Player(14),GetRectCenter(udg_rect34),GetUnitFacing(GetTriggerUnit()))
call TriggerExecute(udg_trigger127)
call SetHeroLevelBJ(bj_lastCreatedUnit,5,false)
call TriggerSleepAction(2.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Dball_Restore_Func002Func001002001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n02B')
endfunction
function Trig_Dball_Restore_Func002Func001002001002002 takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==0)
endfunction
function Trig_Dball_Restore_Func002Func001002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Dball_Restore_Func002Func001002001002001(),Trig_Dball_Restore_Func002Func001002001002002())
endfunction
function Trig_Dball_Restore_Func003002 takes nothing returns nothing
call SetUnitUserData(GetEnumUnit(),0)
endfunction
function Trig_Dball_Restore_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_4108")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_unit18=GroupPickRandomUnit(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Dball_Restore_Func002Func001002001002)))
call SetUnitUserData(udg_unit18,1)
set udg_items01[bj_forLoopAIndex]=CreateItemLoc('I01V',GetUnitLoc(udg_unit18))
call SetItemInvulnerable(bj_lastCreatedItem,true)
call SetItemUserData(udg_items01[bj_forLoopAIndex],bj_forLoopAIndex)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsOfTypeIdAll('n02B'),function Trig_Dball_Restore_Func003002)
call DisableTrigger(udg_trigger116)
call EnableTrigger(udg_trigger115)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Create_Dballs_Func002Func001002001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n02B')
endfunction
function Trig_Create_Dballs_Func002Func001002001002002 takes nothing returns boolean
return(GetUnitUserData(GetFilterUnit())==0)
endfunction
function Trig_Create_Dballs_Func002Func001002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Create_Dballs_Func002Func001002001002001(),Trig_Create_Dballs_Func002Func001002001002002())
endfunction
function Trig_Create_Dballs_Func003002 takes nothing returns nothing
call SetUnitUserData(GetEnumUnit(),0)
endfunction
function Trig_Create_Dballs_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_2960")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_unit18=GroupPickRandomUnit(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Create_Dballs_Func002Func001002001002)))
call SetUnitUserData(udg_unit18,1)
set udg_items01[bj_forLoopAIndex]=CreateItemLoc('I01V',GetUnitLoc(udg_unit18))
call SetItemInvulnerable(bj_lastCreatedItem,true)
call SetItemUserData(udg_items01[bj_forLoopAIndex],bj_forLoopAIndex)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsOfTypeIdAll('n02B'),function Trig_Create_Dballs_Func003002)
call DisableTrigger(udg_trigger116)
call EnableTrigger(udg_trigger117)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Wish_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetTriggerPlayer()),5.00,"TRIGSTR_746")
endfunction
function Trig_Wish_for_Power_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A055'))
endfunction
function Trig_Wish_for_Power_Actions takes nothing returns nothing
local unit udg_unit18
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.00,75.00,0,0)
call CreateNUnitsAtLocFacingLocBJ(1,'z001',Player(15),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),256,GetUnitFacing(GetTriggerUnit())),GetUnitLoc(GetTriggerUnit()))
set udg_unit18=bj_lastCreatedUnit
call TriggerSleepAction(2.00)
call AddSpecialEffectTargetUnitBJ("head",udg_unit18,"Abilities\\Weapons\\VengeanceMissile\\VengeanceMissile.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_2943")
call SetHeroLevelBJ(GetTriggerUnit(),(GetUnitLevel(GetTriggerUnit())+GetRandomInt(5,10)),false)
call ModifyHeroStat(0,GetTriggerUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]*175.00)))
call ModifyHeroStat(1,GetTriggerUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]*175.00)))
call ModifyHeroStat(2,GetTriggerUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]*175.00)))
call TriggerSleepAction(0.60)
call SetItemPositionLoc(udg_item06,GetRectCenter(udg_rect01))
call DisableTrigger(udg_trigger118)
call EnableTrigger(udg_trigger116)
call EnableTrigger(udg_trigger108)
endfunction
function Trig_Revive_Friends_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03P'))
endfunction
function Trig_Revive_Friends_Func008Func003001002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(15))
endfunction
function Trig_Revive_Friends_Func008Func003001002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(12))
endfunction
function Trig_Revive_Friends_Func008Func003001002002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(14))
endfunction
function Trig_Revive_Friends_Func008Func003001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Revive_Friends_Func008Func003001002002001(),Trig_Revive_Friends_Func008Func003001002002002())
endfunction
function Trig_Revive_Friends_Func008Func003001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Revive_Friends_Func008Func003001002001(),Trig_Revive_Friends_Func008Func003001002002())
endfunction
function Trig_Revive_Friends_Func008Func003A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(GetEnumUnit(),GetUnitLoc(GroupPickRandomUnit(GetUnitsOfTypeIdAll('n02B'))))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetUnitLoc(GetEnumUnit()),0.50)
endfunction
function Trig_Revive_Friends_Func008Func006001002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(GetFilterUnit(),'I02K'))
endfunction
function Trig_Revive_Friends_Func008Func006A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect84))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect84),0.50)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetEnumUnit(),'I02K'))
call SetUnitUserData(GetEnumUnit(),0)
endfunction
function Trig_Revive_Friends_Func008Func007C takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(0)))or((GetOwningPlayer(GetTriggerUnit())==Player(1)))or((GetOwningPlayer(GetTriggerUnit())==Player(2)))or((GetOwningPlayer(GetTriggerUnit())==Player(3)))or((GetOwningPlayer(GetTriggerUnit())==Player(5)))or((GetOwningPlayer(GetTriggerUnit())==Player(6)))
endfunction
function Trig_Revive_Friends_Func008C takes nothing returns boolean
return(Trig_Revive_Friends_Func008Func007C())
endfunction
function Trig_Revive_Friends_Actions takes nothing returns nothing
local unit udg_unit18
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\White_mask.blp",100.00,75.00,0,0)
call CreateNUnitsAtLocFacingLocBJ(1,'z001',Player(15),PolarProjectionBJ(GetUnitLoc(GetTriggerUnit()),256,GetUnitFacing(GetTriggerUnit())),GetUnitLoc(GetTriggerUnit()))
set udg_unit18=bj_lastCreatedUnit
call TriggerSleepAction(2.00)
call AddSpecialEffectTargetUnitBJ("head",udg_unit18,"Abilities\\Weapons\\VengeanceMissile\\VengeanceMissile.mdl")
call TriggerExecute(udg_trigger620)
if(Trig_Revive_Friends_Func008C())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_2955")
call TriggerSleepAction(1.30)
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Revive_Friends_Func008Func006001002)),function Trig_Revive_Friends_Func008Func006A)
else
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_2956")
call TriggerSleepAction(1.30)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect45,Condition(function Trig_Revive_Friends_Func008Func003001002)),function Trig_Revive_Friends_Func008Func003A)
endif
call SetItemPositionLoc(udg_item06,GetRectCenter(udg_rect01))
call DisableTrigger(udg_trigger118)
call EnableTrigger(udg_trigger116)
call EnableTrigger(udg_trigger108)
endfunction
function Trig_Dball_Checker_Conditions takes nothing returns boolean
return((GetItemCharges(GetItemOfTypeFromUnitBJ(udg_unit11,'I01V'))==7))
endfunction
function Trig_Dball_Checker_Actions takes nothing returns nothing
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,("All 7 Dragon balls have been collected by "+GetPlayerName(GetOwningPlayer(udg_unit11))))
call SetUnitUserData(GetManipulatingUnit(),0)
set udg_units02[GetItemUserData(GetItemOfTypeFromUnitBJ(udg_unit11,'I01V'))]=null
set udg_booleans01[GetItemUserData(GetItemOfTypeFromUnitBJ(udg_unit11,'I01V'))]=false
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit11,'I01V'))
call UnitAddItem(udg_unit11,udg_item06)
call PlaySoundAtPointBJ(udg_sound07,90.00,GetUnitLoc(udg_unit11),0)
call DisableTrigger(udg_trigger117)
call EnableTrigger(udg_trigger118)
endfunction
function Trig_Pick_up_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I01U'))
endfunction
function Trig_Pick_up_Actions takes nothing returns nothing
set udg_unit11=GetManipulatingUnit()
endfunction
function Trig_Dragon_ball_radar_broken_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I02A'))
endfunction
function Trig_Dragon_ball_radar_broken_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.00,"TRIGSTR_4109")
endfunction
function Trig_Dragon_ball_radar_before_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I02A'))
endfunction
function Trig_Dragon_ball_radar_before_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),5.00,"TRIGSTR_2962")
endfunction
function Trig_Dragon_ball_radar_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I02A'))
endfunction
function Trig_Dragon_ball_radar_Func002Func001Func001C takes nothing returns boolean
return((GetItemUserData(udg_items01[bj_forLoopAIndex])>0))and((GetManipulatingUnit()!=udg_units02[bj_forLoopAIndex]))
endfunction
function Trig_Dragon_ball_radar_Func002Func001C takes nothing returns boolean
return((udg_booleans01[bj_forLoopAIndex]==false))
endfunction
function Trig_Dragon_ball_radar_Actions takes nothing returns nothing
set udg_force04=GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit()))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Dragon_ball_radar_Func002Func001C())then
set udg_location05=GetItemLoc(udg_items01[bj_forLoopAIndex])
call PingMinimapLocForForce(udg_force04,udg_location05,1)
else
if(Trig_Dragon_ball_radar_Func002Func001Func001C())then
set udg_location05=GetUnitLoc(udg_units02[bj_forLoopAIndex])
call PingMinimapLocForForce(udg_force04,udg_location05,1)
call PingMinimapLocForForceEx(udg_force04,udg_location05,1,0,100,0.00,0.00)
endif
endif
call RemoveLocation(udg_location05)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyForce(udg_force04)
endfunction
function Trig_Dragon_ball_radar_all_dballs_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I02A'))
endfunction
function Trig_Dragon_ball_radar_all_dballs_Func001C takes nothing returns boolean
return((IsItemOwned(udg_item06)))
endfunction
function Trig_Dragon_ball_radar_all_dballs_Actions takes nothing returns nothing
if(Trig_Dragon_ball_radar_all_dballs_Func001C())then
call PingMinimapLocForForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),GetUnitLoc(udg_unit11),5.00)
else
call PingMinimapLocForForce(GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())),GetItemLoc(udg_item06),5.00)
endif
endfunction
function Trig_DBGetBall_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I01V'))
endfunction
function Trig_DBGetBall_Func003C takes nothing returns boolean
return((GetUnitUserData(GetManipulatingUnit())>0))
endfunction
function Trig_DBGetBall_Actions takes nothing returns nothing
set udg_unit11=GetManipulatingUnit()
set udg_booleans01[GetItemUserData(GetManipulatedItem())]=true
if(Trig_DBGetBall_Func003C())then
call SetItemCharges(udg_items01[GetUnitUserData(GetManipulatingUnit())],(GetItemCharges(udg_items01[GetUnitUserData(GetManipulatingUnit())])+GetItemCharges(GetManipulatedItem())))
call SetItemUserData(GetManipulatedItem(),0)
call UnitRemoveItemSwapped(GetManipulatedItem(),GetManipulatingUnit())
call RemoveItem(GetManipulatedItem())
else
call SetUnitUserData(GetManipulatingUnit(),GetItemUserData(GetManipulatedItem()))
set udg_units02[GetItemUserData(GetManipulatedItem())]=GetManipulatingUnit()
endif
call TriggerSleepAction(2)
set udg_unit11=GetTriggerUnit()
call ConditionalTriggerExecute(udg_trigger113)
endfunction
function Trig_DBDropBall_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I01V'))and((GetItemUserData(GetManipulatedItem())>0))
endfunction
function Trig_DBDropBall_Actions takes nothing returns nothing
call SetUnitUserData(GetManipulatingUnit(),0)
set udg_units02[GetItemUserData(GetManipulatedItem())]=null
set udg_booleans01[GetItemUserData(GetManipulatedItem())]=false
endfunction
function Trig_Creep_Initialization_Func004002002 takes nothing returns boolean
return(IsUnitHidden(GetFilterUnit())==false)
endfunction
function Trig_Creep_Initialization_Func005A takes nothing returns nothing
set udg_integer01=(udg_integer01+1)
set udg_locations01[udg_integer01]=GetUnitLoc(GetEnumUnit())
set udg_integers02[udg_integer01]=GetUnitTypeId(GetEnumUnit())
call SetUnitUserData(GetEnumUnit(),udg_integer01)
endfunction
function Trig_Creep_Initialization_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer01=0
set udg_group05=GetUnitsOfPlayerMatching(Player(12),Condition(function Trig_Creep_Initialization_Func004002002))
call ForGroupBJ(udg_group05,function Trig_Creep_Initialization_Func005A)
call DestroyGroup(udg_group05)
endfunction
function Trig_Creep_Death_Actions takes nothing returns nothing
set udg_booleans02[GetUnitUserData(GetDyingUnit())]=true
call StartTimerBJ(udg_timers01[GetUnitUserData(GetDyingUnit())],false,70.00)
endfunction
function Trig_Creep_Respawn_Func002Func001C takes nothing returns boolean
return((udg_booleans02[bj_forLoopAIndex]))and((TimerGetRemaining(udg_timers01[bj_forLoopAIndex])<15.00))and((TimerGetRemaining(udg_timers01[bj_forLoopAIndex])>0.00))
endfunction
function Trig_Creep_Respawn_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer01
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Creep_Respawn_Func002Func001C())then
call CreateNUnitsAtLoc(1,udg_integers02[bj_forLoopAIndex],Player(12),udg_locations01[bj_forLoopAIndex],GetRandomReal(0,360))
call SetUnitUserData(bj_lastCreatedUnit,bj_forLoopAIndex)
set udg_booleans02[bj_forLoopAIndex]=false
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Respawn_Everymob_Func001Func001C takes nothing returns boolean
return((udg_booleans02[bj_forLoopAIndex]))
endfunction
function Trig_Respawn_Everymob_Func002002002 takes nothing returns boolean
return(IsUnitHidden(GetFilterUnit())==false)
endfunction
function Trig_Respawn_Everymob_Func003A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),udg_locations01[GetUnitUserData(GetEnumUnit())])
endfunction
function Trig_Respawn_Everymob_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer01
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Respawn_Everymob_Func001Func001C())then
call CreateNUnitsAtLoc(1,udg_integers02[bj_forLoopAIndex],Player(12),udg_locations01[bj_forLoopAIndex],GetRandomReal(0,360))
call SetUnitUserData(bj_lastCreatedUnit,bj_forLoopAIndex)
set udg_booleans02[bj_forLoopAIndex]=false
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_group05=GetUnitsOfPlayerMatching(Player(12),Condition(function Trig_Respawn_Everymob_Func002002002))
call ForGroupBJ(udg_group05,function Trig_Respawn_Everymob_Func003A)
call DestroyGroup(udg_group05)
endfunction
function Trig_Saga_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetTriggerPlayer()),5.00,"TRIGSTR_1162")
endfunction
function Trig_Set_Saga_Hero_Stats_Func001002001001 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Set_Saga_Hero_Stats_Func003002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Set_Saga_Hero_Stats_Func004Func001C takes nothing returns boolean
return((GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_USER))and((GetPlayerSlotState(GetOwningPlayer(GetEnumUnit()))==PLAYER_SLOT_STATE_PLAYING))and((GetUnitTypeId(GetEnumUnit())!='H01Z'))and((GetUnitTypeId(GetEnumUnit())!='H01J'))and((GetUnitTypeId(GetEnumUnit())!='O00T'))and((GetUnitTypeId(GetEnumUnit())!='O00U'))and((GetUnitTypeId(GetEnumUnit())!='O00V'))and((GetUnitTypeId(GetEnumUnit())!='O00W'))and((GetUnitTypeId(GetEnumUnit())!='O00X'))
endfunction
function Trig_Set_Saga_Hero_Stats_Func004A takes nothing returns nothing
if(Trig_Set_Saga_Hero_Stats_Func004Func001C())then
call ModifyHeroStat(0,bj_lastCreatedUnit,0,((GetHeroStatBJ(0,GetEnumUnit(),false)/R2I(udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]))/(udg_integer12/2)))
call ModifyHeroStat(1,bj_lastCreatedUnit,0,((GetHeroStatBJ(1,GetEnumUnit(),false)/R2I(udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]))/(udg_integer12/2)))
call ModifyHeroStat(2,bj_lastCreatedUnit,0,((GetHeroStatBJ(2,GetEnumUnit(),false)/R2I(udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]))/(udg_integer12/2)))
call SetHeroLevelBJ(bj_lastCreatedUnit,(GetHeroLevel(bj_lastCreatedUnit)+(GetHeroLevel(GetEnumUnit())/(udg_integer12/2))),false)
endif
endfunction
function Trig_Set_Saga_Hero_Stats_Func009C takes nothing returns boolean
return((GetHeroLevel(bj_lastCreatedUnit)<10))
endfunction
function Trig_Set_Saga_Hero_Stats_Actions takes nothing returns nothing
set udg_integer12=CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Set_Saga_Hero_Stats_Func001002001001)))
set udg_integer12=(udg_integer12+4)
set udg_group05=GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Set_Saga_Hero_Stats_Func003002002))
call ForGroupBJ(udg_group05,function Trig_Set_Saga_Hero_Stats_Func004A)
call DestroyGroup(udg_group05)
call ModifyHeroStat(0,bj_lastCreatedUnit,2,(GetHeroStatBJ(0,bj_lastCreatedUnit,false)*GetUnitFoodMade(bj_lastCreatedUnit)))
call ModifyHeroStat(1,bj_lastCreatedUnit,2,(GetHeroStatBJ(1,bj_lastCreatedUnit,false)*GetUnitFoodMade(bj_lastCreatedUnit)))
call ModifyHeroStat(2,bj_lastCreatedUnit,2,(GetHeroStatBJ(2,bj_lastCreatedUnit,false)*GetUnitFoodMade(bj_lastCreatedUnit)))
if(Trig_Set_Saga_Hero_Stats_Func009C())then
call SetHeroLevelBJ(bj_lastCreatedUnit,10,false)
endif
endfunction
function Trig_Set_Saga_Hero_Weak_Func001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Set_Saga_Hero_Weak_Func002Func001C takes nothing returns boolean
return((GetPlayerController(GetOwningPlayer(GetEnumUnit()))==MAP_CONTROL_USER))and((GetPlayerSlotState(GetOwningPlayer(GetEnumUnit()))==PLAYER_SLOT_STATE_PLAYING))and((GetUnitTypeId(GetEnumUnit())!='H01Z'))and((GetUnitTypeId(GetEnumUnit())!='H01J'))and((GetUnitTypeId(GetEnumUnit())!='O00T'))and((GetUnitTypeId(GetEnumUnit())!='O00U'))and((GetUnitTypeId(GetEnumUnit())!='O00V'))and((GetUnitTypeId(GetEnumUnit())!='O00W'))and((GetUnitTypeId(GetEnumUnit())!='O00X'))
endfunction
function Trig_Set_Saga_Hero_Weak_Func002A takes nothing returns nothing
if(Trig_Set_Saga_Hero_Weak_Func002Func001C())then
call ModifyHeroStat(0,bj_lastCreatedUnit,0,((GetHeroStatBJ(0,GetEnumUnit(),false)/R2I(udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]))/udg_integer12))
call ModifyHeroStat(1,bj_lastCreatedUnit,0,((GetHeroStatBJ(1,GetEnumUnit(),false)/R2I(udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]))/udg_integer12))
call ModifyHeroStat(2,bj_lastCreatedUnit,0,((GetHeroStatBJ(2,GetEnumUnit(),false)/R2I(udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetEnumUnit())))]))/udg_integer12))
call SetHeroLevelBJ(bj_lastCreatedUnit,(GetHeroLevel(bj_lastCreatedUnit)+(GetHeroLevel(GetEnumUnit())/udg_integer12)),false)
endif
endfunction
function Trig_Set_Saga_Hero_Weak_Func004C takes nothing returns boolean
return((GetHeroLevel(bj_lastCreatedUnit)<10))
endfunction
function Trig_Set_Saga_Hero_Weak_Actions takes nothing returns nothing
set udg_group05=GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Set_Saga_Hero_Weak_Func001002002))
call ForGroupBJ(udg_group05,function Trig_Set_Saga_Hero_Weak_Func002A)
call DestroyGroup(udg_group05)
if(Trig_Set_Saga_Hero_Weak_Func004C())then
call SetHeroLevelBJ(bj_lastCreatedUnit,10,false)
endif
endfunction
function Trig_Start_Janemba_Conditions takes nothing returns boolean
return((udg_boolean08))
endfunction
function Trig_Start_Janemba_Func018002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n00O',1)
endfunction
function Trig_Start_Janemba_Func019002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n00O',1)
endfunction
function Trig_Start_Janemba_Func021002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n02I',1)
endfunction
function Trig_Start_Janemba_Func022002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n02K',1)
endfunction
function Trig_Start_Janemba_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_4256")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
call PlayThematicMusic("Sound\\Music\\mp3Music\\Tension.mp3")
call SetTerrainFogExBJ(0,1000,4000.00,0.50,100,0.00,0.00)
call TriggerSleepAction(4.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect71),15.00,1,100,50.00,0.00)
call CreateNUnitsAtLoc(1,'Udre',Player(14),GetRectCenter(udg_rect71),270.00)
call TriggerExecute(udg_trigger126)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect71),"Abilities\\Spells\\Human\\Resurrect\\ResurrectCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call TriggerExecute(udg_trigger124)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsOfTypeIdAll('n00D'),function Trig_Start_Janemba_Func018002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n02I'),function Trig_Start_Janemba_Func019002)
call TriggerSleepAction(1.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('n02D'),function Trig_Start_Janemba_Func021002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n02J'),function Trig_Start_Janemba_Func022002)
call TriggerExecute(udg_trigger121)
call TriggerSleepAction(7.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,6.00,"TRIGSTR_4269")
endfunction
function Trig_Janemba_Perfect_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='Udre'))
endfunction
function Trig_Janemba_Perfect_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectCaster.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,6.00,"TRIGSTR_4272")
call TriggerSleepAction(7.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,6.00,"TRIGSTR_4271")
call CreateNUnitsAtLoc(1,'U007',Player(14),GetRectCenter(udg_rect71),270.00)
set udg_unit15=bj_lastCreatedUnit
call TriggerExecute(udg_trigger126)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect71),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(3.00)
call EnableTrigger(udg_trigger130)
endfunction
function Trig_Janemba_Teleport_Func001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Janemba_Teleport_Func004C takes nothing returns boolean
return((GetOwningPlayer(udg_unit18)!=Player(12)))and((GetOwningPlayer(udg_unit18)!=Player(15)))and((GetOwningPlayer(udg_unit18)!=Player(14)))and((GetOwningPlayer(udg_unit18)!=Player(13)))and((GetUnitTypeId(udg_unit18)!='H01Z'))and((GetUnitTypeId(udg_unit18)!='H00I'))and((RectContainsUnit(udg_rect99,udg_unit18)==false))and((RectContainsUnit(udg_rect89,udg_unit18)==false))and((RectContainsUnit(udg_rect23,udg_unit18)==false))and((RectContainsUnit(udg_rect52,udg_unit18)==false))and((RectContainsUnit(udg_rect50,udg_unit18)==false))and((RectContainsUnit(udg_rect17,udg_unit18)==false))
endfunction
function Trig_Janemba_Teleport_Actions takes nothing returns nothing
set udg_group05=GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Janemba_Teleport_Func001002002))
set udg_unit18=GroupPickRandomUnit(udg_group05)
call DestroyGroup(udg_group05)
if(Trig_Janemba_Teleport_Func004C())then
set udg_location07=GetUnitLoc(udg_unit18)
call IssuePointOrderLoc(udg_unit15,"blink",udg_location07)
call RemoveLocation(udg_location07)
endif
endfunction
function Trig_Janemba_Dies_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U007'))
endfunction
function Trig_Janemba_Dies_Func011002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n00D',1)
endfunction
function Trig_Janemba_Dies_Func012002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n00D',1)
endfunction
function Trig_Janemba_Dies_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger130)
call CreateItemLoc('I02G',GetUnitLoc(GetDyingUnit()))
call SetTerrainFogExBJ(0,1000,4000.00,0.50,0.00,50.00,50.00)
call SetHeroLevelBJ(GetKillingUnit(),(GetUnitLevel(GetKillingUnit())+6),true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Universe has been saved from Janmeba. Our savior is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
call TriggerSleepAction(3.00)
call TriggerExecute(udg_trigger124)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsOfTypeIdAll('n02F'),function Trig_Janemba_Dies_Func011002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n02E'),function Trig_Janemba_Dies_Func012002)
call TriggerExecute(udg_trigger121)
call TriggerSleepAction(90.00)
call TriggerExecute(udg_trigger132)
endfunction
function Trig_Start_Hildegarn_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_4261")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
call PlayThematicMusic("Sound\\Music\\mp3Music\\NightElfDefeat.mp3")
call TriggerSleepAction(1.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect46),15.00,1,100,50.00,0.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect47),15.00,1,100,50.00,0.00)
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'hfoo',Player(14),GetRectCenter(udg_rect46),bj_UNIT_FACING)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call PlaySoundOnUnitBJ(udg_sound25,100,bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'hfoo',Player(14),GetRectCenter(udg_rect47),bj_UNIT_FACING)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call PlaySoundOnUnitBJ(udg_sound26,100,bj_lastCreatedUnit)
call TriggerSleepAction(10.00)
call PlaySoundOnUnitBJ(udg_sound27,100,bj_lastCreatedUnit)
call PlaySoundOnUnitBJ(udg_sound28,100,bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'U009',Player(14),GetRectCenter(udg_rect46),270.00)
call TriggerExecute(udg_trigger127)
set udg_unit16=bj_lastCreatedUnit
call CreateNUnitsAtLoc(1,'U00A',Player(14),GetRectCenter(udg_rect47),270.00)
call TriggerExecute(udg_trigger127)
set udg_unit17=bj_lastCreatedUnit
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect46),"Abilities\\Spells\\Orc\\LiquidFire\\Liquidfire.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect47),"Abilities\\Spells\\Orc\\LiquidFire\\Liquidfire.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound15,100,GetRectCenter(udg_rect46),0)
call TriggerRegisterUnitInRangeSimple(udg_trigger134,400.00,udg_unit16)
call EnableTrigger(udg_trigger133)
call EnableTrigger(udg_trigger134)
call EnableTrigger(udg_trigger135)
call TriggerSleepAction(7.00)
call PlaySoundAtPointBJ(udg_sound15,100,GetRectCenter(udg_rect47),0)
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,6.00,"TRIGSTR_4293")
endfunction
function Trig_Lower_Upper_Orders_Actions takes nothing returns nothing
call IssueTargetOrder(udg_unit16,"attack",udg_unit17)
call IssueTargetOrder(udg_unit17,"attack",udg_unit16)
endfunction
function Trig_Hildegarn_Fuse_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_unit17))
endfunction
function Trig_Hildegarn_Fuse_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger133)
call DisableTrigger(udg_trigger135)
call TriggerSleepAction(3.00)
call KillUnit(udg_unit16)
call KillUnit(udg_unit17)
call TriggerSleepAction(3.00)
call CreateNUnitsAtLoc(1,'U00B',Player(14),GetUnitLoc(udg_unit17),270.00)
set udg_unit15=bj_lastCreatedUnit
call TriggerExecute(udg_trigger126)
call AddSpecialEffectLocBJ(GetUnitLoc(bj_lastCreatedUnit),"Abilities\\Spells\\NightElf\\BattleRoar\\RoarTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound15,100,GetUnitLoc(bj_lastCreatedUnit),0)
call EnableTrigger(udg_trigger137)
endfunction
function Trig_Half_Dies_Func001C takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U009'))or((GetUnitTypeId(GetDyingUnit())=='U00A'))
endfunction
function Trig_Half_Dies_Conditions takes nothing returns boolean
return(Trig_Half_Dies_Func001C())
endfunction
function Trig_Half_Dies_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger134)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Hildegarn_Mature_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U00B'))
endfunction
function Trig_Hildegarn_Mature_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(3.00)
call CreateNUnitsAtLoc(1,'U00C',Player(14),GetUnitLoc(GetDyingUnit()),270.00)
set udg_unit15=bj_lastCreatedUnit
call TriggerExecute(udg_trigger126)
call PlaySoundAtPointBJ(udg_sound15,100,GetUnitLoc(bj_lastCreatedUnit),0)
call AddSpecialEffectLocBJ(GetUnitLoc(bj_lastCreatedUnit),"Abilities\\Spells\\NightElf\\BattleRoar\\RoarTarget.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Hildegarn_Teleport_Func001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Hildegarn_Teleport_Func004C takes nothing returns boolean
return((GetOwningPlayer(udg_unit18)!=Player(12)))and((GetOwningPlayer(udg_unit18)!=Player(15)))and((GetOwningPlayer(udg_unit18)!=Player(14)))and((GetOwningPlayer(udg_unit18)!=Player(13)))and((GetUnitTypeId(udg_unit18)!='H01Z'))and((GetUnitTypeId(udg_unit18)!='H00I'))and((RectContainsUnit(udg_rect99,udg_unit18)==false))and((RectContainsUnit(udg_rect89,udg_unit18)==false))and((RectContainsUnit(udg_rect23,udg_unit18)==false))and((RectContainsUnit(udg_rect52,udg_unit18)==false))and((RectContainsUnit(udg_rect50,udg_unit18)==false))and((RectContainsUnit(udg_rect17,udg_unit18)==false))
endfunction
function Trig_Hildegarn_Teleport_Actions takes nothing returns nothing
set udg_group05=GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Hildegarn_Teleport_Func001002002))
set udg_unit18=GroupPickRandomUnit(udg_group05)
call DestroyGroup(udg_group05)
if(Trig_Hildegarn_Teleport_Func004C())then
set udg_location07=GetUnitLoc(udg_unit18)
call IssuePointOrderLoc(udg_unit15,"blink",udg_location07)
call RemoveLocation(udg_location07)
endif
endfunction
function Trig_Hildegarn_Dies_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U00C'))
endfunction
function Trig_Hildegarn_Dies_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger137)
call CreateItemLoc('I02G',GetUnitLoc(GetDyingUnit()))
call SetHeroLevelBJ(GetKillingUnit(),(GetUnitLevel(GetKillingUnit())+8),true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Universe has been saved from Hildegarn. Our savior is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
call PlayThematicMusic("Sound\\Music\\mp3Music\\NightElfVictory.mp3")
endfunction
function Trig_Start_Bio_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_6214")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
call TriggerSleepAction(4.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect06),1000.00)
set udg_fogmodifiers04[bj_forLoopAIndex]=bj_lastCreatedFogModifier
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect06),10.00,1,100,50.00,0.00)
call SetUnitOwner(udg_unit90,Player(14),false)
call SetUnitInvulnerable(udg_unit90,false)
call EnableTrigger(udg_trigger140)
endfunction
function Trig_Extra_Saga_Bio_Fighters_Actions takes nothing returns nothing
set udg_location07=GetRectCenter(udg_rect06)
call CreateNUnitsAtLoc(1,'n01O',Player(14),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
endfunction
function Trig_Death_of_Factory_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger140)
call TerrainDeformationCraterBJ(1.00,true,GetUnitLoc(udg_unit90),650.00,120.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect06),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call TriggerExecute(udg_trigger620)
call CreateNUnitsAtLoc(1,'U008',Player(14),GetRectCenter(udg_rect06),270.00)
call TriggerExecute(udg_trigger126)
endfunction
function Trig_Death_of_Bio_Broli_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U008'))
endfunction
function Trig_Death_of_Bio_Broli_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateItemLoc('I02E',GetUnitLoc(GetDyingUnit()))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyFogModifier(udg_fogmodifiers04[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Earth has been saved from Bio Broly. Our savior is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
call TriggerSleepAction(90.00)
call EnableTrigger(udg_trigger128)
endfunction
function Trig_Start_Saiyan_Saga_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_846")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
call PlayThematicMusic("Sound\\Music\\mp3Music\\NightElf3.mp3")
call TriggerSleepAction(4.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect71),10.00,1,100,50.00,0.00)
call CreateNUnitsAtLoc(1,'h01F',Player(14),GetRectCenter(udg_rect71),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h01G',Player(14),GetRectCenter(udg_rect63),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n01Z',Player(14),GetRandomLocInRect(udg_rect70),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n01Z',Player(14),GetRandomLocInRect(udg_rect70),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n01Z',Player(14),GetRandomLocInRect(udg_rect70),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n01Z',Player(14),GetRandomLocInRect(udg_rect70),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n01Z',Player(14),GetRandomLocInRect(udg_rect70),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n01Z',Player(14),GetRandomLocInRect(udg_rect70),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'n01Z',Player(14),GetRandomLocInRect(udg_rect70),bj_UNIT_FACING)
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_1084")
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_1121")
endfunction
function Trig_Death_of_Saiyans_Func005C takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='h01F'))or((GetUnitTypeId(GetDyingUnit())=='h01G'))
endfunction
function Trig_Death_of_Saiyans_Conditions takes nothing returns boolean
return(Trig_Death_of_Saiyans_Func005C())
endfunction
function Trig_Death_of_Saiyans_Func001002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Death_of_Saiyans_Func001002002002 takes nothing returns boolean
return(GetUnitPointValue(GetFilterUnit())==1)
endfunction
function Trig_Death_of_Saiyans_Func001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Death_of_Saiyans_Func001002002001(),Trig_Death_of_Saiyans_Func001002002002())
endfunction
function Trig_Death_of_Saiyans_Func003Func001C takes nothing returns boolean
return((GetRandomInt(1,udg_integer14)==1))
endfunction
function Trig_Death_of_Saiyans_Func003A takes nothing returns nothing
if(Trig_Death_of_Saiyans_Func003Func001C())then
call ModifyHeroStat(0,GetEnumUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
call ModifyHeroStat(1,GetEnumUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
call ModifyHeroStat(2,GetEnumUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*5.00)))
endif
endfunction
function Trig_Death_of_Saiyans_Func006C takes nothing returns boolean
return((udg_boolean09))
endfunction
function Trig_Death_of_Saiyans_Actions takes nothing returns nothing
set udg_group05=GetUnitsOfPlayerMatching(GetOwningPlayer(GetKillingUnit()),Condition(function Trig_Death_of_Saiyans_Func001002002))
set udg_integer14=CountUnitsInGroup(udg_group05)
call ForGroupBJ(udg_group05,function Trig_Death_of_Saiyans_Func003A)
call DestroyGroup(udg_group05)
if(Trig_Death_of_Saiyans_Func006C())then
call DisableTrigger(GetTriggeringTrigger())
call CreateItemLoc('I021',GetUnitLoc(GetDyingUnit()))
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Earth has been saved from Raditz and Nappa. Our savior is"+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
call StartTimerBJ(udg_timer13,false,60.00)
else
call CreateItemLoc('I024',GetUnitLoc(GetDyingUnit()))
endif
set udg_boolean09=true
endfunction
function Trig_Use_Saibamen_seeds_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I024'))
endfunction
function Trig_Use_Saibamen_seeds_Actions takes nothing returns nothing
local location udg_location10
set udg_location10=GetUnitLoc(GetManipulatingUnit())
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound06,100,udg_location08,0)
call TriggerSleepAction(5.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound24,100,udg_location08,0)
call CreateNUnitsAtLoc(1,'n01Z',GetOwningPlayer(GetManipulatingUnit()),udg_location08,bj_UNIT_FACING)
call RemoveLocation(udg_location10)
endfunction
function Trig_Tree_of_Might_start_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_1160")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect105),1400.00)
set udg_fogmodifiers01[bj_forLoopAIndex]=bj_lastCreatedFogModifier
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'H01H',Player(14),GetRectCenter(udg_rect110),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLocFacingLocBJ(1,'h01I',Player(14),GetRectCenter(udg_rect107),GetRectCenter(udg_rect105))
call CreateNUnitsAtLocFacingLocBJ(1,'o00D',Player(14),GetRectCenter(udg_rect106),GetRectCenter(udg_rect105))
call CreateNUnitsAtLocFacingLocBJ(1,'z003',Player(14),GetRectCenter(udg_rect108),GetRectCenter(udg_rect105))
call CreateNUnitsAtLocFacingLocBJ(2,'n022',Player(14),GetRandomLocInRect(udg_rect109),GetRectCenter(udg_rect105))
call CreateNUnitsAtLoc(1,'ogru',Player(15),GetRectCenter(udg_rect105),0.00)
call SetTerrainTypeBJ(GetRectCenter(udg_rect105),'cAc2',-1,7,0)
call TriggerSleepAction(2.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect110),10.00,1,100,50.00,0.00)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_593")
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,2.00,"TRIGSTR_600")
call TriggerSleepAction(35.00)
call TriggerExecute(udg_trigger149)
endfunction
function Trig_Use_Tree_of_Might_seedling_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='I025'))
endfunction
function Trig_Use_Tree_of_Might_seedling_Actions takes nothing returns nothing
local location udg_location10
call DisableTrigger(GetTriggeringTrigger())
set udg_location10=GetUnitLoc(GetManipulatingUnit())
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(5.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound10,100,udg_location08,0)
call TriggerSleepAction(0.50)
set udg_location08=udg_location10
set udg_destructable01=CreateDestructableLoc('ATtr',udg_location08,GetRandomReal(0,360),0.20,1)
call TriggerSleepAction(5.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound10,100,udg_location08,0)
call TriggerSleepAction(0.50)
set udg_location08=udg_location10
call RemoveDestructable(udg_destructable01)
set udg_destructable01=null
set udg_destructable01=CreateDestructableLoc('ATtr',udg_location08,GetRandomReal(0,360),0.45,1)
call TriggerSleepAction(5.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound10,100,udg_location08,0)
call TriggerSleepAction(0.50)
set udg_location08=udg_location10
call RemoveDestructable(udg_destructable01)
set udg_destructable01=null
set udg_destructable01=CreateDestructableLoc('ATtr',udg_location08,GetRandomReal(0,360),0.65,1)
call TriggerSleepAction(5.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound10,100,udg_location08,0)
call TriggerSleepAction(0.50)
set udg_location08=udg_location10
call RemoveDestructable(udg_destructable01)
set udg_destructable01=null
set udg_destructable01=CreateDestructableLoc('ATtr',udg_location08,GetRandomReal(0,360),0.80,1)
call TriggerSleepAction(5.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound10,100,udg_location08,0)
call TriggerSleepAction(0.50)
set udg_location08=udg_location10
call RemoveDestructable(udg_destructable01)
set udg_destructable01=null
set udg_destructable01=CreateDestructableLoc('ATtr',udg_location08,GetRandomReal(0,360),0.95,1)
call TriggerSleepAction(5.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound10,100,udg_location08,0)
call TriggerSleepAction(0.50)
set udg_location08=udg_location10
call RemoveDestructable(udg_destructable01)
set udg_destructable01=null
set udg_destructable01=CreateDestructableLoc('ATtr',udg_location08,GetRandomReal(0,360),1.10,1)
call TriggerSleepAction(5.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound10,100,udg_location08,0)
call TriggerSleepAction(0.50)
set udg_location08=udg_location10
call RemoveDestructable(udg_destructable01)
set udg_destructable01=null
set udg_destructable01=CreateDestructableLoc('ATtr',udg_location08,GetRandomReal(0,360),1.35,1)
call TriggerSleepAction(5.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound10,100,udg_location08,0)
call TriggerSleepAction(0.50)
set udg_location08=udg_location10
call CreateItemLoc('I026',udg_location08)
call TriggerSleepAction(2.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Objects\\Spawnmodels\\NightElf\\NECancelDeath\\NECancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call RemoveDestructable(udg_destructable01)
set udg_destructable01=null
set udg_destructable01=CreateDeadDestructableLocBJ('ATtr',udg_location08,GetRandomReal(0,360),1.35,1)
call RemoveLocation(udg_location10)
endfunction
function Trig_Turles_Dies_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='H01H'))
endfunction
function Trig_Turles_Dies_Func009002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Turles_Dies_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateItemLoc('I025',GetUnitLoc(GetDyingUnit()))
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Earth has been saved from Turles. Our savior is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect105),"Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyFogModifier(udg_fogmodifiers01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TerrainDeformationCraterBJ(1.00,true,GetRectCenter(udg_rect105),650.00,120.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('ogru'),function Trig_Turles_Dies_Func009002)
call EnableTrigger(udg_trigger153)
call StartTimerBJ(udg_timer13,false,60.00)
endfunction
function Trig_Extra_Saga_Dr_Wheelo_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_3806")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,6.00,"TRIGSTR_3807")
call TriggerSleepAction(6.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"TRIGSTR_3808")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"TRIGSTR_3809")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"TRIGSTR_3810")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"TRIGSTR_4366")
call TriggerSleepAction(3.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect20),10.00,1,100,50.00,0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect20),700.00)
set udg_fogmodifiers04[bj_forLoopAIndex]=bj_lastCreatedFogModifier
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'U006',Player(14),GetRectCenter(udg_rect20),bj_UNIT_FACING)
call TriggerExecute(udg_trigger126)
set udg_units03[1]=bj_lastCreatedUnit
call CreateNUnitsAtLoc(1,'O00Q',Player(14),GetUnitLoc(bj_lastCreatedUnit),bj_UNIT_FACING)
call TriggerExecute(udg_trigger127)
set udg_units03[2]=bj_lastCreatedUnit
call CreateNUnitsAtLoc(1,'O00N',Player(14),GetRandomLocInRect(udg_rect20),bj_UNIT_FACING)
call TriggerExecute(udg_trigger127)
set udg_units03[3]=bj_lastCreatedUnit
call CreateNUnitsAtLoc(1,'O00P',Player(14),GetRandomLocInRect(udg_rect20),bj_UNIT_FACING)
call TriggerExecute(udg_trigger127)
set udg_units03[4]=bj_lastCreatedUnit
call CreateNUnitsAtLoc(1,'O00O',Player(14),GetRandomLocInRect(udg_rect20),bj_UNIT_FACING)
call TriggerExecute(udg_trigger127)
set udg_units03[5]=bj_lastCreatedUnit
endfunction
function Trig_Item_drop_Dr_Wheelo_Conditions takes nothing returns boolean
return((GetDyingUnit()==udg_units03[1]))
endfunction
function Trig_Item_drop_Dr_Wheelo_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateItemLoc('I00I',GetUnitLoc(GetDyingUnit()))
endfunction
function Trig_Item_drop_Dr_Kochin_Conditions takes nothing returns boolean
return((GetDyingUnit()==udg_units03[2]))
endfunction
function Trig_Item_drop_Dr_Kochin_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateItemLoc('I010',GetUnitLoc(GetDyingUnit()))
endfunction
function Trig_Extra_Wheelo_Saga_End_Func002C takes nothing returns boolean
return((GetDyingUnit()==udg_units03[1]))or((GetDyingUnit()==udg_units03[2]))or((GetDyingUnit()==udg_units03[3]))or((GetDyingUnit()==udg_units03[4]))or((GetDyingUnit()==udg_units03[5]))
endfunction
function Trig_Extra_Wheelo_Saga_End_Conditions takes nothing returns boolean
return(Trig_Extra_Wheelo_Saga_End_Func002C())
endfunction
function Trig_Extra_Wheelo_Saga_End_Func001C takes nothing returns boolean
return((IsUnitDeadBJ(udg_units03[1])))and((IsUnitDeadBJ(udg_units03[2])))and((IsUnitDeadBJ(udg_units03[3])))and((IsUnitDeadBJ(udg_units03[4])))and((IsUnitDeadBJ(udg_units03[5])))
endfunction
function Trig_Extra_Wheelo_Saga_End_Actions takes nothing returns nothing
if(Trig_Extra_Wheelo_Saga_End_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Earth has been saved from Dr. Wheelo. Our savior is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyFogModifier(udg_fogmodifiers04[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(75.00)
call TriggerExecute(udg_trigger139)
endif
endfunction
function Trig_Start_Slug_Func009002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'z004',1)
endfunction
function Trig_Start_Slug_Func010002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'z004',1)
endfunction
function Trig_Start_Slug_Func011002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n02J',1)
endfunction
function Trig_Start_Slug_Func013002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n021',1)
endfunction
function Trig_Start_Slug_Func014002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n021',1)
endfunction
function Trig_Start_Slug_Func015002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n02I',1)
endfunction
function Trig_Start_Slug_Func016002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n02D',1)
endfunction
function Trig_Start_Slug_Func018002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n023',1)
endfunction
function Trig_Start_Slug_Func019002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n023',1)
endfunction
function Trig_Start_Slug_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_1076")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
call TriggerSleepAction(3.00)
call TriggerExecute(udg_trigger124)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsOfTypeIdAll('n015'),function Trig_Start_Slug_Func009002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n01D'),function Trig_Start_Slug_Func010002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n01X'),function Trig_Start_Slug_Func011002)
call TriggerSleepAction(1.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('n019'),function Trig_Start_Slug_Func013002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n01E'),function Trig_Start_Slug_Func014002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n02D'),function Trig_Start_Slug_Func015002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n02C'),function Trig_Start_Slug_Func016002)
call TriggerSleepAction(1.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('n01A'),function Trig_Start_Slug_Func018002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n014'),function Trig_Start_Slug_Func019002)
call TriggerExecute(udg_trigger121)
call SetTimeOfDay(24.00)
call UseTimeOfDayBJ(false)
call TriggerSleepAction(3.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect91),10.00,1,100,50.00,0.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_1077")
call CreateNUnitsAtLocFacingLocBJ(1,'O00L',Player(14),GetRectCenter(udg_rect91),GetUnitLoc(udg_unit88))
call TriggerExecute(udg_trigger126)
endfunction
function Trig_Death_of_Lord_Slug_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='O00L'))
endfunction
function Trig_Death_of_Lord_Slug_Func010002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n00D',1)
endfunction
function Trig_Death_of_Lord_Slug_Func011002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n00N',1)
endfunction
function Trig_Death_of_Lord_Slug_Func013002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n02G',1)
endfunction
function Trig_Death_of_Lord_Slug_Func014002 takes nothing returns nothing
call ReplaceUnitBJ(GetEnumUnit(),'n02H',1)
endfunction
function Trig_Death_of_Lord_Slug_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetHeroLevelBJ(GetKillingUnit(),(GetUnitLevel(GetKillingUnit())+3),true)
call SetTimeOfDay(12)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Earth has been saved from Lord Slug. Our savior is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
call TriggerSleepAction(3.00)
call TriggerExecute(udg_trigger124)
call TriggerSleepAction(2)
call ForGroupBJ(GetUnitsOfTypeIdAll('n023'),function Trig_Death_of_Lord_Slug_Func010002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n021'),function Trig_Death_of_Lord_Slug_Func011002)
call TriggerSleepAction(1.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('z004'),function Trig_Death_of_Lord_Slug_Func013002)
call ForGroupBJ(GetUnitsOfTypeIdAll('n01U'),function Trig_Death_of_Lord_Slug_Func014002)
call TriggerExecute(udg_trigger121)
endfunction
function Trig_Start_Garlic_Jr_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_6190")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect84),1400.00)
set udg_fogmodifiers01[bj_forLoopAIndex]=bj_lastCreatedFogModifier
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
call CreateNUnitsAtLoc(1,'U00D',Player(14),GetRectCenter(udg_rect121),270.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect121),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00E',Player(14),GetRectCenter(udg_rect65),270.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect65),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call TriggerExecute(udg_trigger127)
call CreateNUnitsAtLoc(1,'U00F',Player(14),GetRectCenter(udg_rect122),270.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect122),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call TriggerExecute(udg_trigger127)
call CreateNUnitsAtLoc(1,'U00G',Player(14),GetRandomLocInRect(udg_rect84),270.00)
call TriggerExecute(udg_trigger127)
call CreateNUnitsAtLoc(1,'U00H',Player(14),GetRandomLocInRect(udg_rect84),270.00)
call TriggerExecute(udg_trigger127)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect84),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect121),10.00,1,100,50.00,0.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6191")
call TriggerSleepAction(7.00)
call ShowUnitHide(udg_unit58)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit58),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call ShowUnitHide(udg_unit96)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit96),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call ShowUnitHide(udg_unit63)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit63),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6200")
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6201")
set udg_weathereffects01[1]=AddWeatherEffectSaveLast(udg_rect80,'FDgh')
call EnableWeatherEffect(bj_lastCreatedWeatherEffect,true)
set udg_weathereffects01[2]=AddWeatherEffectSaveLast(udg_rect81,'FDgh')
call EnableWeatherEffect(bj_lastCreatedWeatherEffect,true)
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6202")
call TriggerExecute(udg_trigger156)
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6203")
endfunction
function Trig_BWM_Humans_Func001A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'z005',Player(14),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call ShowUnitHide(GetEnumUnit())
endfunction
function Trig_BWM_Humans_Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'z005',Player(14),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call ShowUnitHide(GetEnumUnit())
endfunction
function Trig_BWM_Humans_Func005A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'z005',Player(14),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call ShowUnitHide(GetEnumUnit())
endfunction
function Trig_BWM_Humans_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('n018'),function Trig_BWM_Humans_Func001A)
call TriggerSleepAction(5.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('n017'),function Trig_BWM_Humans_Func003A)
call TriggerSleepAction(5.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('n016'),function Trig_BWM_Humans_Func005A)
endfunction
function Trig_Cleanse_Humans_Func001A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Cleanse_Humans_Func002A takes nothing returns nothing
call ShowUnitShow(GetEnumUnit())
endfunction
function Trig_Cleanse_Humans_Func003A takes nothing returns nothing
call ShowUnitShow(GetEnumUnit())
endfunction
function Trig_Cleanse_Humans_Func004A takes nothing returns nothing
call ShowUnitShow(GetEnumUnit())
endfunction
function Trig_Cleanse_Humans_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('z005'),function Trig_Cleanse_Humans_Func001A)
call ForGroupBJ(GetUnitsOfTypeIdAll('n018'),function Trig_Cleanse_Humans_Func002A)
call ForGroupBJ(GetUnitsOfTypeIdAll('n017'),function Trig_Cleanse_Humans_Func003A)
call ForGroupBJ(GetUnitsOfTypeIdAll('n016'),function Trig_Cleanse_Humans_Func004A)
endfunction
function Trig_Garlic_Dies_Once_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U00D'))
endfunction
function Trig_Garlic_Dies_Once_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Abilities\\Spells\\Human\\Resurrect\\ResurrectCaster.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6208")
call TriggerSleepAction(5.00)
call CreateNUnitsAtLoc(1,'U00I',Player(14),GetRectCenter(udg_rect121),270.00)
call TriggerExecute(udg_trigger126)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect121),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(50.00)
call TriggerExecute(udg_trigger159)
endfunction
function Trig_Garlic_Opens_Dead_Zone_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6211")
call TriggerSleepAction(3.00)
call SetTerrainFogExBJ(0,1000,2500.00,0.50,0.00,0.00,0.00)
call CreateNUnitsAtLoc(1,'h01X',Player(14),GetRectCenter(udg_rect53),270.00)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call PlaySoundOnUnitBJ(udg_sound25,100,bj_lastCreatedUnit)
call PlaySoundOnUnitBJ(udg_sound29,100,bj_lastCreatedUnit)
endfunction
function Trig_End_of_Garlic_Jr_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetEnteringUnit())=='U00I'))and((CountUnitsInGroup(GetUnitsOfTypeIdAll('h01X'))>0))
endfunction
function Trig_End_of_Garlic_Jr_Func003A takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound27,100,GetEnumUnit())
call KillUnit(GetEnumUnit())
endfunction
function Trig_End_of_Garlic_Jr_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6212")
call ForGroupBJ(GetUnitsOfTypeIdAll('h01X'),function Trig_End_of_Garlic_Jr_Func003A)
call StopSoundBJ(udg_sound29,true)
call SetTerrainFogExBJ(0,1000,4000.00,0.50,0.00,50.00,50.00)
call RemoveWeatherEffect(udg_weathereffects01[1])
call RemoveWeatherEffect(udg_weathereffects01[2])
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnteringUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitVertexColorBJ(GetEnteringUnit(),10.00,60.00,40.00,10.00)
call TriggerSleepAction(0.10)
call SetUnitVertexColorBJ(GetEnteringUnit(),10.00,60.00,40.00,20.00)
call TriggerSleepAction(0.10)
call SetUnitVertexColorBJ(GetEnteringUnit(),10.00,60.00,40.00,30.00)
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnteringUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitVertexColorBJ(GetEnteringUnit(),10.00,60.00,40.00,40.00)
call TriggerSleepAction(0.10)
call SetUnitVertexColorBJ(GetEnteringUnit(),10.00,60.00,40.00,50.00)
call TriggerSleepAction(0.10)
call SetUnitVertexColorBJ(GetEnteringUnit(),10.00,60.00,40.00,60.00)
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnteringUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitVertexColorBJ(GetEnteringUnit(),10.00,60.00,40.00,70.00)
call TriggerSleepAction(0.10)
call SetUnitVertexColorBJ(GetEnteringUnit(),10.00,60.00,40.00,80.00)
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnteringUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitVertexColorBJ(GetEnteringUnit(),10.00,60.00,40.00,90.00)
call TriggerSleepAction(0.10)
call RemoveUnit(GetEnteringUnit())
call TriggerExecute(udg_trigger157)
call TriggerSleepAction(4.00)
call CreateItemLoc('I02D',GetRectCenter(udg_rect53))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyFogModifier(udg_fogmodifiers01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ShowUnitShow(udg_unit58)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit58),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call ShowUnitShow(udg_unit96)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit96),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call ShowUnitShow(udg_unit63)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit63),"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6213")
call TriggerSleepAction(60.00)
set udg_boolean08=true
call TriggerExecute(udg_trigger161)
endfunction
function Trig_Start_Future_Trunks_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_6216")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
call TriggerSleepAction(4.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect123),10.00,1,100,50.00,0.00)
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'h01Y',Player(14),GetRectCenter(udg_rect123),270.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,225.00)
call TriggerSleepAction(0.20)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect123),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound30,100,GetRectCenter(udg_rect123),0)
call TriggerSleepAction(4.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect123),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationRippleBJ(3.00,true,GetRectCenter(udg_rect123),500.00,500.00,64,0.20,256.00)
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'U00J',Player(14),GetRectCenter(udg_rect125),270.00)
call TriggerExecute(udg_trigger126)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect125),"Abilities\\Spells\\Items\\AIil\\AIilTarget.mdl")
call TriggerExecute(udg_trigger620)
call CreateNUnitsAtLoc(1,'U00K',Player(14),GetRectCenter(udg_rect124),300.00)
call TriggerExecute(udg_trigger126)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect124),"Abilities\\Spells\\Items\\AIil\\AIilTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6230")
call TriggerSleepAction(6.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6231")
call TriggerSleepAction(6.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6232")
endfunction
function Trig_Frieza_Dies_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U00J'))
endfunction
function Trig_Frieza_Dies_Func004Func003001001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U00K')
endfunction
function Trig_Frieza_Dies_Func004Func003001001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_Frieza_Dies_Func004Func003001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Frieza_Dies_Func004Func003001001002001(),Trig_Frieza_Dies_Func004Func003001001002002())
endfunction
function Trig_Frieza_Dies_Func004C takes nothing returns boolean
return((CountUnitsInGroup(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Frieza_Dies_Func004Func003001001002)))==0))
endfunction
function Trig_Frieza_Dies_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetHeroLevelBJ(GetKillingUnit(),(GetUnitLevel(GetKillingUnit())+1),true)
if(Trig_Frieza_Dies_Func004C())then
call TriggerExecute(udg_trigger164)
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6233")
endif
endfunction
function Trig_King_Cold_Dies_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U00K'))
endfunction
function Trig_King_Cold_Dies_Func004Func003001001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U00J')
endfunction
function Trig_King_Cold_Dies_Func004Func003001001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_King_Cold_Dies_Func004Func003001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_King_Cold_Dies_Func004Func003001001002001(),Trig_King_Cold_Dies_Func004Func003001001002002())
endfunction
function Trig_King_Cold_Dies_Func004C takes nothing returns boolean
return((CountUnitsInGroup(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_King_Cold_Dies_Func004Func003001001002)))==0))
endfunction
function Trig_King_Cold_Dies_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetHeroLevelBJ(GetKillingUnit(),(GetUnitLevel(GetKillingUnit())+1),true)
if(Trig_King_Cold_Dies_Func004C())then
call TriggerExecute(udg_trigger164)
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6234")
endif
endfunction
function Trig_End_Future_Trunks_Func002A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_End_Future_Trunks_Actions takes nothing returns nothing
call CreateItemLoc('I02C',GetUnitLoc(GetDyingUnit()))
call ForGroupBJ(GetUnitsOfTypeIdAll('h01Y'),function Trig_End_Future_Trunks_Func002A)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Earth has been saved form King Cold. Our savior is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
call TriggerSleepAction(90.00)
call TriggerExecute(udg_trigger165)
endfunction
function Trig_Start_Bojack_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_6236")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
call TriggerSleepAction(4.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect126),10.00,1,100,50.00,0.00)
call CreateNUnitsAtLoc(1,'U00L',Player(14),GetRectCenter(udg_rect126),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00M',Player(14),GetRectCenter(udg_rect127),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00N',Player(14),GetRectCenter(udg_rect128),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00O',Player(14),GetRectCenter(udg_rect129),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00P',Player(14),GetRectCenter(udg_rect130),270.00)
call TriggerExecute(udg_trigger126)
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6247")
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6248")
endfunction
function Trig_End_Bojack_Func001C takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U00L'))or((GetUnitTypeId(GetDyingUnit())=='U00M'))or((GetUnitTypeId(GetDyingUnit())=='U00N'))or((GetUnitTypeId(GetDyingUnit())=='U00O'))or((GetUnitTypeId(GetDyingUnit())=='U00P'))
endfunction
function Trig_End_Bojack_Conditions takes nothing returns boolean
return(Trig_End_Bojack_Func001C())
endfunction
function Trig_End_Bojack_Func003Func006001001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U00L')
endfunction
function Trig_End_Bojack_Func003Func006001001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_End_Bojack_Func003Func006001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_End_Bojack_Func003Func006001001002001(),Trig_End_Bojack_Func003Func006001001002002())
endfunction
function Trig_End_Bojack_Func003Func007001001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U00M')
endfunction
function Trig_End_Bojack_Func003Func007001001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_End_Bojack_Func003Func007001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_End_Bojack_Func003Func007001001002001(),Trig_End_Bojack_Func003Func007001001002002())
endfunction
function Trig_End_Bojack_Func003Func008001001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U00N')
endfunction
function Trig_End_Bojack_Func003Func008001001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_End_Bojack_Func003Func008001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_End_Bojack_Func003Func008001001002001(),Trig_End_Bojack_Func003Func008001001002002())
endfunction
function Trig_End_Bojack_Func003Func009001001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U00O')
endfunction
function Trig_End_Bojack_Func003Func009001001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_End_Bojack_Func003Func009001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_End_Bojack_Func003Func009001001002001(),Trig_End_Bojack_Func003Func009001001002002())
endfunction
function Trig_End_Bojack_Func003Func010001001002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='U00P')
endfunction
function Trig_End_Bojack_Func003Func010001001002002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit()))
endfunction
function Trig_End_Bojack_Func003Func010001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_End_Bojack_Func003Func010001001002001(),Trig_End_Bojack_Func003Func010001001002002())
endfunction
function Trig_End_Bojack_Func003C takes nothing returns boolean
return((CountUnitsInGroup(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_End_Bojack_Func003Func006001001002)))==0))and((CountUnitsInGroup(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_End_Bojack_Func003Func007001001002)))==0))and((CountUnitsInGroup(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_End_Bojack_Func003Func008001001002)))==0))and((CountUnitsInGroup(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_End_Bojack_Func003Func009001001002)))==0))and((CountUnitsInGroup(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_End_Bojack_Func003Func010001001002)))==0))
endfunction
function Trig_End_Bojack_Actions takes nothing returns nothing
call SetHeroLevelBJ(GetKillingUnit(),(GetUnitLevel(GetKillingUnit())+1),true)
if(Trig_End_Bojack_Func003C())then
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_7308")
call CreateItemLoc('I02F',GetUnitLoc(GetDyingUnit()))
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Earth has been saved from Bojack. Our savior is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
endif
endfunction
function Trig_Start_Shadow_Dragon_Func021Func001C takes nothing returns boolean
return((GetItemTypeId(GetEnumItem())=='I02B'))
endfunction
function Trig_Start_Shadow_Dragon_Func021A takes nothing returns nothing
if(Trig_Start_Shadow_Dragon_Func021Func001C())then
call RemoveItem(GetEnumItem())
endif
endfunction
function Trig_Start_Shadow_Dragon_Func022002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Start_Shadow_Dragon_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,"TRIGSTR_6252")
call CinematicFadeBJ(0,1.00,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",50.00,50.00,50.00,0)
call PlaySoundBJ(udg_sound34)
call PlayThematicMusic("Sound\\Music\\mp3Music\\IllidansTheme.mp3")
call TriggerSleepAction(4.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect131),10.00,1,100,50.00,0.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect131),1000.00)
set udg_fogmodifiers04[bj_forLoopAIndex]=bj_lastCreatedFogModifier
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'z006',Player(14),GetRectCenter(udg_rect131),270.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateItemLoc('I02B',PolarProjectionBJ(GetRectCenter(udg_rect131),50.00,(I2R(bj_forLoopAIndex)*51.00)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6257")
call PlaySoundAtPointBJ(udg_sound35,100,GetRectCenter(udg_rect131),0)
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6258")
call TriggerSleepAction(5.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect131),"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect131),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.50)
call EnumItemsInRectBJ(udg_rect131,function Trig_Start_Shadow_Dragon_Func021A)
call ForGroupBJ(GetUnitsOfTypeIdAll('z006'),function Trig_Start_Shadow_Dragon_Func022002)
call TriggerSleepAction(4.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyFogModifier(udg_fogmodifiers04[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6259")
call TriggerSleepAction(4.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect18),30.00,1,100,50.00,10.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect47),30.00,1,100,50.00,20.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect19),30.00,1,100,50.00,30.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect14),30.00,1,100,50.00,40.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect119),30.00,1,100,50.00,50.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect115),30.00,1,100,50.00,60.00)
call CreateNUnitsAtLoc(1,'U00T',Player(14),GetRectCenter(udg_rect18),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00S',Player(14),GetRectCenter(udg_rect47),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00X',Player(14),GetRectCenter(udg_rect19),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00U',Player(14),GetRectCenter(udg_rect14),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00W',Player(14),GetRectCenter(udg_rect119),270.00)
call TriggerExecute(udg_trigger126)
call CreateNUnitsAtLoc(1,'U00V',Player(14),GetRectCenter(udg_rect115),270.00)
call TriggerExecute(udg_trigger126)
endfunction
function Trig_Killed_a_Dragon_Func005C takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U00T'))or((GetUnitTypeId(GetDyingUnit())=='U00S'))or((GetUnitTypeId(GetDyingUnit())=='U00X'))or((GetUnitTypeId(GetDyingUnit())=='U00U'))or((GetUnitTypeId(GetDyingUnit())=='U00W'))or((GetUnitTypeId(GetDyingUnit())=='U00V'))
endfunction
function Trig_Killed_a_Dragon_Conditions takes nothing returns boolean
return(Trig_Killed_a_Dragon_Func005C())
endfunction
function Trig_Killed_a_Dragon_Func004C takes nothing returns boolean
return((udg_integer11==6))
endfunction
function Trig_Killed_a_Dragon_Actions takes nothing returns nothing
call CreateItemLoc('I02H',GetUnitLoc(GetDyingUnit()))
set udg_integer11=(udg_integer11+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("A Shadow Dragon has been killed by "+(GetPlayerName(GetOwningPlayer(GetKillingUnit()))+(". "+(I2S((7-udg_integer11))+" to go.")))))
if(Trig_Killed_a_Dragon_Func004C())then
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger169)
endif
endfunction
function Trig_Syn_Shenron_Actions takes nothing returns nothing
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6281")
call PlayThematicMusic("Sound\\Music\\mp3Music\\LichKingTheme.mp3")
call TriggerSleepAction(3.00)
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect131),10.00,1,100,50.00,0.00)
call CreateNUnitsAtLoc(1,'U00Q',Player(14),GetRectCenter(udg_rect131),270.00)
call TriggerExecute(udg_trigger126)
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6282")
endfunction
function Trig_Omega_Shenron_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U00Q'))
endfunction
function Trig_Omega_Shenron_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6285")
call TriggerSleepAction(6.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6288")
call PlayThematicMusic("Sound\\Music\\mp3Music\\UndeadDefeat.mp3")
call TriggerSleepAction(3.00)
call CreateNUnitsAtLoc(1,'U00R',Player(14),GetUnitLoc(GetDyingUnit()),270.00)
call TriggerExecute(udg_trigger126)
call PlaySoundAtPointBJ(udg_sound35,100,GetUnitLoc(bj_lastCreatedUnit),0)
call AddSpecialEffectLocBJ(GetUnitLoc(bj_lastCreatedUnit),"Abilities\\Spells\\Items\\StaffOfSanctuary\\Staff_Sanctuary_Target.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,"TRIGSTR_6286")
call TriggerSleepAction(6.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6289")
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6290")
endfunction
function Trig_Omega_Dies_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='U00R'))
endfunction
function Trig_Omega_Dies_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_6291")
call SetHeroLevelBJ(GetKillingUnit(),(GetUnitLevel(GetKillingUnit())+8),true)
call CreateItemLoc('I02I',GetUnitLoc(GetDyingUnit()))
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.00,("The Universe has been saved from Omega Shenron. Our savior is "+GetPlayerName(GetOwningPlayer(GetKillingUnit()))))
call PlayThematicMusic("Sound\\Music\\mp3Music\\OrcVictory.mp3")
endfunction
function Trig_Finish_Buster_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03V'))
endfunction
function Trig_Finish_Buster_Func005002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Finish_Buster_Func006A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Finish_Buster_Func016Func003002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Finish_Buster_Func016Func003002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Finish_Buster_Func016Func003002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Finish_Buster_Func016Func003002003001(),Trig_Finish_Buster_Func016Func003002003002())
endfunction
function Trig_Finish_Buster_Func016Func004A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Finish_Buster_Func016Func006Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Finish_Buster_Func016Func006A takes nothing returns nothing
if(Trig_Finish_Buster_Func016Func006Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Finish_Buster_Func017Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Finish_Buster_Func017Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Finish_Buster_Func017Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Finish_Buster_Func017Func002002003001(),Trig_Finish_Buster_Func017Func002002003002())
endfunction
function Trig_Finish_Buster_Func017Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Finish_Buster_Func025A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Finish_Buster_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Finish_Buster_Func005002003))
call ForGroupBJ(udg_group05,function Trig_Finish_Buster_Func006A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h018',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,0)
call SetUnitFlyHeight(bj_lastCreatedUnit,75.00,2000.00)
call RemoveLocation(udg_location09)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Finish_Buster_Func016Func003002003))
call ForGroupBJ(udg_group05,function Trig_Finish_Buster_Func016Func004A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(300.00,udg_location09,function Trig_Finish_Buster_Func016Func006A)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Finish_Buster_Func017Func002002003))
call ForGroupBJ(udg_group05,function Trig_Finish_Buster_Func017Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_location09=PolarProjectionBJ(udg_location07,900.00,AngleBetweenPoints(udg_location07,udg_location08))
call TerrainDeformationWaveBJ(3.00,udg_location07,udg_location09,400.00,128.00,1.00)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Finish_Buster_Func025A)
endfunction
function Trig_Gallet_Gun_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03N'))
endfunction
function Trig_Gallet_Gun_Func005002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Gallet_Gun_Func006A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Gallet_Gun_Func020Func003002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Gallet_Gun_Func020Func003002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Gallet_Gun_Func020Func003002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Gallet_Gun_Func020Func003002003001(),Trig_Gallet_Gun_Func020Func003002003002())
endfunction
function Trig_Gallet_Gun_Func020Func004A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Gallet_Gun_Func020Func006Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Gallet_Gun_Func020Func006A takes nothing returns nothing
if(Trig_Gallet_Gun_Func020Func006Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Gallet_Gun_Func021Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Gallet_Gun_Func021Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Gallet_Gun_Func021Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Gallet_Gun_Func021Func002002003001(),Trig_Gallet_Gun_Func021Func002002003002())
endfunction
function Trig_Gallet_Gun_Func021Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Gallet_Gun_Func029A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Gallet_Gun_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Gallet_Gun_Func005002003))
call ForGroupBJ(udg_group05,function Trig_Gallet_Gun_Func006A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h02Q',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(500.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(500.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(500.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,0.00,40.00,0)
call SetUnitFlyHeight(bj_lastCreatedUnit,100.00,2000.00)
call CreateNUnitsAtLoc(1,'h018',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,0.00,100.00,0)
call SetUnitFlyHeight(bj_lastCreatedUnit,75.00,2000.00)
call RemoveLocation(udg_location09)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Gallet_Gun_Func020Func003002003))
call ForGroupBJ(udg_group05,function Trig_Gallet_Gun_Func020Func004A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(300.00,udg_location09,function Trig_Gallet_Gun_Func020Func006A)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Gallet_Gun_Func021Func002002003))
call ForGroupBJ(udg_group05,function Trig_Gallet_Gun_Func021Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_location09=PolarProjectionBJ(udg_location07,900.00,AngleBetweenPoints(udg_location07,udg_location08))
call TerrainDeformationWaveBJ(3.00,udg_location07,udg_location09,400.00,128.00,1.00)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Gallet_Gun_Func029A)
endfunction
function Trig_Masenko_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A005'))
endfunction
function Trig_Masenko_Func005002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Masenko_Func006A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Masenko_Func017002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Masenko_Func018A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Masenko_Func020Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Masenko_Func020A takes nothing returns nothing
if(Trig_Masenko_Func020Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Masenko_Func028A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Masenko_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,10.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Masenko_Func005002003))
call ForGroupBJ(udg_group05,function Trig_Masenko_Func006A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h00X',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(450.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(450.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(450.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call CreateNUnitsAtLoc(1,'h00Y',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location08,udg_location07))
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call RemoveLocation(udg_location09)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))+100.00)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(400.00,udg_location08,Condition(function Trig_Masenko_Func017002003))
call ForGroupBJ(udg_group05,function Trig_Masenko_Func018A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(400.00,udg_location08,function Trig_Masenko_Func020A)
set udg_location09=PolarProjectionBJ(udg_location07,900.00,AngleBetweenPoints(udg_location07,udg_location08))
call TerrainDeformationWaveBJ(3.00,udg_location07,udg_location09,400.00,128.00,1.00)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Masenko_Func028A)
endfunction
function Trig_Death_Beam_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A032'))
endfunction
function Trig_Death_Beam_Func012Func003002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Death_Beam_Func012Func003002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Death_Beam_Func012Func003002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Death_Beam_Func012Func003002003001(),Trig_Death_Beam_Func012Func003002003002())
endfunction
function Trig_Death_Beam_Func012Func004A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Death_Beam_Func013Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Death_Beam_Func013Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Death_Beam_Func013Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Death_Beam_Func013Func002002003001(),Trig_Death_Beam_Func013Func002002003002())
endfunction
function Trig_Death_Beam_Func013Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Death_Beam_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.00)
call RemoveLocation(udg_location09)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*150.00),AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h031',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(200.00,udg_location09,Condition(function Trig_Death_Beam_Func012Func003002003))
call ForGroupBJ(udg_group05,function Trig_Death_Beam_Func012Func004A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*150.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(200.00,udg_location09,Condition(function Trig_Death_Beam_Func013Func002002003))
call ForGroupBJ(udg_group05,function Trig_Death_Beam_Func013Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
endfunction
function Trig_Energy_Beam_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00N'))
endfunction
function Trig_Energy_Beam_Actions takes nothing returns nothing
local unit udg_unit18
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,75.00,AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h032',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
set udg_unit18=bj_lastCreatedUnit
call SetUnitScalePercent(bj_lastCreatedUnit,(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.00)
call RemoveLocation(udg_location09)
set udg_location09=PolarProjectionBJ(udg_location07,3000.00,AngleBetweenPoints(udg_location07,udg_location08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_location09)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
set udg_location07=GetUnitLoc(udg_unit18)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped('A00N',GetTriggerUnit()))*1.00))+25.00)
call TriggerExecute(udg_trigger177)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.00)
set udg_location07=GetUnitLoc(udg_unit18)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped('A00N',GetTriggerUnit()))*1.00))+25.00)
call TriggerExecute(udg_trigger177)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.00)
set udg_location07=GetUnitLoc(udg_unit18)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped('A00N',GetTriggerUnit()))*1.00))+25.00)
call TriggerExecute(udg_trigger177)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.00)
set udg_location07=GetUnitLoc(udg_unit18)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped('A00N',GetTriggerUnit()))*1.00))+25.00)
call TriggerExecute(udg_trigger177)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.00)
set udg_location07=GetUnitLoc(udg_unit18)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped('A00N',GetTriggerUnit()))*1.00))+25.00)
call TriggerExecute(udg_trigger177)
call RemoveLocation(udg_location07)
endfunction
function Trig_Energy_Beam_DoT_Func003002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Energy_Beam_DoT_Func004A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Energy_Beam_DoT_Func006Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Energy_Beam_DoT_Func006A takes nothing returns nothing
if(Trig_Energy_Beam_DoT_Func006Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Energy_Beam_DoT_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h02S',GetTriggerPlayer(),udg_location07,GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,200.00,200.00,200.00)
set udg_group05=GetUnitsInRangeOfLocMatching(200.00,udg_location07,Condition(function Trig_Energy_Beam_DoT_Func003002003))
call ForGroupBJ(udg_group05,function Trig_Energy_Beam_DoT_Func004A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(200.00,udg_location07,function Trig_Energy_Beam_DoT_Func006A)
endfunction
function Trig_Final_Flash_Func001C takes nothing returns boolean
return((GetSpellAbilityId()=='A01B'))or((GetSpellAbilityId()=='A006'))
endfunction
function Trig_Final_Flash_Conditions takes nothing returns boolean
return(Trig_Final_Flash_Func001C())
endfunction
function Trig_Final_Flash_Func009002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Final_Flash_Func010A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Final_Flash_Func027Func005002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Final_Flash_Func027Func005002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Final_Flash_Func027Func005002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Final_Flash_Func027Func005002003001(),Trig_Final_Flash_Func027Func005002003002())
endfunction
function Trig_Final_Flash_Func027Func006A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Final_Flash_Func027Func008Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Final_Flash_Func027Func008A takes nothing returns nothing
if(Trig_Final_Flash_Func027Func008Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Final_Flash_Func028Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Final_Flash_Func028Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Final_Flash_Func028Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Final_Flash_Func028Func002002003001(),Trig_Final_Flash_Func028Func002002003002())
endfunction
function Trig_Final_Flash_Func028Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Final_Flash_Func037A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Final_Flash_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,350.00,AngleBetweenPoints(udg_location07,udg_location08))
call AddSpecialEffectTargetUnitBJ("hand left",GetTriggerUnit(),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectTargetUnitBJ("hand right",GetTriggerUnit(),"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
call TriggerExecute(udg_trigger620)
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Final_Flash_Func009002003))
call ForGroupBJ(udg_group05,function Trig_Final_Flash_Func010A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h02B',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(200.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(200.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(200.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call RemoveLocation(udg_location09)
set udg_location09=PolarProjectionBJ(udg_location07,100.00,AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h02C',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call CreateNUnitsAtLoc(1,'h02A',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call CreateNUnitsAtLoc(1,'h029',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(200.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(200.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(200.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,25.00)
call KillUnit(bj_lastCreatedUnit)
call RemoveLocation(udg_location09)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
call SetTerrainTypeBJ(udg_location09,'Kdtr',-1,3,0)
call SetTerrainTypeBJ(udg_location09,'Jdtr',-1,2,0)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Final_Flash_Func027Func005002003))
call ForGroupBJ(udg_group05,function Trig_Final_Flash_Func027Func006A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(300.00,udg_location09,function Trig_Final_Flash_Func027Func008A)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Final_Flash_Func028Func002002003))
call ForGroupBJ(udg_group05,function Trig_Final_Flash_Func028Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_location09=PolarProjectionBJ(udg_location07,600.00,AngleBetweenPoints(udg_location07,udg_location08))
call TerrainDeformationWaveBJ(3.00,udg_location07,udg_location09,400.00,128.00,1.00)
call TerrainDeformationRippleBJ(3.00,true,udg_location07,500.00,500.00,96.00,1,50.00)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Final_Flash_Func037A)
endfunction
function Trig_Kamehameha_Func001C takes nothing returns boolean
return((GetSpellAbilityId()=='A00R'))or((GetSpellAbilityId()=='A01H'))or((GetSpellAbilityId()=='A006'))
endfunction
function Trig_Kamehameha_Conditions takes nothing returns boolean
return(Trig_Kamehameha_Func001C())
endfunction
function Trig_Kamehameha_Func005002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Kamehameha_Func006A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Kamehameha_Func022Func005002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Kamehameha_Func022Func005002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Kamehameha_Func022Func005002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Kamehameha_Func022Func005002003001(),Trig_Kamehameha_Func022Func005002003002())
endfunction
function Trig_Kamehameha_Func022Func006A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Kamehameha_Func022Func008Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Kamehameha_Func022Func008A takes nothing returns nothing
if(Trig_Kamehameha_Func022Func008Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Kamehameha_Func023Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Kamehameha_Func023Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Kamehameha_Func023Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Kamehameha_Func023Func002002003001(),Trig_Kamehameha_Func023Func002002003002())
endfunction
function Trig_Kamehameha_Func023Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Kamehameha_Func031A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Kamehameha_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Kamehameha_Func005002003))
call ForGroupBJ(udg_group05,function Trig_Kamehameha_Func006A)
call DestroyGroup(udg_group05)
call AddSpecialEffectLocBJ(udg_location09,"Objects\\Spawnmodels\\NightElf\\NEDeathSmall\\NEDeathSmall.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(udg_location09,"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call TriggerExecute(udg_trigger620)
call CreateNUnitsAtLoc(1,'h018',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(250.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(250.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(250.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call CreateNUnitsAtLoc(1,'h029',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,15.00)
call KillUnit(bj_lastCreatedUnit)
call RemoveLocation(udg_location09)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
call SetTerrainTypeBJ(udg_location09,'Kdtr',-1,3,0)
call SetTerrainTypeBJ(udg_location09,'Jdtr',-1,2,0)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Kamehameha_Func022Func005002003))
call ForGroupBJ(udg_group05,function Trig_Kamehameha_Func022Func006A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(300.00,udg_location09,function Trig_Kamehameha_Func022Func008A)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Kamehameha_Func023Func002002003))
call ForGroupBJ(udg_group05,function Trig_Kamehameha_Func023Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_location09=PolarProjectionBJ(udg_location07,900.00,AngleBetweenPoints(udg_location07,udg_location08))
call TerrainDeformationWaveBJ(3.00,udg_location07,udg_location09,400.00,128.00,1.00)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Kamehameha_Func031A)
endfunction
function Trig_Special_Beam_Cannon_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03U'))
endfunction
function Trig_Special_Beam_Cannon_Func005002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Special_Beam_Cannon_Func006A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Special_Beam_Cannon_Func015Func003002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Special_Beam_Cannon_Func015Func003002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Special_Beam_Cannon_Func015Func003002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Special_Beam_Cannon_Func015Func003002003001(),Trig_Special_Beam_Cannon_Func015Func003002003002())
endfunction
function Trig_Special_Beam_Cannon_Func015Func004A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Special_Beam_Cannon_Func016Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Special_Beam_Cannon_Func016Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Special_Beam_Cannon_Func016Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Special_Beam_Cannon_Func016Func002002003001(),Trig_Special_Beam_Cannon_Func016Func002002003002())
endfunction
function Trig_Special_Beam_Cannon_Func016Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Special_Beam_Cannon_Func021A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Special_Beam_Cannon_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Special_Beam_Cannon_Func005002003))
call ForGroupBJ(udg_group05,function Trig_Special_Beam_Cannon_Func006A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h010',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.00)
call RemoveLocation(udg_location09)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.50))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*150.00),AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h014',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(200.00,udg_location09,Condition(function Trig_Special_Beam_Cannon_Func015Func003002003))
call ForGroupBJ(udg_group05,function Trig_Special_Beam_Cannon_Func015Func004A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*150.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(200.00,udg_location09,Condition(function Trig_Special_Beam_Cannon_Func016Func002002003))
call ForGroupBJ(udg_group05,function Trig_Special_Beam_Cannon_Func016Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Special_Beam_Cannon_Func021A)
endfunction
function Trig_Flesh_Attack_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01C'))
endfunction
function Trig_Flesh_Attack_Actions takes nothing returns nothing
set udg_location08=GetSpellTargetLoc()
call CreateNUnitsAtLoc(1,'h033',GetTriggerPlayer(),udg_location08,GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,(300.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(300.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(300.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))+100.00)
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetSpellTargetUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call RemoveLocation(udg_location08)
endfunction
function Trig_Big_Bang_Attack_Func001C takes nothing returns boolean
return((GetSpellAbilityId()=='A00P'))or((GetSpellAbilityId()=='A01H'))
endfunction
function Trig_Big_Bang_Attack_Conditions takes nothing returns boolean
return(Trig_Big_Bang_Attack_Func001C())
endfunction
function Trig_Big_Bang_Attack_Func005002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Big_Bang_Attack_Func006A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Big_Bang_Attack_Func021002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Big_Bang_Attack_Func022A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Big_Bang_Attack_Func024Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Big_Bang_Attack_Func024A takes nothing returns nothing
if(Trig_Big_Bang_Attack_Func024Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Big_Bang_Attack_Func030A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Big_Bang_Attack_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Big_Bang_Attack_Func005002003))
call ForGroupBJ(udg_group05,function Trig_Big_Bang_Attack_Func006A)
call DestroyGroup(udg_group05)
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,3,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,2,0)
call CreateNUnitsAtLoc(1,'h02Q',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(650.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(650.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(650.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call CreateNUnitsAtLoc(1,'h02J',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call RemoveLocation(udg_location09)
call CreateNUnitsAtLoc(1,'h02I',GetTriggerPlayer(),udg_location08,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(450.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(450.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(450.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,20.00)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*4.00))+100.00)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location08,Condition(function Trig_Big_Bang_Attack_Func021002003))
call ForGroupBJ(udg_group05,function Trig_Big_Bang_Attack_Func022A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(300.00,udg_location08,function Trig_Big_Bang_Attack_Func024A)
call TerrainDeformationRippleBJ(3.00,true,udg_location08,500.00,500.00,96.00,1,50.00)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Big_Bang_Attack_Func030A)
endfunction
function Trig_Burning_Attack_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03I'))
endfunction
function Trig_Burning_Attack_Func006002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Burning_Attack_Func007A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*1.50))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Burning_Attack_Func019Func005002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Burning_Attack_Func019Func005002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Burning_Attack_Func019Func005002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Burning_Attack_Func019Func005002003001(),Trig_Burning_Attack_Func019Func005002003002())
endfunction
function Trig_Burning_Attack_Func019Func006A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Burning_Attack_Func019Func008Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Burning_Attack_Func019Func008A takes nothing returns nothing
if(Trig_Burning_Attack_Func019Func008Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Burning_Attack_Func020Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Burning_Attack_Func020Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Burning_Attack_Func020Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Burning_Attack_Func020Func002002003001(),Trig_Burning_Attack_Func020Func002002003002())
endfunction
function Trig_Burning_Attack_Func020Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Burning_Attack_Func028A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Burning_Attack_Func031Func004002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Burning_Attack_Func031Func004002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Burning_Attack_Func031Func004002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Burning_Attack_Func031Func004002003001(),Trig_Burning_Attack_Func031Func004002003002())
endfunction
function Trig_Burning_Attack_Func031Func005A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Burning_Attack_Func032Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Burning_Attack_Func032Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Burning_Attack_Func032Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Burning_Attack_Func032Func002002003001(),Trig_Burning_Attack_Func032Func002002003002())
endfunction
function Trig_Burning_Attack_Func032Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Burning_Attack_Func037A takes nothing returns nothing
set udg_location07=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_location07,"Objects\\Spawnmodels\\Human\\SmallFlameSpawn\\SmallFlameSpawn.mdl")
call TriggerExecute(udg_trigger620)
call RemoveLocation(udg_location07)
call KillUnit(GetEnumUnit())
endfunction
function Trig_Burning_Attack_Actions takes nothing returns nothing
local location udg_location10
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location10=GetSpellTargetLoc()
set udg_location08=udg_location10
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(400.00,udg_location07,Condition(function Trig_Burning_Attack_Func006002003))
call ForGroupBJ(udg_group05,function Trig_Burning_Attack_Func007A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h02D',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call CreateNUnitsAtLoc(1,'h02G',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(250.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(250.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(250.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call RemoveLocation(udg_location09)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*4.00))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
call SetTerrainTypeBJ(udg_location09,'Kdtr',-1,3,0)
call SetTerrainTypeBJ(udg_location09,'Jdtr',-1,2,0)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Burning_Attack_Func019Func005002003))
call ForGroupBJ(udg_group05,function Trig_Burning_Attack_Func019Func006A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(300.00,udg_location09,function Trig_Burning_Attack_Func019Func008A)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Burning_Attack_Func020Func002002003))
call ForGroupBJ(udg_group05,function Trig_Burning_Attack_Func020Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_location09=PolarProjectionBJ(udg_location07,600.00,AngleBetweenPoints(udg_location07,udg_location08))
call TerrainDeformationWaveBJ(3.00,udg_location07,udg_location09,400.00,128.00,1.00)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
set udg_location08=udg_location10
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Burning_Attack_Func028A)
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped('A03I',GetTriggerUnit()))*1.50))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h02H',GetTriggerPlayer(),udg_location09,GetRandomReal(0,360))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100,100,100,50.00)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Burning_Attack_Func031Func004002003))
call ForGroupBJ(udg_group05,function Trig_Burning_Attack_Func031Func005A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*200.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Burning_Attack_Func032Func002002003))
call ForGroupBJ(udg_group05,function Trig_Burning_Attack_Func032Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location10)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
set udg_group05=GetUnitsOfTypeIdAll('h02H')
call ForGroupBJ(udg_group05,function Trig_Burning_Attack_Func037A)
call DestroyGroup(udg_group05)
endfunction
function Trig_Dragon_Fist_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00U'))
endfunction
function Trig_Dragon_Fist_Func007002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Dragon_Fist_Func008A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Dragon_Fist_Func022002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Dragon_Fist_Func023A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Dragon_Fist_Func035A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Dragon_Fist_Actions takes nothing returns nothing
local location udg_location10
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location10=GetSpellTargetLoc()
set udg_location08=udg_location10
call PlaySoundAtPointBJ(udg_sound41,100,udg_location08,0.00)
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Dragon_Fist_Func007002003))
call ForGroupBJ(udg_group05,function Trig_Dragon_Fist_Func008A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h02N',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,25.00)
call CreateNUnitsAtLoc(1,'h02M',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call CreateNUnitsAtLoc(1,'h02K',GetTriggerPlayer(),udg_location08,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,800.00)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*5.00))+100.00)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location08,Condition(function Trig_Dragon_Fist_Func022002003))
call ForGroupBJ(udg_group05,function Trig_Dragon_Fist_Func023A)
call DestroyGroup(udg_group05)
call TerrainDeformationWaveBJ(3.00,udg_location07,udg_location08,400.00,128.00,1.00)
call TerrainDeformationRippleBJ(5.00,true,udg_location08,500.00,500.00,96.00,1,50.00)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.00)
set udg_location08=udg_location10
call CreateNUnitsAtLoc(1,'h02L',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped('A00U',GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped('A00U',GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped('A00U',GetTriggerUnit()))*10.00)))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call RemoveLocation(udg_location10)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Dragon_Fist_Func035A)
endfunction
function Trig_Hell_Zone_Grenade_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03G'))
endfunction
function Trig_Hell_Zone_Grenade_Func010A takes nothing returns nothing
call IssuePointOrderLoc(GetEnumUnit(),"move",udg_location08)
call SetUnitFlyHeight(GetEnumUnit(),25.00,500.00)
endfunction
function Trig_Hell_Zone_Grenade_Func016002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Hell_Zone_Grenade_Func017A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Hell_Zone_Grenade_Func029002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Hell_Zone_Grenade_Func030A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Hell_Zone_Grenade_Func032Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Hell_Zone_Grenade_Func032A takes nothing returns nothing
if(Trig_Hell_Zone_Grenade_Func032Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Hell_Zone_Grenade_Func036A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Hell_Zone_Grenade_Actions takes nothing returns nothing
local location udg_location10
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location10=GetSpellTargetLoc()
set udg_location08=udg_location10
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location08,GetRandomReal(400.00,600.00),(I2R(bj_forLoopAIndex)*36.00))
call CreateNUnitsAtLoc(1,'h00V',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(GetRandomReal(100.00,500.00)+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(GetRandomReal(100.00,500.00)+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(GetRandomReal(100.00,500.00)+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitFlyHeight(bj_lastCreatedUnit,GetRandomReal(0,800.00),50.00)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
set udg_location08=udg_location10
set udg_group05=GetUnitsOfTypeIdAll('h00V')
call ForGroupBJ(udg_group05,function Trig_Hell_Zone_Grenade_Func010A)
call DestroyGroup(udg_group05)
call TriggerSleepAction(2.00)
set udg_location08=udg_location10
call CameraSetEQNoiseForPlayer(GetTriggerPlayer(),(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetTriggerPlayer(),(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*3.00),200.00)
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location08,Condition(function Trig_Hell_Zone_Grenade_Func016002003))
call ForGroupBJ(udg_group05,function Trig_Hell_Zone_Grenade_Func017A)
call DestroyGroup(udg_group05)
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,4,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,3,0)
call TerrainDeformationRippleBJ(4,false,udg_location08,600.00,600.00,128.00,1,512)
call CreateNUnitsAtLoc(1,'h02L',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*10.00)))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call CreateNUnitsAtLoc(1,'h02N',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*10.00)))
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped('A03G',GetTriggerUnit()))*5.00))+100.00)
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location08,Condition(function Trig_Hell_Zone_Grenade_Func029002003))
call ForGroupBJ(udg_group05,function Trig_Hell_Zone_Grenade_Func030A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(512.00,udg_location08,function Trig_Hell_Zone_Grenade_Func032A)
call RemoveLocation(udg_location10)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Hell_Zone_Grenade_Func036A)
endfunction
function Trig_Energy_Sparkle_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00L'))
endfunction
function Trig_Energy_Sparkle_Func009Func003002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Energy_Sparkle_Func009Func003002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Energy_Sparkle_Func009Func003002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Energy_Sparkle_Func009Func003002003001(),Trig_Energy_Sparkle_Func009Func003002003002())
endfunction
function Trig_Energy_Sparkle_Func009Func004A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Energy_Sparkle_Func010Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Energy_Sparkle_Func010Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Energy_Sparkle_Func010Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Energy_Sparkle_Func010Func002002003001(),Trig_Energy_Sparkle_Func010Func002002003002())
endfunction
function Trig_Energy_Sparkle_Func010Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Energy_Sparkle_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
call CreateNUnitsAtLoc(1,'h02P',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*5.00))+200.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*100.00),AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h02P',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(125.00,udg_location09,Condition(function Trig_Energy_Sparkle_Func009Func003002003))
call ForGroupBJ(udg_group05,function Trig_Energy_Sparkle_Func009Func004A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*100.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(125.00,udg_location09,Condition(function Trig_Energy_Sparkle_Func010Func002002003))
call ForGroupBJ(udg_group05,function Trig_Energy_Sparkle_Func010Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
endfunction
function Trig_Sword_of_Energy_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00B'))
endfunction
function Trig_Sword_of_Energy_Func005002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Sword_of_Energy_Func006A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Sword_of_Energy_Func017Func005002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Sword_of_Energy_Func017Func005002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT)==false)
endfunction
function Trig_Sword_of_Energy_Func017Func005002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Sword_of_Energy_Func017Func005002003001(),Trig_Sword_of_Energy_Func017Func005002003002())
endfunction
function Trig_Sword_of_Energy_Func017Func006A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call UnitAddType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Sword_of_Energy_Func017Func008Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Sword_of_Energy_Func017Func008A takes nothing returns nothing
if(Trig_Sword_of_Energy_Func017Func008Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Sword_of_Energy_Func018Func002002003001 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetTriggerPlayer())==false)
endfunction
function Trig_Sword_of_Energy_Func018Func002002003002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_ANCIENT))
endfunction
function Trig_Sword_of_Energy_Func018Func002002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Sword_of_Energy_Func018Func002002003001(),Trig_Sword_of_Energy_Func018Func002002003002())
endfunction
function Trig_Sword_of_Energy_Func018Func003A takes nothing returns nothing
call UnitRemoveType(GetEnumUnit(),UNIT_TYPE_ANCIENT)
endfunction
function Trig_Sword_of_Energy_Func026A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Sword_of_Energy_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Sword_of_Energy_Func005002003))
call ForGroupBJ(udg_group05,function Trig_Sword_of_Energy_Func006A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h00J',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call CreateNUnitsAtLoc(1,'h00L',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(600.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(600.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(600.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call QueueUnitAnimation(bj_lastCreatedUnit,"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location09)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*5.00))+200.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*150.00),AngleBetweenPoints(udg_location07,udg_location08))
call SetTerrainTypeBJ(udg_location09,'Kdtr',-1,2,0)
call SetTerrainTypeBJ(udg_location09,'Jdtr',-1,1,0)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(200.00,udg_location09,Condition(function Trig_Sword_of_Energy_Func017Func005002003))
call ForGroupBJ(udg_group05,function Trig_Sword_of_Energy_Func017Func006A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(200.00,udg_location09,function Trig_Sword_of_Energy_Func017Func008A)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,(I2R(bj_forLoopAIndex)*150.00),AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(200.00,udg_location09,Condition(function Trig_Sword_of_Energy_Func018Func002002003))
call ForGroupBJ(udg_group05,function Trig_Sword_of_Energy_Func018Func003A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_location09=PolarProjectionBJ(udg_location07,900.00,AngleBetweenPoints(udg_location07,udg_location08))
call TerrainDeformationWaveBJ(2.00,udg_location07,udg_location09,200.00,256.00,0.50)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Sword_of_Energy_Func026A)
endfunction
function Trig_SS_Deadly_Bomb_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A041'))
endfunction
function Trig_SS_Deadly_Bomb_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,110.00,AngleBetweenPoints(udg_location07,udg_location08))
call CreateNUnitsAtLoc(1,'h035',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
set udg_unit24=bj_lastCreatedUnit
call SetUnitScalePercent(bj_lastCreatedUnit,1.00,1.00,1.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,5.00,5.00,25.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,300.00,10.00)
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Weapons\\WitchDoctorMissile\\WitchDoctorMissile.mdl")
call TriggerExecute(udg_trigger621)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call SetUnitUserData(bj_lastCreatedUnit,GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))
call PlaySoundOnUnitBJ(udg_sound43,100,udg_unit24)
call EnableTrigger(udg_trigger189)
call TriggerSleepAction(2.00)
call DisableTrigger(udg_trigger189)
set udg_location07=GetUnitLoc(udg_unit24)
set udg_location09=PolarProjectionBJ(udg_location07,3000.00,GetUnitFacing(udg_unit24))
call IssuePointOrderLoc(udg_unit24,"move",udg_location09)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location07)
call EnableTrigger(udg_trigger190)
call TriggerSleepAction(5.00)
call DisableTrigger(udg_trigger190)
call StopSoundBJ(udg_sound43,true)
endfunction
function Trig_Build_SS_Deadly_Bomb_Actions takes nothing returns nothing
set udg_real02=(1500.00-(GetUnitLifePercent(udg_unit24)*15.00))
call SetUnitScalePercent(udg_unit24,udg_real02,udg_real02,udg_real02)
endfunction
function Trig_SS_Deadly_Bomb_DoT_Func009C takes nothing returns boolean
return((GetOwningPlayer(udg_unit71)==Player(4)))
endfunction
function Trig_SS_Deadly_Bomb_DoT_Func011002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),Player(4))==false)
endfunction
function Trig_SS_Deadly_Bomb_DoT_Func012A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_SS_Deadly_Bomb_DoT_Func014Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_SS_Deadly_Bomb_DoT_Func014A takes nothing returns nothing
if(Trig_SS_Deadly_Bomb_DoT_Func014Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_SS_Deadly_Bomb_DoT_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(udg_unit24)
call SetTerrainTypeBJ(udg_location07,'Kdtr',-1,3,0)
call SetTerrainTypeBJ(udg_location07,'Jdtr',-1,2,0)
call TerrainDeformationRippleBJ(1.00,true,udg_location07,350.00,350.00,64.00,0.50,100.00)
call CreateNUnitsAtLoc(1,'h02L',Player(4),udg_location07,GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,75.00,75.00,75.00)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
if(Trig_SS_Deadly_Bomb_DoT_Func009C())then
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit71,false))*(I2R(GetUnitUserData(udg_unit24))*2.00))+100.00)
else
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit65,false))*(I2R(GetUnitUserData(udg_unit24))*2.00))+100.00)
endif
call CreateNUnitsAtLoc(1,'h028',Player(4),udg_location07,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location07,Condition(function Trig_SS_Deadly_Bomb_DoT_Func011002003))
call ForGroupBJ(udg_group05,function Trig_SS_Deadly_Bomb_DoT_Func012A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(300.00,udg_location07,function Trig_SS_Deadly_Bomb_DoT_Func014A)
call RemoveLocation(udg_location07)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit24,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.50)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit24,"Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Death_Ball_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00M'))
endfunction
function Trig_Death_Ball_Func006002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Death_Ball_Func007A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Death_Ball_Func030A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Death_Ball_Actions takes nothing returns nothing
local location udg_location10
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location10=GetSpellTargetLoc()
set udg_location08=udg_location10
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Death_Ball_Func006002003))
call ForGroupBJ(udg_group05,function Trig_Death_Ball_Func007A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h02U',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
set udg_unit25=bj_lastCreatedUnit
call SetUnitScalePercent(bj_lastCreatedUnit,1.00,1.00,1.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,0.00,15.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,500.00,150.00)
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Weapons\\RedDragonBreath\\RedDragonMissile.mdl")
call TriggerExecute(udg_trigger621)
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Spells\\Other\\Doom\\DoomTarget.mdl")
call TriggerExecute(udg_trigger621)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location07)
call IssueImmediateOrder(bj_lastCreatedUnit,"holdposition")
call EnableTrigger(udg_trigger192)
call TriggerSleepAction(2)
call DisableTrigger(udg_trigger192)
set udg_location08=udg_location10
call SetUnitFlyHeight(udg_unit25,0.00,50.00)
call IssuePointOrderLoc(udg_unit25,"attack",udg_location08)
call SetUnitUserData(udg_unit25,GetUnitAbilityLevelSwapped('A00M',GetTriggerUnit()))
call RemoveLocation(udg_location10)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Death_Ball_Func030A)
endfunction
function Trig_Build_Death_Ball_Actions takes nothing returns nothing
set udg_real02=(2000.00-(GetUnitLifePercent(udg_unit25)*20.00))
call SetUnitScalePercent(udg_unit25,udg_real02,udg_real02,udg_real02)
endfunction
function Trig_Death_Ball_Attack_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='h02U'))
endfunction
function Trig_Death_Ball_Attack_Func005002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Death_Ball_Attack_Func006A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Death_Ball_Attack_Func025Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Death_Ball_Attack_Func025A takes nothing returns nothing
if(Trig_Death_Ball_Attack_Func025Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Death_Ball_Attack_Func040A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Death_Ball_Attack_Actions takes nothing returns nothing
local location udg_location10
set udg_location10=GetUnitLoc(GetTriggerUnit())
set udg_location08=udg_location10
set udg_location09=PolarProjectionBJ(udg_location08,5.00,0.00)
set udg_group05=GetUnitsInRangeOfLocMatching(1024.00,udg_location08,Condition(function Trig_Death_Ball_Attack_Func005002003))
call ForGroupBJ(udg_group05,function Trig_Death_Ball_Attack_Func006A)
call DestroyGroup(udg_group05)
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,5,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,4,0)
call TerrainDeformationRippleBJ(10.00,true,udg_location08,1024.00,1024.00,128.00,1,256.00)
call TerrainDeformationWaveBJ(5.00,udg_location08,udg_location09,1024.00,256.00,10.00)
call RemoveLocation(udg_location09)
call CreateNUnitsAtLoc(1,'h02V',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h02W',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitFlyHeight(bj_lastCreatedUnit,3000.00,150.00)
call CreateNUnitsAtLoc(1,'h02L',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(600.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(600.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(600.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call CreateNUnitsAtLoc(1,'h017',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(600.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(600.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(600.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,75.00,40.00,0)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,15.00)
call KillUnit(bj_lastCreatedUnit)
call EnumDestructablesInCircleBJ(1024.00,udg_location08,function Trig_Death_Ball_Attack_Func025A)
call TriggerExecute(udg_trigger194)
call TriggerSleepAction(2.00)
set udg_location08=udg_location10
call TriggerExecute(udg_trigger194)
call TriggerSleepAction(2.00)
set udg_location08=udg_location10
call TriggerExecute(udg_trigger194)
call TriggerSleepAction(2.00)
set udg_location08=udg_location10
call TriggerExecute(udg_trigger194)
call RemoveLocation(udg_location10)
call TriggerSleepAction(1.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Death_Ball_Attack_Func040A)
endfunction
function Trig_Death_Ball_DoT_Func003002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(udg_unit52))==false)
endfunction
function Trig_Death_Ball_DoT_Func004A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Death_Ball_DoT_Actions takes nothing returns nothing
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit52,false))*(I2R(GetUnitAbilityLevelSwapped('A00M',udg_unit52))*1.00))+25.00)
call CreateNUnitsAtLoc(1,'h028',Player(11),udg_location08,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(1024.00,udg_location08,Condition(function Trig_Death_Ball_DoT_Func003002003))
call ForGroupBJ(udg_group05,function Trig_Death_Ball_DoT_Func004A)
call DestroyGroup(udg_group05)
endfunction
function Trig_Vanishing_Ball_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01E'))
endfunction
function Trig_Vanishing_Ball_Func004002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Vanishing_Ball_Func005A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Vanishing_Ball_Func021A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Vanishing_Ball_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Vanishing_Ball_Func004002003))
call ForGroupBJ(udg_group05,function Trig_Vanishing_Ball_Func005A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h02R',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h019',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(400.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(400.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(400.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,50.00)
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Weapons\\WitchDoctorMissile\\WitchDoctorMissile.mdl")
call TriggerExecute(udg_trigger621)
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl")
call TriggerExecute(udg_trigger621)
call IssueTargetOrder(bj_lastCreatedUnit,"attackonce",GetSpellTargetUnit())
call SetUnitUserData(bj_lastCreatedUnit,GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Vanishing_Ball_Func021A)
endfunction
function Trig_Vanishing_Ball_Attack_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='h019'))
endfunction
function Trig_Vanishing_Ball_Attack_Func002002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Vanishing_Ball_Attack_Func003A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Vanishing_Ball_Attack_Func016C takes nothing returns boolean
return((GetOwningPlayer(udg_unit75)==Player(7)))
endfunction
function Trig_Vanishing_Ball_Attack_Func018002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Vanishing_Ball_Attack_Func019A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Vanishing_Ball_Attack_Func021Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Vanishing_Ball_Attack_Func021A takes nothing returns nothing
if(Trig_Vanishing_Ball_Attack_Func021Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Vanishing_Ball_Attack_Func025A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Vanishing_Ball_Attack_Actions takes nothing returns nothing
set udg_location08=GetUnitLoc(GetTriggerUnit())
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location08,Condition(function Trig_Vanishing_Ball_Attack_Func002002003))
call ForGroupBJ(udg_group05,function Trig_Vanishing_Ball_Attack_Func003A)
call DestroyGroup(udg_group05)
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,5,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,4,0)
call TerrainDeformationRippleBJ(3.00,false,udg_location08,512.00,512.00,128.00,1,256.00)
call CreateNUnitsAtLoc(1,'h02S',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)))
call CreateNUnitsAtLoc(1,'h017',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,20.00,50.00,0)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,15.00)
call KillUnit(bj_lastCreatedUnit)
if(Trig_Vanishing_Ball_Attack_Func016C())then
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit75,false))*(I2R(GetUnitUserData(GetTriggerUnit()))*3.00))+100.00)
else
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit79,false))*(I2R(GetUnitUserData(GetTriggerUnit()))*3.00))+100.00)
endif
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location08,Condition(function Trig_Vanishing_Ball_Attack_Func018002003))
call ForGroupBJ(udg_group05,function Trig_Vanishing_Ball_Attack_Func019A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(512.00,udg_location08,function Trig_Vanishing_Ball_Attack_Func021A)
call RemoveLocation(udg_location08)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Vanishing_Ball_Attack_Func025A)
endfunction
function Trig_Destruction_Sphere_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A016'))
endfunction
function Trig_Destruction_Sphere_Func004002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Destruction_Sphere_Func005A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Destruction_Sphere_Func024A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Destruction_Sphere_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location07,150.00,AngleBetweenPoints(udg_location07,udg_location08))
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Destruction_Sphere_Func004002003))
call ForGroupBJ(udg_group05,function Trig_Destruction_Sphere_Func005A)
call DestroyGroup(udg_group05)
call CreateNUnitsAtLoc(1,'h02R',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,50.00,0)
call CreateNUnitsAtLoc(1,'h02T',GetTriggerPlayer(),udg_location09,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(400.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(400.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(400.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,50.00)
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Weapons\\GreenDragonMissile\\GreenDragonMissile.mdl")
call TriggerExecute(udg_trigger621)
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl")
call TriggerExecute(udg_trigger621)
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Spells\\Undead\\DarkSummoning\\DarkSummonMissile.mdl")
call TriggerExecute(udg_trigger621)
call IssuePointOrderLoc(bj_lastCreatedUnit,"attack",udg_location08)
call SetUnitUserData(bj_lastCreatedUnit,GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Destruction_Sphere_Func024A)
endfunction
function Trig_Destruction_Sphere_Attack_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='h02T'))
endfunction
function Trig_Destruction_Sphere_Attack_Func002002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Destruction_Sphere_Attack_Func003A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Destruction_Sphere_Attack_Func019002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Destruction_Sphere_Attack_Func020A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Destruction_Sphere_Attack_Func022Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Destruction_Sphere_Attack_Func022A takes nothing returns nothing
if(Trig_Destruction_Sphere_Attack_Func022Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Destruction_Sphere_Attack_Func026A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Destruction_Sphere_Attack_Actions takes nothing returns nothing
set udg_location08=GetUnitLoc(GetTriggerUnit())
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location08,Condition(function Trig_Destruction_Sphere_Attack_Func002002003))
call ForGroupBJ(udg_group05,function Trig_Destruction_Sphere_Attack_Func003A)
call DestroyGroup(udg_group05)
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,5,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,4,0)
call TerrainDeformationRippleBJ(3.00,false,udg_location08,512.00,512.00,128.00,1,256.00)
call CreateNUnitsAtLoc(1,'h02S',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,50.00,0)
call CreateNUnitsAtLoc(1,'h017',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,50.00,0)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,15.00)
call KillUnit(bj_lastCreatedUnit)
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit67,false))*(I2R(GetUnitUserData(GetTriggerUnit()))*4.00))+100.00)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location08,Condition(function Trig_Destruction_Sphere_Attack_Func019002003))
call ForGroupBJ(udg_group05,function Trig_Destruction_Sphere_Attack_Func020A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(512.00,udg_location08,function Trig_Destruction_Sphere_Attack_Func022A)
call RemoveLocation(udg_location08)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Destruction_Sphere_Attack_Func026A)
endfunction
function Trig_Revenge_Death_Ball_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03C'))
endfunction
function Trig_Revenge_Death_Ball_Func006002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Revenge_Death_Ball_Func007A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Revenge_Death_Ball_Func021A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Revenge_Death_Ball_Actions takes nothing returns nothing
local location udg_location10
set udg_location10=GetSpellTargetLoc()
set udg_location08=udg_location10
call CameraSetEQNoiseForPlayer(GetTriggerPlayer(),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetTriggerPlayer(),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location08,Condition(function Trig_Revenge_Death_Ball_Func006002003))
call ForGroupBJ(udg_group05,function Trig_Revenge_Death_Ball_Func007A)
call DestroyGroup(udg_group05)
call TerrainDeformationRippleBJ(5.00,true,udg_location08,1024.00,1024.00,128.00,2.00,512.00)
call CreateNUnitsAtLoc(1,'h02X',GetTriggerPlayer(),udg_location08,AngleBetweenPoints(udg_location07,udg_location08))
call SetUnitScalePercent(bj_lastCreatedUnit,(500.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(500.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(500.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,1.00,1.00,1.00,0.00)
call SetUnitFlyHeight(bj_lastCreatedUnit,0.00,80.00)
call PlaySoundOnUnitBJ(udg_sound42,100,bj_lastCreatedUnit)
call SetUnitUserData(bj_lastCreatedUnit,GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Weapons\\WitchDoctorMissile\\WitchDoctorMissile.mdl")
call TriggerExecute(udg_trigger622)
call AddSpecialEffectTargetUnitBJ("chest",bj_lastCreatedUnit,"Abilities\\Weapons\\LavaSpawnMissile\\LavaSpawnMissile.mdl")
call TriggerExecute(udg_trigger622)
call TriggerSleepAction(0.50)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Revenge_Death_Ball_Func021A)
call TriggerSleepAction(4.25)
set udg_location08=udg_location10
call CreateNUnitsAtLoc(1,'h02W',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitFlyHeight(bj_lastCreatedUnit,3000.00,2000.00)
call CreateNUnitsAtLoc(1,'h017',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(400.00+(I2R(GetUnitAbilityLevelSwapped('A03C',GetTriggerUnit()))*10.00)),(400.00+(I2R(GetUnitAbilityLevelSwapped('A03C',GetTriggerUnit()))*10.00)),(400.00+(I2R(GetUnitAbilityLevelSwapped('A03C',GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,20.00,0)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,15.00)
call KillUnit(bj_lastCreatedUnit)
set udg_location09=PolarProjectionBJ(udg_location08,5.00,0.00)
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,6,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,5,0)
call TerrainDeformationRippleBJ(1.25,true,udg_location08,1024.00,1024.00,128.00,1,256.00)
call TerrainDeformationWaveBJ(0.50,udg_location08,udg_location09,1024.00,256.00,10.00)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location10)
endfunction
function Trig_Revenge_Death_Ball_Attack_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='h02X'))
endfunction
function Trig_Revenge_Death_Ball_Attack_Func002002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Revenge_Death_Ball_Attack_Func003A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Revenge_Death_Ball_Attack_Func013C takes nothing returns boolean
return((GetOwningPlayer(udg_unit77)==Player(8)))
endfunction
function Trig_Revenge_Death_Ball_Attack_Func015002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Revenge_Death_Ball_Attack_Func016A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Revenge_Death_Ball_Attack_Func018Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Revenge_Death_Ball_Attack_Func018A takes nothing returns nothing
if(Trig_Revenge_Death_Ball_Attack_Func018Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Revenge_Death_Ball_Attack_Func022A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Revenge_Death_Ball_Attack_Actions takes nothing returns nothing
set udg_location08=GetUnitLoc(GetTriggerUnit())
set udg_group05=GetUnitsInRangeOfLocMatching(1024.00,udg_location08,Condition(function Trig_Revenge_Death_Ball_Attack_Func002002003))
call ForGroupBJ(udg_group05,function Trig_Revenge_Death_Ball_Attack_Func003A)
call DestroyGroup(udg_group05)
call StopSoundBJ(udg_sound42,true)
call CreateNUnitsAtLoc(1,'h02O',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(950.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,20.00,0)
call CreateNUnitsAtLoc(1,'h02N',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitUserData(GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,20.00,0)
if(Trig_Revenge_Death_Ball_Attack_Func013C())then
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit77,false))*(I2R(GetUnitUserData(GetTriggerUnit()))*7.00))+100.00)
else
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit94,false))*(I2R(GetUnitUserData(GetTriggerUnit()))*7.00))+100.00)
endif
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(1024.00,udg_location08,Condition(function Trig_Revenge_Death_Ball_Attack_Func015002003))
call ForGroupBJ(udg_group05,function Trig_Revenge_Death_Ball_Attack_Func016A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(1024.00,udg_location08,function Trig_Revenge_Death_Ball_Attack_Func018A)
call RemoveLocation(udg_location08)
call TriggerSleepAction(1.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Revenge_Death_Ball_Attack_Func022A)
endfunction
function Trig_Scatter_Shot_On_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A015'))
endfunction
function Trig_Scatter_Shot_On_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger202)
call TriggerExecute(udg_trigger202)
endfunction
function Trig_Scatter_Shot_Channel_Func005Func005002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),Player(6))==false)
endfunction
function Trig_Scatter_Shot_Channel_Func005Func006A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Scatter_Shot_Channel_Actions takes nothing returns nothing
set udg_unit18=udg_unit83
set udg_location07=GetUnitLoc(udg_unit18)
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit18,false))*(I2R(GetUnitAbilityLevelSwapped('A015',udg_unit18))*4.00))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,GetRandomReal(125.00,900.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h02F',GetOwningPlayer(udg_unit18),udg_location09,bj_UNIT_FACING)
call KillUnit(bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h02E',GetOwningPlayer(udg_unit18),udg_location07,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(300.00,udg_location09,Condition(function Trig_Scatter_Shot_Channel_Func005Func005002003))
call ForGroupBJ(udg_group05,function Trig_Scatter_Shot_Channel_Func005Func006A)
call DestroyGroup(udg_group05)
call IssuePointOrderLoc(bj_lastCreatedUnit,"attackground",udg_location09)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location07)
endfunction
function Trig_Scatter_Shot_Off_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A015'))
endfunction
function Trig_Scatter_Shot_Off_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger202)
endfunction
function Trig_Mankind_Destruction_Attack_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01D'))
endfunction
function Trig_Mankind_Destruction_Attack_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger205)
call TriggerExecute(udg_trigger205)
endfunction
function Trig_Mankind_Destruction_Attack_Channel_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit75)==Player(7)))
endfunction
function Trig_Mankind_Destruction_Attack_Channel_Func005002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),Player(7))==false)
endfunction
function Trig_Mankind_Destruction_Attack_Channel_Func006Func002C takes nothing returns boolean
return((IsUnitAliveBJ(GetEnumUnit())))
endfunction
function Trig_Mankind_Destruction_Attack_Channel_Func006A takes nothing returns nothing
set udg_location09=GetUnitLoc(GetEnumUnit())
if(Trig_Mankind_Destruction_Attack_Channel_Func006Func002C())then
call CreateNUnitsAtLoc(1,'h017',Player(7),udg_location09,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,100.00,100.00,100.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,20.00,50.00,0)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,10.00)
call KillUnit(bj_lastCreatedUnit)
endif
call CreateNUnitsAtLoc(1,'h034',GetOwningPlayer(udg_unit18),udg_location07,bj_UNIT_FACING)
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call IssuePointOrderLoc(bj_lastCreatedUnit,"attackground",udg_location09)
call RemoveLocation(udg_location09)
endfunction
function Trig_Mankind_Destruction_Attack_Channel_Actions takes nothing returns nothing
if(Trig_Mankind_Destruction_Attack_Channel_Func001C())then
set udg_unit18=udg_unit75
else
set udg_unit18=udg_unit79
endif
set udg_location07=GetUnitLoc(udg_unit18)
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit18,false))*(I2R(GetUnitAbilityLevelSwapped('A01D',udg_unit18))*4.00))+100.00)
set udg_group05=GetUnitsInRangeOfLocMatching(2000.00,udg_location07,Condition(function Trig_Mankind_Destruction_Attack_Channel_Func005002003))
call ForGroupBJ(udg_group05,function Trig_Mankind_Destruction_Attack_Channel_Func006A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location07)
endfunction
function Trig_Mankind_Destruction_Attack_Off_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01D'))
endfunction
function Trig_Mankind_Destruction_Attack_Off_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger205)
endfunction
function Trig_Charge_On_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A042'))
endfunction
function Trig_Charge_On_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger208)
endfunction
function Trig_Charge_Channel_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit71)==Player(4)))
endfunction
function Trig_Charge_Channel_Func002001 takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit18,'B00M')==false)
endfunction
function Trig_Charge_Channel_Func006Func004002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),Player(4))==false)
endfunction
function Trig_Charge_Channel_Func006Func005A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Charge_Channel_Actions takes nothing returns nothing
if(Trig_Charge_Channel_Func001C())then
set udg_unit18=udg_unit71
else
set udg_unit18=udg_unit65
endif
if(Trig_Charge_Channel_Func002001())then
call DisableTrigger(GetTriggeringTrigger())
endif
set udg_location07=GetUnitLoc(udg_unit18)
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit18,false))*(I2R(GetUnitAbilityLevelSwapped('A042',udg_unit18))*1.00))+100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_location09=PolarProjectionBJ(udg_location07,GetRandomReal(125.00,400.00),GetRandomReal(0,360))
call CreateNUnitsAtLoc(1,'h02Y',GetOwningPlayer(udg_unit18),udg_location09,GetRandomReal(0,360))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,30.00)
set udg_group05=GetUnitsInRangeOfLocMatching(150.00,udg_location09,Condition(function Trig_Charge_Channel_Func006Func004002003))
call ForGroupBJ(udg_group05,function Trig_Charge_Channel_Func006Func005A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location09)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_location07)
endfunction
function Trig_Renzoku_Energy_Dan_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01I'))
endfunction
function Trig_Renzoku_Energy_Dan_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger210)
call TriggerSleepAction(15.00)
call DisableTrigger(udg_trigger210)
endfunction
function Trig_Renzoku_Energy_Dan_Attack_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='o00J'))
endfunction
function Trig_Renzoku_Energy_Dan_Attack_Actions takes nothing returns nothing
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit27,false))*(I2R(GetUnitAbilityLevelSwapped('A01I',udg_unit27))*5.00))/100.00)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
set udg_location08=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h02N',Player(2),udg_location08,bj_UNIT_FACING)
call RemoveLocation(udg_location08)
endfunction
function Trig_Shine_Shine_Missile_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03F'))
endfunction
function Trig_Shine_Shine_Missile_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger212)
call TriggerSleepAction(10.00)
call DisableTrigger(udg_trigger212)
endfunction
function Trig_Shine_Shine_Missile_Attack_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='o00I'))
endfunction
function Trig_Shine_Shine_Missile_Attack_Actions takes nothing returns nothing
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit45,false))*(I2R(GetUnitAbilityLevelSwapped('A03F',udg_unit45))*10.00))/100.00)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
set udg_location08=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h00Z',Player(3),udg_location08,bj_UNIT_FACING)
call RemoveLocation(udg_location08)
endfunction
function Trig_Buu_Energy_Disbursement_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01F'))
endfunction
function Trig_Buu_Energy_Disbursement_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger214)
call TriggerSleepAction(12.00)
call DisableTrigger(udg_trigger214)
endfunction
function Trig_Buu_Energy_Disbursement_Attack_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='o00K'))
endfunction
function Trig_Buu_Energy_Disbursement_Attack_Actions takes nothing returns nothing
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit76,false))*(I2R(GetUnitAbilityLevelSwapped('A01F',udg_unit76))*8.00))/100.00)
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Tsufuru_Spirits_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04C'))
endfunction
function Trig_Tsufuru_Spirits_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger216)
call TriggerSleepAction(15.00)
call DisableTrigger(udg_trigger216)
endfunction
function Trig_Tsufuru_Spirits_Attack_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetAttacker())=='o00M'))
endfunction
function Trig_Tsufuru_Spirits_Attack_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit77)==Player(8)))
endfunction
function Trig_Tsufuru_Spirits_Attack_Actions takes nothing returns nothing
if(Trig_Tsufuru_Spirits_Attack_Func001C())then
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit77,false))*(I2R(GetUnitAbilityLevelSwapped('A04C',udg_unit77))*5.00))/100.00)
else
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit94,false))*(I2R(GetUnitAbilityLevelSwapped('A04C',udg_unit94))*5.00))/100.00)
endif
call UnitDamageTargetBJ(GetAttacker(),GetTriggerUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Oozaru_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A035'))and((GetHeroLevel(GetSpellAbilityUnit())<145))and((GetSpellAbilityUnit()!=udg_unit12))and((GetSpellAbilityUnit()!=udg_unit27))and((GetUnitTypeId(GetSpellAbilityUnit())!='H004'))
endfunction
function Trig_Oozaru_Func019001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!='H004')
endfunction
function Trig_Oozaru_Actions takes nothing returns nothing
set udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]=5.00
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
call SetUnitVertexColorBJ(GetTriggerUnit(),40.00,30.00,20.00,0)
call TriggerSleepAction(34.50)
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
loop
exitwhen(Trig_Oozaru_Func019001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.50))
endloop
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.50)
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,0)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
set udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]=1.00
endfunction
function Trig_Golden_Oozaru_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A035'))and((GetHeroLevel(GetSpellAbilityUnit())>=145))and((GetSpellAbilityUnit()!=udg_unit12))and((GetSpellAbilityUnit()!=udg_unit27))and((GetUnitTypeId(GetSpellAbilityUnit())!='H004'))
endfunction
function Trig_Golden_Oozaru_Func010C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit31))
endfunction
function Trig_Golden_Oozaru_Func020001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!='H004')
endfunction
function Trig_Golden_Oozaru_Func025C takes nothing returns boolean
return((GetTriggerUnit()==udg_unit31))
endfunction
function Trig_Golden_Oozaru_Actions takes nothing returns nothing
set udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]=10.00
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
call SetUnitVertexColorBJ(GetTriggerUnit(),80.00,60.00,0.00,0)
if(Trig_Golden_Oozaru_Func010C())then
call EnableTrigger(udg_trigger257)
else
call EnableTrigger(udg_trigger286)
endif
call TriggerSleepAction(34.50)
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
loop
exitwhen(Trig_Golden_Oozaru_Func020001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.50))
endloop
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.50)
if(Trig_Golden_Oozaru_Func025C())then
call DisableTrigger(udg_trigger257)
else
call DisableTrigger(udg_trigger286)
endif
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,0)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
set udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]=1.00
endfunction
function Trig_Bebi_Oozaru_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A035'))and((GetSpellAbilityUnit()==udg_unit12))and((GetHeroLevel(GetSpellAbilityUnit())<145))and((GetOwningPlayer(GetTriggerUnit())==Player(8)))and((GetUnitTypeId(GetSpellAbilityUnit())!='H004'))
endfunction
function Trig_Bebi_Oozaru_Func019001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!='H004')
endfunction
function Trig_Bebi_Oozaru_Func030C takes nothing returns boolean
return((udg_reals02[9]!=1.00))
endfunction
function Trig_Bebi_Oozaru_Actions takes nothing returns nothing
set udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]=5.00
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
call SetUnitVertexColorBJ(GetTriggerUnit(),40.00,30.00,20.00,0)
call TriggerSleepAction(34.50)
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
loop
exitwhen(Trig_Bebi_Oozaru_Func019001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.50))
endloop
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.50)
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,0)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
set udg_reals02[9]=udg_reals02[(1+GetPlayerId(udg_player01))]
if(Trig_Bebi_Oozaru_Func030C())then
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit12))
call ModifyHeroStat(0,udg_unit27,2,R2I((I2R(GetHeroStatBJ(0,udg_unit27,false))*udg_reals02[3])))
call SetWidgetLife(udg_unit12,(I2R(udg_integer16)*udg_reals02[3]))
endif
endfunction
function Trig_Bebi_Golden_Oozaru_Conditions takes nothing returns boolean
return((GetSpellAbilityUnit()==udg_unit12))and((GetHeroLevel(udg_unit12)>=145))and((GetSpellAbilityId()=='A035'))and((GetOwningPlayer(GetTriggerUnit())==Player(8)))and((GetUnitTypeId(GetSpellAbilityUnit())!='H004'))
endfunction
function Trig_Bebi_Golden_Oozaru_Func015001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!='H004')
endfunction
function Trig_Bebi_Golden_Oozaru_Func028C takes nothing returns boolean
return((udg_reals02[9]!=1.00))
endfunction
function Trig_Bebi_Golden_Oozaru_Actions takes nothing returns nothing
set udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]=10.00
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
call SetUnitVertexColorBJ(GetTriggerUnit(),80.00,60.00,0.00,0)
call EnableTrigger(udg_trigger456)
call TriggerSleepAction(34.50)
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
loop
exitwhen(Trig_Bebi_Golden_Oozaru_Func015001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.50))
endloop
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.50)
call DisableTrigger(udg_trigger456)
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,0)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
set udg_reals02[9]=udg_reals02[(1+GetPlayerId(udg_player01))]
if(Trig_Bebi_Golden_Oozaru_Func028C())then
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit12))
call ModifyHeroStat(0,udg_unit27,2,R2I((I2R(GetHeroStatBJ(0,udg_unit27,false))*udg_reals02[3])))
call SetWidgetLife(udg_unit12,(I2R(udg_integer16)*udg_reals02[3]))
endif
endfunction
function Trig_Gohan_Oozaru_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A035'))and((GetSpellAbilityUnit()!=udg_unit12))and((GetUnitTypeId(GetSpellAbilityUnit())!='H004'))
endfunction
function Trig_Gohan_Oozaru_Func022001 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())!='H004')
endfunction
function Trig_Gohan_Oozaru_Actions takes nothing returns nothing
local real udg_real02
set udg_real02=udg_reals02[3]
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit27))
call ModifyHeroStat(0,udg_unit27,2,R2I((I2R(GetHeroStatBJ(0,udg_unit27,false))/udg_reals02[3])))
call SetWidgetLife(udg_unit27,(I2R(udg_integer16)/udg_reals02[3]))
set udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]=5.00
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
call SetUnitVertexColorBJ(GetTriggerUnit(),40.00,30.00,20.00,0)
call TriggerSleepAction(34.50)
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h006',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
loop
exitwhen(Trig_Gohan_Oozaru_Func022001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.50))
endloop
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h013',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call RemoveLocation(udg_location07)
call TriggerSleepAction(1.50)
call SetUnitVertexColorBJ(GetTriggerUnit(),100,100,100,0)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))]))
set udg_reals02[3]=udg_real02
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit27))
call ModifyHeroStat(0,udg_unit27,2,R2I((I2R(GetHeroStatBJ(0,udg_unit27,false))*udg_reals02[3])))
call SetWidgetLife(udg_unit27,(I2R(udg_integer16)*udg_reals02[3]))
endfunction
function Trig_Solar_Flare_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00Z'))
endfunction
function Trig_Solar_Flare_Func005A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call UnitAddAbility(bj_lastCreatedUnit,'A045')
call IssueTargetOrder(bj_lastCreatedUnit,"curse",GetEnumUnit())
endfunction
function Trig_Solar_Flare_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h02O',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
set udg_group05=GetUnitsInRangeOfLocAll((200.00+(100.00*I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit())))),udg_location07)
call ForGroupBJ(udg_group05,function Trig_Solar_Flare_Func005A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location07)
endfunction
function Trig_Kamikaze_Sound_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00I'))
endfunction
function Trig_Kamikaze_Sound_Actions takes nothing returns nothing
call PlaySoundOnUnitBJ(udg_sound17,100,udg_unit45)
endfunction
function Trig_Kamikaze_Attack_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='h00B'))
endfunction
function Trig_Kamikaze_Attack_Func009002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Kamikaze_Attack_Func010A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Kamikaze_Attack_Func012Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Kamikaze_Attack_Func012A takes nothing returns nothing
if(Trig_Kamikaze_Attack_Func012Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Kamikaze_Attack_Actions takes nothing returns nothing
set udg_location08=GetUnitLoc(GetTriggerUnit())
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,3,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,2,0)
call CreateNUnitsAtLoc(1,'h02N',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,0.00,100.00,0.00,0)
set udg_real02=((I2R(GetHeroStatBJ(2,udg_unit45,false))*(I2R(GetUnitAbilityLevelSwapped('A00I',udg_unit45))*9.00))+100.00)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(400.00,udg_location08,Condition(function Trig_Kamikaze_Attack_Func009002003))
call ForGroupBJ(udg_group05,function Trig_Kamikaze_Attack_Func010A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(400.00,udg_location08,function Trig_Kamikaze_Attack_Func012A)
call RemoveLocation(udg_location08)
endfunction
function Trig_Area_Buu_Beam_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01L'))
endfunction
function Trig_Area_Buu_Beam_Func008002003001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n016')
endfunction
function Trig_Area_Buu_Beam_Func008002003002001 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n018')
endfunction
function Trig_Area_Buu_Beam_Func008002003002002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n017')
endfunction
function Trig_Area_Buu_Beam_Func008002003002 takes nothing returns boolean
return GetBooleanOr(Trig_Area_Buu_Beam_Func008002003002001(),Trig_Area_Buu_Beam_Func008002003002002())
endfunction
function Trig_Area_Buu_Beam_Func008002003 takes nothing returns boolean
return GetBooleanOr(Trig_Area_Buu_Beam_Func008002003001(),Trig_Area_Buu_Beam_Func008002003002())
endfunction
function Trig_Area_Buu_Beam_Func009A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Human\\DispelMagic\\DispelMagicTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call CreateItemLoc('I00V',GetUnitLoc(GetEnumUnit()))
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Area_Buu_Beam_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("TRIGSTR_2823",GetTriggerUnit(),0,10,100,100,100,0)
call TriggerSleepAction(0.85)
call DestroyTextTag(bj_lastCreatedTextTag)
set udg_location08=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h02N',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(350.00+(I2R(GetUnitAbilityLevelSwapped('A01L',GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped('A01L',GetTriggerUnit()))*10.00)),(350.00+(I2R(GetUnitAbilityLevelSwapped('A01L',GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,0.00,100.00,0)
set udg_group05=GetUnitsInRangeOfLocMatching(950.00,udg_location08,Condition(function Trig_Area_Buu_Beam_Func008002003))
call ForGroupBJ(udg_group05,function Trig_Area_Buu_Beam_Func009A)
call DestroyGroup(udg_group05)
call RemoveLocation(udg_location08)
endfunction
function Trig_Angry_Explosion_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect98,GetSpellAbilityUnit())==false))and((GetSpellAbilityId()=='A02U'))
endfunction
function Trig_Angry_Explosion_Func018002003 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(7))
endfunction
function Trig_Angry_Explosion_Func020A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h02L',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(100.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Angry_Explosion_Func022Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Angry_Explosion_Func022A takes nothing returns nothing
if(Trig_Angry_Explosion_Func022Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Angry_Explosion_Actions takes nothing returns nothing
set udg_location08=GetUnitLoc(GetTriggerUnit())
call CreateFogModifierRadiusLocBJ(true,GetTriggerPlayer(),FOG_OF_WAR_VISIBLE,udg_location08,650.00)
set udg_fogmodifier02=bj_lastCreatedFogModifier
call CreateNUnitsAtLoc(1,'h017',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,15.00)
call KillUnit(bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h02O',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,80.00,50.00,50.00)
call CreateNUnitsAtLoc(1,'h015',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitTimeScalePercent(bj_lastCreatedUnit,40.00)
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,6,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,5,0)
call TerrainDeformationRippleBJ(5.00,false,udg_location08,950.00,950.00,128.00,1,512)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*32.00))+100.00)
set udg_group05=GetUnitsInRangeOfLocMatching(950.00,udg_location08,Condition(function Trig_Angry_Explosion_Func018002003))
call ForGroupBJ(udg_group05,function Trig_Angry_Explosion_Func020A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(950.00,udg_location08,function Trig_Angry_Explosion_Func022A)
call RemoveLocation(udg_location08)
call TriggerSleepAction(1.00)
call PauseUnit(GetTriggerUnit(),true)
call ShowUnitHide(GetTriggerUnit())
call StartTimerBJ(udg_timer15,false,30.00)
set udg_timerdialog12=CreateTimerDialogBJ(udg_timer15,"TRIGSTR_2908")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=7
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog12,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=9
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog12,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(30.00)
set udg_location08=GetUnitLoc(GetTriggerUnit())
call CreateNUnitsAtLoc(1,'h00Z',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,0.00,50.00,0)
call RemoveLocation(udg_location08)
call PauseUnit(GetTriggerUnit(),false)
call ShowUnitShow(GetTriggerUnit())
call DestroyTimerDialog(udg_timerdialog12)
call DestroyFogModifier(udg_fogmodifier02)
endfunction
function Trig_Energy_Punch_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A008'))
endfunction
function Trig_Energy_Punch_Func031Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Energy_Punch_Func031A takes nothing returns nothing
if(Trig_Energy_Punch_Func031Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Energy_Punch_Actions takes nothing returns nothing
set udg_unit22=GetTriggerUnit()
set udg_unit23=GetSpellTargetUnit()
call AddSpecialEffectTargetUnitBJ("hand left",GetTriggerUnit(),"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectTargetUnitBJ("hand right",GetTriggerUnit(),"Abilities\\Weapons\\IllidanMissile\\IllidanMissile.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Undead\\AnimateDead\\AnimateDeadTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
set udg_location08=GetUnitLoc(udg_unit23)
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_location09=PolarProjectionBJ(udg_location08,48.00,AngleBetweenPoints(udg_location08,udg_location07))
call CreateNUnitsAtLoc(1,'h02Z',GetTriggerPlayer(),udg_location09,bj_UNIT_FACING)
call TerrainDeformationRippleBJ(5.00,true,udg_location09,1024.00,1024.00,256.00,1,512.00)
call TerrainDeformationWaveBJ(1.00,udg_location09,udg_location08,1024.00,256.00,4.00)
call SetUnitPositionLocFacingLocBJ(GetTriggerUnit(),udg_location09,udg_location08)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location07)
call EnableTrigger(udg_trigger228)
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped('A008',GetTriggerUnit()))*2.00))+100.00)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call UnitDamageTargetBJ(bj_lastCreatedUnit,udg_unit23,udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call RemoveLocation(udg_location08)
call TriggerSleepAction(1.00)
set udg_location08=GetUnitLoc(udg_unit23)
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,3,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,2,0)
call CreateNUnitsAtLoc(1,'h02Z',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call EnumDestructablesInCircleBJ(200.00,udg_location08,function Trig_Energy_Punch_Func031A)
call RemoveLocation(udg_location08)
call DisableTrigger(udg_trigger228)
endfunction
function Trig_Energy_Punch_Move_Back_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(udg_unit23)
set udg_location08=GetUnitLoc(udg_unit22)
set udg_location09=PolarProjectionBJ(udg_location07,8.00,AngleBetweenPoints(udg_location08,udg_location07))
call SetUnitPositionLoc(udg_unit23,udg_location09)
call RemoveLocation(udg_location09)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
endfunction
function Trig_Power_Level_Rising_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00J'))
endfunction
function Trig_Power_Level_Rising_Func002002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Power_Level_Rising_Func003A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Power_Level_Rising_Func014002003 takes nothing returns boolean
return(IsPlayerAlly(GetOwningPlayer(GetFilterUnit()),GetOwningPlayer(GetTriggerUnit()))==false)
endfunction
function Trig_Power_Level_Rising_Func015A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Power_Level_Rising_Func017Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Power_Level_Rising_Func017A takes nothing returns nothing
if(Trig_Power_Level_Rising_Func017Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Power_Level_Rising_Func021A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Power_Level_Rising_Actions takes nothing returns nothing
set udg_location07=GetUnitLoc(GetTriggerUnit())
set udg_group05=GetUnitsInRangeOfLocMatching(512.00,udg_location07,Condition(function Trig_Power_Level_Rising_Func002002003))
call ForGroupBJ(udg_group05,function Trig_Power_Level_Rising_Func003A)
call DestroyGroup(udg_group05)
call SetTerrainTypeBJ(udg_location07,'Kdtr',-1,4,0)
call SetTerrainTypeBJ(udg_location07,'Jdtr',-1,3,0)
call TerrainDeformationRippleBJ(5.00,true,udg_location07,512.00,512.00,96.00,1,512.00)
call CreateNUnitsAtLoc(1,'h030',GetTriggerPlayer(),udg_location07,GetRandomReal(0,360))
call SetUnitAnimation(bj_lastCreatedUnit,"stand")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h02W',GetTriggerPlayer(),udg_location07,GetRandomReal(0,360))
call SetUnitScalePercent(bj_lastCreatedUnit,(GetRandomReal(50.00,200.00)+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(GetRandomReal(50.00,200.00)+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(GetRandomReal(50.00,200.00)+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitFlyHeight(bj_lastCreatedUnit,3000.00,(I2R(bj_forLoopAIndex)*50.00))
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*2.00))+100.00)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location07,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(400.00,udg_location07,Condition(function Trig_Power_Level_Rising_Func014002003))
call ForGroupBJ(udg_group05,function Trig_Power_Level_Rising_Func015A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(400.00,udg_location07,function Trig_Power_Level_Rising_Func017A)
call RemoveLocation(udg_location07)
call TriggerSleepAction(3.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Power_Level_Rising_Func021A)
endfunction
function Trig_Nuclear_Bomb_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01Y'))
endfunction
function Trig_Nuclear_Bomb_Func003002003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Nuclear_Bomb_Func004A takes nothing returns nothing
call CameraSetEQNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*2.00))
call CameraSetTargetNoiseForPlayer(GetOwningPlayer(GetEnumUnit()),(I2R(GetUnitUserData(GetTriggerUnit()))*3.00),200.00)
endfunction
function Trig_Nuclear_Bomb_Func027002003 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=GetTriggerPlayer())
endfunction
function Trig_Nuclear_Bomb_Func028A takes nothing returns nothing
call UnitDamageTargetBJ(bj_lastCreatedUnit,GetEnumUnit(),udg_real02,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Nuclear_Bomb_Func030Func001C takes nothing returns boolean
return((IsDestructableAliveBJ(GetEnumDestructable())))
endfunction
function Trig_Nuclear_Bomb_Func030A takes nothing returns nothing
if(Trig_Nuclear_Bomb_Func030Func001C())then
call KillDestructable(GetEnumDestructable())
call TriggerExecute(udg_trigger623)
endif
endfunction
function Trig_Nuclear_Bomb_Func034A takes nothing returns nothing
call CameraClearNoiseForPlayer(GetEnumPlayer())
endfunction
function Trig_Nuclear_Bomb_Actions takes nothing returns nothing
set udg_location08=GetSpellTargetLoc()
set udg_location09=PolarProjectionBJ(udg_location08,5.00,0.00)
set udg_group05=GetUnitsInRangeOfLocMatching(1024.00,udg_location08,Condition(function Trig_Nuclear_Bomb_Func003002003))
call ForGroupBJ(udg_group05,function Trig_Nuclear_Bomb_Func004A)
call DestroyGroup(udg_group05)
call SetTerrainTypeBJ(udg_location08,'Kdtr',-1,6,0)
call SetTerrainTypeBJ(udg_location08,'Jdtr',-1,5,0)
call TerrainDeformationRippleBJ(10.00,true,udg_location08,1024.00,1024.00,128.00,1,256.00)
call TerrainDeformationWaveBJ(5.00,udg_location08,udg_location09,1024.00,256.00,10.00)
call RemoveLocation(udg_location09)
call CreateNUnitsAtLoc(1,'h017',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(650.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(650.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(650.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,15.00)
call KillUnit(bj_lastCreatedUnit)
call CreateNUnitsAtLoc(1,'h02O',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(950.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,80.00,50.00,50.00)
call CreateNUnitsAtLoc(1,'h02W',GetTriggerPlayer(),udg_location08,GetRandomReal(0,360))
call SetUnitFlyHeight(bj_lastCreatedUnit,3000.00,500.00)
call CreateNUnitsAtLoc(1,'h02L',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,(650.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(650.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)),(650.00+(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*10.00)))
call SetUnitTimeScalePercent(bj_lastCreatedUnit,50.00)
call SetUnitAnimation(bj_lastCreatedUnit,"birth")
set udg_real02=((I2R(GetHeroStatBJ(2,GetTriggerUnit(),false))*(I2R(GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit()))*6.00))+100.00)
call CreateNUnitsAtLoc(1,'h028',GetTriggerPlayer(),udg_location08,bj_UNIT_FACING)
set udg_group05=GetUnitsInRangeOfLocMatching(900.00,udg_location08,Condition(function Trig_Nuclear_Bomb_Func027002003))
call ForGroupBJ(udg_group05,function Trig_Nuclear_Bomb_Func028A)
call DestroyGroup(udg_group05)
call EnumDestructablesInCircleBJ(900.00,udg_location08,function Trig_Nuclear_Bomb_Func030A)
call RemoveLocation(udg_location08)
call TriggerSleepAction(2.00)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Nuclear_Bomb_Func034A)
endfunction
function Trig_Babidi_Wizardry_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A007'))
endfunction
function Trig_Babidi_Wizardry_Actions takes nothing returns nothing
call SetWidgetLife(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+(I2R((GetHeroStatBJ(2,udg_unit34,false)*GetUnitAbilityLevelSwapped('A007',udg_unit34)))+150.00)))
endfunction
function Trig_GOozaru_Wave_Recharge_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04G'))
endfunction
function Trig_GOozaru_Wave_Recharge_Actions takes nothing returns nothing
call SetWidgetLife(udg_unit94,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit94)+(I2R(GetHeroStatBJ(0,udg_unit94,false))*5.00)))
endfunction
function Trig_Regeneration_Func001C takes nothing returns boolean
return((GetSpellAbilityId()=='A040'))or((GetSpellAbilityId()=='A00K'))or((GetSpellAbilityId()=='A01P'))
endfunction
function Trig_Regeneration_Conditions takes nothing returns boolean
return(Trig_Regeneration_Func001C())
endfunction
function Trig_Regeneration_Func003C takes nothing returns boolean
return((udg_real01>(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
endfunction
function Trig_Regeneration_Actions takes nothing returns nothing
set udg_real01=(GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit())-GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
if(Trig_Regeneration_Func003C())then
call SetWidgetLife(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())+(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())*udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
call SetUnitManaBJ(GetTriggerUnit(),0)
else
call SetWidgetLife(GetTriggerUnit(),GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetTriggerUnit()))
call SetUnitManaBJ(GetTriggerUnit(),(GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())-(udg_real01/udg_reals02[(1+GetPlayerId(GetTriggerPlayer()))])))
endif
endfunction
function Trig_Goku_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<102))
endfunction
function Trig_Goku_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A00R',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A00U',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00Z',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A027',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A035',GetLevelingUnit()))))
if(Trig_Goku_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[1]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[1])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[1]*(4.00*I2R(udg_integers03[1])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[1]*(4.00*I2R(udg_integers03[1])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[1]*(4.00*I2R(udg_integers03[1])))))
set udg_integers03[1]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Goku_reaches_King_Kai_Conditions takes nothing returns boolean
return((GetTriggerUnit()==udg_unit31))
endfunction
function Trig_Goku_reaches_King_Kai_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetHeroLevelBJ(GetTriggerUnit(),(GetHeroLevel(GetTriggerUnit())+3),true)
call ModifyHeroStat(0,GetTriggerUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]*5.00)))
endfunction
function Trig_Goku_fusion_reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=125))
endfunction
function Trig_Goku_fusion_reminder_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.00,"TRIGSTR_1243")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Goku_potara_reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=100))
endfunction
function Trig_Goku_potara_reminder_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.00,"TRIGSTR_6601")
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[0],GetUnitLoc(udg_unit54),10.00,0,100,25.00,100)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Goku_Reminder_kaox10_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=10))
endfunction
function Trig_Goku_Reminder_kaox10_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_6608")
call TriggerSleepAction(8.00)
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_6602")
endfunction
function Trig_Goku_Reminder_ss1_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=30))
endfunction
function Trig_Goku_Reminder_ss1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_569")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Goku_Reminder_ss2_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=85))
endfunction
function Trig_Goku_Reminder_ss2_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_6603")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Goku_Reminder_ss3_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=125))
endfunction
function Trig_Goku_Reminder_ss3_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_6606")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Goku_Reminder_ss4_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=150))
endfunction
function Trig_Goku_Reminder_ss4_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_6607")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Goku_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.00,"TRIGSTR_558")
endfunction
function Trig_Goku_Help_skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],15.00,"TRIGSTR_559")
endfunction
function Trig_Goku_kaox10_Conditions takes nothing returns boolean
return((udg_unit31!=udg_unit12))and((GetHeroLevel(udg_unit31)>=10))and((GetUnitTypeId(udg_unit31)!='H004'))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>=100.00))and((GetOwningPlayer(udg_unit31)!=Player(15)))and((udg_reals02[1]<5.00))
endfunction
function Trig_Goku_kaox10_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger253)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(0))
call TerrainDeformationRippleBJ(1.00,false,GetUnitLoc(udg_unit31),200.00,132.00,32.00,1,100.00)
call SetUnitVertexColorBJ(udg_unit31,80.00,0.00,0.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[1]=1.50
set udg_reals02[1]=1.50
call TriggerExecute(udg_trigger250)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],1.00,"TRIGSTR_560")
call TriggerSleepAction(0.60)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],2.00,"TRIGSTR_561")
endfunction
function Trig_Goku_Super_Saiyan_1_Conditions takes nothing returns boolean
return((udg_unit31!=udg_unit12))and((GetHeroLevel(udg_unit31)>=30))and((GetUnitTypeId(udg_unit31)!='H004'))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>=100.00))and((GetOwningPlayer(udg_unit31)!=Player(15)))and((udg_reals02[1]<5.00))
endfunction
function Trig_Goku_Super_Saiyan_1_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger253)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(0))
call SetUnitVertexColorBJ(udg_unit31,240.00,240.00,0.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[1]=2.00
set udg_reals02[1]=2.00
call TriggerExecute(udg_trigger250)
endfunction
function Trig_Goku_Super_Saiyan_2_Conditions takes nothing returns boolean
return((udg_unit31!=udg_unit12))and((GetHeroLevel(udg_unit31)>=85))and((GetUnitTypeId(udg_unit31)!='H004'))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>=100.00))and((GetOwningPlayer(udg_unit31)!=Player(15)))and((udg_reals02[1]<5.00))
endfunction
function Trig_Goku_Super_Saiyan_2_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger253)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(0))
call SetUnitVertexColorBJ(udg_unit31,240.00,240.00,0.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger254)
set udg_reals01[1]=3.00
set udg_reals02[1]=3.00
call TriggerExecute(udg_trigger250)
endfunction
function Trig_Goku_Super_Saiyan_3_Conditions takes nothing returns boolean
return((udg_unit31!=udg_unit12))and((GetHeroLevel(udg_unit31)>=125))and((GetUnitTypeId(udg_unit31)!='H004'))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>=100.00))and((GetOwningPlayer(udg_unit31)!=Player(15)))and((udg_reals02[1]<5.00))
endfunction
function Trig_Goku_Super_Saiyan_3_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger253)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(0))
call SetUnitVertexColorBJ(udg_unit31,240.00,240.00,0.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Other\\Monsoon\\MonsoonRain.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger255)
set udg_reals01[1]=3.50
set udg_reals02[1]=3.50
call TriggerExecute(udg_trigger250)
endfunction
function Trig_Goku_Super_Saiyan_4_Conditions takes nothing returns boolean
return((udg_unit31!=udg_unit12))and((GetHeroLevel(udg_unit31)>=150))and((GetUnitTypeId(udg_unit31)!='H004'))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>=100.00))and((GetOwningPlayer(udg_unit31)!=Player(15)))and((udg_reals02[1]<5.00))
endfunction
function Trig_Goku_Super_Saiyan_4_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger253)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(0))
call SetUnitVertexColorBJ(udg_unit31,100.00,65.00,0.00,0)
call SetUnitColor(udg_unit31,PLAYER_COLOR_BROWN)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger256)
set udg_reals01[1]=4.00
set udg_reals02[1]=4.00
call TriggerExecute(udg_trigger250)
endfunction
function Trig_Goku_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit31))
call ModifyHeroStat(0,udg_unit31,2,R2I((I2R(GetHeroStatBJ(0,udg_unit31,false))*udg_reals02[1])))
call ModifyHeroStat(1,udg_unit31,2,R2I((I2R(GetHeroStatBJ(1,udg_unit31,false))*udg_reals01[1])))
call ModifyHeroStat(2,udg_unit31,2,R2I((I2R(GetHeroStatBJ(2,udg_unit31,false))*udg_reals01[1])))
call SetUnitManaBJ(udg_unit31,(I2R(udg_integer14)*udg_reals01[1]))
call SetWidgetLife(udg_unit31,(I2R(udg_integer16)*udg_reals02[1]))
call EnableTrigger(udg_trigger251)
endfunction
function Trig_Goku_Mana_Drain_Conditions takes nothing returns boolean
return((udg_reals01[1]>1.00))
endfunction
function Trig_Goku_Mana_Drain_Actions takes nothing returns nothing
call SetUnitManaBJ(udg_unit31,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)-(udg_reals01[1]*20.00)))
endfunction
function Trig_Goku_Drained_Conditions takes nothing returns boolean
return((udg_reals01[1]>1.00))
endfunction
function Trig_Goku_Drained_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger253)
endfunction
function Trig_Goku_Revert_Conditions takes nothing returns boolean
return((udg_unit31!=udg_unit12))and((GetUnitTypeId(udg_unit31)!='H004'))and((GetOwningPlayer(udg_unit31)!=Player(15)))and((udg_reals02[1]<5.00))
endfunction
function Trig_Goku_Revert_Actions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ(true,'A035',Player(0))
call SetUnitColor(udg_unit31,PLAYER_COLOR_RED)
call SetUnitScalePercent(udg_unit31,120.00,120.00,120.00)
call SetUnitVertexColorBJ(udg_unit31,100,100,100,0)
call DisableTrigger(udg_trigger254)
call DisableTrigger(udg_trigger255)
call DisableTrigger(udg_trigger256)
call DisableTrigger(udg_trigger251)
call DisableTrigger(udg_trigger252)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit31))
call ModifyHeroStat(0,udg_unit31,2,R2I((I2R(GetHeroStatBJ(0,udg_unit31,false))/udg_reals02[1])))
call ModifyHeroStat(1,udg_unit31,2,R2I((I2R(GetHeroStatBJ(1,udg_unit31,false))/udg_reals01[1])))
call ModifyHeroStat(2,udg_unit31,2,R2I((I2R(GetHeroStatBJ(2,udg_unit31,false))/udg_reals01[1])))
call SetUnitManaBJ(udg_unit31,(I2R(udg_integer14)/udg_reals01[1]))
call SetWidgetLife(udg_unit31,(I2R(udg_integer16)/udg_reals02[1]))
set udg_reals01[1]=1.00
set udg_reals02[1]=1.00
call EnableTrigger(udg_trigger252)
endfunction
function Trig_Goku_Super_Saiyan_2_effect_Conditions takes nothing returns boolean
return((udg_reals01[1]==3.00))
endfunction
function Trig_Goku_Super_Saiyan_2_effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit31,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Goku_Super_Saiyan_3_effect_Conditions takes nothing returns boolean
return((udg_reals01[1]==3.50))
endfunction
function Trig_Goku_Super_Saiyan_3_effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit31,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit31,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit31,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Goku_Super_Saiyan_4_effect_Conditions takes nothing returns boolean
return((udg_reals01[1]==4.00))
endfunction
function Trig_Goku_Super_Saiyan_4_effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit31,"Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit31,"Abilities\\Spells\\Undead\\ReplenishHealth\\ReplenishHealthCaster.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Goku_Golden_effect_Conditions takes nothing returns boolean
return((udg_reals02[1]==10.00))
endfunction
function Trig_Goku_Golden_effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit31,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Sense_help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_509")
endfunction
function Trig_Sense_evil_hero_Func003001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense broly")
endfunction
function Trig_Sense_evil_hero_Func004001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense cell")
endfunction
function Trig_Sense_evil_hero_Func005001001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense cell")
endfunction
function Trig_Sense_evil_hero_Func005001002 takes nothing returns boolean
return(GetOwningPlayer(udg_unit41)!=Player(15))
endfunction
function Trig_Sense_evil_hero_Func005001 takes nothing returns boolean
return GetBooleanAnd(Trig_Sense_evil_hero_Func005001001(),Trig_Sense_evil_hero_Func005001002())
endfunction
function Trig_Sense_evil_hero_Func006001001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense cell")
endfunction
function Trig_Sense_evil_hero_Func006001002 takes nothing returns boolean
return(GetOwningPlayer(udg_unit42)!=Player(15))
endfunction
function Trig_Sense_evil_hero_Func006001 takes nothing returns boolean
return GetBooleanAnd(Trig_Sense_evil_hero_Func006001001(),Trig_Sense_evil_hero_Func006001002())
endfunction
function Trig_Sense_evil_hero_Func007001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense buu")
endfunction
function Trig_Sense_evil_hero_Func008001001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense buu")
endfunction
function Trig_Sense_evil_hero_Func008001002 takes nothing returns boolean
return(GetOwningPlayer(udg_unit75)!=Player(15))
endfunction
function Trig_Sense_evil_hero_Func008001 takes nothing returns boolean
return GetBooleanAnd(Trig_Sense_evil_hero_Func008001001(),Trig_Sense_evil_hero_Func008001002())
endfunction
function Trig_Sense_evil_hero_Func009001001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense buu")
endfunction
function Trig_Sense_evil_hero_Func009001002 takes nothing returns boolean
return(GetOwningPlayer(udg_unit79)!=Player(15))
endfunction
function Trig_Sense_evil_hero_Func009001 takes nothing returns boolean
return GetBooleanAnd(Trig_Sense_evil_hero_Func009001001(),Trig_Sense_evil_hero_Func009001002())
endfunction
function Trig_Sense_evil_hero_Actions takes nothing returns nothing
local location udg_location07
set udg_unit18=udg_unit31
if(Trig_Sense_evil_hero_Func003001())then
set udg_unit18=udg_unit67
endif
if(Trig_Sense_evil_hero_Func004001())then
set udg_unit18=udg_unit43
endif
if(Trig_Sense_evil_hero_Func005001())then
set udg_unit18=udg_unit41
endif
if(Trig_Sense_evil_hero_Func006001())then
set udg_unit18=udg_unit42
endif
if(Trig_Sense_evil_hero_Func007001())then
set udg_unit18=udg_unit76
endif
if(Trig_Sense_evil_hero_Func008001())then
set udg_unit18=udg_unit75
endif
if(Trig_Sense_evil_hero_Func009001())then
set udg_unit18=udg_unit79
endif
set udg_location07=GetUnitLoc(udg_unit18)
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[0],udg_location07,2.00,0,100,100,100)
call RemoveLocation(udg_location07)
endfunction
function Trig_Transmission_help_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=40))
endfunction
function Trig_Transmission_help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_521")
call TriggerSleepAction(8.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_575")
endfunction
function Trig_Reminder_for_Transmission_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=40))
endfunction
function Trig_Reminder_for_Transmission_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],8.00,"TRIGSTR_529")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_lockon_hero_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=40))and((GetOwningPlayer(udg_unit31)==Player(0)))and((udg_unit31!=udg_unit12))and((UnitHasItem(udg_unit93,udg_item17)==false))and((GetEventPlayerChatString()!="lockon lookout"))and((GetEventPlayerChatString()!="lockon westcity"))and((GetEventPlayerChatString()!="lockon capital"))
endfunction
function Trig_lockon_hero_Func003001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="lockon vegeta")
endfunction
function Trig_lockon_hero_Func004001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="lockon gohan")
endfunction
function Trig_lockon_hero_Func005001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="lockon the great saiyaman")
endfunction
function Trig_lockon_hero_Func006001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="lockon goten")
endfunction
function Trig_lockon_hero_Func007001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="lockon kid trunks")
endfunction
function Trig_lockon_hero_Func008001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="lockon gotenks")
endfunction
function Trig_lockon_hero_Func009001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="lockon piccolo")
endfunction
function Trig_lockon_hero_Func010001001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="lockon piccolo")
endfunction
function Trig_lockon_hero_Func010001002 takes nothing returns boolean
return(GetOwningPlayer(udg_unit83)==Player(6))
endfunction
function Trig_lockon_hero_Func010001 takes nothing returns boolean
return GetBooleanAnd(Trig_lockon_hero_Func010001001(),Trig_lockon_hero_Func010001002())
endfunction
function Trig_lockon_hero_Func011001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="lockon future trunks")
endfunction
function Trig_lockon_hero_Func014001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_lockon_hero_Func014001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0)))
endfunction
function Trig_lockon_hero_Func014001003 takes nothing returns boolean
return GetBooleanAnd(Trig_lockon_hero_Func014001003001(),Trig_lockon_hero_Func014001003002())
endfunction
function Trig_lockon_hero_Func014A takes nothing returns nothing
set udg_boolean05=false
endfunction
function Trig_lockon_hero_Func015C takes nothing returns boolean
return((udg_unit18!=udg_unit31))and((udg_unit18!=udg_unit12))and((udg_boolean05))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>99.00))and((UnitHasItemOfTypeBJ(udg_unit31,'I02K')==false))and((UnitHasItemOfTypeBJ(udg_unit18,'I02K')==false))and((RectContainsUnit(udg_rect99,udg_unit31)==false))and((RectContainsUnit(udg_rect99,udg_unit18)==false))and((RectContainsUnit(udg_rect17,udg_unit31)==false))and((RectContainsUnit(udg_rect17,udg_unit18)==false))and((RectContainsUnit(udg_rect50,udg_unit31)==false))and((RectContainsUnit(udg_rect50,udg_unit18)==false))and((RectContainsUnit(udg_rect154,udg_unit18)==false))and((RectContainsUnit(udg_rect52,udg_unit18)==false))and((GetOwningPlayer(udg_unit18)!=Player(15)))
endfunction
function Trig_lockon_hero_Actions takes nothing returns nothing
local location udg_location07
set udg_unit18=udg_unit31
if(Trig_lockon_hero_Func003001())then
set udg_unit18=udg_unit26
endif
if(Trig_lockon_hero_Func004001())then
set udg_unit18=udg_unit27
endif
if(Trig_lockon_hero_Func005001())then
set udg_unit18=udg_unit82
endif
if(Trig_lockon_hero_Func006001())then
set udg_unit18=udg_unit30
endif
if(Trig_lockon_hero_Func007001())then
set udg_unit18=udg_unit32
endif
if(Trig_lockon_hero_Func008001())then
set udg_unit18=udg_unit45
endif
if(Trig_lockon_hero_Func009001())then
set udg_unit18=udg_unit28
endif
if(Trig_lockon_hero_Func010001())then
set udg_unit18=udg_unit83
endif
if(Trig_lockon_hero_Func011001())then
set udg_unit18=udg_unit29
endif
set udg_location07=GetUnitLoc(udg_unit18)
set udg_boolean05=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(udg_unit31),Condition(function Trig_lockon_hero_Func014001003)),function Trig_lockon_hero_Func014A)
if(Trig_lockon_hero_Func015C())then
call SetUnitManaBJ(udg_unit31,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)-100.00))
call AddSpecialEffectTargetUnitBJ("chest",udg_unit31,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit31,udg_location07)
call TriggerSleepAction(0.40)
call PanCameraToTimedLocForPlayer(Player(0),udg_location07,0.40)
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],7.00,"TRIGSTR_6484")
endif
call RemoveLocation(udg_location07)
endfunction
function Trig_Lookout_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=40))and((GetOwningPlayer(udg_unit31)==Player(0)))and((udg_unit31!=udg_unit12))and((UnitHasItem(udg_unit93,udg_item17)==false))
endfunction
function Trig_Lookout_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Lookout_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0)))
endfunction
function Trig_Lookout_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Lookout_Func002001003001(),Trig_Lookout_Func002001003002())
endfunction
function Trig_Lookout_Func002A takes nothing returns nothing
set udg_boolean05=false
endfunction
function Trig_Lookout_Func003C takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>=100.00))and((udg_boolean05))and((RectContainsUnit(udg_rect99,udg_unit31)==false))and((RectContainsUnit(udg_rect17,udg_unit31)==false))and((RectContainsUnit(udg_rect50,udg_unit31)==false))and((UnitHasItemOfTypeBJ(udg_unit31,'I02K')==false))
endfunction
function Trig_Lookout_Actions takes nothing returns nothing
set udg_boolean05=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(udg_unit31),Condition(function Trig_Lookout_Func002001003)),function Trig_Lookout_Func002A)
if(Trig_Lookout_Func003C())then
call SetUnitManaBJ(udg_unit31,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)-100.00))
call AddSpecialEffectTargetUnitBJ("chest",udg_unit31,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect84))
call TriggerSleepAction(0.40)
call PanCameraToTimedLocForPlayer(Player(0),GetRectCenter(udg_rect84),0.40)
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],7.00,"TRIGSTR_6370")
endif
endfunction
function Trig_West_City_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=40))and((GetOwningPlayer(udg_unit31)==Player(0)))and((udg_unit31!=udg_unit12))and((UnitHasItem(udg_unit93,udg_item17)==false))
endfunction
function Trig_West_City_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_West_City_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0)))
endfunction
function Trig_West_City_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_West_City_Func002001003001(),Trig_West_City_Func002001003002())
endfunction
function Trig_West_City_Func002A takes nothing returns nothing
set udg_boolean05=false
endfunction
function Trig_West_City_Func003C takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>=100.00))and((udg_boolean05))and((RectContainsUnit(udg_rect99,udg_unit31)==false))and((RectContainsUnit(udg_rect17,udg_unit31)==false))and((RectContainsUnit(udg_rect50,udg_unit31)==false))and((UnitHasItemOfTypeBJ(udg_unit31,'I02K')==false))
endfunction
function Trig_West_City_Actions takes nothing returns nothing
set udg_boolean05=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(udg_unit31),Condition(function Trig_West_City_Func002001003)),function Trig_West_City_Func002A)
if(Trig_West_City_Func003C())then
call SetUnitManaBJ(udg_unit31,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)-100.00))
call AddSpecialEffectTargetUnitBJ("chest",udg_unit31,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect115))
call TriggerSleepAction(0.40)
call PanCameraToTimedLocForPlayer(Player(0),GetRectCenter(udg_rect115),0.40)
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],7.00,"TRIGSTR_6371")
endif
endfunction
function Trig_Capital_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit31)>=40))and((GetOwningPlayer(udg_unit31)==Player(0)))and((udg_unit31!=udg_unit12))and((UnitHasItem(udg_unit93,udg_item17)==false))
endfunction
function Trig_Capital_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Capital_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0)))
endfunction
function Trig_Capital_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Capital_Func002001003001(),Trig_Capital_Func002001003002())
endfunction
function Trig_Capital_Func002A takes nothing returns nothing
set udg_boolean05=false
endfunction
function Trig_Capital_Func003C takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>=100.00))and((udg_boolean05))and((RectContainsUnit(udg_rect99,udg_unit31)==false))and((RectContainsUnit(udg_rect17,udg_unit31)==false))and((RectContainsUnit(udg_rect50,udg_unit31)==false))and((UnitHasItemOfTypeBJ(udg_unit31,'I02K')==false))
endfunction
function Trig_Capital_Actions takes nothing returns nothing
set udg_boolean05=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(udg_unit31),Condition(function Trig_Capital_Func002001003)),function Trig_Capital_Func002A)
if(Trig_Capital_Func003C())then
call SetUnitManaBJ(udg_unit31,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)-100.00))
call AddSpecialEffectTargetUnitBJ("chest",udg_unit31,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect10))
call TriggerSleepAction(0.40)
call PanCameraToTimedLocForPlayer(Player(0),GetRectCenter(udg_rect10),0.40)
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],7.00,"TRIGSTR_6372")
endif
endfunction
function Trig_Vegeta_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<108))
endfunction
function Trig_Vegeta_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A00P',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A01B',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A03N',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A00S',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A035',GetLevelingUnit()))))
if(Trig_Vegeta_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[2]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[2])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[2]*(4.00*I2R(udg_integers03[2])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[2]*(4.00*I2R(udg_integers03[2])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[2]*(4.00*I2R(udg_integers03[2])))))
set udg_integers03[2]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Vegeta_fusion_reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit26)>=125))
endfunction
function Trig_Vegeta_fusion_reminder_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.00,"TRIGSTR_6610")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Vegeta_potara_reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit26)>=100))
endfunction
function Trig_Vegeta_potara_reminder_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.00,"TRIGSTR_6611")
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[1],GetUnitLoc(udg_unit54),10.00,0,100,25.00,100)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Vegeta_Reminder_ss1_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit26)>=30))
endfunction
function Trig_Vegeta_Reminder_ss1_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],8.00,"TRIGSTR_6612")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Vegeta_Reminder_uss_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit26)>=50))
endfunction
function Trig_Vegeta_Reminder_uss_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],8.00,"TRIGSTR_6613")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Vegeta_Gravity_reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit26)>=75))
endfunction
function Trig_Vegeta_Gravity_reminder_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.00,"TRIGSTR_6670")
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[1],GetRectCenter(udg_rect136),10.00,0,100,100.00,100)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Vegeta_Reminder_ss2_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit26)>=85))
endfunction
function Trig_Vegeta_Reminder_ss2_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],8.00,"TRIGSTR_6614")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Vegeta_Reminder_ss4_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit26)>=150))
endfunction
function Trig_Vegeta_Reminder_ss4_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],8.00,"TRIGSTR_6615")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Vegeta_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],8.00,"TRIGSTR_607")
endfunction
function Trig_Vegeta_Help_skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],11.00,"TRIGSTR_609")
endfunction
function Trig_Vegeta_SS1_Transformation_Conditions takes nothing returns boolean
return((udg_unit26!=udg_unit12))and((GetHeroLevel(udg_unit26)>=30))and((GetUnitTypeId(udg_unit26)!='H004'))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit26)>=100.00))and((GetOwningPlayer(udg_unit26)!=Player(15)))and((udg_reals02[2]<5.00))
endfunction
function Trig_Vegeta_SS1_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger283)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(1))
call SetUnitScalePercent(udg_unit26,105.00,105.00,105.00)
call SetUnitVertexColorBJ(udg_unit26,240.00,240.00,0.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[2]=2.00
set udg_reals02[2]=2.00
call TriggerExecute(udg_trigger280)
endfunction
function Trig_Vegeta_USS_Transformation_Conditions takes nothing returns boolean
return((udg_unit26!=udg_unit12))and((GetHeroLevel(udg_unit26)>=50))and((GetUnitTypeId(udg_unit26)!='H004'))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit26)>=100.00))and((GetOwningPlayer(udg_unit26)!=Player(15)))and((udg_reals02[2]<5.00))
endfunction
function Trig_Vegeta_USS_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger283)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(1))
call SetUnitVertexColorBJ(udg_unit26,240.00,240.00,0.00,0)
call SetUnitScalePercent(udg_unit26,110.00,110.00,110.00)
call TerrainDeformationCraterBJ(0.30,false,GetUnitLoc(udg_unit26),200.00,100.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[2]=2.50
set udg_reals02[2]=2.50
call TriggerExecute(udg_trigger280)
endfunction
function Trig_Vegeta_SS2_Transformation_Conditions takes nothing returns boolean
return((udg_unit26!=udg_unit12))and((GetHeroLevel(udg_unit26)>=85))and((GetUnitTypeId(udg_unit26)!='H004'))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit26)>=100.00))and((GetOwningPlayer(udg_unit26)!=Player(15)))and((udg_reals02[2]<5.00))
endfunction
function Trig_Vegeta_SS2_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger283)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(1))
call SetUnitScalePercent(udg_unit26,105.00,105.00,105.00)
call SetUnitVertexColorBJ(udg_unit26,240.00,240.00,0.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger284)
set udg_reals01[2]=3.00
set udg_reals02[2]=3.00
call TriggerExecute(udg_trigger280)
endfunction
function Trig_Vegeta_SS4_Transformation_Conditions takes nothing returns boolean
return((udg_unit26!=udg_unit12))and((GetHeroLevel(udg_unit26)>=150))and((GetUnitTypeId(udg_unit26)!='H004'))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit26)>=100.00))and((GetOwningPlayer(udg_unit26)!=Player(15)))and((udg_reals02[2]<5.00))
endfunction
function Trig_Vegeta_SS4_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger283)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(1))
call SetUnitColor(udg_unit26,PLAYER_COLOR_BROWN)
call SetUnitScalePercent(udg_unit26,105.00,105.00,105.00)
call SetUnitVertexColorBJ(udg_unit26,100.00,65.00,0.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger285)
set udg_reals01[2]=4.00
set udg_reals02[2]=4.00
call TriggerExecute(udg_trigger280)
endfunction
function Trig_Vegeta_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit26))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit26))
call ModifyHeroStat(0,udg_unit26,2,R2I((I2R(GetHeroStatBJ(0,udg_unit26,false))*udg_reals02[2])))
call ModifyHeroStat(1,udg_unit26,2,R2I((I2R(GetHeroStatBJ(1,udg_unit26,false))*udg_reals01[2])))
call ModifyHeroStat(2,udg_unit26,2,R2I((I2R(GetHeroStatBJ(2,udg_unit26,false))*udg_reals01[2])))
call SetUnitManaBJ(udg_unit26,(I2R(udg_integer14)*udg_reals01[2]))
call SetWidgetLife(udg_unit26,(I2R(udg_integer16)*udg_reals02[2]))
call EnableTrigger(udg_trigger281)
endfunction
function Trig_Vegeta_Mana_Drain_Conditions takes nothing returns boolean
return((udg_reals01[2]>1.00))
endfunction
function Trig_Vegeta_Mana_Drain_Actions takes nothing returns nothing
call SetUnitManaBJ(udg_unit26,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit26)-(udg_reals01[2]*20.00)))
endfunction
function Trig_Vegeta_Drained_Conditions takes nothing returns boolean
return((udg_reals01[2]>1.00))
endfunction
function Trig_Vegeta_Drained_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger283)
endfunction
function Trig_Vegeta_Revert_Conditions takes nothing returns boolean
return((udg_unit26!=udg_unit12))and((GetUnitTypeId(udg_unit26)!='H004'))and((GetOwningPlayer(udg_unit26)!=Player(15)))and((udg_reals02[2]<5.00))
endfunction
function Trig_Vegeta_Revert_Actions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ(true,'A035',Player(1))
call SetUnitColor(udg_unit26,PLAYER_COLOR_BLUE)
call SetUnitScalePercent(udg_unit26,105.00,105.00,105.00)
call SetUnitVertexColorBJ(udg_unit26,100,100,100,0)
call DisableTrigger(udg_trigger284)
call DisableTrigger(udg_trigger285)
call DisableTrigger(udg_trigger281)
call DisableTrigger(udg_trigger282)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit26))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit26))
call ModifyHeroStat(0,udg_unit26,2,R2I((I2R(GetHeroStatBJ(0,udg_unit26,false))/udg_reals02[2])))
call ModifyHeroStat(1,udg_unit26,2,R2I((I2R(GetHeroStatBJ(1,udg_unit26,false))/udg_reals01[2])))
call ModifyHeroStat(2,udg_unit26,2,R2I((I2R(GetHeroStatBJ(2,udg_unit26,false))/udg_reals01[2])))
call SetUnitManaBJ(udg_unit26,(I2R(udg_integer14)/udg_reals01[2]))
call SetWidgetLife(udg_unit26,(I2R(udg_integer16)/udg_reals02[2]))
set udg_reals01[2]=1.00
set udg_reals02[2]=1.00
call EnableTrigger(udg_trigger282)
endfunction
function Trig_Vegeta_SS2_Effect_Conditions takes nothing returns boolean
return((udg_reals01[2]==3.00))
endfunction
function Trig_Vegeta_SS2_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit26,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Vegeta_SS4_Effect_Conditions takes nothing returns boolean
return((udg_reals01[2]==4.00))
endfunction
function Trig_Vegeta_SS4_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit26,"Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit26,"Abilities\\Spells\\Undead\\ReplenishHealth\\ReplenishHealthCaster.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Vegeta_Golden_Effect_Conditions takes nothing returns boolean
return((udg_reals02[2]==10.00))
endfunction
function Trig_Vegeta_Golden_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit26,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Enter_Gravity_Func003C takes nothing returns boolean
return((GetEnteringUnit()==udg_unit26))and((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=75))
endfunction
function Trig_Enter_Gravity_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect138),0)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect138))
if(Trig_Enter_Gravity_Func003C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.00,"TRIGSTR_6667")
else
call DisplayTimedTextToForce(GetForceOfPlayer(GetTriggerPlayer()),10.00,"TRIGSTR_7301")
endif
endfunction
function Trig_Leave_Gravity_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect140),0)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect140))
endfunction
function Trig_Vis_Gravity_Chamber_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit26))
endfunction
function Trig_Vis_Gravity_Chamber_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call FogModifierStart(udg_fogmodifier04)
endfunction
function Trig_Turn_on_Gravity_Chamber_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit26))and((GetEnteringUnit()!=udg_unit12))and((GetUnitLevel(GetEnteringUnit())>=75)and(GetUnitLevel(GetEnteringUnit())<85))
endfunction
function Trig_Turn_on_Gravity_Chamber_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger292)
call EnableTrigger(udg_trigger293)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.00,"TRIGSTR_6668")
endfunction
function Trig_Turn_off_Gravity_Chamber_Conditions takes nothing returns boolean
return((GetLeavingUnit()==udg_unit26)and(GetUnitLevel(GetEnteringUnit())<=85))
endfunction
function Trig_Turn_off_Gravity_Chamber_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger292)
call DisableTrigger(udg_trigger293)
call CreateFogModifierRectBJ(true,Player(1),FOG_OF_WAR_VISIBLE,udg_rect139)
endfunction
function Trig_Gravity_Chamber_Actions takes nothing returns nothing
local location udg_location07
set udg_location07=GetUnitLoc(GroupPickRandomUnit(GetUnitsOfTypeIdAll('h023')))
call CreateNUnitsAtLoc(2,'h025',Player(14),udg_location07,GetRandomReal(0,360))
call RemoveLocation(udg_location07)
endfunction
function Trig_Chamber_Effects_Actions takes nothing returns nothing
local location udg_location07
set udg_location07=GetUnitLoc(udg_unit78)
call TerrainDeformationRippleBJ(10.00,false,udg_location07,800.00,800.00,16.00,1,128.00)
call RemoveLocation(udg_location07)
endfunction
function Trig_Gohan_gains_level_Func001Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<51))
endfunction
function Trig_Gohan_gains_level_Func001Func004C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<111))
endfunction
function Trig_Gohan_gains_level_Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit27))
endfunction
function Trig_Gohan_gains_level_Actions takes nothing returns nothing
if(Trig_Gohan_gains_level_Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A01I',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A00R',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A005',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A00S',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A035',GetLevelingUnit()))))
if(Trig_Gohan_gains_level_Func001Func004C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
else
set udg_integer14=(GetUnitAbilityLevelSwapped('A01Q',GetLevelingUnit())+(GetUnitAbilityLevelSwapped('A03J',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00S',GetLevelingUnit())))
if(Trig_Gohan_gains_level_Func001Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
endif
set udg_integers03[3]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[3])
call ModifyHeroStat(0,udg_unit27,0,R2I((udg_reals02[3]*(4.00*I2R(udg_integers03[3])))))
call ModifyHeroStat(1,udg_unit27,0,R2I((udg_reals01[3]*(4.00*I2R(udg_integers03[3])))))
call ModifyHeroStat(2,udg_unit27,0,R2I((udg_reals01[3]*(4.00*I2R(udg_integers03[3])))))
call ModifyHeroStat(0,udg_unit82,0,R2I((udg_reals02[3]*(4.00*I2R(udg_integers03[3])))))
call ModifyHeroStat(1,udg_unit82,0,R2I((udg_reals01[3]*(4.00*I2R(udg_integers03[3])))))
call ModifyHeroStat(2,udg_unit82,0,R2I((udg_reals01[3]*(4.00*I2R(udg_integers03[3])))))
set udg_integers03[3]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Gohan_Beats_Cell_Conditions takes nothing returns boolean
return((udg_unit27==GetKillingUnit()))
endfunction
function Trig_Gohan_Beats_Cell_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],5.00,"TRIGSTR_417")
call AddHeroXPSwapped(1000,udg_unit27,true)
call ModifyHeroStat(0,GetKillingUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*20.00)))
call ModifyHeroStat(1,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*20.00)))
call ModifyHeroStat(2,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*20.00)))
endfunction
function Trig_Gohan_Reminder_Potential_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit27)>=1))
endfunction
function Trig_Gohan_Reminder_Potential_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
call PingMinimapLocForForce(bj_FORCE_PLAYER[2],GetUnitLoc(udg_unit62),10.00)
call CreateNUnitsAtLoc(1,'h00Q',Player(2),GetUnitLoc(udg_unit62),bj_UNIT_FACING)
set udg_unit03=bj_lastCreatedUnit
call PauseUnit(udg_unit03,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.00,"TRIGSTR_620")
endfunction
function Trig_Gohan_SS1_Reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit27)>=30))
endfunction
function Trig_Gohan_SS1_Reminder_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],8.00,"TRIGSTR_626")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Gohan_SS2_Reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit27)>=75))
endfunction
function Trig_Gohan_SS2_Reminder_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],8.00,"TRIGSTR_6616")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Gohan_Mystic_Reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit27)>=125))
endfunction
function Trig_Gohan_Mystic_Reminder_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],8.00,"TRIGSTR_6617")
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[2],GetUnitLoc(udg_unit54),10.00,0,100,25.00,100)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Reminder_destroyed_15_targets_Conditions takes nothing returns boolean
return((udg_integer06>=15))
endfunction
function Trig_Reminder_destroyed_15_targets_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],8.00,"TRIGSTR_641")
endfunction
function Trig_Gohan_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.00,"TRIGSTR_619")
endfunction
function Trig_Gohan_Help_Skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.00,"TRIGSTR_628")
endfunction
function Trig_Gohan_Potential_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetEnteringUnit()==udg_unit27))and((GetUnitTypeId(udg_unit27)!='H004'))and(udg_reals02[3]==1)
endfunction
function Trig_Gohan_Potential_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUserControlForceOff(bj_FORCE_PLAYER[2])
call SetCameraTargetControllerNoZForPlayer(Player(2),udg_unit62,0,0,false)
call IssuePointOrderLoc(udg_unit27,"move",GetRectCenter(udg_rect33))
call SetUnitFacingToFaceUnitTimed(udg_unit27,udg_unit62,0)
call SetUnitInvulnerable(udg_unit27,true)
call PauseUnit(udg_unit27,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_622")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_623")
call TriggerSleepAction(3.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.80)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.80)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit27,"Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl")
call TriggerExecute(udg_trigger620)
call ModifyHeroStat(0,udg_unit27,0,R2I((udg_reals01[2]*70)))
call ModifyHeroStat(1,udg_unit27,0,R2I((udg_reals01[2]*60)))
call ModifyHeroStat(2,udg_unit27,0,R2I((udg_reals01[2]*60)))
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_624")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit62),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call RemoveUnit(udg_unit62)
call RemoveUnit(udg_unit03)
call PanCameraToTimedLocForPlayer(Player(2),GetUnitLoc(udg_unit27),2.00)
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_625")
call TriggerSleepAction(1.00)
call ResetToGameCameraForPlayer(Player(2),0)
call SetUserControlForceOn(bj_FORCE_PLAYER[2])
call PauseUnit(udg_unit27,false)
call SetUnitInvulnerable(udg_unit27,false)
endfunction
function Trig_Gohan_SS1_Transformation_Conditions takes nothing returns boolean
return((udg_unit27!=udg_unit12))and((GetHeroLevel(udg_unit27)>=30))and((udg_reals01[3]>=1.00))and((udg_reals01[3]!=3.50))and((RectContainsUnit(udg_rect52,udg_unit27)==false))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit27)>=100.00))and((GetOwningPlayer(udg_unit27)!=Player(15)))and((GetUnitTypeId(udg_unit27)!='H004'))and((udg_reals02[3]<5.00))
endfunction
function Trig_Gohan_SS1_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger318)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(2))
call SetUnitVertexColorBJ(udg_unit27,240,240,0,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[3]=2.00
set udg_reals02[3]=2.00
call TriggerExecute(udg_trigger306)
endfunction
function Trig_Gohan_SS2_Transformation_Conditions takes nothing returns boolean
return((udg_unit27!=udg_unit12))and((GetHeroLevel(udg_unit27)>=75))and((udg_reals01[3]>=1.00))and((udg_reals01[3]!=3.50))and((RectContainsUnit(udg_rect52,udg_unit27)==false))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit27)>=100.00))and((GetOwningPlayer(udg_unit27)!=Player(15)))and((GetUnitTypeId(udg_unit27)!='H004'))and((udg_reals02[3]<5.00))
endfunction
function Trig_Gohan_SS2_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger318)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(2))
call SetUnitVertexColorBJ(udg_unit27,240,240,0,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger319)
set udg_reals01[3]=3.00
set udg_reals02[3]=3.00
call TriggerExecute(udg_trigger306)
endfunction
function Trig_Gohan_Alter_Stats_Func008C takes nothing returns boolean
return((udg_reals01[3]!=1.00))and((udg_reals01[3]!=3.50))
endfunction
function Trig_Gohan_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit27))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit27))
call ModifyHeroStat(0,udg_unit27,2,R2I((I2R(GetHeroStatBJ(0,udg_unit27,false))*udg_reals02[3])))
call ModifyHeroStat(1,udg_unit27,2,R2I((I2R(GetHeroStatBJ(1,udg_unit27,false))*udg_reals01[3])))
call ModifyHeroStat(2,udg_unit27,2,R2I((I2R(GetHeroStatBJ(2,udg_unit27,false))*udg_reals01[3])))
call SetUnitManaBJ(udg_unit27,(I2R(udg_integer14)*udg_reals01[3]))
call SetWidgetLife(udg_unit27,(I2R(udg_integer16)*udg_reals02[3]))
if(Trig_Gohan_Alter_Stats_Func008C())then
call EnableTrigger(udg_trigger315)
endif
endfunction
function Trig_Enter_Kai_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit27))and((GetEnteringUnit()!=udg_unit12))and((udg_reals01[3]>=1.00))and((GetHeroLevel(udg_unit27)>=125))
endfunction
function Trig_Enter_Kai_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger317)
call SetUnitInvulnerable(udg_unit27,true)
call PlayMusicBJ(udg_string02)
call SetUserControlForceOff(bj_FORCE_PLAYER[2])
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_311")
call TriggerSleepAction(2)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit54,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit54),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit27,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.50)
call SetUnitPositionLoc(udg_unit54,GetRectCenter(udg_rect51))
call SetUnitPositionLoc(udg_unit27,GetRectCenter(udg_rect51))
call SetUnitInvulnerable(udg_unit27,false)
call TriggerSleepAction(0.50)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call PanCameraToTimedLocForPlayer(Player(2),GetUnitLoc(udg_unit27),0.20)
call TriggerSleepAction(0.60)
call SetUnitFacingToFaceUnitTimed(udg_unit86,udg_unit54,1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],4.00,"TRIGSTR_611")
call TriggerSleepAction(4.00)
call SetUnitFacingToFaceUnitTimed(udg_unit54,udg_unit86,0.20)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_631")
call TriggerSleepAction(3.00)
call SetUnitFacingToFaceUnitTimed(udg_unit27,udg_unit54,0.20)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_632")
call TriggerSleepAction(3.00)
call SetUnitFacingToFaceUnitTimed(udg_unit54,udg_unit27,0.20)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],5.00,"TRIGSTR_633")
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],5.00,"TRIGSTR_634")
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_635")
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_636")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_637")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_638")
call TriggerSleepAction(3.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit27,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit27,GetRectCenter(udg_rect31))
call SetUnitFacingToFaceLocTimed(udg_unit27,GetRectCenter(udg_rect76),0)
call CameraSetupApplyForPlayer(true,udg_camerasetup01,Player(2),1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit54,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit54),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit54,GetRectCenter(udg_rect94))
call TriggerSleepAction(1.00)
call SetUnitFacingToFaceLocTimed(udg_unit54,GetRectCenter(udg_rect76),1.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit86,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit86,GetRectCenter(udg_rect54))
call SetUnitFacingToFaceLocTimed(udg_unit86,GetRectCenter(udg_rect76),0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit86),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_639")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_640")
call TriggerSleepAction(2.00)
call IssuePointOrderLoc(udg_unit27,"move",GetRectCenter(udg_rect66))
call TriggerSleepAction(0.80)
call SetUnitAnimation(udg_unit27,"victory")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_642")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_644")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_643")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitColor(udg_unit27,PLAYER_COLOR_YELLOW)
call TriggerSleepAction(0.20)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.60)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_646")
call TriggerSleepAction(0.60)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_645")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect76),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationCraterBJ(0.50,true,GetRectCenter(udg_rect76),512,64.00)
call KillUnit(udg_unit39)
call TriggerSleepAction(0.60)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_647")
call TriggerSleepAction(1.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit54,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit54),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit54,GetRectCenter(udg_rect93))
call TriggerSleepAction(1.00)
call SetUnitFacingToFaceLocTimed(udg_unit54,GetRectCenter(udg_rect32),1.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit86,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit86,GetRectCenter(udg_rect55))
call SetUnitFacingToFaceLocTimed(udg_unit86,GetRectCenter(udg_rect32),1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit86),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call PanCameraToTimedLocForPlayer(Player(2),GetRectCenter(udg_rect32),1.00)
call TriggerSleepAction(0.60)
call ResetUnitAnimation(udg_unit27)
call SetUnitPositionLoc(udg_unit27,GetRectCenter(udg_rect32))
call TriggerSleepAction(0.20)
call SetUnitFacingToFaceLocTimed(udg_unit27,GetRectCenter(udg_rect93),1.00)
set udg_unit18=udg_unit27
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit27,udg_item04)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_650")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_651")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_652")
call TriggerSleepAction(1.00)
call SetUnitColor(udg_unit27,PLAYER_COLOR_CYAN)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],10.00,"TRIGSTR_655")
set udg_fogmodifier01=CreateFogModifierRectBJ(true,Player(2),FOG_OF_WAR_VISIBLE,udg_rect52)
call ResetToGameCameraForPlayer(Player(2),0)
call SetUserControlForceOn(bj_FORCE_PLAYER[2])
call SetPlayerAbilityAvailableBJ(false,'A035',Player(2))
call DisableTrigger(udg_trigger317)
call StopMusic(true)
endfunction
function Trig_Enter_Kai_completed_Conditions takes nothing returns boolean
return((udg_integer06>=15))and((GetEnteringUnit()==udg_unit27))
endfunction
function Trig_Enter_Kai_completed_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUserControlForceOff(bj_FORCE_PLAYER[2])
call SetCameraTargetControllerNoZForPlayer(Player(2),udg_unit27,0,0,false)
call IssuePointOrderLoc(udg_unit27,"move",GetRectCenter(udg_rect32))
call TriggerSleepAction(0.80)
call SetUnitFacingToFaceUnitTimed(udg_unit27,udg_unit54,0)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_661")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_662")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_663")
call TriggerSleepAction(2.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect77),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.60)
call CreateDestructableLoc('LTrc',GetRectCenter(udg_rect77),GetRandomReal(0,360),5.00,0)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_664")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_665")
call TriggerSleepAction(0.60)
call SetUnitFacingToFaceLocTimed(udg_unit27,GetRectCenter(udg_rect77),0)
call IssuePointOrderLoc(udg_unit27,"move",GetRectCenter(udg_rect78))
call TriggerSleepAction(1.80)
call SetUnitAnimation(udg_unit27,"attack")
call AddSpecialEffectTargetUnitBJ("righthand",udg_unit27,"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call RemoveDestructable(bj_lastCreatedDestructable)
call DisableTrigger(udg_trigger320)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_666")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_667")
call IssuePointOrderLoc(udg_unit27,"move",GetRectCenter(udg_rect32))
call TriggerSleepAction(0.40)
call SetUnitFacingToFaceUnitTimed(udg_unit27,udg_unit54,0)
call RemoveItem(udg_item04)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect78),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call CreateNUnitsAtLocFacingLocBJ(1,'o00G',Player(15),GetRectCenter(udg_rect78),GetRectCenter(udg_rect28))
call TriggerSleepAction(0.40)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_668")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],2.00,"TRIGSTR_669")
call TriggerSleepAction(2.00)
call SetUnitFacingToFaceUnitTimed(udg_unit27,bj_lastCreatedUnit,0)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_670")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_671")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],5.00,"TRIGSTR_672")
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],4.00,"TRIGSTR_673")
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_674")
call UnitAddItem(udg_unit27,udg_item03)
call IssuePointOrderLoc(udg_unit27,"move",GetRectCenter(udg_rect79))
call TriggerSleepAction(4.00)
call SetUserControlForceOn(bj_FORCE_PLAYER[2])
call ResetToGameCameraForPlayer(Player(2),0)
call PauseUnit(udg_unit27,true)
call DestroyFogModifier(udg_fogmodifier01)
call TriggerExecute(udg_trigger309)
call EnableTrigger(udg_trigger317)
endfunction
function Trig_Mystic_Training_Conditions takes nothing returns boolean
return((UnitHasItem(udg_unit27,udg_item03)))
endfunction
function Trig_Mystic_Training_Func005Func001C takes nothing returns boolean
return((bj_forLoopAIndex!=3))
endfunction
function Trig_Mystic_Training_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call StartTimerBJ(udg_timer11,false,15.00)
call TriggerExecute(udg_trigger317)
set udg_timerdialog09=CreateTimerDialogBJ(udg_timer11,"TRIGSTR_675")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Mystic_Training_Func005Func001C())then
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog09,Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger321)
endfunction
function Trig_Timers_run_out_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(udg_timerdialog09)
call DisableTrigger(udg_trigger321)
call RemoveItem(udg_item03)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_676")
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_677")
call TriggerSleepAction(2)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect79),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[3]=3.50
set udg_reals02[3]=3.50
call TriggerExecute(udg_trigger306)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_678")
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_679")
call TriggerSleepAction(0.50)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit27,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit27),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit27,GetRectCenter(udg_rect84))
call PanCameraToTimedLocForPlayer(Player(2),GetRectCenter(udg_rect84),0.50)
call PauseUnit(udg_unit27,false)
call SetUnitPositionLoc(udg_unit54,GetRectCenter(udg_rect96))
call SetUnitFacingToFaceLocTimed(udg_unit54,GetRectCenter(udg_rect62),1.00)
call EnableTrigger(udg_trigger322)
call SetPlayerAbilityAvailableBJ(false,'A037',Player(2))
call SetPlayerAbilityAvailableBJ(true,'A035',Player(2))
call SetUnitColor(udg_unit27,PLAYER_COLOR_BROWN)
endfunction
function Trig_Learn_Great_Saiyaman_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit27)>=90))
endfunction
function Trig_Learn_Great_Saiyaman_Func002001 takes nothing returns boolean
return(GetUnitTypeId(udg_unit27)!='H004')
endfunction
function Trig_Learn_Great_Saiyaman_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
loop
exitwhen(Trig_Learn_Great_Saiyaman_Func002001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,1))
endloop
call SetPlayerAbilityAvailableBJ(false,'A035',Player(2))
call UnitAddAbility(udg_unit27,'A037')
call SetPlayerAbilityAvailableBJ(true,'A037',Player(2))
endfunction
function Trig_Great_Saiyaman_transformation_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A037'))and((RectContainsUnit(udg_rect50,GetSpellAbilityUnit())==false))and((RectContainsUnit(udg_rect99,GetSpellAbilityUnit())==false))and((RectContainsUnit(udg_rect17,GetSpellAbilityUnit())==false))and((RectContainsUnit(udg_rect52,GetSpellAbilityUnit())==false))and((GetSpellAbilityUnit()!=udg_unit12))and((udg_reals01[3]>=1.00))and((udg_reals01[3]!=3.50))
endfunction
function Trig_Great_Saiyaman_transformation_Func018C takes nothing returns boolean
return((udg_boolean07==false))
endfunction
function Trig_Great_Saiyaman_transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger317)
set udg_location03=GetUnitLoc(udg_unit27)
call SetUnitInvulnerable(udg_unit27,true)
call SetUnitInvulnerable(udg_unit82,true)
call SetPlayerName(Player(2),"TRIGSTR_2923")
call SelectHeroSkill(udg_unit82,'A03J')
call SetHeroLevelBJ(udg_unit82,GetUnitLevel(udg_unit27),false)
call ModifyHeroStat(0,udg_unit82,2,(GetHeroStatBJ(0,udg_unit27,false)*3))
call ModifyHeroStat(1,udg_unit82,2,(GetHeroStatBJ(1,udg_unit27,false)*3))
call ModifyHeroStat(2,udg_unit82,2,(GetHeroStatBJ(2,udg_unit27,false)*3))
call SetUnitLifePercentBJ(udg_unit82,GetUnitLifePercent(udg_unit27))
if(Trig_Great_Saiyaman_transformation_Func018C())then
call CinematicModeBJ(true,bj_FORCE_PLAYER[2])
call FogMaskEnableOn()
call SetUnitPositionLocFacingLocBJ(udg_unit27,GetRectCenter(udg_rect44),GetRectCenter(udg_rect40))
call SetUserControlForceOff(bj_FORCE_PLAYER[2])
call CameraSetupApplyForPlayer(true,udg_camerasetup03,Player(2),0.10)
call TriggerSleepAction(1.50)
call PlaySoundAtPointBJ(udg_sound09,100,GetUnitLoc(udg_unit27),0)
call TriggerSleepAction(1.00)
call TransmissionFromUnitWithNameBJ(bj_FORCE_PLAYER[2],udg_unit27,"TRIGSTR_6377",null,"TRIGSTR_6378",1,3.00,false)
call TriggerSleepAction(0.60)
call IssuePointOrderLoc(udg_unit27,"move",GetRectCenter(udg_rect41))
call TriggerSleepAction(1.30)
call SetUnitOwner(udg_unit27,Player(15),false)
call SetUnitPositionLoc(udg_unit27,GetRectCenter(udg_rect35))
call SetUnitPositionLoc(udg_unit82,GetRectCenter(udg_rect41))
call SetUnitOwner(udg_unit82,Player(2),false)
call TriggerSleepAction(1.50)
call IssuePointOrderLoc(udg_unit82,"move",GetRectCenter(udg_rect44))
call TriggerSleepAction(0.70)
call SetUnitFacingToFaceLocTimed(udg_unit82,GetRectCenter(udg_rect40),0)
call PlaySoundAtPointBJ(udg_sound07,100.00,GetUnitLoc(udg_unit82),0)
call TriggerSleepAction(0.30)
call TransmissionFromUnitWithNameBJ(bj_FORCE_PLAYER[2],udg_unit82,"TRIGSTR_6379",null,"TRIGSTR_6380",0,0.00,false)
call SetUnitAnimation(udg_unit82,"spell")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect42),"Objects\\Spawnmodels\\Human\\SmallFlameSpawn\\SmallFlameSpawn.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect43),"Objects\\Spawnmodels\\Human\\SmallFlameSpawn\\SmallFlameSpawn.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.60)
call SetUnitAnimation(udg_unit82,"stand")
call ResetToGameCameraForPlayer(Player(2),0.70)
call SetUserControlForceOn(bj_FORCE_PLAYER[2])
call CinematicModeBJ(false,bj_FORCE_PLAYER[2])
set udg_boolean07=true
else
call SetUnitOwner(udg_unit27,Player(15),false)
call SetUnitPositionLoc(udg_unit27,GetRectCenter(udg_rect35))
call SetUnitOwner(udg_unit82,Player(2),false)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit82,UnitItemInSlotBJ(udg_unit27,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPositionLoc(udg_unit82,udg_location03)
call PanCameraToTimedLocForPlayer(Player(2),GetUnitLoc(udg_unit82),0.35)
call AddSpecialEffectLocBJ(udg_location03,"Objects\\Spawnmodels\\Human\\SmallFlameSpawn\\SmallFlameSpawn.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitInvulnerable(udg_unit27,false)
call SetUnitInvulnerable(udg_unit82,false)
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],5.00,"TRIGSTR_2925")
endfunction
function Trig_Gohan_Change_back_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect99,GetSpellAbilityUnit())==false))and((RectContainsUnit(udg_rect17,GetSpellAbilityUnit())==false))and((GetSpellAbilityId()=='A03J'))
endfunction
function Trig_Gohan_Change_back_Actions takes nothing returns nothing
call SetUnitInvulnerable(udg_unit27,true)
call SetUnitInvulnerable(udg_unit82,true)
call SetUnitFacingTimed(udg_unit27,GetUnitFacing(udg_unit82),0)
call SetHeroLevelBJ(udg_unit27,GetUnitLevel(udg_unit82),false)
call SetPlayerName(Player(2),"TRIGSTR_2924")
call SetUnitLifePercentBJ(udg_unit27,GetUnitLifePercent(udg_unit82))
call TriggerSleepAction(0.25)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit27,UnitItemInSlotBJ(udg_unit82,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_location03=GetUnitLoc(udg_unit82)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit82),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit82,Player(15),false)
call SetUnitPositionLoc(udg_unit82,GetRectCenter(udg_rect35))
call SetUnitOwner(udg_unit27,Player(2),false)
call SetUnitPositionLoc(udg_unit27,udg_location03)
call SetUnitInvulnerable(udg_unit27,false)
call SetUnitInvulnerable(udg_unit82,false)
endfunction
function Trig_Power_Pose_Memory_Copy_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01Q'))
endfunction
function Trig_Power_Pose_Memory_Copy_Actions takes nothing returns nothing
call UnitAddItemByIdSwapped('I01T',GetTriggerUnit())
call UnitAddItemByIdSwapped('I01T',udg_unit27)
endfunction
function Trig_Gohan_Mana_Drain_Conditions takes nothing returns boolean
return((udg_reals01[3]>1.00))and((udg_reals01[3]!=3.50))
endfunction
function Trig_Gohan_Mana_Drain_Actions takes nothing returns nothing
call SetUnitManaBJ(udg_unit27,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit27)-(udg_reals01[3]*20.00)))
endfunction
function Trig_Gohan_Drained_Conditions takes nothing returns boolean
return((udg_reals01[3]>1.00))and((udg_reals01[3]!=3.50))
endfunction
function Trig_Gohan_Drained_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger317)
endfunction
function Trig_Gohan_Revert_Conditions takes nothing returns boolean
return((udg_unit27!=udg_unit12))and((GetUnitTypeId(udg_unit27)!='H004'))and((GetOwningPlayer(udg_unit27)!=Player(15)))and((udg_reals01[3]>1.25))and((udg_reals01[3]!=3.50))and((udg_reals02[3]<5.00))
endfunction
function Trig_Gohan_Revert_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger318)
call TriggerExecute(udg_trigger306)
endfunction
function Trig_Gohan_Revert_Info_Func001C takes nothing returns boolean
return((GetHeroLevel(udg_unit27)<90))
endfunction
function Trig_Gohan_Revert_Info_Actions takes nothing returns nothing
if(Trig_Gohan_Revert_Info_Func001C())then
call SetPlayerAbilityAvailableBJ(true,'A035',Player(2))
endif
call SetUnitColor(udg_unit27,PLAYER_COLOR_CYAN)
call SetUnitScalePercent(udg_unit27,130.00,130.00,130.00)
call SetUnitVertexColorBJ(udg_unit27,100,100,100,0)
call DisableTrigger(udg_trigger319)
call DisableTrigger(udg_trigger315)
call DisableTrigger(udg_trigger316)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit27))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit27))
call ModifyHeroStat(0,udg_unit27,2,R2I((I2R(GetHeroStatBJ(0,udg_unit27,false))/udg_reals02[3])))
call ModifyHeroStat(1,udg_unit27,2,R2I((I2R(GetHeroStatBJ(1,udg_unit27,false))/udg_reals01[3])))
call ModifyHeroStat(2,udg_unit27,2,R2I((I2R(GetHeroStatBJ(2,udg_unit27,false))/udg_reals01[3])))
call SetUnitManaBJ(udg_unit27,(I2R(udg_integer14)/udg_reals01[3]))
call SetWidgetLife(udg_unit27,(I2R(udg_integer16)/udg_reals02[3]))
set udg_reals01[3]=1.00
set udg_reals02[3]=1.00
call EnableTrigger(udg_trigger316)
endfunction
function Trig_Gohan_SS2_Effect_Conditions takes nothing returns boolean
return((udg_reals01[3]==3.00))
endfunction
function Trig_Gohan_SS2_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit27,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Zsword_effect_Conditions takes nothing returns boolean
return((UnitHasItem(udg_unit27,udg_item04)))
endfunction
function Trig_Zsword_effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("hand left",udg_unit27,"Abilities\\Spells\\Undead\\ReplenishMana\\SpiritTouchTarget.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Mystic_Training_Effect_Conditions takes nothing returns boolean
return((UnitHasItem(udg_unit27,udg_item03)))
endfunction
function Trig_Mystic_Training_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit27,"Abilities\\Spells\\Human\\Invisibility\\InvisibilityTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(3.00)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit27,"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Mystic_Effect_Conditions takes nothing returns boolean
return((GetAttacker()==udg_unit27))and((UnitHasItem(udg_unit27,udg_item03)))
endfunction
function Trig_Mystic_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit27,"Abilities\\Spells\\Orc\\Disenchant\\DisenchantSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Death_to_practice_units_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='h00U'))
endfunction
function Trig_Death_to_practice_units_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Abilities\\Spells\\NightElf\\Taunt\\TauntCaster.mdl")
call TriggerExecute(udg_trigger620)
call RemoveUnit(GetDyingUnit())
set udg_integer06=(udg_integer06+1)
call ConditionalTriggerExecute(udg_trigger300)
endfunction
function Trig_Gohan_Casts_Actions takes nothing returns nothing
call SetUnitAnimation(udg_unit27,"attack")
call TriggerSleepAction(1.00)
call ResetUnitAnimation(udg_unit27)
endfunction
function Trig_Future_Trunks_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<105))
endfunction
function Trig_Future_Trunks_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A00P',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A03V',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A03I',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A00W',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00G',GetLevelingUnit()))))
if(Trig_Future_Trunks_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[6]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[6])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[6]*(4.00*I2R(udg_integers03[6])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[6]*(4.00*I2R(udg_integers03[6])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[6]*(4.00*I2R(udg_integers03[6])))))
set udg_integers03[6]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Future_Trunks_Reminder_ss1_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit29)>=20))
endfunction
function Trig_Future_Trunks_Reminder_ss1_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],6.00,"TRIGSTR_6619")
call TriggerSleepAction(6.00)
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],8.00,"TRIGSTR_6618")
endfunction
function Trig_Future_Trunks_Reminder_uss_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit29)>=50))
endfunction
function Trig_Future_Trunks_Reminder_uss_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],8.00,"TRIGSTR_725")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Future_Trunks_Reminder_uss2_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit29)>=70))
endfunction
function Trig_Future_Trunks_Reminder_uss2_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],8.00,"TRIGSTR_6620")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Future_Trunks_Reminder_sword_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit29)>=125))
endfunction
function Trig_Future_Trunks_Reminder_sword_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],8.00,"TRIGSTR_6622")
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[5],GetRectCenter(udg_rect11),10.00,0,25.00,100.00,100)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Future_Trunks_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],5.00,"TRIGSTR_702")
endfunction
function Trig_Future_Trunks_Help_skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],10.00,"TRIGSTR_6621")
endfunction
function Trig_Future_Trunks_SS1_Transformation_Conditions takes nothing returns boolean
return((udg_unit29!=udg_unit12))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit29)>=100.00))and((GetOwningPlayer(udg_unit29)!=Player(15)))and((GetHeroLevel(udg_unit29)>=25))
endfunction
function Trig_Future_Trunks_SS1_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger338)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit29),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitVertexColorBJ(udg_unit29,240,240,240,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit29),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[6]=2.00
set udg_reals02[6]=2.00
call TriggerExecute(udg_trigger335)
endfunction
function Trig_Future_Trunks_USS_Transformation_Conditions takes nothing returns boolean
return((udg_unit29!=udg_unit12))and((GetHeroLevel(udg_unit29)>=50))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit29)>=100.00))and((GetOwningPlayer(udg_unit29)!=Player(15)))
endfunction
function Trig_Future_Trunks_USS_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger338)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit29),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitColor(udg_unit29,PLAYER_COLOR_YELLOW)
call SetUnitScalePercent(udg_unit29,120.00,140.00,130.00)
call TerrainDeformationCraterBJ(0.30,false,GetUnitLoc(udg_unit29),200.00,100.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit29),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[6]=2.50
set udg_reals02[6]=2.50
call TriggerExecute(udg_trigger335)
endfunction
function Trig_Future_Trunks_USS2_Transformation_Conditions takes nothing returns boolean
return((udg_unit29!=udg_unit12))and((GetHeroLevel(udg_unit29)>=70))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit29)>=100.00))and((GetOwningPlayer(udg_unit29)!=Player(15)))
endfunction
function Trig_Future_Trunks_USS2_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger338)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit29),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitColor(udg_unit29,PLAYER_COLOR_YELLOW)
call SetUnitScalePercent(udg_unit29,120.00,140.00,130.00)
call TerrainDeformationCraterBJ(0.30,false,GetUnitLoc(udg_unit29),200.00,100.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit29),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger339)
set udg_reals01[6]=2.00
set udg_reals02[6]=5.00
call TriggerExecute(udg_trigger335)
endfunction
function Trig_Future_Trunks_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit29))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit29))
call ModifyHeroStat(0,udg_unit29,2,R2I((I2R(GetHeroStatBJ(0,udg_unit29,false))*udg_reals02[6])))
call ModifyHeroStat(1,udg_unit29,2,R2I((I2R(GetHeroStatBJ(1,udg_unit29,false))*udg_reals01[6])))
call ModifyHeroStat(2,udg_unit29,2,R2I((I2R(GetHeroStatBJ(2,udg_unit29,false))*udg_reals01[6])))
call SetUnitManaBJ(udg_unit29,(I2R(udg_integer14)*udg_reals01[6]))
call SetWidgetLife(udg_unit29,(I2R(udg_integer16)*udg_reals02[6]))
call EnableTrigger(udg_trigger336)
endfunction
function Trig_Future_Trunks_Mana_Drain_Conditions takes nothing returns boolean
return((udg_reals01[6]>1.00))
endfunction
function Trig_Future_Trunks_Mana_Drain_Actions takes nothing returns nothing
call SetUnitManaBJ(udg_unit29,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit29)-(udg_reals01[6]*20.00)))
endfunction
function Trig_Future_Trunks_Drained_Conditions takes nothing returns boolean
return((udg_reals01[6]>1.00))
endfunction
function Trig_Future_Trunks_Drained_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger338)
endfunction
function Trig_Future_Trunks_Revert_Conditions takes nothing returns boolean
return((udg_unit29!=udg_unit12))
endfunction
function Trig_Future_Trunks_Revert_Actions takes nothing returns nothing
call SetUnitColor(udg_unit29,ConvertPlayerColor(12))
call SetUnitScalePercent(udg_unit29,110.00,110.00,110.00)
call SetUnitVertexColorBJ(udg_unit29,100,100,100,0)
call DisableTrigger(udg_trigger339)
call DisableTrigger(udg_trigger336)
call DisableTrigger(udg_trigger337)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit29))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit29))
call ModifyHeroStat(0,udg_unit29,2,R2I((I2R(GetHeroStatBJ(0,udg_unit29,false))/udg_reals02[6])))
call ModifyHeroStat(1,udg_unit29,2,R2I((I2R(GetHeroStatBJ(1,udg_unit29,false))/udg_reals01[6])))
call ModifyHeroStat(2,udg_unit29,2,R2I((I2R(GetHeroStatBJ(2,udg_unit29,false))/udg_reals01[6])))
call SetUnitManaBJ(udg_unit29,(I2R(udg_integer14)/udg_reals01[6]))
call SetWidgetLife(udg_unit29,(I2R(udg_integer16)/udg_reals02[6]))
set udg_reals01[6]=1.00
set udg_reals02[6]=1.00
call EnableTrigger(udg_trigger337)
endfunction
function Trig_FTrunks_USS2_Effect_Conditions takes nothing returns boolean
return((udg_reals02[6]==5.00))
endfunction
function Trig_FTrunks_USS2_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit29,"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Enter_capsule_corp_Conditions takes nothing returns boolean
return((GetEnteringUnit()!=udg_unit12))and((GetEnteringUnit()==udg_unit29))and((GetHeroLevel(udg_unit29)>=125))
endfunction
function Trig_Enter_capsule_corp_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],5.00,"TRIGSTR_727")
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit29,'I00B'))
call TriggerSleepAction(2.00)
call UnitAddItem(udg_unit29,udg_item11)
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],2.00,"TRIGSTR_729")
endfunction
function Trig_Goten_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<75))
endfunction
function Trig_Goten_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A01N',GetLevelingUnit())+(GetUnitAbilityLevelSwapped('A00R',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00S',GetLevelingUnit())))
if(Trig_Goten_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[4]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[4])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[4]*(4.00*I2R(udg_integers03[4])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[4]*(4.00*I2R(udg_integers03[4])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[4]*(4.00*I2R(udg_integers03[4])))))
set udg_integers03[4]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Kid_Trunks_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<69))
endfunction
function Trig_Kid_Trunks_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A01N',GetLevelingUnit())+(GetUnitAbilityLevelSwapped('A03V',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00S',GetLevelingUnit())))
if(Trig_Kid_Trunks_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[13]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[13])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[4]*(4.00*I2R(udg_integers03[13])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[4]*(4.00*I2R(udg_integers03[13])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[4]*(4.00*I2R(udg_integers03[13])))))
set udg_integers03[13]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Disable_exp_Goten_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit30)>=100))
endfunction
function Trig_Disable_exp_Goten_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SuspendHeroXPBJ(false,GetTriggerUnit())
endfunction
function Trig_Disable_exp_Trunks_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit32)>=100))
endfunction
function Trig_Disable_exp_Trunks_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SuspendHeroXPBJ(false,GetTriggerUnit())
endfunction
function Trig_GT_SS1_Reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit30)>=25))and((GetHeroLevel(udg_unit32)>=25))
endfunction
function Trig_GT_SS1_Reminder_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],8.00,"TRIGSTR_690")
endfunction
function Trig_GT_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],9.00,"TRIGSTR_856")
endfunction
function Trig_GT_Help_Skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],12.00,"TRIGSTR_689")
endfunction
function Trig_Goten_Trunks_SS_Transformation_Conditions takes nothing returns boolean
return((udg_unit30!=udg_unit12))and((udg_unit32!=udg_unit12))and((GetHeroLevel(udg_unit30)>=25))and((GetHeroLevel(udg_unit32)>=25))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit30)>=100.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit32)>=100.00))and((GetOwningPlayer(udg_unit30)!=Player(15)))and((GetOwningPlayer(udg_unit32)!=Player(15)))
endfunction
function Trig_Goten_Trunks_SS_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger352)
call SetUnitColor(udg_unit30,PLAYER_COLOR_YELLOW)
call SetUnitColor(udg_unit32,PLAYER_COLOR_YELLOW)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit30),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit30),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit32),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit32),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[4]=2.00
set udg_reals02[4]=2.00
call TriggerExecute(udg_trigger349)
endfunction
function Trig_Goten_Trunks_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit30))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit30))
call ModifyHeroStat(0,udg_unit30,2,R2I((I2R(GetHeroStatBJ(0,udg_unit30,false))*udg_reals02[4])))
call ModifyHeroStat(1,udg_unit30,2,R2I((I2R(GetHeroStatBJ(1,udg_unit30,false))*udg_reals01[4])))
call ModifyHeroStat(2,udg_unit30,2,R2I((I2R(GetHeroStatBJ(2,udg_unit30,false))*udg_reals01[4])))
call SetUnitManaBJ(udg_unit30,(I2R(udg_integer14)*udg_reals01[4]))
call SetWidgetLife(udg_unit30,(I2R(udg_integer16)*udg_reals02[4]))
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit32))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit32))
call ModifyHeroStat(0,udg_unit32,2,R2I((I2R(GetHeroStatBJ(0,udg_unit32,false))*udg_reals02[4])))
call ModifyHeroStat(1,udg_unit32,2,R2I((I2R(GetHeroStatBJ(1,udg_unit32,false))*udg_reals01[4])))
call ModifyHeroStat(2,udg_unit32,2,R2I((I2R(GetHeroStatBJ(2,udg_unit32,false))*udg_reals01[4])))
call SetUnitManaBJ(udg_unit32,(I2R(udg_integer14)*udg_reals01[4]))
call SetWidgetLife(udg_unit32,(I2R(udg_integer16)*udg_reals02[4]))
call EnableTrigger(udg_trigger350)
endfunction
function Trig_Goten_Trunks_Mana_Drain_Conditions takes nothing returns boolean
return((udg_reals01[4]>1.00))and((RectContainsUnit(udg_rect37,udg_unit30)==false))and((RectContainsUnit(udg_rect37,udg_unit32)==false))
endfunction
function Trig_Goten_Trunks_Mana_Drain_Actions takes nothing returns nothing
call SetUnitManaBJ(udg_unit30,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit30)-(udg_reals01[4]*20.00)))
call SetUnitManaBJ(udg_unit32,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit32)-(udg_reals01[4]*20.00)))
endfunction
function Trig_Goten_or_Trunks_Drained_Conditions takes nothing returns boolean
return((udg_reals01[4]>1.00))and((RectContainsUnit(udg_rect37,udg_unit30)==false))and((RectContainsUnit(udg_rect37,udg_unit32)==false))
endfunction
function Trig_Goten_or_Trunks_Drained_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger352)
endfunction
function Trig_Goten_Trunks_Revert_Func001001 takes nothing returns boolean
return(udg_unit30!=udg_unit12)
endfunction
function Trig_Goten_Trunks_Revert_Func001002 takes nothing returns boolean
return(udg_unit32!=udg_unit12)
endfunction
function Trig_Goten_Trunks_Revert_Conditions takes nothing returns boolean
return(GetBooleanAnd(Trig_Goten_Trunks_Revert_Func001001(),Trig_Goten_Trunks_Revert_Func001002()))
endfunction
function Trig_Goten_Trunks_Revert_Actions takes nothing returns nothing
call SetUnitColor(udg_unit30,PLAYER_COLOR_PURPLE)
call SetUnitColor(udg_unit32,PLAYER_COLOR_PURPLE)
call DisableTrigger(udg_trigger350)
call DisableTrigger(udg_trigger351)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit30))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit30))
call ModifyHeroStat(0,udg_unit30,2,R2I((I2R(GetHeroStatBJ(0,udg_unit30,false))/udg_reals02[4])))
call ModifyHeroStat(1,udg_unit30,2,R2I((I2R(GetHeroStatBJ(1,udg_unit30,false))/udg_reals01[4])))
call ModifyHeroStat(2,udg_unit30,2,R2I((I2R(GetHeroStatBJ(2,udg_unit30,false))/udg_reals01[4])))
call SetUnitManaBJ(udg_unit30,(I2R(udg_integer14)/udg_reals01[4]))
call SetWidgetLife(udg_unit30,(I2R(udg_integer16)/udg_reals02[4]))
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit32))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit32))
call ModifyHeroStat(0,udg_unit32,2,R2I((I2R(GetHeroStatBJ(0,udg_unit32,false))/udg_reals02[4])))
call ModifyHeroStat(1,udg_unit32,2,R2I((I2R(GetHeroStatBJ(1,udg_unit32,false))/udg_reals01[4])))
call ModifyHeroStat(2,udg_unit32,2,R2I((I2R(GetHeroStatBJ(2,udg_unit32,false))/udg_reals01[4])))
call SetUnitManaBJ(udg_unit32,(I2R(udg_integer14)/udg_reals01[4]))
call SetWidgetLife(udg_unit32,(I2R(udg_integer16)/udg_reals02[4]))
set udg_reals01[4]=1.00
set udg_reals02[4]=1.00
call EnableTrigger(udg_trigger351)
endfunction
function Trig_Gotenks_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<90))
endfunction
function Trig_Gotenks_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A00R',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A00E',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A03F',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A00I',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00S',GetLevelingUnit()))))
if(Trig_Gotenks_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[4]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[4])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[4]*(8.00*I2R(udg_integers03[4])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[4]*(8.00*I2R(udg_integers03[4])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[4]*(8.00*I2R(udg_integers03[4])))))
set udg_integers03[4]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Gotenks_SS3_Reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit45)>=140))
endfunction
function Trig_Gotenks_SS3_Reminder_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],8.00,"TRIGSTR_700")
call SetPlayerAbilityAvailableBJ(true,'A00I',Player(3))
call SelectHeroSkill(udg_unit45,'A00I')
call SetPlayerAbilityAvailableBJ(false,'A00I',Player(3))
endfunction
function Trig_Potara_fusion_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01N'))and((DistanceBetweenPoints(GetUnitLoc(udg_unit30),GetUnitLoc(udg_unit32))<350.00))and((RectContainsUnit(udg_rect99,udg_unit30)==false))and((RectContainsUnit(udg_rect99,udg_unit32)==false))and((GetUnitAbilityLevelSwapped('A01N',udg_unit30)==1))and((GetUnitAbilityLevelSwapped('A01N',udg_unit32)==1))
endfunction
function Trig_Potara_fusion_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger348)
set udg_boolean04=true
set udg_location06=GetUnitLoc(udg_unit30)
call SetPlayerName(Player(3),"TRIGSTR_3842")
call SetPlayerAbilityAvailableBJ(false,'A00I',Player(3))
call EnableTrigger(udg_trigger363)
call EnableTrigger(udg_trigger364)
call EnableTrigger(udg_trigger366)
call EnableTrigger(udg_trigger367)
call EnableTrigger(udg_trigger368)
call DisableTrigger(udg_trigger351)
call DisableTrigger(udg_trigger352)
call DisableTrigger(udg_trigger348)
call ModifyHeroStat(0,udg_unit45,2,50)
call ModifyHeroStat(1,udg_unit45,2,50)
call ModifyHeroStat(2,udg_unit45,2,50)
set udg_integers03[4]=GetHeroLevel(udg_unit45)
call SetHeroLevelBJ(udg_unit45,(GetUnitLevel(udg_unit30)+GetUnitLevel(udg_unit32)),false)
call ModifyHeroStat(0,udg_unit45,0,(GetHeroStatBJ(0,udg_unit30,false)+GetHeroStatBJ(0,udg_unit32,false)))
call ModifyHeroStat(1,udg_unit45,0,(GetHeroStatBJ(1,udg_unit30,false)+GetHeroStatBJ(1,udg_unit32,false)))
call ModifyHeroStat(2,udg_unit45,0,(GetHeroStatBJ(2,udg_unit30,false)+GetHeroStatBJ(2,udg_unit32,false)))
call SetUnitPositionLocFacingLocBJ(udg_unit45,udg_location06,GetUnitLoc(udg_unit30))
set udg_unit18=udg_unit45
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit45,udg_item08)
call SetUnitOwner(udg_unit45,Player(3),true)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit45),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit32,Player(15),false)
call SetUnitOwner(udg_unit30,Player(15),false)
call SetUnitPositionLoc(udg_unit32,GetRectCenter(udg_rect37))
call SetUnitPositionLoc(udg_unit30,GetRectCenter(udg_rect37))
call TriggerExecute(udg_trigger362)
endfunction
function Trig_Fusion_ha_Func009001 takes nothing returns boolean
return(udg_unit30!=udg_unit12)
endfunction
function Trig_Fusion_ha_Func009002 takes nothing returns boolean
return(udg_unit32!=udg_unit12)
endfunction
function Trig_Fusion_ha_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect99,udg_unit30)==false))and((RectContainsUnit(udg_rect99,udg_unit32)==false))and((RectContainsUnit(udg_rect37,udg_unit30)==false))and((RectContainsUnit(udg_rect37,udg_unit32)==false))and(GetBooleanAnd(Trig_Fusion_ha_Func009001(),Trig_Fusion_ha_Func009002()))and((GetHeroLevel(udg_unit30)>=40))and((GetHeroLevel(udg_unit32)>=40))and((DistanceBetweenPoints(GetUnitLoc(udg_unit30),GetUnitLoc(udg_unit32))<350.00))
endfunction
function Trig_Fusion_ha_Func006C takes nothing returns boolean
return((GetHeroLevel(udg_unit30)>=70))and((GetHeroLevel(udg_unit30)<80))and((GetHeroLevel(udg_unit32)>=70))and((GetHeroLevel(udg_unit32)<80))and((udg_reals01[4]>1.00))
endfunction
function Trig_Fusion_ha_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_Fusion_ha_Func006C())then
call SetUnitManaPercentBJ(udg_unit45,100)
call ConditionalTriggerExecute(udg_trigger358)
call TriggerExecute(udg_trigger362)
else
call SetUnitManaPercentBJ(udg_unit45,100)
call ConditionalTriggerExecute(udg_trigger357)
call TriggerExecute(udg_trigger362)
endif
call TriggerSleepAction(10.00)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Gotenks_Normal_Fusion_Conditions takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit30)>=100.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit32)>=100.00))
endfunction
function Trig_Gotenks_Normal_Fusion_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger352)
set udg_location06=GetUnitLoc(udg_unit30)
call SetPlayerName(Player(3),"TRIGSTR_1256")
call SetPlayerAbilityAvailableBJ(false,'A00I',Player(3))
call EnableTrigger(udg_trigger363)
call EnableTrigger(udg_trigger364)
call EnableTrigger(udg_trigger361)
call EnableTrigger(udg_trigger366)
call EnableTrigger(udg_trigger367)
call EnableTrigger(udg_trigger368)
call DisableTrigger(udg_trigger348)
call DisableTrigger(udg_trigger351)
call DisableTrigger(udg_trigger352)
set udg_integers03[4]=GetHeroLevel(udg_unit45)
call SetHeroLevelBJ(udg_unit45,(GetUnitLevel(udg_unit30)+GetUnitLevel(udg_unit32)),false)
call ModifyHeroStat(0,udg_unit45,2,(GetHeroStatBJ(0,udg_unit30,false)+GetHeroStatBJ(0,udg_unit32,false)))
call ModifyHeroStat(1,udg_unit45,2,(GetHeroStatBJ(1,udg_unit30,false)+GetHeroStatBJ(1,udg_unit32,false)))
call ModifyHeroStat(2,udg_unit45,2,(GetHeroStatBJ(2,udg_unit30,false)+GetHeroStatBJ(2,udg_unit32,false)))
set udg_unit18=udg_unit45
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit45,udg_item07)
call SetUnitManaPercentBJ(udg_unit45,100)
call SetUnitPositionLocFacingLocBJ(udg_unit45,udg_location06,GetUnitLoc(udg_unit30))
call SetUnitOwner(udg_unit45,Player(3),true)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit45),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,100.00,60.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit45),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit32,Player(15),false)
call SetUnitOwner(udg_unit30,Player(15),false)
call SetUnitPositionLoc(udg_unit32,GetRectCenter(udg_rect37))
call SetUnitPositionLoc(udg_unit30,GetRectCenter(udg_rect37))
call TriggerExecute(udg_trigger359)
call EnableTrigger(udg_trigger360)
endfunction
function Trig_Gotenks_Super_Fusion_Conditions takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit30)>=100.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit32)>=100.00))
endfunction
function Trig_Gotenks_Super_Fusion_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger352)
set udg_location06=GetUnitLoc(udg_unit30)
call SetPlayerName(Player(3),"TRIGSTR_1257")
call SetPlayerAbilityAvailableBJ(false,'A00I',Player(3))
call EnableTrigger(udg_trigger363)
call EnableTrigger(udg_trigger364)
call EnableTrigger(udg_trigger361)
call EnableTrigger(udg_trigger366)
call EnableTrigger(udg_trigger367)
call EnableTrigger(udg_trigger368)
call DisableTrigger(udg_trigger351)
call DisableTrigger(udg_trigger352)
call DisableTrigger(udg_trigger348)
set udg_integers03[4]=GetHeroLevel(udg_unit45)
call SetHeroLevelBJ(udg_unit45,(GetUnitLevel(udg_unit30)+GetUnitLevel(udg_unit32)),false)
call ModifyHeroStat(0,udg_unit45,2,(GetHeroStatBJ(0,udg_unit30,false)+GetHeroStatBJ(0,udg_unit32,false)))
call ModifyHeroStat(1,udg_unit45,2,(GetHeroStatBJ(1,udg_unit30,false)+GetHeroStatBJ(1,udg_unit32,false)))
call ModifyHeroStat(2,udg_unit45,2,(GetHeroStatBJ(2,udg_unit30,false)+GetHeroStatBJ(2,udg_unit32,false)))
call SetUnitPositionLocFacingLocBJ(udg_unit45,udg_location06,GetUnitLoc(udg_unit30))
set udg_unit18=udg_unit45
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit45,udg_item08)
call SetUnitManaPercentBJ(udg_unit45,100)
call SetUnitOwner(udg_unit45,Player(3),true)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit45),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,100.00,60.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit45),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit32,Player(15),false)
call SetUnitOwner(udg_unit30,Player(15),false)
call SetUnitPositionLoc(udg_unit32,GetRectCenter(udg_rect37))
call SetUnitPositionLoc(udg_unit30,GetRectCenter(udg_rect37))
call TriggerExecute(udg_trigger359)
call EnableTrigger(udg_trigger360)
call TriggerExecute(udg_trigger363)
endfunction
function Trig_Fusion_timer_Actions takes nothing returns nothing
call StartTimerBJ(udg_timer12,false,180.00)
set udg_timerdialog10=CreateTimerDialogBJ(udg_timer12,"TRIGSTR_701")
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(0))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(1))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(2))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(4))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(5))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(6))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(7))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(8))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(9))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(10))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog10,Player(11))
call EnableTrigger(udg_trigger360)
endfunction
function Trig_Fusion_timer_Runs_out_Conditions takes nothing returns boolean
return((GetOwningPlayer(udg_unit45)!=Player(15)))
endfunction
function Trig_Fusion_timer_Runs_out_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger361)
call DestroyTimerDialog(udg_timerdialog10)
endfunction
function Trig_Gotenks_Defuse_Func043C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit45,'I02K')))
endfunction
function Trig_Gotenks_Defuse_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger368)
call DisableTrigger(udg_trigger360)
set udg_location06=GetUnitLoc(udg_unit45)
call SetPlayerName(Player(3),"TRIGSTR_1258")
call DestroyTimerDialog(udg_timerdialog10)
call EnableTrigger(udg_trigger348)
call EnableTrigger(udg_trigger351)
call EnableTrigger(udg_trigger352)
call DisableTrigger(udg_trigger363)
call DisableTrigger(udg_trigger364)
call DisableTrigger(udg_trigger366)
call DisableTrigger(udg_trigger367)
call DisableTrigger(udg_trigger368)
set udg_integers03[4]=GetHeroLevel(udg_unit30)
call SetHeroLevelBJ(udg_unit30,(GetUnitLevel(udg_unit45)/2),false)
set udg_integers03[13]=GetHeroLevel(udg_unit32)
call SetHeroLevelBJ(udg_unit32,(GetUnitLevel(udg_unit45)/2),false)
call ModifyHeroStat(0,udg_unit30,2,(GetHeroStatBJ(0,udg_unit45,false)/2))
call ModifyHeroStat(1,udg_unit30,2,(GetHeroStatBJ(1,udg_unit45,false)/2))
call ModifyHeroStat(2,udg_unit30,2,(GetHeroStatBJ(2,udg_unit45,false)/2))
call ModifyHeroStat(0,udg_unit32,2,(GetHeroStatBJ(0,udg_unit45,false)/2))
call ModifyHeroStat(1,udg_unit32,2,(GetHeroStatBJ(1,udg_unit45,false)/2))
call ModifyHeroStat(2,udg_unit32,2,(GetHeroStatBJ(2,udg_unit45,false)/2))
call SetUnitPositionLoc(udg_unit30,udg_location06)
call SetUnitPositionLoc(udg_unit32,udg_location06)
call AddSpecialEffectLocBJ(udg_location06,"Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit30,Player(3),false)
call SetUnitOwner(udg_unit32,Player(3),false)
call SetUnitOwner(udg_unit45,Player(15),true)
call SetUnitPositionLocFacingLocBJ(udg_unit45,GetRectCenter(udg_rect37),GetUnitLoc(udg_unit45))
call SetItemPositionLoc(udg_item07,GetRectCenter(udg_rect37))
call SetItemPositionLoc(udg_item08,GetRectCenter(udg_rect37))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],5.00,"TRIGSTR_697")
set udg_unit18=udg_unit45
set udg_unit19=udg_unit32
call TriggerExecute(udg_trigger613)
set udg_unit18=udg_unit45
set udg_unit19=udg_unit30
call TriggerExecute(udg_trigger613)
if(Trig_Gotenks_Defuse_Func043C())then
set udg_unit18=udg_unit30
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit30,GetItemOfTypeFromUnitBJ(udg_unit45,'I02K'))
set udg_unit18=udg_unit32
call TriggerExecute(udg_trigger612)
call UnitAddItemByIdSwapped('I02K',udg_unit32)
endif
call DisableTrigger(udg_trigger356)
call TriggerSleepAction(120.00)
call EnableTrigger(udg_trigger356)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],5.00,"TRIGSTR_698")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Transfer_items_to_Gotenks_Func007C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit30,'I02K')))
endfunction
function Trig_Transfer_items_to_Gotenks_Actions takes nothing returns nothing
set udg_unit18=udg_unit30
set udg_unit19=udg_unit45
call TriggerExecute(udg_trigger613)
set udg_unit18=udg_unit32
set udg_unit19=udg_unit45
call TriggerExecute(udg_trigger613)
if(Trig_Transfer_items_to_Gotenks_Func007C())then
set udg_unit18=udg_unit45
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit45,GetItemOfTypeFromUnitBJ(udg_unit30,'I02K'))
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit32,'I02K'))
endif
endfunction
function Trig_Gotenks_SS1_Transformation_Conditions takes nothing returns boolean
return((udg_unit45!=udg_unit12))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit45)>=100.00))
endfunction
function Trig_Gotenks_SS1_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger368)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit45),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitColor(udg_unit45,PLAYER_COLOR_YELLOW)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit45),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[4]=2.00
set udg_reals02[4]=2.00
call TriggerExecute(udg_trigger365)
endfunction
function Trig_Gotenks_SS3_Transformation_Conditions takes nothing returns boolean
return((udg_unit45!=udg_unit12))and((GetHeroLevel(udg_unit45)>=140))and((UnitHasItem(udg_unit45,udg_item07)==false))and((UnitHasItem(udg_unit45,udg_item08)))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit45)>=100.00))
endfunction
function Trig_Gotenks_SS3_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger368)
call SetPlayerAbilityAvailableBJ(true,'A00I',Player(3))
call SetUnitColor(udg_unit45,PLAYER_COLOR_YELLOW)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit45),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit45),"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger369)
set udg_reals01[4]=3.50
set udg_reals02[4]=3.50
call TriggerExecute(udg_trigger365)
endfunction
function Trig_Gotenks_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit45))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit45))
call ModifyHeroStat(0,udg_unit45,2,R2I((I2R(GetHeroStatBJ(0,udg_unit45,false))*udg_reals02[4])))
call ModifyHeroStat(1,udg_unit45,2,R2I((I2R(GetHeroStatBJ(1,udg_unit45,false))*udg_reals01[4])))
call ModifyHeroStat(2,udg_unit45,2,R2I((I2R(GetHeroStatBJ(2,udg_unit45,false))*udg_reals01[4])))
call SetUnitManaBJ(udg_unit45,(I2R(udg_integer14)*udg_reals01[4]))
call SetWidgetLife(udg_unit45,(I2R(udg_integer16)*udg_reals02[4]))
call EnableTrigger(udg_trigger366)
endfunction
function Trig_Gotenks_Mana_Drain_Conditions takes nothing returns boolean
return((udg_reals01[4]>1.00))
endfunction
function Trig_Gotenks_Mana_Drain_Actions takes nothing returns nothing
call SetUnitManaBJ(udg_unit45,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit45)-(udg_reals01[4]*20.00)))
endfunction
function Trig_Gotenks_Drained_Conditions takes nothing returns boolean
return((udg_reals01[4]>1.00))
endfunction
function Trig_Gotenks_Drained_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger368)
endfunction
function Trig_Gotenks_Revert_Conditions takes nothing returns boolean
return((udg_unit45!=udg_unit12))
endfunction
function Trig_Gotenks_Revert_Actions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ(false,'A00I',Player(3))
call SetUnitColor(udg_unit45,PLAYER_COLOR_PURPLE)
call SetUnitVertexColorBJ(udg_unit45,100,100,100,0)
call DisableTrigger(udg_trigger369)
call DisableTrigger(udg_trigger366)
call DisableTrigger(udg_trigger367)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit45))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit45))
call ModifyHeroStat(0,udg_unit45,2,R2I((I2R(GetHeroStatBJ(0,udg_unit45,false))/udg_reals02[4])))
call ModifyHeroStat(1,udg_unit45,2,R2I((I2R(GetHeroStatBJ(1,udg_unit45,false))/udg_reals01[4])))
call ModifyHeroStat(2,udg_unit45,2,R2I((I2R(GetHeroStatBJ(2,udg_unit45,false))/udg_reals01[4])))
call SetUnitManaBJ(udg_unit45,(I2R(udg_integer14)/udg_reals01[4]))
call SetWidgetLife(udg_unit45,(I2R(udg_integer16)/udg_reals02[4]))
set udg_reals01[4]=1.00
set udg_reals02[4]=1.00
call EnableTrigger(udg_trigger367)
endfunction
function Trig_Gotenks_SS3_Effect_Conditions takes nothing returns boolean
return((udg_reals01[4]==3.50))
endfunction
function Trig_Gotenks_SS3_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit45,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit45,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit45,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Vegito_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<93))
endfunction
function Trig_Vegito_gains_level_Func007C takes nothing returns boolean
return((udg_reals01[1]==3.00))
endfunction
function Trig_Vegito_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A006',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A00B',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00A',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A00F',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00S',GetLevelingUnit()))))
if(Trig_Vegito_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[1]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[1])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[1]*(8.00*I2R(udg_integers03[1])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[1]*(8.00*I2R(udg_integers03[1])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[1]*(8.00*I2R(udg_integers03[1])))))
if(Trig_Vegito_gains_level_Func007C())then
set udg_reals01[1]=1.00
set udg_reals02[1]=1.00
set udg_reals01[2]=1.00
set udg_reals02[2]=1.00
set udg_integers03[1]=GetHeroLevel(udg_unit31)
call SetHeroLevelBJ(udg_unit31,(GetUnitLevel(udg_unit31)+1),false)
set udg_integers03[1]=GetHeroLevel(udg_unit93)
call SetHeroLevelBJ(udg_unit26,(GetUnitLevel(udg_unit26)+1),false)
set udg_reals01[1]=3.00
set udg_reals02[1]=3.00
set udg_reals01[2]=3.00
set udg_reals02[2]=3.00
else
set udg_integers03[1]=GetHeroLevel(udg_unit31)
call SetHeroLevelBJ(udg_unit31,(GetUnitLevel(udg_unit31)+1),false)
set udg_integers03[1]=GetHeroLevel(udg_unit93)
call SetHeroLevelBJ(udg_unit26,(GetUnitLevel(udg_unit26)+1),false)
endif
endfunction
function Trig_Goku_Gain_Porta_Earring_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit31))and((RectContainsUnit(udg_rect96,udg_unit54)))and((GetHeroLevel(udg_unit31)>=100))
endfunction
function Trig_Goku_Gain_Porta_Earring_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_unit31,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_909")
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_910")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],10.00,"TRIGSTR_911")
call UnitAddItem(udg_unit31,udg_item14)
call PauseUnit(udg_unit31,false)
endfunction
function Trig_Vegeta_Gain_Porta_Earring_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit26))and((RectContainsUnit(udg_rect96,udg_unit54)))and((GetHeroLevel(udg_unit26)>=100))
endfunction
function Trig_Vegeta_Gain_Porta_Earring_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_unit26,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_912")
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_913")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],10.00,"TRIGSTR_914")
call UnitAddItem(udg_unit26,udg_item10)
call PauseUnit(udg_unit26,false)
endfunction
function Trig_Vegito_help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetTriggerPlayer()),10.00,"TRIGSTR_988")
endfunction
function Trig_Auth_Vegito_Fusion_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A014'))and((udg_reals02[1]==1.00))and((udg_reals02[2]==1.00))and((RectContainsUnit(udg_rect30,udg_unit31)==false))and((RectContainsUnit(udg_rect30,udg_unit26)==false))and((GetOwningPlayer(udg_unit91)==Player(15)))and((UnitHasItemOfTypeBJ(udg_unit26,'I02K')==false))and((UnitHasItemOfTypeBJ(udg_unit31,'I02K')==false))
endfunction
function Trig_Auth_Vegito_Fusion_Func011Func002Func001C takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(0)))and((udg_integer19==2))
endfunction
function Trig_Auth_Vegito_Fusion_Func011Func002Func002C takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())==Player(1)))and((udg_integer19==1))
endfunction
function Trig_Auth_Vegito_Fusion_Func011Func002C takes nothing returns boolean
return(Trig_Auth_Vegito_Fusion_Func011Func002Func001C())or(Trig_Auth_Vegito_Fusion_Func011Func002Func002C())
endfunction
function Trig_Auth_Vegito_Fusion_Func011C takes nothing returns boolean
return(Trig_Auth_Vegito_Fusion_Func011Func002C())
endfunction
function Trig_Auth_Vegito_Fusion_Actions takes nothing returns nothing
if(Trig_Auth_Vegito_Fusion_Func011C())then
call TriggerExecute(udg_trigger375)
else
set udg_integer19=(1+GetPlayerId(GetTriggerPlayer()))
endif
call TriggerSleepAction(5.00)
set udg_integer19=0
endfunction
function Trig_Vegito_Fusion_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger376)
call SetUnitInvulnerable(udg_unit31,true)
call SetUnitInvulnerable(udg_unit26,true)
call SetPlayerName(Player(0),"TRIGSTR_1217")
call SetPlayerName(Player(1),"TRIGSTR_1218")
call PauseUnit(udg_unit31,true)
call PauseUnit(udg_unit31,false)
call PauseUnit(udg_unit26,true)
call PauseUnit(udg_unit26,false)
set udg_integers03[1]=GetHeroLevel(udg_unit93)
call SetHeroLevelBJ(udg_unit93,(GetUnitLevel(udg_unit31)+GetUnitLevel(udg_unit26)),false)
call ModifyHeroStat(0,udg_unit93,2,(GetHeroStatBJ(0,udg_unit31,false)+GetHeroStatBJ(0,udg_unit26,false)))
call ModifyHeroStat(1,udg_unit93,2,(GetHeroStatBJ(1,udg_unit31,false)+GetHeroStatBJ(1,udg_unit26,false)))
call ModifyHeroStat(2,udg_unit93,2,(GetHeroStatBJ(2,udg_unit31,false)+GetHeroStatBJ(2,udg_unit26,false)))
call PlayMusicBJ(udg_string01)
call AddWeatherEffectSaveLast(RectFromCenterSizeBJ(GetUnitLoc(udg_unit31),1000.00,1000.00),'WOcw')
call SetUserControlForceOff(bj_FORCE_PLAYER[0])
call SetUserControlForceOff(bj_FORCE_PLAYER[1])
call CameraSetupApplyForPlayer(true,udg_camerasetup02,Player(0),0)
call CameraSetupApplyForPlayer(true,udg_camerasetup02,Player(1),0)
call SetCameraTargetControllerNoZForPlayer(Player(0),udg_unit31,0,0,false)
call SetCameraTargetControllerNoZForPlayer(Player(1),udg_unit26,0,0,false)
call TriggerSleepAction(2)
call SetUnitFacingToFaceUnitTimed(udg_unit31,udg_unit26,0.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],2.00,"TRIGSTR_077")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],2.00,"TRIGSTR_752")
call TriggerSleepAction(2)
call SetUnitFacingToFaceUnitTimed(udg_unit26,udg_unit31,0.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],2.00,"TRIGSTR_687")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],2.00,"TRIGSTR_753")
call TriggerSleepAction(2)
call SetUnitAnimation(udg_unit26,"spell")
call SetUnitAnimation(udg_unit31,"spell")
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl")
call TriggerExecute(udg_trigger620)
call IssuePointOrderLoc(udg_unit31,"move",GetUnitLoc(udg_unit26))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl")
call TriggerExecute(udg_trigger620)
call IssuePointOrderLoc(udg_unit26,"move",GetUnitLoc(udg_unit31))
call TriggerSleepAction(0.50)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.25)
call SetUnitPositionLoc(udg_unit26,GetRectCenter(udg_rect30))
call SetUnitOwner(udg_unit26,Player(15),false)
call SetUnitPositionLoc(udg_unit93,GetUnitLoc(udg_unit31))
call SetCameraTargetControllerNoZForPlayer(Player(0),udg_unit93,0,0,false)
call SetCameraTargetControllerNoZForPlayer(Player(1),udg_unit93,0,0,false)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect30))
call SetUnitOwner(udg_unit31,Player(15),false)
call SetPlayerAllianceStateBJ(Player(1),Player(0),5)
call SetPlayerAllianceStateBJ(Player(0),Player(1),5)
call SetUnitOwner(udg_unit93,Player(1),true)
call UnitAddItem(udg_unit93,udg_item17)
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit93),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,100.00,60.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit93),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationRippleBJ(4.00,false,GetUnitLoc(udg_unit93),1024,1024,64,1,512)
call TriggerSleepAction(0.10)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_936")
call SetUserControlForceOn(bj_FORCE_PLAYER[0])
call SetUserControlForceOn(bj_FORCE_PLAYER[1])
call ResetToGameCameraForPlayer(Player(0),0)
call ResetToGameCameraForPlayer(Player(1),0)
call EnableTrigger(udg_trigger384)
call SetUnitInvulnerable(udg_unit31,false)
call SetUnitInvulnerable(udg_unit26,false)
call TriggerSleepAction(1.00)
call RemoveWeatherEffect(bj_lastCreatedWeatherEffect)
call TriggerSleepAction(25.00)
call StopMusic(true)
endfunction
function Trig_Vegito_triggersoff_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger373)
call EnableTrigger(udg_trigger378)
call EnableTrigger(udg_trigger380)
call DisableTrigger(udg_trigger243)
call DisableTrigger(udg_trigger244)
call DisableTrigger(udg_trigger245)
call DisableTrigger(udg_trigger246)
call DisableTrigger(udg_trigger247)
call DisableTrigger(udg_trigger248)
call DisableTrigger(udg_trigger249)
call DisableTrigger(udg_trigger252)
call DisableTrigger(udg_trigger253)
call DisableTrigger(udg_trigger274)
call DisableTrigger(udg_trigger275)
call DisableTrigger(udg_trigger283)
call DisableTrigger(udg_trigger282)
call DisableTrigger(udg_trigger276)
call DisableTrigger(udg_trigger277)
call DisableTrigger(udg_trigger278)
call DisableTrigger(udg_trigger279)
endfunction
function Trig_Vegito_triggerson_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger373)
call DisableTrigger(udg_trigger378)
call DisableTrigger(udg_trigger380)
call EnableTrigger(udg_trigger243)
call EnableTrigger(udg_trigger244)
call EnableTrigger(udg_trigger245)
call EnableTrigger(udg_trigger246)
call EnableTrigger(udg_trigger247)
call EnableTrigger(udg_trigger248)
call EnableTrigger(udg_trigger249)
call EnableTrigger(udg_trigger253)
call EnableTrigger(udg_trigger252)
call EnableTrigger(udg_trigger274)
call EnableTrigger(udg_trigger275)
call EnableTrigger(udg_trigger283)
call EnableTrigger(udg_trigger282)
call EnableTrigger(udg_trigger276)
call EnableTrigger(udg_trigger278)
call EnableTrigger(udg_trigger279)
call EnableTrigger(udg_trigger277)
endfunction
function Trig_Vegito_SS_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger380)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit93),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit93),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitColor(udg_unit93,PLAYER_COLOR_YELLOW)
call EnableTrigger(udg_trigger381)
set udg_reals01[1]=3.50
set udg_reals02[1]=3.50
set udg_reals01[2]=3.50
set udg_reals02[2]=3.50
call TriggerExecute(udg_trigger379)
endfunction
function Trig_Vegito_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit93))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit93))
call ModifyHeroStat(0,udg_unit93,2,R2I((I2R(GetHeroStatBJ(0,udg_unit93,false))*udg_reals02[1])))
call ModifyHeroStat(1,udg_unit93,2,R2I((I2R(GetHeroStatBJ(1,udg_unit93,false))*udg_reals01[1])))
call ModifyHeroStat(2,udg_unit93,2,R2I((I2R(GetHeroStatBJ(2,udg_unit93,false))*udg_reals01[1])))
call SetUnitManaBJ(udg_unit93,(I2R(udg_integer14)*udg_reals01[1]))
call SetWidgetLife(udg_unit93,(I2R(udg_integer16)*udg_reals02[1]))
endfunction
function Trig_Vegito_Revert_Actions takes nothing returns nothing
call SetUnitColor(udg_unit93,PLAYER_COLOR_BLUE)
call DisableTrigger(udg_trigger381)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit93))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit93))
call ModifyHeroStat(0,udg_unit93,2,R2I((I2R(GetHeroStatBJ(0,udg_unit93,false))/udg_reals02[1])))
call ModifyHeroStat(1,udg_unit93,2,R2I((I2R(GetHeroStatBJ(1,udg_unit93,false))/udg_reals01[1])))
call ModifyHeroStat(2,udg_unit93,2,R2I((I2R(GetHeroStatBJ(2,udg_unit93,false))/udg_reals01[1])))
call SetUnitManaBJ(udg_unit93,(I2R(udg_integer14)/udg_reals01[1]))
call SetWidgetLife(udg_unit93,(I2R(udg_integer16)/udg_reals02[1]))
set udg_reals01[1]=1.00
set udg_reals02[1]=1.00
set udg_reals01[2]=1.00
set udg_reals02[2]=1.00
endfunction
function Trig_Vegito_SS_Effect_Conditions takes nothing returns boolean
return((udg_reals01[1]==3.00))
endfunction
function Trig_Vegito_SS_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit93,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Gogeta_gains_level_Func005C takes nothing returns boolean
return((udg_reals01[1]>1.00))
endfunction
function Trig_Gogeta_gains_level_Actions takes nothing returns nothing
set udg_integers03[1]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[1])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[1]*(8.00*I2R(udg_integers03[1])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[1]*(8.00*I2R(udg_integers03[1])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[1]*(8.00*I2R(udg_integers03[1])))))
if(Trig_Gogeta_gains_level_Func005C())then
set udg_real02=udg_reals01[1]
set udg_reals01[1]=1.00
set udg_reals02[1]=1.00
set udg_reals01[2]=1.00
set udg_reals02[2]=1.00
set udg_integers03[1]=GetHeroLevel(udg_unit31)
call SetHeroLevelBJ(udg_unit31,(GetUnitLevel(udg_unit31)+1),false)
set udg_integers03[1]=GetHeroLevel(udg_unit92)
call SetHeroLevelBJ(udg_unit26,(GetUnitLevel(udg_unit26)+1),false)
set udg_reals01[1]=udg_real02
set udg_reals02[1]=udg_real02
set udg_reals01[2]=udg_real02
set udg_reals02[2]=udg_real02
else
set udg_integers03[1]=GetHeroLevel(udg_unit31)
call SetHeroLevelBJ(udg_unit31,(GetUnitLevel(udg_unit31)+1),false)
set udg_integers03[1]=GetHeroLevel(udg_unit92)
call SetHeroLevelBJ(udg_unit26,(GetUnitLevel(udg_unit26)+1),false)
endif
endfunction
function Trig_Defuse_Transfer_items_Func010C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit92,'I02K')))
endfunction
function Trig_Defuse_Transfer_items_Actions takes nothing returns nothing
set udg_unit18=udg_unit93
set udg_unit19=udg_unit26
call TriggerExecute(udg_trigger613)
set udg_unit18=udg_unit92
set udg_unit19=udg_unit31
call TriggerExecute(udg_trigger613)
set udg_unit18=udg_unit91
set udg_unit19=udg_unit31
call TriggerExecute(udg_trigger613)
if(Trig_Defuse_Transfer_items_Func010C())then
set udg_unit18=udg_unit31
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit31,GetItemOfTypeFromUnitBJ(udg_unit92,'I02K'))
set udg_unit18=udg_unit26
call TriggerExecute(udg_trigger612)
call UnitAddItemByIdSwapped('I02K',udg_unit26)
endif
endfunction
function Trig_Permanent_fusion_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(Player(0),Player(1),5)
call SetPlayerAllianceStateBJ(Player(1),Player(0),5)
endfunction
function Trig_Fusion_help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetTriggerPlayer()),10.00,"TRIGSTR_1242")
endfunction
function Trig_Auth_Fusion_ha_Func001Func003Func001C takes nothing returns boolean
return((GetTriggerPlayer()==Player(0)))and((udg_integer15==2))
endfunction
function Trig_Auth_Fusion_ha_Func001Func003Func002C takes nothing returns boolean
return((GetTriggerPlayer()==Player(1)))and((udg_integer15==1))
endfunction
function Trig_Auth_Fusion_ha_Func001Func003C takes nothing returns boolean
return(Trig_Auth_Fusion_ha_Func001Func003Func001C())or(Trig_Auth_Fusion_ha_Func001Func003Func002C())
endfunction
function Trig_Auth_Fusion_ha_Func001C takes nothing returns boolean
return(Trig_Auth_Fusion_ha_Func001Func003C())
endfunction
function Trig_Auth_Fusion_ha_Actions takes nothing returns nothing
if(Trig_Auth_Fusion_ha_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call ConditionalTriggerExecute(udg_trigger387)
call TriggerSleepAction(5.00)
call EnableTrigger(GetTriggeringTrigger())
else
set udg_integer15=(1+GetPlayerId(GetTriggerPlayer()))
endif
call TriggerSleepAction(5.00)
set udg_integer15=0
endfunction
function Trig_Gogeta_Fusion_Sorter_Func015Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit26,'I02K')))and((UnitHasItemOfTypeBJ(udg_unit31,'I02K')))
endfunction
function Trig_Gogeta_Fusion_Sorter_Func015Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit26,'I02K')==false))and((UnitHasItemOfTypeBJ(udg_unit31,'I02K')==false))
endfunction
function Trig_Gogeta_Fusion_Sorter_Func015C takes nothing returns boolean
return(Trig_Gogeta_Fusion_Sorter_Func015Func001C())or(Trig_Gogeta_Fusion_Sorter_Func015Func002C())
endfunction
function Trig_Gogeta_Fusion_Sorter_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect98,udg_unit31)==false))and((RectContainsUnit(udg_rect103,udg_unit31)==false))and((RectContainsUnit(udg_rect104,udg_unit31)==false))and((RectContainsUnit(udg_rect98,udg_unit26)==false))and((RectContainsUnit(udg_rect104,udg_unit26)==false))and((RectContainsUnit(udg_rect103,udg_unit26)==false))and((udg_unit31!=udg_unit12))and((udg_unit26!=udg_unit12))and((GetUnitLevel(udg_unit31)>=125))and((GetUnitLevel(udg_unit26)>=125))and((RectContainsUnit(udg_rect30,udg_unit31)==false))and((RectContainsUnit(udg_rect30,udg_unit26)==false))and((DistanceBetweenPoints(GetUnitLoc(udg_unit31),GetUnitLoc(udg_unit26))<=500.00))and(Trig_Gogeta_Fusion_Sorter_Func015C())
endfunction
function Trig_Gogeta_Fusion_Sorter_Func007C takes nothing returns boolean
return((DistanceBetweenPoints(GetUnitLoc(udg_unit31),GetUnitLoc(udg_unit26))<=275.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit31)>=1000.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit26)>=1000.00))and((udg_reals02[1]==udg_reals02[2]))
endfunction
function Trig_Gogeta_Fusion_Sorter_Actions takes nothing returns nothing
if(Trig_Gogeta_Fusion_Sorter_Func007C())then
call TriggerExecute(udg_trigger388)
else
call TriggerExecute(udg_trigger389)
endif
endfunction
function Trig_Gogeta_Fusion_Sorter_Success_Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit26,'I02K')))and((UnitHasItemOfTypeBJ(udg_unit31,'I02K')))
endfunction
function Trig_Gogeta_Fusion_Sorter_Success_Func002C takes nothing returns boolean
return((udg_reals01[1]==4.00))and((udg_reals01[2]==4.00))
endfunction
function Trig_Gogeta_Fusion_Sorter_Success_Actions takes nothing returns nothing
if(Trig_Gogeta_Fusion_Sorter_Success_Func001C())then
set udg_unit18=udg_unit92
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit92,GetItemOfTypeFromUnitBJ(udg_unit31,'I02K'))
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit26,'I02K'))
endif
if(Trig_Gogeta_Fusion_Sorter_Success_Func002C())then
call TriggerExecute(udg_trigger391)
else
call TriggerExecute(udg_trigger390)
endif
endfunction
function Trig_Gogeta_Failed_Fusion_Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit26,'I02K')))and((UnitHasItemOfTypeBJ(udg_unit31,'I02K')))
endfunction
function Trig_Gogeta_Failed_Fusion_Actions takes nothing returns nothing
if(Trig_Gogeta_Failed_Fusion_Func001C())then
set udg_unit18=udg_unit91
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit91,GetItemOfTypeFromUnitBJ(udg_unit31,'I02K'))
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit26,'I02K'))
endif
call TriggerExecute(udg_trigger253)
call TriggerExecute(udg_trigger283)
call TriggerExecute(udg_trigger392)
call SetUnitInvulnerable(udg_unit31,true)
call SetUnitInvulnerable(udg_unit26,true)
call PauseUnit(udg_unit31,true)
call PauseUnit(udg_unit31,false)
call PauseUnit(udg_unit26,true)
call PauseUnit(udg_unit26,false)
call SetUnitOwner(udg_unit91,Player(0),true)
call PauseUnit(udg_unit91,true)
set udg_integers03[1]=GetHeroLevel(udg_unit91)
call SetHeroLevelBJ(udg_unit91,(GetUnitLevel(udg_unit31)+GetUnitLevel(udg_unit26)),false)
call ModifyHeroStat(0,udg_unit91,2,(GetHeroStatBJ(0,udg_unit31,false)+GetHeroStatBJ(0,udg_unit26,false)))
call ModifyHeroStat(1,udg_unit91,2,(GetHeroStatBJ(1,udg_unit31,false)+GetHeroStatBJ(1,udg_unit26,false)))
call ModifyHeroStat(2,udg_unit91,2,(GetHeroStatBJ(2,udg_unit31,false)+GetHeroStatBJ(2,udg_unit26,false)))
call SetUserControlForceOff(bj_FORCE_PLAYER[0])
call SetUserControlForceOff(bj_FORCE_PLAYER[1])
call CameraSetupApplyForPlayer(true,udg_camerasetup02,Player(0),0)
call CameraSetupApplyForPlayer(true,udg_camerasetup02,Player(1),0)
call SetCameraTargetControllerNoZForPlayer(Player(0),udg_unit31,0,0,false)
call SetCameraTargetControllerNoZForPlayer(Player(1),udg_unit26,0,0,false)
call TriggerSleepAction(2)
call SetUnitFacingToFaceUnitTimed(udg_unit31,udg_unit26,0.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],2.00,"TRIGSTR_1227")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],2.00,"TRIGSTR_1228")
call TriggerSleepAction(2)
call SetUnitFacingToFaceUnitTimed(udg_unit26,udg_unit31,0.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],2.00,"TRIGSTR_1229")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],2.00,"TRIGSTR_1230")
call TriggerSleepAction(2)
call SetUnitAnimation(udg_unit26,"spell")
call SetUnitAnimation(udg_unit31,"spell")
call TriggerSleepAction(1.00)
call PlaySoundAtPointBJ(udg_sound12,100,GetUnitLoc(udg_unit31),0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.50)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.25)
call SetUnitPositionLoc(udg_unit26,GetRectCenter(udg_rect30))
call SetUnitOwner(udg_unit26,Player(15),false)
call SetUnitPositionLoc(udg_unit91,GetUnitLoc(udg_unit31))
call SetCameraTargetControllerNoZForPlayer(Player(0),udg_unit91,0,0,false)
call SetCameraTargetControllerNoZForPlayer(Player(1),udg_unit91,0,0,false)
call PlaySoundAtPointBJ(udg_sound33,100,GetUnitLoc(udg_unit91),0)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect30))
call SetUnitOwner(udg_unit31,Player(15),false)
call SetPlayerAllianceStateBJ(Player(0),Player(1),5)
call SetPlayerAllianceStateBJ(Player(1),Player(0),5)
call PauseUnit(udg_unit91,false)
set udg_unit18=udg_unit91
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit91,udg_item20)
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit91),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,100.00,60.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit91),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationCraterBJ(0.01,false,GetUnitLoc(udg_unit91),750.00,110.00)
call TriggerSleepAction(0.10)
call SetUserControlForceOn(bj_FORCE_PLAYER[0])
call SetUserControlForceOn(bj_FORCE_PLAYER[1])
call ResetToGameCameraForPlayer(Player(0),0)
call ResetToGameCameraForPlayer(Player(1),0)
call SetUnitInvulnerable(udg_unit31,false)
call SetUnitInvulnerable(udg_unit26,false)
call SetPlayerName(Player(0),"TRIGSTR_1231")
call SetPlayerName(Player(1),"TRIGSTR_1232")
call EnableTrigger(udg_trigger384)
call DisableTrigger(udg_trigger400)
call DisableTrigger(udg_trigger401)
call StartTimerBJ(udg_timer14,false,120.00)
set udg_timerdialog11=CreateTimerDialogBJ(udg_timer14,"TRIGSTR_1245")
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(2))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(3))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(4))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(5))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(6))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(7))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(8))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(9))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(10))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(11))
call EnableTrigger(udg_trigger403)
endfunction
function Trig_Gogeta_Normal_Fusion_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger253)
call TriggerExecute(udg_trigger283)
call TriggerExecute(udg_trigger392)
call SetUnitInvulnerable(udg_unit31,true)
call SetUnitInvulnerable(udg_unit26,true)
call PauseUnit(udg_unit31,true)
call PauseUnit(udg_unit31,false)
call PauseUnit(udg_unit26,true)
call PauseUnit(udg_unit26,false)
set udg_integers03[1]=GetHeroLevel(udg_unit92)
call SetHeroLevelBJ(udg_unit92,(GetUnitLevel(udg_unit31)+GetUnitLevel(udg_unit26)),false)
call ModifyHeroStat(0,udg_unit92,2,(GetHeroStatBJ(0,udg_unit31,false)+GetHeroStatBJ(0,udg_unit26,false)))
call ModifyHeroStat(1,udg_unit92,2,(GetHeroStatBJ(1,udg_unit31,false)+GetHeroStatBJ(1,udg_unit26,false)))
call ModifyHeroStat(2,udg_unit92,2,(GetHeroStatBJ(2,udg_unit31,false)+GetHeroStatBJ(2,udg_unit26,false)))
call SetUserControlForceOff(bj_FORCE_PLAYER[0])
call SetUserControlForceOff(bj_FORCE_PLAYER[1])
call CameraSetupApplyForPlayer(true,udg_camerasetup02,Player(0),0)
call CameraSetupApplyForPlayer(true,udg_camerasetup02,Player(1),0)
call SetCameraTargetControllerNoZForPlayer(Player(0),udg_unit31,0,0,false)
call SetCameraTargetControllerNoZForPlayer(Player(1),udg_unit26,0,0,false)
call TriggerSleepAction(2)
call SetUnitFacingToFaceUnitTimed(udg_unit31,udg_unit26,0.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],2.00,"TRIGSTR_1221")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],2.00,"TRIGSTR_1222")
call TriggerSleepAction(2)
call SetUnitFacingToFaceUnitTimed(udg_unit26,udg_unit31,0.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],2.00,"TRIGSTR_1223")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],2.00,"TRIGSTR_1224")
call PlaySoundAtPointBJ(udg_sound12,100,GetUnitLoc(udg_unit31),0)
call TriggerSleepAction(2)
call SetUnitAnimation(udg_unit26,"spell")
call SetUnitAnimation(udg_unit31,"spell")
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.45)
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.25)
call SetUnitPositionLoc(udg_unit26,GetRectCenter(udg_rect30))
call SetUnitOwner(udg_unit26,Player(15),false)
call SetUnitPositionLoc(udg_unit92,GetUnitLoc(udg_unit31))
call SetCameraTargetControllerNoZForPlayer(Player(0),udg_unit92,0,0,false)
call SetCameraTargetControllerNoZForPlayer(Player(1),udg_unit92,0,0,false)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect30))
call SetUnitOwner(udg_unit31,Player(15),false)
call SetPlayerAllianceStateBJ(Player(0),Player(1),5)
call SetPlayerAllianceStateBJ(Player(1),Player(0),5)
call SetUnitOwner(udg_unit92,Player(0),true)
set udg_unit18=udg_unit92
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit92,udg_item16)
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit92),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,100.00,60.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationCraterBJ(0.50,false,GetUnitLoc(udg_unit92),750.00,110.00)
call TriggerSleepAction(0.10)
call SetUserControlForceOn(bj_FORCE_PLAYER[0])
call SetUserControlForceOn(bj_FORCE_PLAYER[1])
call ResetToGameCameraForPlayer(Player(0),0)
call ResetToGameCameraForPlayer(Player(1),0)
call SetUnitInvulnerable(udg_unit31,false)
call SetUnitInvulnerable(udg_unit26,false)
call SetPlayerName(Player(0),"TRIGSTR_1225")
call SetPlayerName(Player(1),"TRIGSTR_1226")
call EnableTrigger(udg_trigger384)
call TriggerExecute(udg_trigger402)
call EnableTrigger(udg_trigger394)
call EnableTrigger(udg_trigger395)
call EnableTrigger(udg_trigger399)
call EnableTrigger(udg_trigger400)
call EnableTrigger(udg_trigger401)
endfunction
function Trig_Gogeta_SS4_Fusion_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger253)
call TriggerExecute(udg_trigger283)
call TriggerExecute(udg_trigger392)
call SetUnitInvulnerable(udg_unit31,true)
call SetUnitInvulnerable(udg_unit26,true)
call PauseUnit(udg_unit31,true)
call PauseUnit(udg_unit31,false)
call PauseUnit(udg_unit26,true)
call PauseUnit(udg_unit26,false)
set udg_integers03[1]=GetHeroLevel(udg_unit92)
call SetHeroLevelBJ(udg_unit92,(GetUnitLevel(udg_unit31)+GetUnitLevel(udg_unit26)),false)
call ModifyHeroStat(0,udg_unit92,2,(GetHeroStatBJ(0,udg_unit31,false)+GetHeroStatBJ(0,udg_unit26,false)))
call ModifyHeroStat(1,udg_unit92,2,(GetHeroStatBJ(1,udg_unit31,false)+GetHeroStatBJ(1,udg_unit26,false)))
call ModifyHeroStat(2,udg_unit92,2,(GetHeroStatBJ(2,udg_unit31,false)+GetHeroStatBJ(2,udg_unit26,false)))
call SetUserControlForceOff(bj_FORCE_PLAYER[0])
call SetUserControlForceOff(bj_FORCE_PLAYER[1])
call CameraSetupApplyForPlayer(true,udg_camerasetup02,Player(0),0)
call CameraSetupApplyForPlayer(true,udg_camerasetup02,Player(1),0)
call SetCameraTargetControllerNoZForPlayer(Player(0),udg_unit31,0,0,false)
call SetCameraTargetControllerNoZForPlayer(Player(1),udg_unit26,0,0,false)
call TriggerSleepAction(2)
call SetUnitFacingToFaceUnitTimed(udg_unit31,udg_unit26,0.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],2.00,"TRIGSTR_1206")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],2.00,"TRIGSTR_1207")
call TriggerSleepAction(2)
call SetUnitFacingToFaceUnitTimed(udg_unit26,udg_unit31,0.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],2.00,"TRIGSTR_1208")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],2.00,"TRIGSTR_1209")
call TriggerSleepAction(2)
call SetUnitAnimation(udg_unit26,"spell")
call SetUnitAnimation(udg_unit31,"spell")
call TriggerSleepAction(1.00)
call PlaySoundAtPointBJ(udg_sound12,100,GetUnitLoc(udg_unit31),0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.45)
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit31),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.25)
call SetUnitPositionLoc(udg_unit26,GetRectCenter(udg_rect30))
call SetUnitOwner(udg_unit26,Player(15),false)
call SetUnitPositionLoc(udg_unit92,GetUnitLoc(udg_unit31))
call SetCameraTargetControllerNoZForPlayer(Player(0),udg_unit92,0,0,false)
call SetCameraTargetControllerNoZForPlayer(Player(1),udg_unit92,0,0,false)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect30))
call SetUnitOwner(udg_unit31,Player(15),false)
call SetPlayerAllianceStateBJ(Player(0),Player(1),5)
call SetPlayerAllianceStateBJ(Player(1),Player(0),5)
call SetUnitOwner(udg_unit92,Player(0),true)
set udg_unit18=udg_unit92
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit92,udg_item18)
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit92),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,100.00,60.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationCraterBJ(0.01,false,GetUnitLoc(udg_unit92),750.00,110.00)
call TriggerSleepAction(0.10)
call SetUserControlForceOn(bj_FORCE_PLAYER[0])
call SetUserControlForceOn(bj_FORCE_PLAYER[1])
call ResetToGameCameraForPlayer(Player(0),0)
call ResetToGameCameraForPlayer(Player(1),0)
call SetUnitInvulnerable(udg_unit31,false)
call SetUnitInvulnerable(udg_unit26,false)
call SetPlayerName(Player(0),"TRIGSTR_1215")
call SetPlayerName(Player(1),"TRIGSTR_1216")
call TriggerExecute(udg_trigger402)
call EnableTrigger(udg_trigger399)
call EnableTrigger(udg_trigger400)
call EnableTrigger(udg_trigger401)
call EnableTrigger(udg_trigger384)
call EnableTrigger(udg_trigger394)
call EnableTrigger(udg_trigger395)
call EnableTrigger(udg_trigger396)
call EnableTrigger(udg_trigger397)
endfunction
function Trig_Goku_and_Vegeta_Triggers_off_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger243)
call DisableTrigger(udg_trigger244)
call DisableTrigger(udg_trigger245)
call DisableTrigger(udg_trigger246)
call DisableTrigger(udg_trigger247)
call DisableTrigger(udg_trigger248)
call DisableTrigger(udg_trigger249)
call DisableTrigger(udg_trigger252)
call DisableTrigger(udg_trigger253)
call DisableTrigger(udg_trigger274)
call DisableTrigger(udg_trigger275)
call DisableTrigger(udg_trigger283)
call DisableTrigger(udg_trigger282)
call DisableTrigger(udg_trigger276)
call DisableTrigger(udg_trigger278)
call DisableTrigger(udg_trigger279)
call DisableTrigger(udg_trigger277)
endfunction
function Trig_Goku_and_Vegeta_Triggers_on_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger243)
call EnableTrigger(udg_trigger244)
call EnableTrigger(udg_trigger245)
call EnableTrigger(udg_trigger246)
call EnableTrigger(udg_trigger247)
call EnableTrigger(udg_trigger248)
call EnableTrigger(udg_trigger249)
call EnableTrigger(udg_trigger253)
call EnableTrigger(udg_trigger252)
call EnableTrigger(udg_trigger274)
call EnableTrigger(udg_trigger275)
call EnableTrigger(udg_trigger283)
call EnableTrigger(udg_trigger282)
call EnableTrigger(udg_trigger276)
call EnableTrigger(udg_trigger278)
call EnableTrigger(udg_trigger279)
call EnableTrigger(udg_trigger277)
call DisableTrigger(udg_trigger394)
call DisableTrigger(udg_trigger395)
call DisableTrigger(udg_trigger396)
call DisableTrigger(udg_trigger397)
call DisableTrigger(udg_trigger399)
call DisableTrigger(udg_trigger400)
call DisableTrigger(udg_trigger401)
endfunction
function Trig_Gogeta_SS_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger401)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitColor(udg_unit92,PLAYER_COLOR_YELLOW)
set udg_reals01[1]=3.00
set udg_reals02[1]=3.00
set udg_reals01[2]=3.00
set udg_reals02[2]=3.00
call TriggerExecute(udg_trigger398)
endfunction
function Trig_Gogeta_SS2_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger401)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger406)
call SetUnitColor(udg_unit92,PLAYER_COLOR_YELLOW)
set udg_reals01[1]=3.50
set udg_reals02[1]=3.50
set udg_reals01[2]=3.50
set udg_reals02[2]=3.50
call TriggerExecute(udg_trigger398)
endfunction
function Trig_Gogeta_SS3_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger401)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger407)
call SetUnitColor(udg_unit92,PLAYER_COLOR_YELLOW)
set udg_reals01[1]=4.00
set udg_reals02[1]=4.00
set udg_reals01[2]=4.00
set udg_reals02[2]=4.00
call TriggerExecute(udg_trigger398)
endfunction
function Trig_Gogeta_SS4_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger401)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit92),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger408)
call SetUnitVertexColorBJ(udg_unit92,100.00,65.00,0.00,0)
call SetUnitColor(udg_unit92,PLAYER_COLOR_BROWN)
set udg_reals01[1]=4.50
set udg_reals02[1]=4.50
set udg_reals01[2]=4.50
set udg_reals02[2]=4.50
call TriggerExecute(udg_trigger398)
endfunction
function Trig_Gogeta_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit92))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit92))
call ModifyHeroStat(0,udg_unit92,2,R2I((I2R(GetHeroStatBJ(0,udg_unit92,false))*udg_reals02[1])))
call ModifyHeroStat(1,udg_unit92,2,R2I((I2R(GetHeroStatBJ(1,udg_unit92,false))*udg_reals01[1])))
call ModifyHeroStat(2,udg_unit92,2,R2I((I2R(GetHeroStatBJ(2,udg_unit92,false))*udg_reals01[1])))
call SetUnitManaBJ(udg_unit92,(I2R(udg_integer14)*udg_reals01[1]))
call SetWidgetLife(udg_unit92,(I2R(udg_integer16)*udg_reals02[1]))
call EnableTrigger(udg_trigger399)
endfunction
function Trig_Gogeta_Mana_Drain_Conditions takes nothing returns boolean
return((udg_reals01[1]>1.00))
endfunction
function Trig_Gogeta_Mana_Drain_Actions takes nothing returns nothing
call SetUnitManaBJ(udg_unit92,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit92)-(udg_reals01[1]*30.00)))
endfunction
function Trig_Gogeta_Drained_Conditions takes nothing returns boolean
return((udg_reals01[1]>1.00))
endfunction
function Trig_Gogeta_Drained_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger401)
endfunction
function Trig_Gogeta_Revert_Actions takes nothing returns nothing
call SetUnitColor(udg_unit92,PLAYER_COLOR_RED)
call DisableTrigger(udg_trigger406)
call DisableTrigger(udg_trigger407)
call DisableTrigger(udg_trigger408)
call DisableTrigger(udg_trigger400)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit92))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit92))
call ModifyHeroStat(0,udg_unit92,2,R2I((I2R(GetHeroStatBJ(0,udg_unit92,false))/udg_reals02[1])))
call ModifyHeroStat(1,udg_unit92,2,R2I((I2R(GetHeroStatBJ(1,udg_unit92,false))/udg_reals01[1])))
call ModifyHeroStat(2,udg_unit92,2,R2I((I2R(GetHeroStatBJ(2,udg_unit92,false))/udg_reals01[1])))
call SetUnitManaBJ(udg_unit92,(I2R(udg_integer14)/udg_reals01[1]))
call SetWidgetLife(udg_unit92,(I2R(udg_integer16)/udg_reals02[1]))
set udg_reals01[1]=1.00
set udg_reals02[1]=1.00
set udg_reals01[2]=1.00
set udg_reals02[2]=1.00
call EnableTrigger(udg_trigger400)
endfunction
function Trig_Gogeta_Fusion_Timer_Actions takes nothing returns nothing
call StartTimerBJ(udg_timer14,false,180.00)
set udg_timerdialog11=CreateTimerDialogBJ(udg_timer14,"TRIGSTR_1233")
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(2))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(3))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(4))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(5))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(6))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(7))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(8))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(9))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(10))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog11,Player(11))
call EnableTrigger(udg_trigger403)
endfunction
function Trig_Gogeta_Timer_Runs_out_Func002C takes nothing returns boolean
return((GetOwningPlayer(udg_unit92)!=Player(15)))or((GetOwningPlayer(udg_unit91)!=Player(15)))
endfunction
function Trig_Gogeta_Timer_Runs_out_Conditions takes nothing returns boolean
return(Trig_Gogeta_Timer_Runs_out_Func002C())
endfunction
function Trig_Gogeta_Timer_Runs_out_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit92)!=Player(15)))
endfunction
function Trig_Gogeta_Timer_Runs_out_Actions takes nothing returns nothing
if(Trig_Gogeta_Timer_Runs_out_Func001C())then
call TriggerExecute(udg_trigger404)
call DestroyTimerDialog(udg_timerdialog11)
else
call TriggerExecute(udg_trigger405)
call DestroyTimerDialog(udg_timerdialog11)
endif
endfunction
function Trig_Gogeta_Defuse_Func001001 takes nothing returns boolean
return(IsUnitHidden(udg_unit92)==false)
endfunction
function Trig_Gogeta_Defuse_Actions takes nothing returns nothing
loop
exitwhen(Trig_Gogeta_Defuse_Func001001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,1))
endloop
call DisableTrigger(udg_trigger384)
call TriggerExecute(udg_trigger401)
call TriggerExecute(udg_trigger393)
set udg_integers03[1]=GetHeroLevel(udg_unit31)
call SetUnitPositionLoc(udg_unit31,GetUnitLoc(udg_unit92))
call SetUnitPositionLoc(udg_unit26,GetUnitLoc(udg_unit92))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit31,Player(0),true)
call SetUnitOwner(udg_unit26,Player(1),true)
call SetUnitOwner(udg_unit92,Player(15),true)
call SetUnitPositionLocFacingLocBJ(udg_unit92,GetRectCenter(udg_rect30),GetRectCenter(udg_rect30))
call SetItemPositionLoc(udg_item18,GetRectCenter(udg_rect30))
call SetItemPositionLoc(udg_item16,GetRectCenter(udg_rect30))
call SetItemPositionLoc(udg_item20,GetRectCenter(udg_rect30))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_1234")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_1236")
call DisableTrigger(udg_trigger387)
call SetPlayerAllianceStateBJ(Player(0),Player(1),3)
call SetPlayerAllianceStateBJ(Player(1),Player(0),3)
call SetPlayerName(Player(0),"TRIGSTR_1073")
call SetPlayerName(Player(1),"TRIGSTR_1079")
call TriggerExecute(udg_trigger383)
call TriggerSleepAction(120.00)
call EnableTrigger(udg_trigger387)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_1235")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_1237")
endfunction
function Trig_Fat_Gogeta_Defuse_Func001001 takes nothing returns boolean
return(IsUnitHidden(udg_unit91)==false)
endfunction
function Trig_Fat_Gogeta_Defuse_Actions takes nothing returns nothing
loop
exitwhen(Trig_Fat_Gogeta_Defuse_Func001001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,1))
endloop
call DisableTrigger(udg_trigger384)
call TriggerExecute(udg_trigger393)
set udg_integers03[1]=GetHeroLevel(udg_unit31)
call SetUnitPositionLoc(udg_unit31,GetUnitLoc(udg_unit91))
call SetUnitPositionLoc(udg_unit26,GetUnitLoc(udg_unit91))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit31,Player(0),true)
call SetUnitOwner(udg_unit26,Player(1),true)
call SetUnitOwner(udg_unit91,Player(15),true)
call SetUnitPositionLocFacingLocBJ(udg_unit91,GetRectCenter(udg_rect30),GetRectCenter(udg_rect30))
call SetItemPositionLoc(udg_item18,GetRectCenter(udg_rect30))
call SetItemPositionLoc(udg_item16,GetRectCenter(udg_rect30))
call SetItemPositionLoc(udg_item20,GetRectCenter(udg_rect30))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_1238")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_1239")
call DisableTrigger(udg_trigger387)
call SetPlayerAllianceStateBJ(Player(0),Player(1),3)
call SetPlayerAllianceStateBJ(Player(1),Player(0),3)
call SetPlayerName(Player(0),"TRIGSTR_1080")
call SetPlayerName(Player(1),"TRIGSTR_1210")
call TriggerExecute(udg_trigger383)
call TriggerSleepAction(120.00)
call EnableTrigger(udg_trigger387)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_1240")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_1241")
endfunction
function Trig_Gogeta_SS2_Effect_Conditions takes nothing returns boolean
return((udg_reals01[1]==3.50))
endfunction
function Trig_Gogeta_SS2_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit92,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Gogeta_SS3_Effect_Conditions takes nothing returns boolean
return((udg_reals01[1]==4.00))
endfunction
function Trig_Gogeta_SS3_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit92,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit92,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit92,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Gogeta_SS4_Effect_Conditions takes nothing returns boolean
return((udg_reals01[1]==4.50))
endfunction
function Trig_Gogeta_SS4_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit92,"Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit92,"Abilities\\Spells\\Undead\\ReplenishHealth\\ReplenishHealthCaster.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Broly_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<102))
endfunction
function Trig_Broly_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A008',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A016',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A010',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A03D',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00J',GetLevelingUnit()))))
if(Trig_Broly_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[10]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[10])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[10]*(4.00*I2R(udg_integers03[10])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[10]*(4.00*I2R(udg_integers03[10])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[10]*(4.00*I2R(udg_integers03[10])))))
set udg_integers03[10]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Broly_kills_Goku_Conditions takes nothing returns boolean
return((GetKillingUnit()==udg_unit67))
endfunction
function Trig_Broly_kills_Goku_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],5.00,"TRIGSTR_6523")
call ModifyHeroStat(0,GetKillingUnit(),0,R2I((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*20.00)))
call ModifyHeroStat(1,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*20.00)))
call ModifyHeroStat(2,GetKillingUnit(),0,R2I((udg_reals01[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]*20.00)))
endfunction
function Trig_Broly_Reminder_SS_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit67)>=35))
endfunction
function Trig_Broly_Reminder_SS_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],8.00,"TRIGSTR_6623")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Broly_Reminder_USS_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit67)>=75))
endfunction
function Trig_Broly_Reminder_USS_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],8.00,"TRIGSTR_6624")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Broly_Reminder_LSS_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit67)>=125))
endfunction
function Trig_Broly_Reminder_LSS_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],10.00,"TRIGSTR_3703")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Broly_Reminder_LUSS_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit67)>=150))
endfunction
function Trig_Broly_Reminder_LUSS_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],10.00,"TRIGSTR_3704")
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Broly_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],8.00,"TRIGSTR_3662")
endfunction
function Trig_Broly_Help_skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],10.00,"TRIGSTR_6625")
endfunction
function Trig_Broly_Unthawed_Conditions takes nothing returns boolean
return((GetUnitLevel(udg_unit67)>=20))
endfunction
function Trig_Broly_Unthawed_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger427)
call PlaySoundOnUnitBJ(udg_sound37,100,udg_unit67)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[9],10.00,"TRIGSTR_6510")
call SetUnitVertexColorBJ(udg_unit67,100.00,100.00,100,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit67,"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[10]=1.50
set udg_reals02[10]=1.50
call TriggerExecute(udg_trigger422)
call TriggerSleepAction(1.00)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit67,"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Broly_SSTransformation_Conditions takes nothing returns boolean
return((GetUnitLevel(udg_unit67)>=35))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit67)>=100.00))
endfunction
function Trig_Broly_SSTransformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger426)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit67),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitVertexColorBJ(udg_unit67,240.00,240.00,0.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit67),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[10]=2.50
set udg_reals02[10]=2.50
call TriggerExecute(udg_trigger422)
endfunction
function Trig_Broly_USS_Conditions takes nothing returns boolean
return((GetUnitLevel(udg_unit67)>=75))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit67)>=100.00))
endfunction
function Trig_Broly_USS_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger426)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit67),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitVertexColorBJ(udg_unit67,250.00,250.00,0.00,0)
call SetUnitScalePercent(udg_unit67,250.00,250.00,250.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit67),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[10]=3.00
set udg_reals02[10]=3.00
call TriggerExecute(udg_trigger422)
endfunction
function Trig_Broly_LSSTransformation_Conditions takes nothing returns boolean
return((GetUnitLevel(udg_unit67)>=125))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit67)>=100.00))
endfunction
function Trig_Broly_LSSTransformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger426)
set udg_effects01[1]=AddSpecialEffectTargetUnitBJ("weapon",udg_unit67,"Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl")
set udg_effects01[2]=AddSpecialEffectTargetUnitBJ("chest",udg_unit67,"Abilities\\Spells\\Orc\\EtherealForm\\SpiritWalkerChange.mdl")
set udg_effects01[3]=AddSpecialEffectTargetUnitBJ("rightweapon",udg_unit67,"Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl")
set udg_effects01[4]=AddSpecialEffectTargetUnitBJ("leftleg",udg_unit67,"Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl")
set udg_effects01[5]=AddSpecialEffectTargetUnitBJ("rightleg",udg_unit67,"Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl")
set udg_effects01[6]=AddSpecialEffectTargetUnitBJ("chest",udg_unit67,"Abilities\\Spells\\Other\\BreathOfFire\\BreathOfFireDamage.mdl")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit67),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit67),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitScalePercent(udg_unit67,260.00,260.00,260.00)
call SetUnitVertexColorBJ(udg_unit67,260.00,260.00,0.00,0)
set udg_reals01[10]=3.50
set udg_reals02[10]=3.50
call TriggerExecute(udg_trigger422)
endfunction
function Trig_Broly_LUSSTransformation_Conditions takes nothing returns boolean
return((GetUnitLevel(udg_unit67)>=150))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit67)>=100.00))
endfunction
function Trig_Broly_LUSSTransformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger426)
set udg_effects01[1]=AddSpecialEffectTargetUnitBJ("weapon",udg_unit67,"Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire1.mdl")
set udg_effects01[2]=AddSpecialEffectTargetUnitBJ("chest",udg_unit67,"Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire1.mdl")
set udg_effects01[3]=AddSpecialEffectTargetUnitBJ("rightweapon",udg_unit67,"Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire1.mdl")
set udg_effects01[4]=AddSpecialEffectTargetUnitBJ("leftleg",udg_unit67,"Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire1.mdl")
set udg_effects01[5]=AddSpecialEffectTargetUnitBJ("rightleg",udg_unit67,"Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire1.mdl")
set udg_effects01[6]=AddSpecialEffectTargetUnitBJ("chest",udg_unit67,"Environment\\UndeadBuildingFire\\UndeadLargeBuildingFire1.mdl")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit67),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit67),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitScalePercent(udg_unit67,265.00,265.00,265.00)
call SetUnitVertexColorBJ(udg_unit67,0.00,265.00,0.00,0)
set udg_reals01[10]=4.00
set udg_reals02[10]=4.00
call TriggerExecute(udg_trigger422)
endfunction
function Trig_Broly_Alter_Stats_Func008C takes nothing returns boolean
return((udg_reals01[10]!=1.50))
endfunction
function Trig_Broly_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit67))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit67))
call ModifyHeroStat(0,udg_unit67,2,R2I((I2R(GetHeroStatBJ(0,udg_unit67,false))*udg_reals02[10])))
call ModifyHeroStat(1,udg_unit67,2,R2I((I2R(GetHeroStatBJ(1,udg_unit67,false))*udg_reals01[10])))
call ModifyHeroStat(2,udg_unit67,2,R2I((I2R(GetHeroStatBJ(2,udg_unit67,false))*udg_reals01[10])))
call SetUnitManaBJ(udg_unit67,(I2R(udg_integer14)*udg_reals01[10]))
call SetWidgetLife(udg_unit67,(I2R(udg_integer16)*udg_reals02[10]))
if(Trig_Broly_Alter_Stats_Func008C())then
call EnableTrigger(udg_trigger423)
endif
endfunction
function Trig_Broly_Mana_Drain_Conditions takes nothing returns boolean
return((udg_reals01[10]>1.50))
endfunction
function Trig_Broly_Mana_Drain_Actions takes nothing returns nothing
call SetUnitManaBJ(udg_unit67,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit67)-(udg_reals01[10]*20.00)))
endfunction
function Trig_Broly_Drained_Conditions takes nothing returns boolean
return((udg_reals01[10]>1.50))
endfunction
function Trig_Broly_Drained_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger425)
endfunction
function Trig_Broly_Revert_Conditions takes nothing returns boolean
return((udg_reals01[10]>1.50))
endfunction
function Trig_Broly_Revert_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger426)
call TriggerExecute(udg_trigger422)
endfunction
function Trig_Broly_Revert_Info_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffect(udg_effects01[bj_forLoopAIndex])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(udg_trigger423)
call DisableTrigger(udg_trigger424)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit67))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit67))
call ModifyHeroStat(0,udg_unit67,2,R2I((I2R(GetHeroStatBJ(0,udg_unit67,false))/udg_reals02[10])))
call ModifyHeroStat(1,udg_unit67,2,R2I((I2R(GetHeroStatBJ(1,udg_unit67,false))/udg_reals01[10])))
call ModifyHeroStat(2,udg_unit67,2,R2I((I2R(GetHeroStatBJ(2,udg_unit67,false))/udg_reals01[10])))
call SetUnitManaBJ(udg_unit67,(I2R(udg_integer14)/udg_reals01[10]))
call SetWidgetLife(udg_unit67,(I2R(udg_integer16)/udg_reals02[10]))
set udg_reals01[10]=1.50
set udg_reals02[10]=1.50
call EnableTrigger(udg_trigger424)
endfunction
function Trig_Broly_Frozen_Effect_Conditions takes nothing returns boolean
return((udg_reals01[10]==1.00))
endfunction
function Trig_Broly_Frozen_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit67,"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(11.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit67,"Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathTargetArt.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Bebi_gains_level_Func001Func001Func002Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<81))
endfunction
function Trig_Bebi_gains_level_Func001Func001Func002C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit94))
endfunction
function Trig_Bebi_gains_level_Func001Func001Func003C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<81))
endfunction
function Trig_Bebi_gains_level_Func001Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit77))
endfunction
function Trig_Bebi_gains_level_Func001Func003Func004C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<57))
endfunction
function Trig_Bebi_gains_level_Func001Func003C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<90))
endfunction
function Trig_Bebi_gains_level_Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit46))
endfunction
function Trig_Bebi_gains_level_Func003C takes nothing returns boolean
return((udg_unit12!=null))
endfunction
function Trig_Bebi_gains_level_Actions takes nothing returns nothing
if(Trig_Bebi_gains_level_Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A04J',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A025',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A049',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A03A',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A04A',GetLevelingUnit()))))
if(Trig_Bebi_gains_level_Func001Func003C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),1,1)
if(Trig_Bebi_gains_level_Func001Func003Func004C())then
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
endif
else
if(Trig_Bebi_gains_level_Func001Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A04J',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A025',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A03B',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A03C',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A04C',GetLevelingUnit()))))
if(Trig_Bebi_gains_level_Func001Func001Func003C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
else
if(Trig_Bebi_gains_level_Func001Func001Func002C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A04G',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A025',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A03B',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A03C',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A04C',GetLevelingUnit()))))
if(Trig_Bebi_gains_level_Func001Func001Func002Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
endif
endif
endif
set udg_integers03[9]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[9])
if(Trig_Bebi_gains_level_Func003C())then
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[9]*(4.05*I2R(udg_integers03[9])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[9]*(4.05*I2R(udg_integers03[9])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[9]*(4.05*I2R(udg_integers03[9])))))
else
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((1.00*(4.05*I2R(udg_integers03[9])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((1.00*(4.05*I2R(udg_integers03[9])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((1.00*(4.05*I2R(udg_integers03[9])))))
endif
set udg_integers03[9]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Bebi_Host_gains_level_Conditions takes nothing returns boolean
return((GetLevelingUnit()==udg_unit12))
endfunction
function Trig_Bebi_Host_gains_level_Actions takes nothing returns nothing
call SetHeroLevelBJ(udg_unit20,(GetUnitLevel(udg_unit20)+1),false)
endfunction
function Trig_Bebi_Infects_Human_Func022001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n017')
endfunction
function Trig_Bebi_Infects_Human_Func022002001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n016')
endfunction
function Trig_Bebi_Infects_Human_Func022002002 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n018')
endfunction
function Trig_Bebi_Infects_Human_Func022002 takes nothing returns boolean
return GetBooleanOr(Trig_Bebi_Infects_Human_Func022002001(),Trig_Bebi_Infects_Human_Func022002002())
endfunction
function Trig_Bebi_Infects_Human_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03A'))and(GetBooleanOr(Trig_Bebi_Infects_Human_Func022001(),Trig_Bebi_Infects_Human_Func022002()))
endfunction
function Trig_Bebi_Infects_Human_Func016001 takes nothing returns boolean
return(GetUnitTypeId(udg_unit08)=='n018')
endfunction
function Trig_Bebi_Infects_Human_Func017001 takes nothing returns boolean
return(GetUnitTypeId(udg_unit08)=='n016')
endfunction
function Trig_Bebi_Infects_Human_Func018001 takes nothing returns boolean
return(GetUnitTypeId(udg_unit08)=='n017')
endfunction
function Trig_Bebi_Infects_Human_Actions takes nothing returns nothing
set udg_integer05=(udg_integer05+1)
call AddHeroXPSwapped(1000,udg_unit20,true)
call ModifyHeroStat(0,udg_unit20,0,(R2I(udg_reals01[9])*3))
call ModifyHeroStat(1,udg_unit20,0,(R2I(udg_reals01[9])*2))
call ModifyHeroStat(2,udg_unit20,0,(R2I(udg_reals01[9])*2))
set udg_unit08=GetSpellTargetUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit08),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit20,Player(15),true)
call SetUnitPositionLoc(udg_unit20,GetRectCenter(udg_rect05))
call SetUnitOwner(udg_unit08,Player(8),true)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit20,GetUnitLoc(udg_unit08))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit20),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],2.00,"TRIGSTR_810")
call TriggerSleepAction(0.45)
call ConditionalTriggerExecute(udg_trigger478)
if(Trig_Bebi_Infects_Human_Func016001())then
call ReplaceUnitBJ(udg_unit08,'n01S',2)
endif
if(Trig_Bebi_Infects_Human_Func017001())then
call ReplaceUnitBJ(udg_unit08,'n01T',2)
endif
if(Trig_Bebi_Infects_Human_Func018001())then
call ReplaceUnitBJ(udg_unit08,'n01R',2)
endif
set udg_unit08=bj_lastReplacedUnit
call SetUnitOwner(udg_unit08,Player(8),true)
call SetUnitOwner(udg_unit20,Player(8),true)
endfunction
function Trig_Take_over_Bulma_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03A'))and((GetSpellTargetUnit()==udg_unit73))
endfunction
function Trig_Take_over_Bulma_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit08=GetSpellTargetUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit08),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit20,Player(15),true)
call SetUnitPositionLoc(udg_unit20,GetRectCenter(udg_rect05))
call SetUnitOwner(udg_unit08,Player(8),true)
call TriggerSleepAction(0.75)
call SetUnitPositionLoc(udg_unit20,GetUnitLoc(udg_unit08))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit20),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitOwner(udg_unit08,Player(8),true)
call SetUnitOwner(udg_unit20,Player(8),true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],3.00,"TRIGSTR_3390")
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],2.00,"TRIGSTR_3391")
call TriggerSleepAction(0.45)
call SetUnitInvulnerable(udg_unit73,true)
endfunction
function Trig_Saiyan_Memories_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04J'))
endfunction
function Trig_Saiyan_Memories_Actions takes nothing returns nothing
call ModifyHeroStat(0,GetTriggerUnit(),0,(R2I(udg_reals02[9])*2))
call ModifyHeroStat(1,GetTriggerUnit(),0,(R2I(udg_reals01[9])*2))
call ModifyHeroStat(2,GetTriggerUnit(),0,(R2I(udg_reals01[9])*2))
endfunction
function Trig_Dimensional_Portal_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03B'))
endfunction
function Trig_Dimensional_Portal_Func010C takes nothing returns boolean
return((udg_integer07>30))
endfunction
function Trig_Dimensional_Portal_Actions takes nothing returns nothing
local location udg_location10
set udg_location10=GetSpellTargetLoc()
call TriggerSleepAction(10.00)
set udg_location08=udg_location10
call AddSpecialEffectLocBJ(udg_location08,"Abilities\\Spells\\Undead\\Darksummoning\\DarkSummonTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
set udg_location08=udg_location10
set udg_integer07=GetRandomInt(1,200)
if(Trig_Dimensional_Portal_Func010C())then
call CreateNUnitsAtLoc(1,'O00U',Player(8),udg_location08,GetRandomReal(0,360))
call TriggerExecute(udg_trigger434)
call CreateNUnitsAtLoc(1,'O00V',Player(8),udg_location08,GetRandomReal(0,360))
call TriggerExecute(udg_trigger434)
call CreateNUnitsAtLoc(1,'O00W',Player(8),udg_location08,GetRandomReal(0,360))
call TriggerExecute(udg_trigger434)
call CreateNUnitsAtLoc(1,'O00X',Player(8),udg_location08,GetRandomReal(0,360))
call TriggerExecute(udg_trigger434)
else
call CreateNUnitsAtLoc(1,'O00T',Player(8),udg_location08,GetRandomReal(0,360))
call TriggerExecute(udg_trigger126)
call SuspendHeroXPBJ(false,bj_lastCreatedUnit)
endif
call RemoveLocation(udg_location10)
endfunction
function Trig_Set_Bebi_Hero_Weak_Func001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Set_Bebi_Hero_Weak_Func001Func001C takes nothing returns boolean
return((GetOwningPlayer(GetEnumUnit())==Player(8)))and((GetUnitTypeId(GetEnumUnit())!='O00T'))and((GetUnitTypeId(GetEnumUnit())!='O00U'))and((GetUnitTypeId(GetEnumUnit())!='O00V'))and((GetUnitTypeId(GetEnumUnit())!='O00W'))and((GetUnitTypeId(GetEnumUnit())!='O00X'))
endfunction
function Trig_Set_Bebi_Hero_Weak_Func001A takes nothing returns nothing
if(Trig_Set_Bebi_Hero_Weak_Func001Func001C())then
call ModifyHeroStat(0,bj_lastCreatedUnit,0,(GetHeroStatBJ(0,GetEnumUnit(),false)/5))
call ModifyHeroStat(1,bj_lastCreatedUnit,0,(GetHeroStatBJ(1,GetEnumUnit(),false)/5))
call ModifyHeroStat(2,bj_lastCreatedUnit,0,(GetHeroStatBJ(2,GetEnumUnit(),false)/5))
call SetHeroLevelBJ(bj_lastCreatedUnit,(GetHeroLevel(bj_lastCreatedUnit)+(GetHeroLevel(GetEnumUnit())/5)),false)
endif
endfunction
function Trig_Set_Bebi_Hero_Weak_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Set_Bebi_Hero_Weak_Func001001002)),function Trig_Set_Bebi_Hero_Weak_Func001A)
call UnitApplyTimedLifeBJ(180.00,'BTLF',bj_lastCreatedUnit)
call SuspendHeroXPBJ(false,bj_lastCreatedUnit)
endfunction
function Trig_Bebi_Help_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit46)==Player(8)))
endfunction
function Trig_Bebi_Help_Func002C takes nothing returns boolean
return((GetOwningPlayer(udg_unit77)==Player(8)))
endfunction
function Trig_Bebi_Help_Func003C takes nothing returns boolean
return((GetOwningPlayer(udg_unit94)==Player(8)))
endfunction
function Trig_Bebi_Help_Actions takes nothing returns nothing
if(Trig_Bebi_Help_Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],8.00,"TRIGSTR_773")
call TriggerSleepAction(8.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],20.00,"TRIGSTR_796")
endif
if(Trig_Bebi_Help_Func002C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],10.00,"TRIGSTR_6584")
endif
if(Trig_Bebi_Help_Func003C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],10.00,"TRIGSTR_6589")
endif
endfunction
function Trig_Body_Skills_info_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],12.00,"TRIGSTR_3296")
endfunction
function Trig_Mature_Bebi_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit46)>=28))
endfunction
function Trig_Mature_Bebi_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUnitScalePercent(udg_unit46,90.00,90.00,90.00)
call SetUnitVertexColorBJ(udg_unit46,50.00,100,80.00,0)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit46),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,40.00,60.00,100.00,0)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit46,"Abilities\\Spells\\Undead\\Darksummoning\\DarkSummonTarget.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],9.00,"TRIGSTR_6583")
set udg_reals01[9]=2.00
set udg_reals02[9]=2.00
call TriggerExecute(udg_trigger440)
set udg_unit20=udg_unit46
endfunction
function Trig_Super_Bebi_Transformation_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A049'))and((RectContainsUnit(udg_rect99,udg_unit46)==false))
endfunction
function Trig_Super_Bebi_Transformation_Actions takes nothing returns nothing
call SetUserControlForceOff(bj_FORCE_PLAYER[8])
call SetUnitInvulnerable(udg_unit46,true)
call TriggerSleepAction(0.20)
call PanCameraToTimedLocForPlayer(Player(8),GetUnitLoc(udg_unit46),0)
call TriggerSleepAction(0.20)
call RotateCameraAroundLocBJ(GetUnitFacing(udg_unit46),GetUnitLoc(udg_unit46),Player(8),2.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit77,UnitItemInSlotBJ(udg_unit46,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitAnimation(udg_unit46,"spell")
call TriggerSleepAction(0.20)
call PauseUnit(udg_unit46,true)
set udg_location04=GetUnitLoc(udg_unit46)
call TriggerSleepAction(0.80)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],7.00,"TRIGSTR_3431")
call PlaySoundAtPointBJ(udg_sound32,100.00,udg_location04,0)
call TriggerSleepAction(1.30)
call CreateNUnitsAtLoc(1,'h02O',Player(15),udg_location04,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,40.00,100.00,0)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit26,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call AddSpecialEffectLocBJ(udg_location04,"Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(udg_location04,"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit46,GetRectCenter(udg_rect05))
call SetUnitPositionLocFacingBJ(udg_unit77,udg_location04,GetUnitFacing(udg_unit46))
call SetUnitOwner(udg_unit46,Player(15),true)
call SetUnitOwner(udg_unit77,Player(8),true)
call SetHeroLevelBJ(udg_unit77,GetHeroLevel(udg_unit46),false)
call ModifyHeroStat(0,udg_unit46,2,R2I((I2R(GetHeroStatBJ(0,udg_unit46,false))/udg_reals02[9])))
call ModifyHeroStat(1,udg_unit46,2,R2I((I2R(GetHeroStatBJ(1,udg_unit46,false))/udg_reals01[9])))
call ModifyHeroStat(2,udg_unit46,2,R2I((I2R(GetHeroStatBJ(2,udg_unit46,false))/udg_reals01[9])))
call ModifyHeroStat(0,udg_unit77,2,(GetHeroStatBJ(0,udg_unit46,false)+100))
call ModifyHeroStat(1,udg_unit77,2,(GetHeroStatBJ(1,udg_unit46,false)+100))
call ModifyHeroStat(2,udg_unit77,2,(GetHeroStatBJ(2,udg_unit46,false)+100))
set udg_reals01[9]=3.00
set udg_reals02[9]=3.00
call TriggerExecute(udg_trigger440)
set udg_unit20=udg_unit77
call UnitAddAbility(udg_unit20,'A03A')
call ResetToGameCameraForPlayer(Player(8),1.00)
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],8.00,"TRIGSTR_3435")
call SetUserControlForceOn(bj_FORCE_PLAYER[8])
endfunction
function Trig_Super_Bebi_Golden_Oozaru_Conditions takes nothing returns boolean
return((GetSpellAbilityUnit()==udg_unit73))and((GetSpellAbilityId()=='A048'))
endfunction
function Trig_Super_Bebi_Golden_Oozaru_Func001C takes nothing returns boolean
return((GetSpellTargetUnit()==udg_unit77))
endfunction
function Trig_Super_Bebi_Golden_Oozaru_Actions takes nothing returns nothing
if(Trig_Super_Bebi_Golden_Oozaru_Func001C())then
call DisableTrigger(GetTriggeringTrigger())
call SetUnitInvulnerable(udg_unit77,true)
call SetUserControlForceOff(bj_FORCE_PLAYER[8])
call SetHeroLevelBJ(udg_unit94,GetHeroLevel(udg_unit77),false)
call ModifyHeroStat(0,udg_unit77,2,R2I((I2R(GetHeroStatBJ(0,udg_unit77,false))/udg_reals02[9])))
call ModifyHeroStat(1,udg_unit77,2,R2I((I2R(GetHeroStatBJ(1,udg_unit77,false))/udg_reals01[9])))
call ModifyHeroStat(2,udg_unit77,2,R2I((I2R(GetHeroStatBJ(2,udg_unit77,false))/udg_reals01[9])))
set udg_reals01[9]=3.50
set udg_reals02[9]=3.50
call TriggerExecute(udg_trigger440)
call ModifyHeroStat(0,udg_unit94,2,(GetHeroStatBJ(0,udg_unit77,false)+1000))
call ModifyHeroStat(1,udg_unit94,2,(GetHeroStatBJ(1,udg_unit77,false)+1000))
call ModifyHeroStat(2,udg_unit94,2,(GetHeroStatBJ(2,udg_unit77,false)+1000))
call TriggerSleepAction(0.35)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit94,UnitItemInSlotBJ(udg_unit77,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_location04=GetRectCenter(udg_rect92)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],2.00,"TRIGSTR_3392")
call TriggerSleepAction(1.67)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],3.00,"TRIGSTR_3393")
call IssuePointOrderLoc(udg_unit77,"move",GetRectCenter(udg_rect92))
call TriggerSleepAction(1.80)
call SetUnitFacingToFaceUnitTimed(udg_unit77,udg_unit73,1.00)
call TriggerSleepAction(1.30)
call PauseUnit(udg_unit77,true)
call TriggerSleepAction(2.80)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],3.00,"TRIGSTR_3410")
call PlaySoundAtPointBJ(udg_sound29,100,GetRectCenter(udg_rect92),0)
call TriggerSleepAction(3.00)
call StopSoundBJ(udg_sound29,false)
call SetUnitAnimation(udg_unit73,"spell")
call TriggerSleepAction(0.15)
call PlaySoundAtPointBJ(udg_sound27,100.00,GetRectCenter(udg_rect92),0)
call TriggerSleepAction(1.30)
call ResetUnitAnimation(udg_unit73)
call StopSoundBJ(udg_sound27,false)
call CreateNUnitsAtLoc(1,'h02O',Player(15),udg_location04,bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,40.00,100.00,0)
call AddSpecialEffectLocBJ(udg_location04,"Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(udg_location04,"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
call TriggerExecute(udg_trigger620)
call CameraSetupApplyForPlayer(true,udg_camerasetup04,Player(8),3.00)
call TriggerSleepAction(0.80)
call SetUnitOwner(udg_unit77,Player(15),true)
call SetUnitPositionLoc(udg_unit77,GetRectCenter(udg_rect05))
call SetUnitPositionLocFacingBJ(udg_unit94,udg_location04,GetUnitFacing(udg_unit46))
call SetUnitOwner(udg_unit94,Player(8),true)
call TriggerSleepAction(1.00)
call CameraSetupApplyForPlayer(true,udg_camerasetup05,Player(8),2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],2.00,"TRIGSTR_3411")
call TriggerSleepAction(2.00)
call ResetToGameCameraForPlayer(Player(8),1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],3.00,"TRIGSTR_3413")
call TriggerSleepAction(1.00)
call SetUserControlForceOn(bj_FORCE_PLAYER[8])
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],3.00,"TRIGSTR_3412")
endif
endfunction
function Trig_Bebi_Alter_Stats_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit46)==Player(8)))
endfunction
function Trig_Bebi_Alter_Stats_Func002C takes nothing returns boolean
return((GetOwningPlayer(udg_unit77)==Player(8)))
endfunction
function Trig_Bebi_Alter_Stats_Actions takes nothing returns nothing
if(Trig_Bebi_Alter_Stats_Func001C())then
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit46))
call ModifyHeroStat(0,udg_unit46,2,R2I((I2R(GetHeroStatBJ(0,udg_unit46,false))*udg_reals02[9])))
call ModifyHeroStat(1,udg_unit46,2,R2I((I2R(GetHeroStatBJ(1,udg_unit46,false))*udg_reals01[9])))
call ModifyHeroStat(2,udg_unit46,2,R2I((I2R(GetHeroStatBJ(2,udg_unit46,false))*udg_reals01[9])))
call SetUnitManaBJ(udg_unit46,(I2R(udg_integer14)*udg_reals01[9]))
endif
if(Trig_Bebi_Alter_Stats_Func002C())then
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit77))
call ModifyHeroStat(0,udg_unit77,2,R2I((I2R(GetHeroStatBJ(0,udg_unit77,false))*udg_reals02[9])))
call ModifyHeroStat(1,udg_unit77,2,R2I((I2R(GetHeroStatBJ(1,udg_unit77,false))*udg_reals01[9])))
call ModifyHeroStat(2,udg_unit77,2,R2I((I2R(GetHeroStatBJ(2,udg_unit77,false))*udg_reals01[9])))
call SetUnitManaBJ(udg_unit77,(I2R(udg_integer14)*udg_reals01[9]))
endif
endfunction
function Trig_Body_Z_Fighter_Func006C takes nothing returns boolean
return((GetSpellTargetUnit()==udg_unit31))or((GetSpellTargetUnit()==udg_unit26))or((GetSpellTargetUnit()==udg_unit27))or((GetSpellTargetUnit()==udg_unit30))or((GetSpellTargetUnit()==udg_unit32))or((GetSpellTargetUnit()==udg_unit45))or((GetSpellTargetUnit()==udg_unit28))or((GetSpellTargetUnit()==udg_unit83))or((GetSpellTargetUnit()==udg_unit29))
endfunction
function Trig_Body_Z_Fighter_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03A'))and((RectContainsUnit(udg_rect98,udg_unit20)==false))and((RectContainsItem(udg_item12,udg_rect05)))and((GetUnitTypeId(GetSpellTargetUnit())!='H004'))and(Trig_Body_Z_Fighter_Func006C())
endfunction
function Trig_Body_Z_Fighter_Func001Func001C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_Body_Z_Fighter_Func001Func004C takes nothing returns boolean
return((udg_player01==Player(0)))
endfunction
function Trig_Body_Z_Fighter_Func001Func005C takes nothing returns boolean
return((udg_player01==Player(1)))
endfunction
function Trig_Body_Z_Fighter_Func001Func006Func001C takes nothing returns boolean
return((udg_reals01[3]>1.25))and((udg_reals01[3]!=3.50))
endfunction
function Trig_Body_Z_Fighter_Func001Func006C takes nothing returns boolean
return((udg_player01==Player(2)))
endfunction
function Trig_Body_Z_Fighter_Func001Func007Func001C takes nothing returns boolean
return((udg_unit12==udg_unit45))
endfunction
function Trig_Body_Z_Fighter_Func001Func007C takes nothing returns boolean
return((udg_player01==Player(3)))
endfunction
function Trig_Body_Z_Fighter_Func001Func008C takes nothing returns boolean
return((udg_player01==Player(5)))
endfunction
function Trig_Body_Z_Fighter_Func001Func033C takes nothing returns boolean
return((udg_unit12!=null))and((IsUnitPaused(udg_unit20)==false))
endfunction
function Trig_Body_Z_Fighter_Func001C takes nothing returns boolean
return(Trig_Body_Z_Fighter_Func001Func001C())and((udg_reals02[(1+GetPlayerId(GetOwningPlayer(GetSpellTargetUnit())))]<5.00))
endfunction
function Trig_Body_Z_Fighter_Actions takes nothing returns nothing
if(Trig_Body_Z_Fighter_Func001C())then
set udg_unit12=GetSpellTargetUnit()
set udg_player01=GetOwningPlayer(udg_unit12)
if(Trig_Body_Z_Fighter_Func001Func004C())then
call TriggerExecute(udg_trigger253)
endif
if(Trig_Body_Z_Fighter_Func001Func005C())then
call TriggerExecute(udg_trigger283)
endif
if(Trig_Body_Z_Fighter_Func001Func006C())then
if(Trig_Body_Z_Fighter_Func001Func006Func001C())then
call TriggerExecute(udg_trigger317)
endif
endif
if(Trig_Body_Z_Fighter_Func001Func007C())then
if(Trig_Body_Z_Fighter_Func001Func007Func001C())then
call DestroyTimerDialog(udg_timerdialog10)
call PauseTimerBJ(true,udg_timer12)
call DisableTrigger(udg_trigger360)
call TriggerExecute(udg_trigger368)
else
call TriggerExecute(udg_trigger352)
endif
endif
if(Trig_Body_Z_Fighter_Func001Func008C())then
call TriggerExecute(udg_trigger338)
endif
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit20))
call ModifyHeroStat(0,udg_unit20,2,R2I((I2R(GetHeroStatBJ(0,udg_unit20,false))/udg_reals02[9])))
call ModifyHeroStat(1,udg_unit20,2,R2I((I2R(GetHeroStatBJ(1,udg_unit20,false))/udg_reals01[9])))
call ModifyHeroStat(2,udg_unit20,2,R2I((I2R(GetHeroStatBJ(2,udg_unit20,false))/udg_reals01[9])))
call SetUnitManaBJ(udg_unit20,(I2R(udg_integer14)/udg_reals01[9]))
set udg_reals01[9]=udg_reals01[(1+GetPlayerId(udg_player01))]
set udg_reals02[9]=udg_reals02[(1+GetPlayerId(udg_player01))]
call SetPlayerAllianceStateBJ(Player(8),GetOwningPlayer(udg_unit12),1)
call SetUnitInvulnerable(udg_unit20,true)
call SetUnitInvulnerable(udg_unit12,true)
call PauseUnit(udg_unit12,true)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit12,"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitOwner(udg_unit20,Player(15),true)
call SetUnitPositionLoc(udg_unit20,GetRectCenter(udg_rect05))
call SetUnitOwner(udg_unit12,Player(8),true)
call SetUnitLifePercentBJ(udg_unit12,75.00)
call PauseUnit(udg_unit12,false)
call SetUnitInvulnerable(udg_unit20,false)
call SetUnitInvulnerable(udg_unit12,false)
call EnableTrigger(udg_trigger442)
call TriggerSleepAction(60.00)
if(Trig_Body_Z_Fighter_Func001Func033C())then
call UnitAddItem(udg_unit12,udg_item12)
endif
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],11.00,"TRIGSTR_6590")
endif
endfunction
function Trig_Body_Z_Fighter_Leave_Conditions takes nothing returns boolean
return((udg_unit12!=null))and((GetUnitLifePercent(udg_unit12)<=10.00))and((RectContainsUnit(udg_rect99,udg_unit12)==false))and((udg_reals02[9]<5.00))
endfunction
function Trig_Body_Z_Fighter_Leave_Func028C takes nothing returns boolean
return((udg_unit20==udg_unit46))
endfunction
function Trig_Body_Z_Fighter_Leave_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger452)
call DisableTrigger(udg_trigger451)
call SetPlayerAllianceStateBJ(udg_player01,Player(8),1)
call SetPlayerAllianceStateBJ(Player(8),udg_player01,0)
call SetItemPositionLoc(udg_item12,GetRectCenter(udg_rect05))
call PauseUnit(udg_unit20,true)
call PauseUnit(udg_unit12,true)
call SetUnitInvulnerable(udg_unit20,true)
call SetUnitInvulnerable(udg_unit12,true)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit12,"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit20,GetUnitLoc(udg_unit12))
call SetUnitOwner(udg_unit20,Player(8),true)
call SetUnitOwner(udg_unit12,udg_player01,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],5.00,"TRIGSTR_6591")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],5.00,"TRIGSTR_6592")
call PauseUnit(udg_unit20,false)
call PauseUnit(udg_unit12,false)
call SetUnitInvulnerable(udg_unit20,false)
call SetUnitInvulnerable(udg_unit12,false)
set udg_unit12=null
if(Trig_Body_Z_Fighter_Leave_Func028C())then
set udg_reals01[9]=2.00
set udg_reals02[9]=2.00
else
set udg_reals01[9]=3.00
set udg_reals02[9]=3.00
endif
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit20))
call ModifyHeroStat(0,udg_unit20,2,R2I((I2R(GetHeroStatBJ(0,udg_unit20,false))*udg_reals02[9])))
call ModifyHeroStat(1,udg_unit20,2,R2I((I2R(GetHeroStatBJ(1,udg_unit20,false))*udg_reals01[9])))
call ModifyHeroStat(2,udg_unit20,2,R2I((I2R(GetHeroStatBJ(2,udg_unit20,false))*udg_reals01[9])))
call SetUnitManaBJ(udg_unit20,(I2R(udg_integer14)*udg_reals01[9]))
call EnableTrigger(udg_trigger444)
endfunction
function Trig_Death_Body_Check_Z_Fighter_Conditions takes nothing returns boolean
return((GetDyingUnit()==udg_unit12))and((RectContainsUnit(udg_rect99,udg_unit12)==false))
endfunction
function Trig_Death_Body_Check_Z_Fighter_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger442)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],10.00,"TRIGSTR_6595")
call KillUnit(udg_unit20)
endfunction
function Trig_Body_Release_Conditions takes nothing returns boolean
return((udg_unit12!=null))and((RectContainsUnit(udg_rect99,udg_unit20)==false))and((RectContainsUnit(udg_rect99,udg_unit12)==false))and((udg_reals02[9]<5.00))
endfunction
function Trig_Body_Release_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call AddSpecialEffectTargetUnitBJ("chest",udg_unit12,"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerExecute(udg_trigger442)
endfunction
function Trig_Bebi_SS1_Transformation_Func017Func003C takes nothing returns boolean
return((udg_unit12==udg_unit27))and((udg_reals01[3]!=3.50))
endfunction
function Trig_Bebi_SS1_Transformation_Func017C takes nothing returns boolean
return((udg_unit12==udg_unit31))or((udg_unit12==udg_unit26))or(Trig_Bebi_SS1_Transformation_Func017Func003C())or((udg_unit12==udg_unit30))or((udg_unit12==udg_unit32))or((udg_unit12==udg_unit29))or((udg_unit12==udg_unit45))
endfunction
function Trig_Bebi_SS1_Transformation_Conditions takes nothing returns boolean
return((GetUnitTypeId(udg_unit12)!='H004'))and((udg_reals02[9]<5.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit12)>=100.00))and((GetHeroLevel(udg_unit12)>=30))and(Trig_Bebi_SS1_Transformation_Func017C())
endfunction
function Trig_Bebi_SS1_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger453)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(8))
call SetUnitColor(udg_unit12,PLAYER_COLOR_YELLOW)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit12),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit12),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[9]=2.00
set udg_reals02[9]=2.00
call TriggerExecute(udg_trigger449)
call EnableTrigger(udg_trigger451)
endfunction
function Trig_Bebi_USS_Transformation_Func008C takes nothing returns boolean
return((udg_unit12==udg_unit26))or((udg_unit12==udg_unit29))
endfunction
function Trig_Bebi_USS_Transformation_Conditions takes nothing returns boolean
return((GetUnitTypeId(udg_unit12)!='H004'))and((udg_reals02[9]<5.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit12)>=100.00))and((GetHeroLevel(udg_unit12)>=50))and(Trig_Bebi_USS_Transformation_Func008C())
endfunction
function Trig_Bebi_USS_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger453)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(8))
call SetUnitColor(udg_unit12,PLAYER_COLOR_YELLOW)
call SetUnitScalePercent(udg_unit12,120.00,140.00,130.00)
call TerrainDeformationCraterBJ(0.30,false,GetUnitLoc(udg_unit12),200.00,100.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit12),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit12),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
set udg_reals01[9]=2.50
set udg_reals02[9]=2.50
call TriggerExecute(udg_trigger449)
call EnableTrigger(udg_trigger451)
endfunction
function Trig_Bebi_SS2_Transformation_Func008Func003C takes nothing returns boolean
return((udg_unit12==udg_unit27))and((udg_reals01[3]!=3.50))
endfunction
function Trig_Bebi_SS2_Transformation_Func008C takes nothing returns boolean
return((udg_unit12==udg_unit31))or((udg_unit12==udg_unit26))or(Trig_Bebi_SS2_Transformation_Func008Func003C())
endfunction
function Trig_Bebi_SS2_Transformation_Conditions takes nothing returns boolean
return((GetUnitTypeId(udg_unit12)!='H004'))and((udg_reals02[9]<5.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit12)>=100.00))and((GetHeroLevel(udg_unit12)>=85))and(Trig_Bebi_SS2_Transformation_Func008C())
endfunction
function Trig_Bebi_SS2_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger453)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(8))
call SetUnitColor(udg_unit12,PLAYER_COLOR_YELLOW)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit12),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit12),"Abilities\\Spells\\Other\\Silence\\SilenceAreaBirth.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger454)
set udg_reals01[9]=3.00
set udg_reals02[9]=3.00
call TriggerExecute(udg_trigger449)
call EnableTrigger(udg_trigger451)
endfunction
function Trig_Bebi_SS3_Transformation_Func007C takes nothing returns boolean
return((udg_unit12==udg_unit31))or((udg_unit12==udg_unit45))
endfunction
function Trig_Bebi_SS3_Transformation_Conditions takes nothing returns boolean
return((GetUnitTypeId(udg_unit12)!='H004'))and((udg_reals02[9]<5.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit12)>=100.00))and((GetHeroLevel(udg_unit12)>=125))and(Trig_Bebi_SS3_Transformation_Func007C())
endfunction
function Trig_Bebi_SS3_Transformation_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger453)
call SetPlayerAbilityAvailableBJ(false,'A035',Player(8))
call SetUnitColor(udg_unit12,PLAYER_COLOR_YELLOW)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit12),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit12),"Abilities\\Spells\\Orc\\EarthQuake\\EarthQuakeTarget.mdl")
call TriggerExecute(udg_trigger620)
call EnableTrigger(udg_trigger455)
set udg_reals01[9]=3.50
set udg_reals02[9]=3.50
call TriggerExecute(udg_trigger449)
call EnableTrigger(udg_trigger451)
endfunction
function Trig_Bebi_Host_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit12))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit12))
call ModifyHeroStat(0,udg_unit12,2,R2I((I2R(GetHeroStatBJ(0,udg_unit12,false))*udg_reals02[9])))
call ModifyHeroStat(1,udg_unit12,2,R2I((I2R(GetHeroStatBJ(1,udg_unit12,false))*udg_reals01[9])))
call ModifyHeroStat(2,udg_unit12,2,R2I((I2R(GetHeroStatBJ(2,udg_unit12,false))*udg_reals01[9])))
call SetUnitManaBJ(udg_unit12,(I2R(udg_integer14)*udg_reals01[9]))
call SetWidgetLife(udg_unit12,(I2R(udg_integer16)*udg_reals02[9]))
call EnableTrigger(udg_trigger450)
endfunction
function Trig_Bebi_Mana_Drain_Conditions takes nothing returns boolean
return((udg_reals01[9]>1.00))
endfunction
function Trig_Bebi_Mana_Drain_Actions takes nothing returns nothing
call SetUnitManaBJ(udg_unit12,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit12)-(udg_reals01[9]*20.00)))
endfunction
function Trig_Bebi_Drained_Conditions takes nothing returns boolean
return((udg_reals01[9]>1.00))and((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit12)==0.00))
endfunction
function Trig_Bebi_Drained_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger452)
endfunction
function Trig_Bebi_Revert_Conditions takes nothing returns boolean
return((udg_unit12!=null))and((GetUnitTypeId(udg_unit12)!='H004'))and((udg_reals02[9]<5.00))
endfunction
function Trig_Bebi_Revert_Func006C takes nothing returns boolean
return((udg_reals01[9]==1.25))
endfunction
function Trig_Bebi_Revert_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger453)
if(Trig_Bebi_Revert_Func006C())then
call TriggerExecute(udg_trigger306)
endif
endfunction
function Trig_Bebi_Revert_Info_Actions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ(true,'A035',Player(8))
call SetUnitColor(udg_unit12,PLAYER_COLOR_LIGHT_GRAY)
call DisableTrigger(udg_trigger454)
call DisableTrigger(udg_trigger455)
call DisableTrigger(udg_trigger450)
call DisableTrigger(udg_trigger451)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit12))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit12))
call ModifyHeroStat(0,udg_unit12,2,R2I((I2R(GetHeroStatBJ(0,udg_unit12,false))/udg_reals02[9])))
call ModifyHeroStat(1,udg_unit12,2,R2I((I2R(GetHeroStatBJ(1,udg_unit12,false))/udg_reals01[9])))
call ModifyHeroStat(2,udg_unit12,2,R2I((I2R(GetHeroStatBJ(2,udg_unit12,false))/udg_reals01[9])))
call SetUnitManaBJ(udg_unit12,(I2R(udg_integer14)/udg_reals01[9]))
call SetWidgetLife(udg_unit12,(I2R(udg_integer16)/udg_reals02[9]))
set udg_reals01[9]=udg_reals01[(1+GetPlayerId(udg_player01))]
set udg_reals02[9]=udg_reals02[(1+GetPlayerId(udg_player01))]
endfunction
function Trig_Bebi_SS2_Effect_Conditions takes nothing returns boolean
return((udg_reals01[9]==3.00))
endfunction
function Trig_Bebi_SS2_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit12,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Bebi_SS3_Effect_Conditions takes nothing returns boolean
return((udg_reals01[9]==3.50))
endfunction
function Trig_Bebi_SS3_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit12,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit12,"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit12,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Bebi_Golden_Oozaru_Effect_Conditions takes nothing returns boolean
return((udg_reals02[9]==10.00))
endfunction
function Trig_Bebi_Golden_Oozaru_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit12,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Piccolo_gains_level_Func001Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<96))
endfunction
function Trig_Piccolo_gains_level_Func001Func004C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<75))
endfunction
function Trig_Piccolo_gains_level_Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit28))
endfunction
function Trig_Piccolo_gains_level_Actions takes nothing returns nothing
if(Trig_Piccolo_gains_level_Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A03U',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A04Y',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A02V',GetLevelingUnit()))+GetUnitAbilityLevelSwapped('A00V',GetLevelingUnit())))
if(Trig_Piccolo_gains_level_Func001Func004C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
else
set udg_integer14=(GetUnitAbilityLevelSwapped('A02V',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A03G',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A03U',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A015',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00V',GetLevelingUnit()))))
if(Trig_Piccolo_gains_level_Func001Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
endif
set udg_integers03[7]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[7])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[7]*(4.00*I2R(udg_integers03[7])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[7]*(4.00*I2R(udg_integers03[7])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[7]*(4.00*I2R(udg_integers03[7])))))
set udg_integers03[7]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Learn_Kyodaika_Conditions takes nothing returns boolean
return((GetLearnedSkill()=='A04Y'))
endfunction
function Trig_Learn_Kyodaika_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call UnitAddAbility(udg_unit28,'A03S')
call SetPlayerAbilityAvailableBJ(false,'A03S',Player(6))
call SetPlayerAbilityAvailableBJ(false,'A03S',Player(8))
endfunction
function Trig_Piccolo_Nails_warning_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit28)>=30))
endfunction
function Trig_Piccolo_Nails_warning_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],8.00,"TRIGSTR_952")
call CreateFogModifierRadiusLocBJ(true,Player(6),FOG_OF_WAR_VISIBLE,GetUnitLoc(udg_unit95),512)
set udg_fogmodifier03=bj_lastCreatedFogModifier
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[6],GetRectCenter(udg_rect68),20.00,1,0.00,100.00,0.00)
endfunction
function Trig_Piccolo_Kami_Reminder_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit28)>=60))
endfunction
function Trig_Piccolo_Kami_Reminder_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],10.00,"TRIGSTR_6628")
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[6],GetRectCenter(udg_rect53),10.00,0,0.00,100.00,0.00)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Piccolo_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],10.00,"TRIGSTR_583")
endfunction
function Trig_Piccolo_Help_skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],10.00,"TRIGSTR_6626")
endfunction
function Trig_Kyodaika_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04Y'))and((GetUnitStateSwap(UNIT_STATE_MANA,GetTriggerUnit())>=100.00))
endfunction
function Trig_Kyodaika_Actions takes nothing returns nothing
call PauseUnit(GetTriggerUnit(),true)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call PlaySoundAtPointBJ(udg_sound31,100,GetUnitLoc(GetTriggerUnit()),0)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call SetUnitScalePercent(GetTriggerUnit(),150.00,150.00,150.00)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call SetUnitScalePercent(GetTriggerUnit(),160.00,160.00,160.00)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call SetUnitScalePercent(GetTriggerUnit(),170.00,170.00,170.00)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call SetUnitScalePercent(GetTriggerUnit(),180.00,180.00,180.00)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call SetUnitScalePercent(GetTriggerUnit(),190.00,190.00,190.00)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Undead\\DarkRitual\\DarkRitualTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectTargetUnitBJ("chest",GetTriggerUnit(),"Abilities\\Spells\\Undead\\ReplenishHealth\\ReplenishHealthCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetPlayerAbilityAvailableBJ(false,'A04Y',Player(6))
call SetPlayerAbilityAvailableBJ(false,'A04Y',Player(8))
call SetPlayerAbilityAvailableBJ(true,'A03S',Player(6))
call SetPlayerAbilityAvailableBJ(true,'A03S',Player(8))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))/udg_reals02[7])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)/udg_reals02[7]))
set udg_reals02[7]=5.00
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))*udg_reals02[7])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)*udg_reals02[7]))
call EnableTrigger(udg_trigger469)
call PauseUnit(GetTriggerUnit(),false)
call SetUnitInvulnerable(GetTriggerUnit(),false)
endfunction
function Trig_Fuse_Nail_Conditions takes nothing returns boolean
return((GetEnteringUnit()==udg_unit28))and((GetEnteringUnit()!=udg_unit12))and((GetHeroLevel(udg_unit28)>=30))and((udg_reals02[7]<5.00))
endfunction
function Trig_Fuse_Nail_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUserControlForceOff(bj_FORCE_PLAYER[6])
call SetCameraTargetControllerNoZForPlayer(Player(6),udg_unit28,0,0,false)
call SetUnitInvulnerable(udg_unit28,true)
call IssuePointOrderLoc(udg_unit28,"move",GetRectCenter(udg_rect68))
call TriggerSleepAction(3.00)
call SetUnitFacingToFaceUnitTimed(udg_unit28,udg_unit95,0)
call TriggerExecute(udg_trigger471)
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_588")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],5.00,"TRIGSTR_589")
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_590")
call SetUnitFacingToFaceLocTimed(udg_unit28,GetRectCenter(udg_rect82),0)
call TriggerSleepAction(1.00)
call IssuePointOrderLoc(udg_unit28,"move",GetRectCenter(udg_rect82))
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_591")
call TriggerSleepAction(2.00)
call SetUnitFacingToFaceLocTimed(udg_unit28,GetRectCenter(udg_rect68),0)
call IssuePointOrderLoc(udg_unit28,"move",GetRectCenter(udg_rect68))
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_3195")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],2.00,"TRIGSTR_3196")
call TriggerSleepAction(2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit95),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit28),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,60.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit28),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call TriggerExecute(udg_trigger620)
call RemoveUnit(udg_unit95)
set udg_reals01[7]=2.00
set udg_reals02[7]=2.00
call TriggerExecute(udg_trigger468)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],5.00,"TRIGSTR_592")
call DestroyFogModifier(udg_fogmodifier03)
call ResetToGameCameraForPlayer(Player(6),0)
call SetUserControlForceOn(bj_FORCE_PLAYER[6])
call SetUnitInvulnerable(udg_unit28,false)
endfunction
function Trig_Fuse_Kami_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit28)>=60))and((GetEnteringUnit()==udg_unit28))and((GetEnteringUnit()!=udg_unit12))and((udg_reals02[7]==2.00))
endfunction
function Trig_Fuse_Kami_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUnitInvulnerable(udg_unit28,true)
call SetUserControlForceOff(bj_FORCE_PLAYER[6])
call TriggerExecute(udg_trigger471)
call UnitAddItem(udg_unit83,udg_item15)
call IssuePointOrderLoc(udg_unit28,"move",GetRectCenter(udg_rect75))
call TriggerSleepAction(0.40)
call SetUnitFacingToFaceUnitTimed(udg_unit28,udg_unit58,0)
call SetUnitFacingToFaceUnitTimed(udg_unit58,udg_unit28,0)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],2.00,"TRIGSTR_594")
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_595")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_596")
call TriggerSleepAction(8.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],5.00,"TRIGSTR_597")
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_598")
call TriggerSleepAction(2.00)
call IssuePointOrderLoc(udg_unit28,"move",GetRectCenter(udg_rect74))
call IssuePointOrderLoc(udg_unit58,"move",GetRectCenter(udg_rect74))
call SetCameraTargetControllerNoZForPlayer(Player(6),udg_unit28,0,0,false)
call TriggerSleepAction(1.25)
call TriggerExecute(udg_trigger466)
endfunction
function Trig_Piccolo_fuse_Kami_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ResetToGameCameraForPlayer(Player(6),2.00)
call ModifyHeroStat(0,udg_unit28,2,R2I((I2R(GetHeroStatBJ(0,udg_unit28,false))/udg_reals02[7])))
call ModifyHeroStat(1,udg_unit28,2,R2I((I2R(GetHeroStatBJ(1,udg_unit28,false))/udg_reals01[7])))
call ModifyHeroStat(2,udg_unit28,2,R2I((I2R(GetHeroStatBJ(2,udg_unit28,false))/udg_reals01[7])))
call SetHeroLevelBJ(udg_unit83,GetHeroLevel(udg_unit28),false)
call ModifyHeroStat(0,udg_unit83,2,(GetHeroStatBJ(0,udg_unit28,false)+50))
call ModifyHeroStat(1,udg_unit83,2,(GetHeroStatBJ(1,udg_unit28,false)+50))
call ModifyHeroStat(2,udg_unit83,2,(GetHeroStatBJ(2,udg_unit28,false)+50))
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect74),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect74),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call SetUnitPositionLoc(udg_unit58,GetRectCenter(udg_rect69))
call SetUnitOwner(udg_unit28,Player(15),true)
call SetUnitPositionLoc(udg_unit28,GetRectCenter(udg_rect69))
call SetUnitPositionLoc(udg_unit83,GetRectCenter(udg_rect74))
call SetUnitOwner(udg_unit83,Player(6),true)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit83),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,60.00,0)
set udg_reals01[7]=2.50
set udg_reals02[7]=2.50
call TriggerExecute(udg_trigger468)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],5.00,"TRIGSTR_599")
call SetUserControlForceOn(bj_FORCE_PLAYER[6])
call EnableTrigger(udg_trigger472)
set udg_unit18=udg_unit28
set udg_unit19=udg_unit83
call TriggerExecute(udg_trigger613)
call EnableTrigger(udg_trigger467)
endfunction
function Trig_Piccolo_x3_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit83)>=90))
endfunction
function Trig_Piccolo_x3_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
call ModifyHeroStat(0,udg_unit83,2,R2I((I2R(GetHeroStatBJ(0,udg_unit83,false))/udg_reals02[7])))
call ModifyHeroStat(1,udg_unit83,2,R2I((I2R(GetHeroStatBJ(1,udg_unit83,false))/udg_reals01[7])))
call ModifyHeroStat(2,udg_unit83,2,R2I((I2R(GetHeroStatBJ(2,udg_unit83,false))/udg_reals01[7])))
set udg_reals01[7]=3.00
set udg_reals02[7]=3.00
call TriggerExecute(udg_trigger468)
call UnitAddAbility(udg_unit83,'A04Y')
call UnitAddAbility(udg_unit83,'A03S')
call SetPlayerAbilityAvailableBJ(false,'A03S',Player(6))
call SetPlayerAbilityAvailableBJ(false,'A03S',Player(8))
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],5.00,"TRIGSTR_6511")
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit83),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,60.00,0)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit83,"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit83,"Abilities\\Spells\\Other\\Awaken\\Awaken.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Piccolo_Alter_Stats_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit28)!=Player(15)))
endfunction
function Trig_Piccolo_Alter_Stats_Actions takes nothing returns nothing
if(Trig_Piccolo_Alter_Stats_Func001C())then
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit28))
call ModifyHeroStat(0,udg_unit28,2,R2I((I2R(GetHeroStatBJ(0,udg_unit28,false))*udg_reals02[7])))
call ModifyHeroStat(1,udg_unit28,2,R2I((I2R(GetHeroStatBJ(1,udg_unit28,false))*udg_reals01[7])))
call ModifyHeroStat(2,udg_unit28,2,R2I((I2R(GetHeroStatBJ(2,udg_unit28,false))*udg_reals01[7])))
call SetUnitManaBJ(udg_unit28,(I2R(udg_integer14)*udg_reals01[7]))
else
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit83))
call ModifyHeroStat(0,udg_unit83,2,R2I((I2R(GetHeroStatBJ(0,udg_unit83,false))*udg_reals02[7])))
call ModifyHeroStat(1,udg_unit83,2,R2I((I2R(GetHeroStatBJ(1,udg_unit83,false))*udg_reals01[7])))
call ModifyHeroStat(2,udg_unit83,2,R2I((I2R(GetHeroStatBJ(2,udg_unit83,false))*udg_reals01[7])))
call SetUnitManaBJ(udg_unit83,(I2R(udg_integer14)*udg_reals01[7]))
endif
endfunction
function Trig_Kyodaika_Drain_Conditions takes nothing returns boolean
return((udg_reals02[7]>3.00))
endfunction
function Trig_Kyodaika_Drain_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit28)!=Player(15)))
endfunction
function Trig_Kyodaika_Drain_Actions takes nothing returns nothing
if(Trig_Kyodaika_Drain_Func001C())then
call SetUnitManaBJ(udg_unit28,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit28)-(udg_reals01[7]*15.00)))
else
call SetUnitManaBJ(udg_unit83,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit83)-(udg_reals01[7]*15.00)))
endif
endfunction
function Trig_Kyodaika_Drained_Conditions takes nothing returns boolean
return((udg_reals02[7]>3.00))
endfunction
function Trig_Kyodaika_Drained_Actions takes nothing returns nothing
call IssueImmediateOrder(GetTriggerUnit(),"stomp")
endfunction
function Trig_Kyodaika_Revert_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03S'))
endfunction
function Trig_Kyodaika_Revert_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetTriggerUnit(),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetPlayerAbilityAvailableBJ(false,'A03S',Player(6))
call SetPlayerAbilityAvailableBJ(false,'A03S',Player(8))
call SetPlayerAbilityAvailableBJ(true,'A04Y',Player(6))
call SetPlayerAbilityAvailableBJ(true,'A04Y',Player(8))
call DisableTrigger(udg_trigger469)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))/udg_reals02[7])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)/udg_reals02[7]))
set udg_reals02[7]=udg_reals01[7]
call SetUnitScalePercent(GetTriggerUnit(),150.00,150.00,150.00)
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit()))
call ModifyHeroStat(0,GetTriggerUnit(),2,R2I((I2R(GetHeroStatBJ(0,GetTriggerUnit(),false))*udg_reals02[7])))
call SetWidgetLife(GetTriggerUnit(),(I2R(udg_integer16)*udg_reals02[7]))
endfunction
function Trig_Fused_effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit83,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Cell_gains_level_Func001Func001Func001Func003C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<126))
endfunction
function Trig_Cell_gains_level_Func001Func001Func001Func004C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<84))
endfunction
function Trig_Cell_gains_level_Func001Func001Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit41))
endfunction
function Trig_Cell_gains_level_Func001Func001Func003C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<84))
endfunction
function Trig_Cell_gains_level_Func001Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit43))
endfunction
function Trig_Cell_gains_level_Func001Func003C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<72))
endfunction
function Trig_Cell_gains_level_Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit35))
endfunction
function Trig_Cell_gains_level_Actions takes nothing returns nothing
if(Trig_Cell_gains_level_Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A00R',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00Q',GetLevelingUnit()))
if(Trig_Cell_gains_level_Func001Func003C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
else
if(Trig_Cell_gains_level_Func001Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A029',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A00R',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A02E',GetLevelingUnit()))+GetUnitAbilityLevelSwapped('A00Q',GetLevelingUnit())))
if(Trig_Cell_gains_level_Func001Func001Func003C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
else
if(Trig_Cell_gains_level_Func001Func001Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A029',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A00R',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A02E',GetLevelingUnit()))+GetUnitAbilityLevelSwapped('A00Q',GetLevelingUnit())))
if(Trig_Cell_gains_level_Func001Func001Func001Func004C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
else
set udg_integer14=(GetUnitAbilityLevelSwapped('A00R',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A005',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A03U',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A01Z',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00Q',GetLevelingUnit()))))
if(Trig_Cell_gains_level_Func001Func001Func001Func003C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
endif
endif
endif
set udg_integers03[11]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[11])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[11]*(4.00*I2R(udg_integers03[11])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[11]*(4.00*I2R(udg_integers03[11])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[11]*(4.00*I2R(udg_integers03[11])))))
set udg_integers03[11]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Cell_Junior_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetSummonedUnit())=='H01J'))
endfunction
function Trig_Cell_Junior_Func001Func001A takes nothing returns nothing
call ModifyHeroStat(0,GetEnumUnit(),2,(GetHeroStatBJ(0,udg_unit42,false)/4))
call ModifyHeroStat(1,GetEnumUnit(),2,(GetHeroStatBJ(1,udg_unit42,false)/5))
call ModifyHeroStat(2,GetEnumUnit(),2,(GetHeroStatBJ(2,udg_unit42,false)/4))
call SetHeroLevelBJ(GetEnumUnit(),(GetHeroLevel(udg_unit42)/4),false)
call SuspendHeroXPBJ(false,GetEnumUnit())
endfunction
function Trig_Cell_Junior_Func001Func003A takes nothing returns nothing
call ModifyHeroStat(0,GetEnumUnit(),2,(GetHeroStatBJ(0,udg_unit42,false)/3))
call ModifyHeroStat(1,GetEnumUnit(),2,(GetHeroStatBJ(1,udg_unit42,false)/4))
call ModifyHeroStat(2,GetEnumUnit(),2,(GetHeroStatBJ(2,udg_unit42,false)/3))
call SetHeroLevelBJ(GetEnumUnit(),(GetHeroLevel(udg_unit42)/3),false)
call SuspendHeroXPBJ(false,GetEnumUnit())
endfunction
function Trig_Cell_Junior_Func001C takes nothing returns boolean
return((GetUnitAbilityLevelSwapped('A01Z',udg_unit42)>2))
endfunction
function Trig_Cell_Junior_Actions takes nothing returns nothing
if(Trig_Cell_Junior_Func001C())then
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(10),'H01J'),function Trig_Cell_Junior_Func001Func003A)
else
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(10),'H01J'),function Trig_Cell_Junior_Func001Func001A)
endif
endfunction
function Trig_Cell_absorb_Sorter_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A029'))
endfunction
function Trig_Cell_absorb_Sorter_Func001001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n01M')
endfunction
function Trig_Cell_absorb_Sorter_Func001003001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n008')
endfunction
function Trig_Cell_absorb_Sorter_Func001003003001001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n017')
endfunction
function Trig_Cell_absorb_Sorter_Func001003003001002001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n016')
endfunction
function Trig_Cell_absorb_Sorter_Func001003003001002002 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n018')
endfunction
function Trig_Cell_absorb_Sorter_Func001003003001002 takes nothing returns boolean
return GetBooleanOr(Trig_Cell_absorb_Sorter_Func001003003001002001(),Trig_Cell_absorb_Sorter_Func001003003001002002())
endfunction
function Trig_Cell_absorb_Sorter_Func001003003001 takes nothing returns boolean
return GetBooleanOr(Trig_Cell_absorb_Sorter_Func001003003001001(),Trig_Cell_absorb_Sorter_Func001003003001002())
endfunction
function Trig_Cell_absorb_Sorter_Actions takes nothing returns nothing
if(Trig_Cell_absorb_Sorter_Func001001())then
call ConditionalTriggerExecute(udg_trigger490)
else
if(Trig_Cell_absorb_Sorter_Func001003001())then
call ConditionalTriggerExecute(udg_trigger491)
else
if(Trig_Cell_absorb_Sorter_Func001003003001())then
call ConditionalTriggerExecute(udg_trigger476)
else
call DisplayTextToForce(bj_FORCE_PLAYER[10],"TRIGSTR_3837")
endif
endif
endif
endfunction
function Trig_Cell_absorb_Humans_Func003001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n017')
endfunction
function Trig_Cell_absorb_Humans_Func003002001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n016')
endfunction
function Trig_Cell_absorb_Humans_Func003002002 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n018')
endfunction
function Trig_Cell_absorb_Humans_Func003002 takes nothing returns boolean
return GetBooleanOr(Trig_Cell_absorb_Humans_Func003002001(),Trig_Cell_absorb_Humans_Func003002002())
endfunction
function Trig_Cell_absorb_Humans_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A029'))and(GetBooleanOr(Trig_Cell_absorb_Humans_Func003001(),Trig_Cell_absorb_Humans_Func003002()))
endfunction
function Trig_Cell_absorb_Humans_Actions takes nothing returns nothing
set udg_integer04=(udg_integer04+1)
call PlaySoundAtPointBJ(udg_sound21,100,GetUnitLoc(GetSpellTargetUnit()),0)
call RemoveUnit(GetSpellTargetUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Awaken\\Awaken.mdl")
call TriggerExecute(udg_trigger620)
call AddHeroXPSwapped(50,udg_unit43,false)
call ModifyHeroStat(0,udg_unit43,0,(R2I(udg_reals02[11])*2))
call ModifyHeroStat(1,udg_unit43,0,(R2I(udg_reals01[11])*2))
call ModifyHeroStat(2,udg_unit43,0,(R2I(udg_reals01[11])*2))
call TriggerSleepAction(0.60)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\AIem\\AIemTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.60)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],1.50,"TRIGSTR_097")
call ConditionalTriggerExecute(udg_trigger477)
endfunction
function Trig_Cell_absorbs_30_humans_Conditions takes nothing returns boolean
return((udg_integer04==30))
endfunction
function Trig_Cell_absorbs_30_humans_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],5.00,"TRIGSTR_419")
call TriggerSleepAction(0.50)
call AddHeroXPSwapped(5000,udg_unit43,true)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit43),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Bebi_absorbs_30_humans_Conditions takes nothing returns boolean
return((udg_integer05==30))
endfunction
function Trig_Bebi_absorbs_30_humans_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[8],5.00,"TRIGSTR_7350")
call TriggerSleepAction(0.50)
call AddHeroXPSwapped(5000,udg_unit20,true)
call ModifyHeroStat(0,udg_unit20,0,(R2I(udg_reals01[9])*200))
call ModifyHeroStat(1,udg_unit20,0,(R2I(udg_reals01[9])*200))
call ModifyHeroStat(2,udg_unit20,0,(R2I(udg_reals01[9])*200))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit20),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Order_Android_17_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect16,udg_unit64)==false))
endfunction
function Trig_Order_Android_17_Func002002001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n02B')
endfunction
function Trig_Order_Android_17_Actions takes nothing returns nothing
set udg_unit18=GroupPickRandomUnit(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Order_Android_17_Func002002001002)))
call IssuePointOrderLoc(udg_unit64,"blink",GetUnitLoc(udg_unit18))
endfunction
function Trig_Order_Android_18_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect16,udg_unit37)==false))
endfunction
function Trig_Order_Android_18_Func002002001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n02B')
endfunction
function Trig_Order_Android_18_Actions takes nothing returns nothing
set udg_unit18=GroupPickRandomUnit(GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Order_Android_18_Func002002001002)))
call IssuePointOrderLoc(udg_unit37,"blink",GetUnitLoc(udg_unit18))
endfunction
function Trig_Ping_Androids_Func001C takes nothing returns boolean
return((IsUnitHidden(udg_unit64)==false))and((RectContainsUnit(udg_rect16,udg_unit64)==false))
endfunction
function Trig_Ping_Androids_Func002C takes nothing returns boolean
return((IsUnitHidden(udg_unit37)==false))and((RectContainsUnit(udg_rect16,udg_unit37)==false))
endfunction
function Trig_Ping_Androids_Actions takes nothing returns nothing
if(Trig_Ping_Androids_Func001C())then
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[10],GetUnitLoc(udg_unit64),8.00,1,0.00,50.00,0.00)
endif
if(Trig_Ping_Androids_Func002C())then
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[10],GetUnitLoc(udg_unit37),8.00,1,0.00,50.00,0.00)
endif
endfunction
function Trig_Cell_Help_lvl_30_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit43)>=30))
endfunction
function Trig_Cell_Help_lvl_30_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
call DisplayTextToForce(bj_FORCE_PLAYER[10],"TRIGSTR_6525")
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit43))
call ModifyHeroStat(0,udg_unit43,2,R2I((I2R(GetHeroStatBJ(0,udg_unit43,false))/udg_reals02[11])))
call ModifyHeroStat(1,udg_unit43,2,R2I((I2R(GetHeroStatBJ(1,udg_unit43,false))/udg_reals01[11])))
call ModifyHeroStat(2,udg_unit43,2,R2I((I2R(GetHeroStatBJ(2,udg_unit43,false))/udg_reals01[11])))
call SetUnitManaBJ(udg_unit43,(I2R(udg_integer14)/udg_reals01[11]))
set udg_reals01[11]=2.00
set udg_reals02[11]=2.00
call TriggerExecute(udg_trigger499)
endfunction
function Trig_Cell_Help_update_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound38)
call DisplayTextToForce(bj_FORCE_PLAYER[10],"TRIGSTR_3851")
endfunction
function Trig_Cell_Help_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit35)==Player(10)))
endfunction
function Trig_Cell_Help_Func002Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit43)==Player(10)))or((GetOwningPlayer(udg_unit41)==Player(10)))
endfunction
function Trig_Cell_Help_Func002Func002C takes nothing returns boolean
return((udg_reals01[11]<2.00))
endfunction
function Trig_Cell_Help_Func002C takes nothing returns boolean
return(Trig_Cell_Help_Func002Func001C())
endfunction
function Trig_Cell_Help_Func003Func001C takes nothing returns boolean
return((udg_reals01[11]==3.00))
endfunction
function Trig_Cell_Help_Func003C takes nothing returns boolean
return((GetOwningPlayer(udg_unit42)==Player(10)))
endfunction
function Trig_Cell_Help_Actions takes nothing returns nothing
if(Trig_Cell_Help_Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],10.00,"TRIGSTR_131")
endif
if(Trig_Cell_Help_Func002C())then
if(Trig_Cell_Help_Func002Func002C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],10.00,"TRIGSTR_6517")
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],10.00,"TRIGSTR_6518")
endif
endif
if(Trig_Cell_Help_Func003C())then
if(Trig_Cell_Help_Func003Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],10.00,"TRIGSTR_6521")
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],10.00,"TRIGSTR_6522")
endif
endif
endfunction
function Trig_Cell_Help_skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],10.00,"TRIGSTR_6629")
endfunction
function Trig_Cell_Help_Transmission_Conditions takes nothing returns boolean
return((udg_reals01[11]==3.50))
endfunction
function Trig_Cell_Help_Transmission_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],12.00,"TRIGSTR_2894")
endfunction
function Trig_Cell_Help_sense_Conditions takes nothing returns boolean
return((udg_reals01[11]==3.50))
endfunction
function Trig_Cell_Help_sense_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],10.00,"TRIGSTR_102")
endfunction
function Trig_Cell_Unformed_to_First_Form_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit35)>=20))
endfunction
function Trig_Cell_Unformed_to_First_Form_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetHeroLevelBJ(udg_unit43,GetHeroLevel(udg_unit35),false)
call ModifyHeroStat(0,udg_unit43,2,GetHeroStatBJ(0,udg_unit35,false))
call ModifyHeroStat(1,udg_unit43,2,GetHeroStatBJ(1,udg_unit35,false))
call ModifyHeroStat(2,udg_unit43,2,GetHeroStatBJ(2,udg_unit35,false))
call ConditionalTriggerExecute(udg_trigger489)
call ShowUnitShow(udg_unit64)
call ShowUnitShow(udg_unit37)
endfunction
function Trig_Cell_First_Form_Transformation_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit43,UnitItemInSlotBJ(udg_unit35,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnit(udg_unit35,true)
call PauseUnit(udg_unit43,true)
call PlaySoundOnUnitBJ(udg_sound05,100,udg_unit35)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit35),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,60.00,0)
call TriggerSleepAction(3.00)
call PlaySoundOnUnitBJ(udg_sound04,100,udg_unit35)
call SetUnitPositionLocFacingBJ(udg_unit43,GetUnitLoc(udg_unit35),GetUnitFacing(udg_unit35))
call RemoveUnit(udg_unit35)
call SetUnitOwner(udg_unit43,Player(10),false)
set udg_reals01[11]=1.50
set udg_reals02[11]=1.50
call TriggerExecute(udg_trigger499)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit43),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call PolledWait(2.00)
call PauseUnit(udg_unit43,false)
call DisplayTextToForce(bj_FORCE_PLAYER[10],"TRIGSTR_6524")
endfunction
function Trig_Cell_First_absorb_17_Func002001 takes nothing returns boolean
return(udg_unit41!=udg_unit12)
endfunction
function Trig_Cell_First_absorb_17_Func002002001 takes nothing returns boolean
return(udg_unit42!=udg_unit12)
endfunction
function Trig_Cell_First_absorb_17_Func002002002 takes nothing returns boolean
return(udg_unit43!=udg_unit12)
endfunction
function Trig_Cell_First_absorb_17_Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Cell_First_absorb_17_Func002002001(),Trig_Cell_First_absorb_17_Func002002002())
endfunction
function Trig_Cell_First_absorb_17_Conditions takes nothing returns boolean
return(GetBooleanAnd(Trig_Cell_First_absorb_17_Func002001(),Trig_Cell_First_absorb_17_Func002002()))and((GetUnitTypeId(GetSpellTargetUnit())=='n01M'))and((GetHeroLevel(udg_unit43)>=30))and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit64)<=1500.00))
endfunction
function Trig_Cell_First_absorb_17_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit41,UnitItemInSlotBJ(udg_unit43,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnit(udg_unit43,true)
call PauseUnit(udg_unit64,true)
call SetUnitInvulnerable(udg_unit64,true)
call SetUnitInvulnerable(udg_unit43,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],4.00,"TRIGSTR_162")
call PolledWait(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_163")
call PolledWait(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],6.00,"TRIGSTR_164")
call PolledWait(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],2.00,"TRIGSTR_177")
call PolledWait(1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],4.00,"TRIGSTR_165")
call PolledWait(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_166")
call PolledWait(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_168")
call PolledWait(1.20)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit64),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound22,100,GetUnitLoc(udg_unit64),0)
call PolledWait(0.60)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_169")
call PolledWait(0.45)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit64,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerExecute(udg_trigger492)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit43),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,60.00,0)
call PolledWait(0.70)
call PlaySoundAtPointBJ(udg_sound31,100,GetUnitLoc(udg_unit43),0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit43),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLocFacingBJ(udg_unit41,GetUnitLoc(udg_unit43),GetUnitFacing(udg_unit43))
call SetUnitOwner(udg_unit43,Player(15),true)
call RemoveUnit(udg_unit43)
call PauseUnit(udg_unit41,true)
call SetUnitPositionLoc(udg_unit64,GetRectCenter(udg_rect16))
set udg_unit18=udg_unit41
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit41,udg_item02)
call SetUnitOwner(udg_unit41,Player(10),false)
set udg_reals01[11]=2.50
set udg_reals02[11]=2.50
call TriggerExecute(udg_trigger499)
call PolledWait(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_170")
call PolledWait(1.00)
call PauseUnit(udg_unit41,false)
call PolledWait(1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_421")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_463")
endfunction
function Trig_Cell_First_absorb_18_Func002001 takes nothing returns boolean
return(udg_unit41!=udg_unit12)
endfunction
function Trig_Cell_First_absorb_18_Func002002001 takes nothing returns boolean
return(udg_unit42!=udg_unit12)
endfunction
function Trig_Cell_First_absorb_18_Func002002002 takes nothing returns boolean
return(udg_unit43!=udg_unit12)
endfunction
function Trig_Cell_First_absorb_18_Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Cell_First_absorb_18_Func002002001(),Trig_Cell_First_absorb_18_Func002002002())
endfunction
function Trig_Cell_First_absorb_18_Conditions takes nothing returns boolean
return(GetBooleanAnd(Trig_Cell_First_absorb_18_Func002001(),Trig_Cell_First_absorb_18_Func002002()))and((GetUnitTypeId(GetSpellTargetUnit())=='n008'))and((GetHeroLevel(udg_unit43)>=30))and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit37)<=1500.00))
endfunction
function Trig_Cell_First_absorb_18_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit41,UnitItemInSlotBJ(udg_unit43,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnit(udg_unit43,true)
call PauseUnit(udg_unit37,true)
call SetUnitInvulnerable(udg_unit37,true)
call SetUnitInvulnerable(udg_unit43,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],4.00,"TRIGSTR_178")
call PolledWait(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_179")
call PolledWait(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],6.00,"TRIGSTR_180")
call PolledWait(6.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],6.00,"TRIGSTR_182")
call PolledWait(6.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_183")
call PolledWait(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_184")
call PolledWait(3.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit37),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound14,100,GetUnitLoc(udg_unit37),0)
call PolledWait(1.20)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_185")
call AddSpecialEffectTargetUnitBJ("chest",udg_unit37,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerExecute(udg_trigger492)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit43),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,60.00,0)
call PolledWait(0.60)
call PlaySoundAtPointBJ(udg_sound31,100,GetUnitLoc(udg_unit43),0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit43),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLocFacingBJ(udg_unit41,GetUnitLoc(udg_unit43),GetUnitFacing(udg_unit43))
call SetUnitOwner(udg_unit43,Player(15),true)
call RemoveUnit(udg_unit43)
call PauseUnit(udg_unit41,true)
call SetUnitPositionLoc(udg_unit37,GetRectCenter(udg_rect16))
set udg_unit18=udg_unit41
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit41,udg_item13)
call SetUnitOwner(udg_unit41,Player(10),false)
set udg_reals01[11]=2.50
set udg_reals02[11]=2.50
call TriggerExecute(udg_trigger499)
call PolledWait(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_187")
call PolledWait(1.00)
call PauseUnit(udg_unit41,false)
call PolledWait(1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_420")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_465")
endfunction
function Trig_Transfer_First_Cell_Stats_Actions takes nothing returns nothing
call SetHeroLevelBJ(udg_unit41,GetHeroLevel(udg_unit43),false)
call ModifyHeroStat(0,udg_unit43,2,R2I((I2R(GetHeroStatBJ(0,udg_unit43,false))/udg_reals02[11])))
call ModifyHeroStat(1,udg_unit43,2,R2I((I2R(GetHeroStatBJ(1,udg_unit43,false))/udg_reals01[11])))
call ModifyHeroStat(2,udg_unit43,2,R2I((I2R(GetHeroStatBJ(2,udg_unit43,false))/udg_reals01[11])))
call ModifyHeroStat(0,udg_unit41,2,(GetHeroStatBJ(0,udg_unit43,false)+40))
call ModifyHeroStat(1,udg_unit41,2,(GetHeroStatBJ(1,udg_unit43,false)+40))
call ModifyHeroStat(2,udg_unit41,2,(GetHeroStatBJ(2,udg_unit43,false)+40))
endfunction
function Trig_Second_absorb_17_Func002001 takes nothing returns boolean
return(udg_unit41!=udg_unit12)
endfunction
function Trig_Second_absorb_17_Func002002001 takes nothing returns boolean
return(udg_unit42!=udg_unit12)
endfunction
function Trig_Second_absorb_17_Func002002002 takes nothing returns boolean
return(udg_unit43!=udg_unit12)
endfunction
function Trig_Second_absorb_17_Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Second_absorb_17_Func002002001(),Trig_Second_absorb_17_Func002002002())
endfunction
function Trig_Second_absorb_17_Conditions takes nothing returns boolean
return(GetBooleanAnd(Trig_Second_absorb_17_Func002001(),Trig_Second_absorb_17_Func002002()))and((UnitHasItemOfTypeBJ(udg_unit41,'I01G')))and((GetUnitTypeId(GetSpellTargetUnit())=='n01M'))and((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1500.00))and((GetSpellAbilityId()=='A029'))
endfunction
function Trig_Second_absorb_17_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit42,UnitItemInSlotBJ(udg_unit41,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PlaySoundAtPointBJ(udg_sound08,100,GetUnitLoc(udg_unit41),0)
call PauseUnit(udg_unit41,true)
call PauseUnit(udg_unit64,true)
call SetUnitInvulnerable(udg_unit64,true)
call SetUnitInvulnerable(udg_unit41,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_189")
call PolledWait(3.20)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],4.00,"TRIGSTR_202")
call PolledWait(4.10)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_190")
call PolledWait(3.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_194")
call PolledWait(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_195")
call PolledWait(3.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit64),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound22,100,GetUnitLoc(udg_unit64),0)
call PolledWait(1.20)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],2.00,"TRIGSTR_199")
call PolledWait(1.50)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit64,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerExecute(udg_trigger495)
call SetUnitPositionLocFacingBJ(udg_unit42,GetUnitLoc(udg_unit41),GetUnitFacing(udg_unit41))
call SetUnitPositionLoc(udg_unit41,GetRectCenter(udg_rect15))
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit42),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,60.00,0)
call PlaySoundAtPointBJ(udg_sound20,100,GetUnitLoc(udg_unit42),0)
call SetUnitOwner(udg_unit41,Player(15),false)
call SetUnitOwner(udg_unit42,Player(10),false)
set udg_reals01[11]=3.00
set udg_reals02[11]=3.00
call TriggerExecute(udg_trigger499)
call SetUnitPositionLoc(udg_unit64,GetRectCenter(udg_rect16))
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit42,'I01G'))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit42),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationCraterBJ(2.00,true,GetUnitLoc(udg_unit42),400.00,150.00)
call TerrainDeformationRippleBJ(2.00,false,GetUnitLoc(udg_unit42),1024,1024,64,1,512)
call PolledWait(2.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_201")
call StopSoundBJ(udg_sound08,true)
call TriggerExecute(udg_trigger483)
endfunction
function Trig_Second_absorb_18_Func002001 takes nothing returns boolean
return(udg_unit41!=udg_unit12)
endfunction
function Trig_Second_absorb_18_Func002002001 takes nothing returns boolean
return(udg_unit42!=udg_unit12)
endfunction
function Trig_Second_absorb_18_Func002002002 takes nothing returns boolean
return(udg_unit43!=udg_unit12)
endfunction
function Trig_Second_absorb_18_Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Second_absorb_18_Func002002001(),Trig_Second_absorb_18_Func002002002())
endfunction
function Trig_Second_absorb_18_Conditions takes nothing returns boolean
return(GetBooleanAnd(Trig_Second_absorb_18_Func002001(),Trig_Second_absorb_18_Func002002()))and((UnitHasItemOfTypeBJ(udg_unit41,'I01F')))and((GetUnitTypeId(GetSpellTargetUnit())=='n008'))and((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1500.00))and((GetSpellAbilityId()=='A029'))
endfunction
function Trig_Second_absorb_18_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit42,UnitItemInSlotBJ(udg_unit41,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PlaySoundAtPointBJ(udg_sound08,100,GetUnitLoc(udg_unit41),0)
call PauseUnit(udg_unit41,true)
call PauseUnit(udg_unit37,true)
call SetUnitInvulnerable(udg_unit37,true)
call SetUnitInvulnerable(udg_unit41,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_204")
call PolledWait(3.20)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],4.00,"TRIGSTR_205")
call PolledWait(4.10)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_206")
call PolledWait(3.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_207")
call PolledWait(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_208")
call PolledWait(3.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit37),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound14,100,GetUnitLoc(udg_unit37),0)
call PolledWait(1.20)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],2.00,"TRIGSTR_209")
call PolledWait(1.50)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit37,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerExecute(udg_trigger495)
call SetUnitPositionLocFacingBJ(udg_unit42,GetUnitLoc(udg_unit41),GetUnitFacing(udg_unit41))
call SetUnitPositionLoc(udg_unit41,GetRectCenter(udg_rect15))
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit42),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,60.00,0)
call PlaySoundAtPointBJ(udg_sound20,100,GetUnitLoc(udg_unit42),0)
call SetUnitOwner(udg_unit41,Player(15),false)
call SetUnitOwner(udg_unit42,Player(10),false)
set udg_reals01[11]=3.00
set udg_reals02[11]=3.00
call TriggerExecute(udg_trigger499)
call SetUnitPositionLoc(udg_unit37,GetRectCenter(udg_rect16))
call RemoveItem(GetItemOfTypeFromUnitBJ(udg_unit42,'I01F'))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit42),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationCraterBJ(2.00,true,GetUnitLoc(udg_unit42),400.00,150.00)
call TerrainDeformationRippleBJ(4.00,false,GetUnitLoc(udg_unit42),1024,1024,64,1,512)
call PolledWait(2.50)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],3.00,"TRIGSTR_210")
call StopSoundBJ(udg_sound08,true)
call TriggerExecute(udg_trigger483)
endfunction
function Trig_Transfer_Second_Cell_Stats_Actions takes nothing returns nothing
call SetHeroLevelBJ(udg_unit42,GetHeroLevel(udg_unit41),false)
call ModifyHeroStat(0,udg_unit41,2,R2I((I2R(GetHeroStatBJ(0,udg_unit41,false))/udg_reals02[11])))
call ModifyHeroStat(1,udg_unit41,2,R2I((I2R(GetHeroStatBJ(1,udg_unit41,false))/udg_reals01[11])))
call ModifyHeroStat(2,udg_unit41,2,R2I((I2R(GetHeroStatBJ(2,udg_unit41,false))/udg_reals01[11])))
call ModifyHeroStat(0,udg_unit42,2,(GetHeroStatBJ(0,udg_unit41,false)+40))
call ModifyHeroStat(1,udg_unit42,2,(GetHeroStatBJ(1,udg_unit41,false)+40))
call ModifyHeroStat(2,udg_unit42,2,(GetHeroStatBJ(2,udg_unit41,false)+40))
call DisableTrigger(udg_trigger481)
endfunction
function Trig_Cell_lose_droids_Func004001 takes nothing returns boolean
return(udg_unit41!=udg_unit12)
endfunction
function Trig_Cell_lose_droids_Func004002001 takes nothing returns boolean
return(udg_unit42!=udg_unit12)
endfunction
function Trig_Cell_lose_droids_Func004002002 takes nothing returns boolean
return(udg_unit43!=udg_unit12)
endfunction
function Trig_Cell_lose_droids_Func004002 takes nothing returns boolean
return GetBooleanAnd(Trig_Cell_lose_droids_Func004002001(),Trig_Cell_lose_droids_Func004002002())
endfunction
function Trig_Cell_lose_droids_Conditions takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_LIFE,GetTriggerUnit())<=750.00))and((GetHeroLevel(udg_unit42)>=130))and((RectContainsUnit(udg_rect99,udg_unit42)==false))and(GetBooleanAnd(Trig_Cell_lose_droids_Func004001(),Trig_Cell_lose_droids_Func004002()))
endfunction
function Trig_Cell_lose_droids_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_unit42,true)
call SetUnitInvulnerable(udg_unit42,true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"TRIGSTR_221")
call PolledWait(2.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit42),"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,1.00,"TRIGSTR_222")
call PolledWait(2)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit42),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call PolledWait(2)
call SetUnitPositionLoc(udg_unit41,GetUnitLoc(udg_unit42))
call SetUnitOwner(udg_unit41,Player(10),false)
call SetUnitOwner(udg_unit42,Player(15),false)
call SetUnitPositionLoc(udg_unit42,GetRectCenter(udg_rect15))
call SetWidgetLife(udg_unit41,GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit42))
call TriggerSleepAction(1.00)
call UnitAddItem(udg_unit41,udg_item09)
call SetItemPositionLoc(udg_item02,GetRectCenter(udg_rect15))
call PauseUnit(udg_unit42,false)
call SetUnitInvulnerable(udg_unit41,true)
call SetUnitInvulnerable(udg_unit37,true)
call SetUnitInvulnerable(udg_unit64,true)
call PauseUnit(udg_unit41,true)
call PauseUnit(udg_unit64,true)
call PauseUnit(udg_unit37,true)
call PlaySoundAtPointBJ(udg_sound19,100,GetUnitLoc(udg_unit42),0)
call SetUnitPositionLocFacingLocBJ(udg_unit64,GetUnitLoc(udg_unit41),GetUnitLoc(udg_unit41))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit64),"Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_249")
call PolledWait(2)
call PlaySoundAtPointBJ(udg_sound19,100,GetUnitLoc(udg_unit42),0)
call SetUnitPositionLocFacingLocBJ(udg_unit37,GetUnitLoc(udg_unit41),GetUnitLoc(udg_unit41))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit37),"Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_250")
call PolledWait(2)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,4.00,"TRIGSTR_253")
call PolledWait(3.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_252")
call PolledWait(4.00)
call SetUnitInvulnerable(udg_unit41,false)
call SetUnitInvulnerable(udg_unit37,false)
call SetUnitInvulnerable(udg_unit64,false)
call PauseUnit(udg_unit41,false)
call PauseUnit(udg_unit64,false)
call PauseUnit(udg_unit37,false)
endfunction
function Trig_Reformed_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect99,GetDyingUnit())==false))and((UnitHasItemOfTypeBJ(udg_unit41,'I01K')))
endfunction
function Trig_Reformed_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisplayTextToForce(bj_FORCE_PLAYER[10],"TRIGSTR_239")
call StartTimerBJ(udg_timer03,false,60.00)
set udg_timerdialog01=CreateTimerDialogBJ(udg_timer03,"TRIGSTR_240")
call RemoveItem(udg_item09)
call SetUnitOwner(udg_unit41,Player(15),false)
call RemoveUnit(udg_unit41)
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(0))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(1))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(2))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(3))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(4))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(5))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(6))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(7))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(8))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(9))
call TimerDialogDisplayForPlayerBJ(false,udg_timerdialog01,Player(11))
endfunction
function Trig_Cell_Timerout_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(udg_timerdialog01)
call PlaySoundBJ(udg_sound08)
call PanCameraToTimedLocForPlayer(Player(10),GetRectCenter(udg_rect14),2.00)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_241")
call PolledWait(2.50)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_242")
call PolledWait(2.50)
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_245")
call SetUnitPositionLoc(udg_unit42,GetRectCenter(udg_rect14))
call SetUnitOwner(udg_unit42,Player(10),false)
call ModifyHeroStat(0,udg_unit42,2,R2I((I2R(GetHeroStatBJ(0,udg_unit42,false))/udg_reals02[11])))
call ModifyHeroStat(1,udg_unit42,2,R2I((I2R(GetHeroStatBJ(1,udg_unit42,false))/udg_reals01[11])))
call ModifyHeroStat(2,udg_unit42,2,R2I((I2R(GetHeroStatBJ(2,udg_unit42,false))/udg_reals01[11])))
set udg_reals01[11]=3.50
set udg_reals02[11]=3.50
call TriggerExecute(udg_trigger499)
call SetUnitInvulnerable(udg_unit42,false)
call TerrainDeformationCraterBJ(0.50,true,GetRectCenter(udg_rect14),700.00,200.00)
call TerrainDeformationRippleBJ(4.00,false,GetRectCenter(udg_rect14),1024,1024,64,1,512)
call EnableTrigger(udg_trigger504)
call TriggerExecute(udg_trigger483)
endfunction
function Trig_Cell_Alter_Stats_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit43)!=Player(15)))
endfunction
function Trig_Cell_Alter_Stats_Func002C takes nothing returns boolean
return((GetOwningPlayer(udg_unit41)!=Player(15)))
endfunction
function Trig_Cell_Alter_Stats_Func003C takes nothing returns boolean
return((GetOwningPlayer(udg_unit42)!=Player(15)))
endfunction
function Trig_Cell_Alter_Stats_Actions takes nothing returns nothing
if(Trig_Cell_Alter_Stats_Func001C())then
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit43))
call ModifyHeroStat(0,udg_unit43,2,R2I((I2R(GetHeroStatBJ(0,udg_unit43,false))*udg_reals02[11])))
call ModifyHeroStat(1,udg_unit43,2,R2I((I2R(GetHeroStatBJ(1,udg_unit43,false))*udg_reals01[11])))
call ModifyHeroStat(2,udg_unit43,2,R2I((I2R(GetHeroStatBJ(2,udg_unit43,false))*udg_reals01[11])))
call SetUnitManaBJ(udg_unit43,(I2R(udg_integer14)*udg_reals01[11]))
endif
if(Trig_Cell_Alter_Stats_Func002C())then
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit41))
call ModifyHeroStat(0,udg_unit41,2,R2I((I2R(GetHeroStatBJ(0,udg_unit41,false))*udg_reals02[11])))
call ModifyHeroStat(1,udg_unit41,2,R2I((I2R(GetHeroStatBJ(1,udg_unit41,false))*udg_reals01[11])))
call ModifyHeroStat(2,udg_unit41,2,R2I((I2R(GetHeroStatBJ(2,udg_unit41,false))*udg_reals01[11])))
call SetUnitManaBJ(udg_unit41,(I2R(udg_integer14)*udg_reals01[11]))
endif
if(Trig_Cell_Alter_Stats_Func003C())then
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit42))
call ModifyHeroStat(0,udg_unit42,2,R2I((I2R(GetHeroStatBJ(0,udg_unit42,false))*udg_reals02[11])))
call ModifyHeroStat(1,udg_unit42,2,R2I((I2R(GetHeroStatBJ(1,udg_unit42,false))*udg_reals01[11])))
call ModifyHeroStat(2,udg_unit42,2,R2I((I2R(GetHeroStatBJ(2,udg_unit42,false))*udg_reals01[11])))
call SetUnitManaBJ(udg_unit42,(I2R(udg_integer14)*udg_reals01[11]))
endif
endfunction
function Trig_Sense_hero_Conditions takes nothing returns boolean
return((udg_reals01[11]==3.50))
endfunction
function Trig_Sense_hero_Func003001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense vegeta")
endfunction
function Trig_Sense_hero_Func004001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense gohan")
endfunction
function Trig_Sense_hero_Func005001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense the great saiyaman")
endfunction
function Trig_Sense_hero_Func006001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense goten")
endfunction
function Trig_Sense_hero_Func007001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense kid trunks")
endfunction
function Trig_Sense_hero_Func008001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense gotenks")
endfunction
function Trig_Sense_hero_Func009001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense piccolo")
endfunction
function Trig_Sense_hero_Func010001001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense piccolo")
endfunction
function Trig_Sense_hero_Func010001002 takes nothing returns boolean
return(GetOwningPlayer(udg_unit83)!=Player(15))
endfunction
function Trig_Sense_hero_Func010001 takes nothing returns boolean
return GetBooleanAnd(Trig_Sense_hero_Func010001001(),Trig_Sense_hero_Func010001002())
endfunction
function Trig_Sense_hero_Func011001 takes nothing returns boolean
return(StringCase(GetEventPlayerChatString(),false)=="sense future trunks")
endfunction
function Trig_Sense_hero_Actions takes nothing returns nothing
local location udg_location07
set udg_unit18=udg_unit42
if(Trig_Sense_hero_Func003001())then
set udg_unit18=udg_unit26
endif
if(Trig_Sense_hero_Func004001())then
set udg_unit18=udg_unit27
endif
if(Trig_Sense_hero_Func005001())then
set udg_unit18=udg_unit82
endif
if(Trig_Sense_hero_Func006001())then
set udg_unit18=udg_unit30
endif
if(Trig_Sense_hero_Func007001())then
set udg_unit18=udg_unit32
endif
if(Trig_Sense_hero_Func008001())then
set udg_unit18=udg_unit45
endif
if(Trig_Sense_hero_Func009001())then
set udg_unit18=udg_unit28
endif
if(Trig_Sense_hero_Func010001())then
set udg_unit18=udg_unit83
endif
if(Trig_Sense_hero_Func011001())then
set udg_unit18=udg_unit29
endif
set udg_location07=GetUnitLoc(udg_unit18)
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[10],udg_location07,2.00,0,100,100,100)
call RemoveLocation(udg_location07)
endfunction
function Trig_Cell_Lookout_Conditions takes nothing returns boolean
return((GetOwningPlayer(udg_unit42)==Player(10)))and((udg_reals01[11]==3.50))
endfunction
function Trig_Cell_Lookout_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Cell_Lookout_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(10)))
endfunction
function Trig_Cell_Lookout_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Cell_Lookout_Func002001003001(),Trig_Cell_Lookout_Func002001003002())
endfunction
function Trig_Cell_Lookout_Func002A takes nothing returns nothing
set udg_boolean06=false
endfunction
function Trig_Cell_Lookout_Func003C takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit42)>=100.00))and((udg_boolean06))and((RectContainsUnit(udg_rect99,udg_unit42)==false))and((RectContainsUnit(udg_rect45,udg_unit42)==false))
endfunction
function Trig_Cell_Lookout_Actions takes nothing returns nothing
set udg_boolean06=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(udg_unit42),Condition(function Trig_Cell_Lookout_Func002001003)),function Trig_Cell_Lookout_Func002A)
if(Trig_Cell_Lookout_Func003C())then
call SetUnitManaBJ(udg_unit42,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit42)-100.00))
call AddSpecialEffectTargetUnitBJ("chest",udg_unit42,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit42),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit42,GetRectCenter(udg_rect84))
call TriggerSleepAction(0.40)
call PanCameraToTimedLocForPlayer(Player(10),GetRectCenter(udg_rect84),0.40)
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],7.00,"TRIGSTR_6373")
endif
endfunction
function Trig_Cell_West_City_Conditions takes nothing returns boolean
return((GetOwningPlayer(udg_unit42)==Player(10)))and((udg_reals01[11]==3.50))
endfunction
function Trig_Cell_West_City_Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Cell_West_City_Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(10)))
endfunction
function Trig_Cell_West_City_Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Cell_West_City_Func003001003001(),Trig_Cell_West_City_Func003001003002())
endfunction
function Trig_Cell_West_City_Func003A takes nothing returns nothing
set udg_boolean06=false
endfunction
function Trig_Cell_West_City_Func004C takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit42)>=100.00))and((udg_boolean06))and((RectContainsUnit(udg_rect99,udg_unit42)==false))and((RectContainsUnit(udg_rect45,udg_unit42)==false))
endfunction
function Trig_Cell_West_City_Actions takes nothing returns nothing
set udg_boolean06=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(udg_unit42),Condition(function Trig_Cell_West_City_Func003001003)),function Trig_Cell_West_City_Func003A)
if(Trig_Cell_West_City_Func004C())then
call SetUnitManaBJ(udg_unit42,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit42)-100.00))
call AddSpecialEffectTargetUnitBJ("chest",udg_unit42,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit42),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit42,GetRectCenter(udg_rect115))
call TriggerSleepAction(0.40)
call PanCameraToTimedLocForPlayer(Player(10),GetRectCenter(udg_rect115),0.40)
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],7.00,"TRIGSTR_6375")
endif
endfunction
function Trig_Cell_Capital_Conditions takes nothing returns boolean
return((GetOwningPlayer(udg_unit42)==Player(10)))and((udg_reals01[11]==3.50))
endfunction
function Trig_Cell_Capital_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Cell_Capital_Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(10)))
endfunction
function Trig_Cell_Capital_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Cell_Capital_Func002001003001(),Trig_Cell_Capital_Func002001003002())
endfunction
function Trig_Cell_Capital_Func002A takes nothing returns nothing
set udg_boolean06=false
endfunction
function Trig_Cell_Capital_Func003C takes nothing returns boolean
return((GetUnitStateSwap(UNIT_STATE_MANA,udg_unit42)>=100.00))and((udg_boolean06))and((RectContainsUnit(udg_rect99,udg_unit42)==false))and((RectContainsUnit(udg_rect45,udg_unit42)==false))
endfunction
function Trig_Cell_Capital_Actions takes nothing returns nothing
set udg_boolean06=true
call ForGroupBJ(GetUnitsInRangeOfLocMatching(900.00,GetUnitLoc(udg_unit42),Condition(function Trig_Cell_Capital_Func002001003)),function Trig_Cell_Capital_Func002A)
if(Trig_Cell_Capital_Func003C())then
call SetUnitManaBJ(udg_unit42,(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit42)-100.00))
call AddSpecialEffectTargetUnitBJ("chest",udg_unit42,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit42),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit42,GetRectCenter(udg_rect10))
call TriggerSleepAction(0.40)
call PanCameraToTimedLocForPlayer(Player(10),GetRectCenter(udg_rect10),0.40)
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[10],7.00,"TRIGSTR_6376")
endif
endfunction
function Trig_Cell_Effect_Conditions takes nothing returns boolean
return((udg_reals01[11]==3.50))
endfunction
function Trig_Cell_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit42,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Super_13_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<102))
endfunction
function Trig_Super_13_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A041',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A01Y',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A01U',GetLevelingUnit()))+GetUnitAbilityLevelSwapped('A042',GetLevelingUnit())))
if(Trig_Super_13_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[5]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[5])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[5]*(11.00*I2R(udg_integers03[5])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[5]*(11.00*I2R(udg_integers03[5])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[5]*(11.00*I2R(udg_integers03[5])))))
set udg_integers03[5]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Android_13_gains_level_Conditions takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<45))
endfunction
function Trig_Android_13_gains_level_Func003C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<75))
endfunction
function Trig_Android_13_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A00N',GetLevelingUnit())+(GetUnitAbilityLevelSwapped('A01U',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A02O',GetLevelingUnit())))
if(Trig_Android_13_gains_level_Func003C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[5]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[5])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[5]*(3.85*I2R(udg_integers03[5])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[5]*(3.85*I2R(udg_integers03[5])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[5]*(3.85*I2R(udg_integers03[5])))))
set udg_integers03[5]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Android_14_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<75))
endfunction
function Trig_Android_14_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A00N',GetLevelingUnit())+(GetUnitAbilityLevelSwapped('A01U',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A02O',GetLevelingUnit())))
if(Trig_Android_14_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[14]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[14])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[5]*(3.85*I2R(udg_integers03[14])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[5]*(3.85*I2R(udg_integers03[14])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[5]*(3.85*I2R(udg_integers03[14])))))
set udg_integers03[14]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Android_15_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<75))
endfunction
function Trig_Android_15_gains_level_Actions takes nothing returns nothing
set udg_integer14=(GetUnitAbilityLevelSwapped('A00N',GetLevelingUnit())+(GetUnitAbilityLevelSwapped('A01U',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A02O',GetLevelingUnit())))
if(Trig_Android_15_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[15]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[15])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[5]*(4.00*I2R(udg_integers03[15])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[5]*(4.00*I2R(udg_integers03[15])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[5]*(4.00*I2R(udg_integers03[15])))))
set udg_integers03[15]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Disable_exp_13_Func001Func001C takes nothing returns boolean
return((GetHeroLevel(udg_unit68)>=20))and((udg_reals01[5]==1.00))
endfunction
function Trig_Disable_exp_13_Func001Func002C takes nothing returns boolean
return((GetHeroLevel(udg_unit68)>=35))and((udg_reals01[5]==2.00))
endfunction
function Trig_Disable_exp_13_Func001C takes nothing returns boolean
return(Trig_Disable_exp_13_Func001Func001C())or(Trig_Disable_exp_13_Func001Func002C())
endfunction
function Trig_Disable_exp_13_Conditions takes nothing returns boolean
return(Trig_Disable_exp_13_Func001C())
endfunction
function Trig_Disable_exp_13_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SuspendHeroXPBJ(false,GetTriggerUnit())
endfunction
function Trig_Disable_exp_14_Func003Func001C takes nothing returns boolean
return((GetHeroLevel(udg_unit85)>=20))and((udg_reals01[5]==1.00))
endfunction
function Trig_Disable_exp_14_Func003Func002C takes nothing returns boolean
return((GetHeroLevel(udg_unit85)>=35))and((udg_reals01[5]==2.00))
endfunction
function Trig_Disable_exp_14_Func003C takes nothing returns boolean
return(Trig_Disable_exp_14_Func003Func001C())or(Trig_Disable_exp_14_Func003Func002C())
endfunction
function Trig_Disable_exp_14_Conditions takes nothing returns boolean
return(Trig_Disable_exp_14_Func003C())
endfunction
function Trig_Disable_exp_14_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SuspendHeroXPBJ(false,GetTriggerUnit())
endfunction
function Trig_Disable_exp_15_Func003Func001C takes nothing returns boolean
return((GetHeroLevel(udg_unit70)>=20))and((udg_reals01[5]==1.00))
endfunction
function Trig_Disable_exp_15_Func003Func002C takes nothing returns boolean
return((GetHeroLevel(udg_unit70)>=35))and((udg_reals01[5]==2.00))
endfunction
function Trig_Disable_exp_15_Func003C takes nothing returns boolean
return(Trig_Disable_exp_15_Func003Func001C())or(Trig_Disable_exp_15_Func003Func002C())
endfunction
function Trig_Disable_exp_15_Conditions takes nothing returns boolean
return(Trig_Disable_exp_15_Func003C())
endfunction
function Trig_Disable_exp_15_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SuspendHeroXPBJ(false,GetTriggerUnit())
endfunction
function Trig_Revive_13_14_15_Func009C takes nothing returns boolean
return((GetDyingUnit()==udg_unit68))or((GetDyingUnit()==udg_unit85))or((GetDyingUnit()==udg_unit70))
endfunction
function Trig_Revive_13_14_15_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect98,GetDyingUnit())==false))and((IsUnitAliveBJ(udg_unit98)))and(Trig_Revive_13_14_15_Func009C())
endfunction
function Trig_Revive_13_14_15_Actions takes nothing returns nothing
call DisplayTextToForce(bj_FORCE_PLAYER[4],"TRIGSTR_6727")
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[4],GetUnitLoc(udg_unit98),30.00,2,100,100.00,0.00)
call TriggerSleepAction(30.00)
call DisplayTextToForce(bj_FORCE_PLAYER[4],"TRIGSTR_6728")
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_rect153),2.00)
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect153),false)
endfunction
function Trig_Computer_Dies_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUnitOwner(udg_unit99,Player(14),false)
call KillUnit(udg_unit99)
call TriggerSleepAction(3.00)
call RemoveUnit(udg_unit99)
endfunction
function Trig_Programmed_Androids_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit68)>=20))and((GetHeroLevel(udg_unit85)>=20))and((GetHeroLevel(udg_unit70)>=20))
endfunction
function Trig_Programmed_Androids_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
set udg_reals01[5]=2.00
set udg_reals02[5]=2.00
call TriggerExecute(udg_trigger521)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit68),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,40.00,0)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit68,"Abilities\\Spells\\Orc\\HealingWave\\HealingWaveTarget.mdl")
call TriggerExecute(udg_trigger620)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit85),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,40.00,0)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit85,"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")
call TriggerExecute(udg_trigger620)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit70),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,40.00,0)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit70,"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call TriggerExecute(udg_trigger620)
call DisplayTextToForce(bj_FORCE_PLAYER[4],"TRIGSTR_6526")
call TriggerSleepAction(2)
call DisplayTextToForce(bj_FORCE_PLAYER[4],"TRIGSTR_6527")
call SuspendHeroXPBJ(true,udg_unit68)
call SuspendHeroXPBJ(true,udg_unit85)
call SuspendHeroXPBJ(true,udg_unit70)
call EnableTrigger(udg_trigger509)
call EnableTrigger(udg_trigger510)
call EnableTrigger(udg_trigger511)
endfunction
function Trig_Android_13_Help_Func001Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit65)==Player(4)))or((GetOwningPlayer(udg_unit71)==Player(4)))
endfunction
function Trig_Android_13_Help_Func001C takes nothing returns boolean
return(Trig_Android_13_Help_Func001Func001C())
endfunction
function Trig_Android_13_Help_Actions takes nothing returns nothing
if(Trig_Android_13_Help_Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],10.00,"TRIGSTR_4168")
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],12.00,"TRIGSTR_4166")
endif
endfunction
function Trig_Android_13_Help_skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[4],10.00,"TRIGSTR_6630")
endfunction
function Trig_Android_14_Absorbed_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit85)>=35))and((GetHeroLevel(udg_unit68)>=35))and((RectContainsUnit(udg_rect99,udg_unit68)==false))and((RectContainsUnit(udg_rect99,udg_unit85)==false))
endfunction
function Trig_Android_14_Absorbed_Func031C takes nothing returns boolean
return((udg_integer09>1))
endfunction
function Trig_Android_14_Absorbed_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit85),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,40.00,0)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit68),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,40.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit68),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit85),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call PauseUnit(udg_unit68,true)
call PauseUnit(udg_unit85,true)
call SuspendHeroXPBJ(true,udg_unit68)
call AddHeroXPSwapped(GetHeroXP(udg_unit85),udg_unit68,false)
call SuspendHeroXPBJ(false,udg_unit68)
call ModifyHeroStat(0,udg_unit68,0,(GetHeroStatBJ(0,udg_unit85,false)-((GetHeroLevel(udg_unit68)-GetHeroLevel(udg_unit85))*8)))
call ModifyHeroStat(1,udg_unit68,0,(GetHeroStatBJ(1,udg_unit85,false)-((GetHeroLevel(udg_unit68)-GetHeroLevel(udg_unit85))*8)))
call ModifyHeroStat(2,udg_unit68,0,(GetHeroStatBJ(2,udg_unit85,false)-((GetHeroLevel(udg_unit68)-GetHeroLevel(udg_unit85))*8)))
set udg_unit18=udg_unit85
set udg_unit19=udg_unit68
call TriggerExecute(udg_trigger613)
call PolledWait(2.00)
call PauseUnit(udg_unit68,false)
call RemoveUnit(udg_unit85)
set udg_integer09=(udg_integer09+1)
if(Trig_Android_14_Absorbed_Func031C())then
call TriggerExecute(udg_trigger519)
endif
endfunction
function Trig_Android_15_Absorbed_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit70)>=35))and((GetHeroLevel(udg_unit68)>=35))and((RectContainsUnit(udg_rect99,udg_unit68)==false))and((RectContainsUnit(udg_rect99,udg_unit70)==false))
endfunction
function Trig_Android_15_Absorbed_Func031C takes nothing returns boolean
return((udg_integer09>1))
endfunction
function Trig_Android_15_Absorbed_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit70),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,40.00,0)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit68),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,40.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit68),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit70),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call TriggerExecute(udg_trigger620)
call PauseUnit(udg_unit68,true)
call PauseUnit(udg_unit70,true)
call SuspendHeroXPBJ(true,udg_unit68)
call AddHeroXPSwapped(GetHeroXP(udg_unit70),udg_unit68,false)
call SuspendHeroXPBJ(false,udg_unit68)
call ModifyHeroStat(0,udg_unit68,0,(GetHeroStatBJ(0,udg_unit70,false)-((GetHeroLevel(udg_unit68)-GetHeroLevel(udg_unit70))*8)))
call ModifyHeroStat(1,udg_unit68,0,(GetHeroStatBJ(1,udg_unit70,false)-((GetHeroLevel(udg_unit68)-GetHeroLevel(udg_unit70))*8)))
call ModifyHeroStat(2,udg_unit68,0,(GetHeroStatBJ(2,udg_unit70,false)-((GetHeroLevel(udg_unit68)-GetHeroLevel(udg_unit70))*8)))
set udg_unit18=udg_unit70
set udg_unit19=udg_unit68
call TriggerExecute(udg_trigger613)
call PolledWait(2.00)
call PauseUnit(udg_unit68,false)
call RemoveUnit(udg_unit70)
set udg_integer09=(udg_integer09+1)
if(Trig_Android_15_Absorbed_Func031C())then
call TriggerExecute(udg_trigger519)
endif
endfunction
function Trig_Super_13_Born_Actions takes nothing returns nothing
call KillUnit(udg_unit98)
call DisableTrigger(udg_trigger512)
call PanCameraToTimedLocForPlayer(Player(4),GetUnitLoc(udg_unit68),2.00)
call DisplayTextToForce(bj_FORCE_PLAYER[4],"TRIGSTR_4176")
call PolledWait(2)
call SetUnitPositionLoc(udg_unit65,GetUnitLoc(udg_unit68))
call SetUnitOwner(udg_unit65,Player(4),true)
call SetHeroLevelBJ(udg_unit65,GetHeroLevel(udg_unit68),false)
call ModifyHeroStat(0,udg_unit68,2,R2I((I2R(GetHeroStatBJ(0,udg_unit68,false))/udg_reals02[5])))
call ModifyHeroStat(1,udg_unit68,2,R2I((I2R(GetHeroStatBJ(1,udg_unit68,false))/udg_reals01[5])))
call ModifyHeroStat(2,udg_unit68,2,R2I((I2R(GetHeroStatBJ(2,udg_unit68,false))/udg_reals01[5])))
call ModifyHeroStat(0,udg_unit65,2,(GetHeroStatBJ(0,udg_unit68,false)+24))
call ModifyHeroStat(1,udg_unit65,2,(GetHeroStatBJ(1,udg_unit68,false)+24))
call ModifyHeroStat(2,udg_unit65,2,(GetHeroStatBJ(2,udg_unit68,false)+24))
set udg_reals01[5]=2.50
set udg_reals02[5]=3.00
call TriggerExecute(udg_trigger522)
set udg_unit18=udg_unit68
set udg_unit19=udg_unit65
call TriggerExecute(udg_trigger613)
call TerrainDeformationRippleBJ(10.00,false,GetUnitLoc(udg_unit65),1024,1024,64,1,512)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit65),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,40.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit65),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call RemoveUnit(udg_unit68)
call SetPlayerName(Player(4),"TRIGSTR_4237")
call PolledWait(12.00)
call DisplayTextToForce(bj_FORCE_PLAYER[4],"TRIGSTR_4177")
endfunction
function Trig_Ultra_13_Upgrade_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit65)>=135))and((RectContainsUnit(udg_rect99,udg_unit65)==false))
endfunction
function Trig_Ultra_13_Upgrade_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetPlayerName(Player(4),"TRIGSTR_4238")
call DisplayTextToForce(bj_FORCE_PLAYER[4],"TRIGSTR_4179")
call TerrainDeformationRippleBJ(10.00,false,GetUnitLoc(udg_unit65),1024,1024,64,1,512)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit65),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,50.00,40.00,0)
call AddSpecialEffectTargetUnitBJ("head",udg_unit71,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit65),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit65),"Units\\NightElf\\Wisp\\WispExplode.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit71,GetUnitLoc(udg_unit65))
call SetUnitOwner(udg_unit71,Player(4),true)
call SetHeroLevelBJ(udg_unit71,GetHeroLevel(udg_unit65),false)
call ModifyHeroStat(0,udg_unit65,2,R2I((I2R(GetHeroStatBJ(0,udg_unit65,false))/udg_reals02[5])))
call ModifyHeroStat(1,udg_unit65,2,R2I((I2R(GetHeroStatBJ(1,udg_unit65,false))/udg_reals01[5])))
call ModifyHeroStat(2,udg_unit65,2,R2I((I2R(GetHeroStatBJ(2,udg_unit65,false))/udg_reals01[5])))
set udg_reals01[5]=3.00
set udg_reals02[5]=3.50
call TriggerExecute(udg_trigger522)
call ModifyHeroStat(0,udg_unit71,2,(GetHeroStatBJ(0,udg_unit65,false)+75))
call ModifyHeroStat(1,udg_unit71,2,(GetHeroStatBJ(1,udg_unit65,false)+75))
call ModifyHeroStat(2,udg_unit71,2,(GetHeroStatBJ(2,udg_unit65,false)+75))
set udg_unit18=udg_unit65
set udg_unit19=udg_unit71
call TriggerExecute(udg_trigger613)
call EnableTrigger(udg_trigger523)
call RemoveUnit(udg_unit65)
endfunction
function Trig_Androids_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit68))
call ModifyHeroStat(0,udg_unit68,2,R2I((I2R(GetHeroStatBJ(0,udg_unit68,false))*udg_reals02[5])))
call ModifyHeroStat(1,udg_unit68,2,R2I((I2R(GetHeroStatBJ(1,udg_unit68,false))*udg_reals01[5])))
call ModifyHeroStat(2,udg_unit68,2,R2I((I2R(GetHeroStatBJ(2,udg_unit68,false))*udg_reals01[5])))
call SetUnitManaBJ(udg_unit68,(I2R(udg_integer14)*udg_reals01[5]))
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit85))
call ModifyHeroStat(0,udg_unit85,2,R2I((I2R(GetHeroStatBJ(0,udg_unit85,false))*udg_reals02[5])))
call ModifyHeroStat(1,udg_unit85,2,R2I((I2R(GetHeroStatBJ(1,udg_unit85,false))*udg_reals01[5])))
call ModifyHeroStat(2,udg_unit85,2,R2I((I2R(GetHeroStatBJ(2,udg_unit85,false))*udg_reals01[5])))
call SetUnitManaBJ(udg_unit85,(I2R(udg_integer14)*udg_reals01[5]))
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit70))
call ModifyHeroStat(0,udg_unit70,2,R2I((I2R(GetHeroStatBJ(0,udg_unit70,false))*udg_reals02[5])))
call ModifyHeroStat(1,udg_unit70,2,R2I((I2R(GetHeroStatBJ(1,udg_unit70,false))*udg_reals01[5])))
call ModifyHeroStat(2,udg_unit70,2,R2I((I2R(GetHeroStatBJ(2,udg_unit70,false))*udg_reals01[5])))
call SetUnitManaBJ(udg_unit70,(I2R(udg_integer14)*udg_reals01[5]))
endfunction
function Trig_Super_13_Alter_Stats_Actions takes nothing returns nothing
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit65))
call ModifyHeroStat(0,udg_unit65,2,R2I((I2R(GetHeroStatBJ(0,udg_unit65,false))*udg_reals02[5])))
call ModifyHeroStat(1,udg_unit65,2,R2I((I2R(GetHeroStatBJ(1,udg_unit65,false))*udg_reals01[5])))
call ModifyHeroStat(2,udg_unit65,2,R2I((I2R(GetHeroStatBJ(2,udg_unit65,false))*udg_reals01[5])))
call SetUnitManaBJ(udg_unit65,(I2R(udg_integer14)*udg_reals01[5]))
endfunction
function Trig_Ultra_13_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("head",udg_unit71,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.30)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit71,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.30)
call AddSpecialEffectTargetUnitBJ("hand left",udg_unit71,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectTargetUnitBJ("hand right",udg_unit71,"Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Babidi_or_Buu_gains_level_Func001Func001Func001Func001Func003C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<81))
endfunction
function Trig_Babidi_or_Buu_gains_level_Func001Func001Func001Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit79))
endfunction
function Trig_Babidi_or_Buu_gains_level_Func001Func001Func001Func004C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<81))
endfunction
function Trig_Babidi_or_Buu_gains_level_Func001Func001Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit75))
endfunction
function Trig_Babidi_or_Buu_gains_level_Func001Func001Func004C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<84))
endfunction
function Trig_Babidi_or_Buu_gains_level_Func001Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit76))
endfunction
function Trig_Babidi_or_Buu_gains_level_Func001Func003C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<30))
endfunction
function Trig_Babidi_or_Buu_gains_level_Func001C takes nothing returns boolean
return((GetLevelingUnit()==udg_unit34))
endfunction
function Trig_Babidi_or_Buu_gains_level_Actions takes nothing returns nothing
if(Trig_Babidi_or_Buu_gains_level_Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A007',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A011',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A03E',GetLevelingUnit()))+GetUnitAbilityLevelSwapped('A02F',GetLevelingUnit())))
if(Trig_Babidi_or_Buu_gains_level_Func001Func003C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
else
if(Trig_Babidi_or_Buu_gains_level_Func001Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A01C',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A01F',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A01L',GetLevelingUnit()))+(GetUnitAbilityLevelSwapped('A019',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A02U',GetLevelingUnit()))))
if(Trig_Babidi_or_Buu_gains_level_Func001Func001Func004C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
else
if(Trig_Babidi_or_Buu_gains_level_Func001Func001Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A02P',GetLevelingUnit())+((GetUnitAbilityLevelSwapped('A01E',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A01D',GetLevelingUnit()))+GetUnitAbilityLevelSwapped('A019',GetLevelingUnit())))
if(Trig_Babidi_or_Buu_gains_level_Func001Func001Func001Func004C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
else
if(Trig_Babidi_or_Buu_gains_level_Func001Func001Func001Func001C())then
set udg_integer14=(GetUnitAbilityLevelSwapped('A019',GetLevelingUnit())+(GetUnitAbilityLevelSwapped('A01D',GetLevelingUnit())+(GetUnitAbilityLevelSwapped('A01E',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A02U',GetLevelingUnit()))))
if(Trig_Babidi_or_Buu_gains_level_Func001Func001Func001Func001Func003C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
endif
endif
endif
endif
set udg_integers03[8]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[8])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[8]*(4.00*I2R(udg_integers03[8])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[8]*(4.00*I2R(udg_integers03[8])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[8]*(4.00*I2R(udg_integers03[8])))))
set udg_integers03[8]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Summon_Dabura_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetSummonedUnit())=='H022'))
endfunction
function Trig_Summon_Dabura_Actions takes nothing returns nothing
call ModifyHeroStat(0,GetSummonedUnit(),2,(GetHeroStatBJ(0,udg_unit34,false)*2))
call ModifyHeroStat(1,GetSummonedUnit(),2,(GetHeroStatBJ(1,udg_unit34,false)*2))
call ModifyHeroStat(2,GetSummonedUnit(),2,(GetHeroStatBJ(2,udg_unit34,false)*2))
call SetHeroLevelBJ(GetSummonedUnit(),GetHeroLevel(GetSummonedUnit()),false)
call SuspendHeroXPBJ(false,GetSummonedUnit())
endfunction
function Trig_Haretsu_no_Maho_Func003C takes nothing returns boolean
return((GetOwningPlayer(GetSpellTargetUnit())==Player(12)))or((GetOwningPlayer(GetSpellTargetUnit())==Player(15)))
endfunction
function Trig_Haretsu_no_Maho_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02F'))and(Trig_Haretsu_no_Maho_Func003C())
endfunction
function Trig_Haretsu_no_Maho_Actions takes nothing returns nothing
call SetWidgetLife(GetSpellTargetUnit(),1.00)
endfunction
function Trig_Candy_Monsters_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetSpellTargetUnit())==Player(12)))and((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=12000.00))and((GetSpellAbilityId()=='A02P'))
endfunction
function Trig_Candy_Monsters_Actions takes nothing returns nothing
set udg_location08=GetSpellTargetLoc()
call AddSpecialEffectLocBJ(udg_location08,"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call CreateItemLoc('I00W',udg_location08)
call RemoveLocation(udg_location08)
call KillUnit(GetSpellTargetUnit())
endfunction
function Trig_Candy_Humans_Func002001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n017')
endfunction
function Trig_Candy_Humans_Func002002001 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n016')
endfunction
function Trig_Candy_Humans_Func002002002 takes nothing returns boolean
return(GetUnitTypeId(GetSpellTargetUnit())=='n018')
endfunction
function Trig_Candy_Humans_Func002002 takes nothing returns boolean
return GetBooleanOr(Trig_Candy_Humans_Func002002001(),Trig_Candy_Humans_Func002002002())
endfunction
function Trig_Candy_Humans_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Candy_Humans_Func002001(),Trig_Candy_Humans_Func002002()))and((GetSpellAbilityId()=='A02P'))
endfunction
function Trig_Candy_Humans_Actions takes nothing returns nothing
set udg_location08=GetSpellTargetLoc()
call AddSpecialEffectLocBJ(udg_location08,"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call CreateItemLoc('I00V',udg_location08)
call RemoveLocation(udg_location08)
call KillUnit(GetSpellTargetUnit())
endfunction
function Trig_Help_update_Buu_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit34)==35))
endfunction
function Trig_Help_update_Buu_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],5.00,"TRIGSTR_336")
endfunction
function Trig_Buu_Help_Func001Func003Func001Func003Func001C takes nothing returns boolean
return((GetHeroLevel(udg_unit34)<35))
endfunction
function Trig_Buu_Help_Func001Func003Func001Func003C takes nothing returns boolean
return((GetOwningPlayer(udg_unit76)==Player(7)))
endfunction
function Trig_Buu_Help_Func001Func003Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit80)==Player(7)))
endfunction
function Trig_Buu_Help_Func001Func003C takes nothing returns boolean
return((GetOwningPlayer(udg_unit75)==Player(7)))
endfunction
function Trig_Buu_Help_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit79)==Player(7)))
endfunction
function Trig_Buu_Help_Actions takes nothing returns nothing
if(Trig_Buu_Help_Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],8.00,"TRIGSTR_6576")
else
if(Trig_Buu_Help_Func001Func003C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],8.00,"TRIGSTR_6575")
else
if(Trig_Buu_Help_Func001Func003Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],8.00,"TRIGSTR_6634")
else
if(Trig_Buu_Help_Func001Func003Func001Func003C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],8.00,"TRIGSTR_6574")
else
if(Trig_Buu_Help_Func001Func003Func001Func003Func001C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],10.00,"TRIGSTR_6571")
else
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],10.00,"TRIGSTR_6573")
endif
endif
endif
endif
endif
endfunction
function Trig_Buu_Help_skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],10.00,"TRIGSTR_6633")
endfunction
function Trig_Create_Collect_Leaderboard_Actions takes nothing returns nothing
set udg_leaderboard01=CreateLeaderboardBJ(bj_FORCE_PLAYER[7],"TRIGSTR_314")
call LeaderboardAddItemBJ(Player(7),bj_lastCreatedLeaderboard,"TRIGSTR_315",udg_integer02)
endfunction
function Trig_Update_Collect_Babidi_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetKillingUnit())==Player(7)))and((GetOwningPlayer(GetDyingUnit())==Player(12)))
endfunction
function Trig_Update_Collect_Babidi_Func004001 takes nothing returns boolean
return(udg_integer02>=250)
endfunction
function Trig_Update_Collect_Babidi_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer02=(udg_integer02+1)
call LeaderboardSetPlayerItemValueBJ(Player(7),bj_lastCreatedLeaderboard,udg_integer02)
if(Trig_Update_Collect_Babidi_Func004001())then
call TriggerExecute(udg_trigger535)
else
call EnableTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_Update_Collect_Vegeta_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetKillingUnit())==GetOwningPlayer(udg_unit26)))and((GetOwningPlayer(GetDyingUnit())==Player(12)))and((UnitHasItem(udg_unit26,udg_item19)))
endfunction
function Trig_Update_Collect_Vegeta_Func004001 takes nothing returns boolean
return(udg_integer02>=250)
endfunction
function Trig_Update_Collect_Vegeta_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_integer02=(udg_integer02+1)
call LeaderboardSetPlayerItemValueBJ(Player(7),bj_lastCreatedLeaderboard,udg_integer02)
if(Trig_Update_Collect_Vegeta_Func004001())then
call TriggerExecute(udg_trigger535)
else
call EnableTrigger(GetTriggeringTrigger())
endif
endfunction
function Trig_Collecting_Finished_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger533)
call DisableTrigger(udg_trigger534)
call DestroyLeaderboard(udg_leaderboard01)
call PlaySoundBJ(udg_sound38)
call TerrainDeformationRippleBJ(4.00,false,GetUnitLoc(udg_unit34),1024,1024,64,1,512)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],5.00,"TRIGSTR_3862")
call SetUnitInvulnerable(udg_unit34,true)
call SetUnitInvulnerable(udg_unit76,true)
call SetUserControlForceOff(bj_FORCE_PLAYER[7])
call TriggerSleepAction(3.00)
call TriggerExecute(udg_trigger537)
endfunction
function Trig_Invade_Vegeta_mind_Conditions takes nothing returns boolean
return((GetHeroLevel(udg_unit34)>=35))
endfunction
function Trig_Invade_Vegeta_mind_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForceAddPlayer(udg_force02,Player(1))
call ForceAddPlayer(udg_force02,Player(7))
call DisplayTimedTextToForce(udg_force02,3.00,"TRIGSTR_316")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(udg_force02,5.00,"TRIGSTR_317")
call TriggerSleepAction(5.00)
call DisplayTimedTextToForce(udg_force02,3.00,"TRIGSTR_330")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(udg_force02,5.00,"TRIGSTR_331")
call TriggerSleepAction(5.40)
call DisplayTimedTextToForce(udg_force02,3.00,"TRIGSTR_332")
call TriggerSleepAction(3.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit26,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(udg_force02,3.00,"TRIGSTR_333")
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit26),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,70.00,80.00,0)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit26),"Abilities\\Spells\\NightElf\\Starfall\\StarfallCaster.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound20,100,GetUnitLoc(udg_unit26),0)
call TerrainDeformationRippleBJ(4.00,false,GetUnitLoc(udg_unit26),1024,1024,64,1,512)
call SetPlayerAllianceStateBJ(Player(7),Player(1),2)
call SetPlayerAllianceStateBJ(Player(1),Player(7),4)
call EnableTrigger(udg_trigger547)
set udg_unit18=udg_unit26
call TriggerExecute(udg_trigger612)
call UnitAddItem(udg_unit26,udg_item19)
call DisplayTimedTextToForce(udg_force02,3.00,"TRIGSTR_334")
call TriggerSleepAction(3.00)
call SetUserControlForceOn(udg_force02)
call ForceClear(udg_force02)
call EnableTrigger(udg_trigger534)
endfunction
function Trig_Fatbuu_Release_Actions takes nothing returns nothing
call SetPlayerName(Player(7),"TRIGSTR_1246")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit76,UnitItemInSlotBJ(udg_unit34,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPositionLoc(udg_unit34,GetRectCenter(udg_rect03))
call SetUnitInvulnerable(udg_unit34,true)
call SetUnitInvulnerable(udg_unit76,true)
call SetUserControlForceOff(bj_FORCE_PLAYER[7])
call CameraSetupApplyForPlayer(true,udg_camerasetup06,Player(7),0)
call SetCameraFieldForPlayer(Player(7),CAMERA_FIELD_FIELD_OF_VIEW,120.00,45.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],5.00,"TRIGSTR_318")
call TriggerSleepAction(5.00)
call SetUnitFacingToFaceUnitTimed(udg_unit34,udg_unit49,1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_319")
call TriggerSleepAction(1.50)
call SetUnitAnimation(udg_unit34,"attack")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call KillUnit(udg_unit49)
call SetHeroLevelBJ(udg_unit76,GetUnitLevel(udg_unit34),false)
call TriggerSleepAction(3.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundOnUnitBJ(udg_sound39,100,udg_unit49)
call TriggerSleepAction(0.80)
call SetUnitScalePercent(udg_unit76,20.00,20.00,20.00)
call SetUnitPositionLoc(udg_unit76,GetRectCenter(udg_rect08))
call SetUnitOwner(udg_unit76,Player(7),true)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect87),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call SetUnitScalePercent(udg_unit76,25.00,25.00,25.00)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect86),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect85),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call SetUnitScalePercent(udg_unit76,30.00,30.00,30.00)
call TriggerSleepAction(3.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect87),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call SetUnitScalePercent(udg_unit76,35.00,35.00,35.00)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect86),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect85),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call SetUnitScalePercent(udg_unit76,40.00,40.00,40.00)
call TriggerSleepAction(3.00)
call SetUnitScalePercent(udg_unit76,50.00,50.00,50.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect87),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call SetUnitScalePercent(udg_unit76,60.00,60.00,60.00)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect86),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect85),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call SetUnitScalePercent(udg_unit76,70.00,70.00,70.00)
call TriggerSleepAction(3.00)
call SetUnitScalePercent(udg_unit76,80.00,80.00,80.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect87),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call SetUnitScalePercent(udg_unit76,90.00,90.00,90.00)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect86),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call SetUnitScalePercent(udg_unit76,100.00,100.00,100.00)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect85),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(3.00)
call SetUnitScalePercent(udg_unit76,110.00,110.00,110.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.20)
call SetUnitScalePercent(udg_unit76,120.00,120.00,120.00)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect87),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call SetUnitScalePercent(udg_unit76,130.00,130.00,130.00)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect86),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call TriggerSleepAction(0.20)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect08),"Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl")
call TriggerExecute(udg_trigger620)
call CreateNUnitsAtLocFacingLocBJ(1,'n01F',Player(7),GetRectCenter(udg_rect85),GetRectCenter(udg_rect08))
call IssuePointOrderLoc(bj_lastCreatedUnit,"move",GetRectCenter(udg_rect08))
call SetUnitScalePercent(udg_unit76,145.00,145.00,145.00)
call TriggerSleepAction(2)
call StopSoundBJ(udg_sound39,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],2.00,"TRIGSTR_320")
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_321")
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_322")
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_323")
call SetUnitFacingToFaceUnitTimed(udg_unit76,udg_unit34,1.00)
call TriggerSleepAction(0.40)
call SetUnitAnimation(udg_unit76,"attack")
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit34),"Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl")
call TriggerExecute(udg_trigger620)
call PlaySoundAtPointBJ(udg_sound22,100,GetUnitLoc(udg_unit34),0)
call KillUnit(udg_unit34)
call ModifyHeroStat(0,udg_unit76,2,(GetHeroStatBJ(0,udg_unit34,false)+40))
call ModifyHeroStat(1,udg_unit76,2,(GetHeroStatBJ(1,udg_unit34,false)+40))
call ModifyHeroStat(2,udg_unit76,2,(GetHeroStatBJ(2,udg_unit34,false)+40))
set udg_reals01[8]=2.50
set udg_reals02[8]=2.50
call TriggerExecute(udg_trigger546)
call TriggerSleepAction(1.00)
call RemoveUnit(udg_unit34)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_324")
call TriggerSleepAction(2.00)
call SetUnitPositionLocFacingLocBJ(udg_unit76,GetRectCenter(udg_rect12),GetRectCenter(udg_rect13))
call ResetToGameCameraForPlayer(Player(7),0.50)
call TriggerSleepAction(0.50)
call PanCameraToTimedLocForPlayer(Player(7),GetRectCenter(udg_rect12),0.50)
call SetUserControlForceOn(bj_FORCE_PLAYER[7])
call SetUnitInvulnerable(udg_unit76,false)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_464")
call TriggerExecute(udg_trigger539)
call TriggerExecute(udg_trigger529)
endfunction
function Trig_Fatbuu_Release_Extra_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetEnteringUnit())=='n01F'))
endfunction
function Trig_Fatbuu_Release_Extra_Actions takes nothing returns nothing
call TriggerSleepAction(0.80)
call RemoveUnit(GetEnteringUnit())
endfunction
function Trig_End_Majin_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger547)
call SetPlayerAllianceStateBJ(Player(1),Player(7),0)
call SetPlayerAllianceStateBJ(Player(7),Player(1),0)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],5.00,"TRIGSTR_335")
call SetItemPositionLoc(udg_item19,GetRectCenter(udg_rect09))
endfunction
function Trig_Fat_Buu_Split_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect99,udg_unit76)==false))and((GetOwningPlayer(udg_unit76)==Player(7)))and((GetHeroLevel(udg_unit76)>=90))
endfunction
function Trig_Fat_Buu_Split_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PauseUnit(udg_unit76,true)
call SetUnitInvulnerable(udg_unit76,true)
call SetUnitInvulnerable(udg_unit80,true)
call PanCameraToTimedLocForPlayer(Player(7),GetUnitLoc(udg_unit76),1.00)
call SetUserControlForceOff(bj_FORCE_PLAYER[7])
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],5.00,"TRIGSTR_338")
call TriggerSleepAction(5.00)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit76,"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(2)
call SelectHeroSkill(udg_unit80,'A02P')
call SetUnitOwner(udg_unit80,Player(7),false)
call SetHeroLevelBJ(udg_unit80,GetUnitLevel(udg_unit76),false)
call ModifyHeroStat(0,udg_unit80,2,(GetHeroStatBJ(0,udg_unit76,false)+40))
call ModifyHeroStat(1,udg_unit80,2,(GetHeroStatBJ(1,udg_unit76,false)+40))
call ModifyHeroStat(2,udg_unit80,2,(GetHeroStatBJ(2,udg_unit76,false)+40))
call ModifyHeroStat(0,udg_unit76,2,R2I((I2R(GetHeroStatBJ(0,udg_unit76,false))/udg_reals02[8])))
call ModifyHeroStat(1,udg_unit76,2,R2I((I2R(GetHeroStatBJ(1,udg_unit76,false))/udg_reals01[8])))
call ModifyHeroStat(2,udg_unit76,2,R2I((I2R(GetHeroStatBJ(2,udg_unit76,false))/udg_reals01[8])))
call SetUnitOwner(udg_unit76,Player(14),false)
call SetUnitPositionLoc(udg_unit80,GetUnitLoc(udg_unit76))
call AddSpecialEffectTargetUnitBJ("chest",udg_unit80,"Units\\Undead\\Abomination\\AbominationExplosion.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitFacingToFaceUnitTimed(udg_unit76,udg_unit80,1.00)
call SetUnitFacingToFaceUnitTimed(udg_unit80,udg_unit76,1.00)
call PauseUnit(udg_unit80,true)
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_339")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_340")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_348")
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],2.00,"TRIGSTR_349")
call TriggerSleepAction(2.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],5.00,"TRIGSTR_341")
call TriggerSleepAction(4.00)
call SetUserControlForceOn(bj_FORCE_PLAYER[7])
call SetPlayerName(Player(7),"TRIGSTR_6388")
call PauseUnit(udg_unit80,false)
call PauseUnit(udg_unit76,false)
call SetUnitInvulnerable(udg_unit76,false)
call SetUnitInvulnerable(udg_unit80,false)
call UnitAddAbility(udg_unit76,'A01S')
call TriggerExecute(udg_trigger529)
endfunction
function Trig_Fat_Buu_Split_Part_two_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit76)<=1500.00))and((GetSpellTargetUnit()==udg_unit76))
endfunction
function Trig_Fat_Buu_Split_Part_two_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit75,UnitItemInSlotBJ(udg_unit76,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitInvulnerable(udg_unit75,true)
call SetUnitInvulnerable(udg_unit76,true)
call SetUnitInvulnerable(udg_unit80,true)
call SetUserControlForceOff(bj_FORCE_PLAYER[7])
call PauseUnit(udg_unit75,true)
call PauseUnit(udg_unit76,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_342")
call TriggerSleepAction(0.50)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit76),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.50)
call SetUnitOwner(udg_unit76,Player(15),false)
call SetItemPositionLoc(udg_item05,GetUnitLoc(udg_unit76))
call SetUnitPositionLoc(udg_unit76,GetRectCenter(udg_rect09))
call TriggerSleepAction(2.00)
call IssuePointOrderLoc(udg_unit80,"move",GetItemLoc(udg_item05))
call TriggerSleepAction(0.50)
call RemoveItem(udg_item05)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit80),"Abilities\\Spells\\Items\\AIim\\AIimTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.50)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit80),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(2.00)
call SetUnitPositionLoc(udg_unit75,GetUnitLoc(udg_unit80))
call SetUnitOwner(udg_unit75,Player(7),false)
call SetUnitOwner(udg_unit80,Player(15),false)
call SetUnitPositionLoc(udg_unit80,GetRectCenter(udg_rect09))
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit75),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,70.00,80.00,0)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_343")
call PauseUnit(udg_unit75,false)
call SetUnitInvulnerable(udg_unit76,false)
call SetUnitInvulnerable(udg_unit80,false)
call SetUnitInvulnerable(udg_unit75,false)
call SetUserControlForceOn(bj_FORCE_PLAYER[7])
call SetPlayerName(Player(7),"TRIGSTR_1247")
call SetHeroLevelBJ(udg_unit75,GetUnitLevel(udg_unit80),false)
call ModifyHeroStat(0,udg_unit75,2,(GetHeroStatBJ(0,udg_unit80,false)+50))
call ModifyHeroStat(1,udg_unit75,2,(GetHeroStatBJ(1,udg_unit80,false)+50))
call ModifyHeroStat(2,udg_unit75,2,(GetHeroStatBJ(2,udg_unit80,false)+50))
call ModifyHeroStat(0,udg_unit75,2,R2I((I2R(GetHeroStatBJ(0,udg_unit75,false))/udg_reals02[8])))
call ModifyHeroStat(1,udg_unit75,2,R2I((I2R(GetHeroStatBJ(1,udg_unit75,false))/udg_reals01[8])))
call ModifyHeroStat(2,udg_unit75,2,R2I((I2R(GetHeroStatBJ(2,udg_unit75,false))/udg_reals01[8])))
set udg_reals01[8]=3.00
set udg_reals02[8]=3.00
call TriggerExecute(udg_trigger546)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],20.00,"TRIGSTR_362")
endfunction
function Trig_Run_Escape_buu_Conditions takes nothing returns boolean
return((udg_integer03>=50))and((RectContainsUnit(udg_rect99,udg_unit75)==false))
endfunction
function Trig_Run_Escape_buu_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ConditionalTriggerExecute(udg_trigger543)
endfunction
function Trig_Escape_Buu_Func011001001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(7))
endfunction
function Trig_Escape_Buu_Conditions takes nothing returns boolean
return((CountUnitsInGroup(GetUnitsInRectMatching(udg_rect50,Condition(function Trig_Escape_Buu_Func011001001002)))>0))
endfunction
function Trig_Escape_Buu_Func009001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(7))
endfunction
function Trig_Escape_Buu_Func009A takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnumUnit()),GetRectCenter(udg_rect24),0)
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect24))
endfunction
function Trig_Escape_Buu_Actions takes nothing returns nothing
call DestroyLeaderboard(udg_leaderboard01)
call SetUserControlForceOff(bj_FORCE_PLAYER[7])
call PanCameraToTimedLocForPlayer(Player(7),GetRectCenter(udg_rect56),1.00)
call PauseUnit(udg_unit75,true)
call SetUnitPositionLoc(udg_unit75,GetRectCenter(udg_rect56))
call DisableTrigger(udg_trigger554)
call DisableTrigger(udg_trigger550)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"TRIGSTR_422")
call ForGroupBJ(GetUnitsInRectMatching(udg_rect50,Condition(function Trig_Escape_Buu_Func009001002)),function Trig_Escape_Buu_Func009A)
call TriggerExecute(udg_trigger544)
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func003001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(7))
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func003A takes nothing returns nothing
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetEnumUnit()),udg_unit75,0,0,false)
call SetUnitInvulnerable(GetEnumUnit(),true)
call PauseUnit(GetEnumUnit(),true)
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func011001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(7))
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func011002 takes nothing returns nothing
call SetUnitFacingToFaceUnitTimed(GetEnumUnit(),udg_unit75,1.00)
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func026001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(7))
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func026002 takes nothing returns nothing
call IssuePointOrderLoc(udg_unit54,"move",GetUnitLoc(GetEnumUnit()))
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func031001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(7))
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func031002 takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func033001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(7))
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func033002 takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func036001002 takes nothing returns boolean
return(GetFilterUnit()!=udg_unit75)
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Func036002 takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect84))
endfunction
function Trig_Escaped_Saved_by_Supreme_Kai_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger548)
call SetCameraTargetControllerNoZForPlayer(Player(7),udg_unit75,0,0,false)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect24,Condition(function Trig_Escaped_Saved_by_Supreme_Kai_Func003001002)),function Trig_Escaped_Saved_by_Supreme_Kai_Func003A)
call PauseUnit(udg_unit75,true)
call PauseUnit(udg_unit79,true)
call PauseUnit(udg_unit54,false)
call PlayMusicBJ(udg_string03)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRadiusLocBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,GetRectCenter(udg_rect56),950.00)
set udg_fogmodifiers02[bj_forLoopAIndex]=bj_lastCreatedFogModifier
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"TRIGSTR_428")
call TriggerSleepAction(0.40)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect24,Condition(function Trig_Escaped_Saved_by_Supreme_Kai_Func011001002)),function Trig_Escaped_Saved_by_Supreme_Kai_Func011002)
call TriggerSleepAction(3.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"TRIGSTR_429")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect56),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3.00,"TRIGSTR_373")
call TriggerSleepAction(2)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit54,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit54,GetRectCenter(udg_rect95))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit54),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call PolledWait(0.60)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect24,Condition(function Trig_Escaped_Saved_by_Supreme_Kai_Func026001002)),function Trig_Escaped_Saved_by_Supreme_Kai_Func026002)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,2.00,"TRIGSTR_387")
call TriggerSleepAction(1.80)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit54,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect24,Condition(function Trig_Escaped_Saved_by_Supreme_Kai_Func031001002)),function Trig_Escaped_Saved_by_Supreme_Kai_Func031002)
call PolledWait(0.60)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect24,Condition(function Trig_Escaped_Saved_by_Supreme_Kai_Func033001002)),function Trig_Escaped_Saved_by_Supreme_Kai_Func033002)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit54),"Abilities\\Spells\\Undead\\ReplenishMana\\ReplenishManaCaster.mdl")
call TriggerExecute(udg_trigger620)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect24,Condition(function Trig_Escaped_Saved_by_Supreme_Kai_Func036001002)),function Trig_Escaped_Saved_by_Supreme_Kai_Func036002)
call SetUnitPositionLoc(udg_unit54,GetRectCenter(udg_rect84))
call TriggerExecute(udg_trigger545)
call PolledWait(0.60)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,2.00,"TRIGSTR_416")
call PolledWait(1.00)
endfunction
function Trig_Transformation_Func047A takes nothing returns nothing
call SetCameraTargetControllerNoZForPlayer(GetOwningPlayer(GetEnumUnit()),udg_unit79,0,0,false)
endfunction
function Trig_Transformation_Func071A takes nothing returns nothing
call ResetToGameCameraForPlayer(GetEnumPlayer(),1.00)
endfunction
function Trig_Transformation_Func076A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
call PauseUnit(GetEnumUnit(),false)
endfunction
function Trig_Transformation_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitAddItem(udg_unit79,UnitItemInSlotBJ(udg_unit75,bj_forLoopAIndex))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call StopMusic(true)
call PlaySoundBJ(udg_sound08)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],2.30,"TRIGSTR_432")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect56),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect56),"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],2.30,"TRIGSTR_434")
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect56),"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call SetUnitScalePercent(udg_unit75,140.00,140.00,140.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect56),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call SetUnitScalePercent(udg_unit75,138.00,146.00,138.00)
call TriggerSleepAction(0.40)
call SetUnitScalePercent(udg_unit75,146.00,136.00,128.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect56),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call SetUnitScalePercent(udg_unit75,135.00,120.00,133.00)
call TriggerSleepAction(0.40)
call SetUnitScalePercent(udg_unit75,120.00,110.00,110.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect56),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call SetUnitScalePercent(udg_unit75,99.00,105.00,99.00)
call SetUnitOwner(udg_unit75,Player(15),false)
call SetUnitOwner(udg_unit79,Player(7),false)
call SetHeroLevelBJ(udg_unit79,GetUnitLevel(udg_unit75),false)
call ModifyHeroStat(0,udg_unit75,2,R2I((I2R(GetHeroStatBJ(0,udg_unit75,false))/udg_reals02[8])))
call ModifyHeroStat(1,udg_unit75,2,R2I((I2R(GetHeroStatBJ(1,udg_unit75,false))/udg_reals01[8])))
call ModifyHeroStat(2,udg_unit75,2,R2I((I2R(GetHeroStatBJ(2,udg_unit75,false))/udg_reals01[8])))
call ModifyHeroStat(0,udg_unit79,2,(GetHeroStatBJ(0,udg_unit75,false)+50))
call ModifyHeroStat(1,udg_unit79,2,(GetHeroStatBJ(1,udg_unit75,false)+50))
call ModifyHeroStat(2,udg_unit79,2,(GetHeroStatBJ(2,udg_unit75,false)+50))
set udg_reals01[8]=3.50
set udg_reals02[8]=3.50
call TriggerExecute(udg_trigger546)
call SetUnitPositionLoc(udg_unit75,GetRectCenter(udg_rect09))
call SetUnitPositionLoc(udg_unit79,GetRectCenter(udg_rect56))
call SetCameraTargetControllerNoZForPlayer(Player(7),udg_unit79,0,0,false)
call ForGroupBJ(GetUnitsInRectAll(udg_rect84),function Trig_Transformation_Func047A)
call TriggerSleepAction(4.00)
call SetPlayerName(Player(7),"TRIGSTR_1248")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,2.30,"TRIGSTR_435")
call PauseUnit(udg_unit79,false)
call IssuePointOrderLoc(udg_unit79,"move",GetRectCenter(udg_rect72))
call TriggerSleepAction(4.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,2.30,"TRIGSTR_436")
call SetUnitAnimation(udg_unit79,"victory")
call AddSpecialEffectTargetUnitBJ("chest",udg_unit79,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit79,"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect72),"Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl")
call TriggerExecute(udg_trigger620)
call TerrainDeformationRippleBJ(1.50,false,GetRectCenter(udg_rect72),1024,1024,200.00,1,512)
call SetUnitPositionLoc(udg_unit79,GetRectCenter(udg_rect81))
call PanCameraToTimedLocForPlayer(Player(7),GetRectCenter(udg_rect81),1.00)
call TriggerSleepAction(1.00)
call SetUserControlForceOn(bj_FORCE_PLAYER[7])
call PingMinimapLocForForceEx(bj_FORCE_ALL_PLAYERS,GetRectCenter(udg_rect72),1,2,100,0.00,0.00)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,4.00,"TRIGSTR_437")
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Transformation_Func071A)
call TriggerSleepAction(2.00)
call AddSpecialEffectTargetUnitBJ("chest",udg_unit54,"Abilities\\Spells\\Items\\AIma\\AImaTarget.mdl")
call TriggerExecute(udg_trigger620)
call SetUnitPositionLoc(udg_unit54,GetRectCenter(udg_rect96))
call ForGroupBJ(GetUnitsInRectAll(udg_rect84),function Trig_Transformation_Func076A)
endfunction
function Trig_Buu_Alter_Stats_Func001C takes nothing returns boolean
return((GetOwningPlayer(udg_unit76)==Player(7)))
endfunction
function Trig_Buu_Alter_Stats_Func002C takes nothing returns boolean
return((GetOwningPlayer(udg_unit75)==Player(7)))
endfunction
function Trig_Buu_Alter_Stats_Func003C takes nothing returns boolean
return((GetOwningPlayer(udg_unit79)==Player(7)))
endfunction
function Trig_Buu_Alter_Stats_Actions takes nothing returns nothing
if(Trig_Buu_Alter_Stats_Func001C())then
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit76))
call ModifyHeroStat(0,udg_unit76,2,R2I((I2R(GetHeroStatBJ(0,udg_unit76,false))*udg_reals02[8])))
call ModifyHeroStat(1,udg_unit76,2,R2I((I2R(GetHeroStatBJ(1,udg_unit76,false))*udg_reals01[8])))
call ModifyHeroStat(2,udg_unit76,2,R2I((I2R(GetHeroStatBJ(2,udg_unit76,false))*udg_reals01[8])))
call SetUnitManaBJ(udg_unit76,(I2R(udg_integer14)*udg_reals01[8]))
endif
if(Trig_Buu_Alter_Stats_Func002C())then
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit75))
call ModifyHeroStat(0,udg_unit75,2,R2I((I2R(GetHeroStatBJ(0,udg_unit75,false))*udg_reals02[8])))
call ModifyHeroStat(1,udg_unit75,2,R2I((I2R(GetHeroStatBJ(1,udg_unit75,false))*udg_reals01[8])))
call ModifyHeroStat(2,udg_unit75,2,R2I((I2R(GetHeroStatBJ(2,udg_unit75,false))*udg_reals01[8])))
call SetUnitManaBJ(udg_unit75,(I2R(udg_integer14)*udg_reals01[8]))
endif
if(Trig_Buu_Alter_Stats_Func003C())then
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit79))
call ModifyHeroStat(0,udg_unit79,2,R2I((I2R(GetHeroStatBJ(0,udg_unit79,false))*udg_reals02[8])))
call ModifyHeroStat(1,udg_unit79,2,R2I((I2R(GetHeroStatBJ(1,udg_unit79,false))*udg_reals01[8])))
call ModifyHeroStat(2,udg_unit79,2,R2I((I2R(GetHeroStatBJ(2,udg_unit79,false))*udg_reals01[8])))
call SetUnitManaBJ(udg_unit79,(I2R(udg_integer14)*udg_reals01[8]))
endif
endfunction
function Trig_Majin_effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit26,"Abilities\\Spells\\Demon\\DemonBoltImpact\\DemonBoltImpact.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Transformation_effect_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect56),"Abilities\\Spells\\Undead\\ReplenishHealth\\ReplenishHealthCaster.mdl")
call TriggerExecute(udg_trigger620)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect56),"Abilities\\Spells\\Human\\Polymorph\\PolyMorphTarget.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Init_Buu_Stomach_Board_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetEnteringUnit())!=Player(7)))and((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_Init_Buu_Stomach_Board_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateLeaderboardBJ(bj_FORCE_ALL_PLAYERS,"TRIGSTR_473")
call LeaderboardAddItemBJ(GetOwningPlayer(GetEnteringUnit()),bj_lastCreatedLeaderboard,GetPlayerName(GetOwningPlayer(GetEnteringUnit())),udg_integer03)
set udg_leaderboard01=bj_lastCreatedLeaderboard
call EnableTrigger(udg_trigger552)
call EnableTrigger(udg_trigger550)
endfunction
function Trig_Update_Buu_Stomach_Board_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetEnteringUnit())!=Player(7)))and((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_Update_Buu_Stomach_Board_Actions takes nothing returns nothing
call LeaderboardAddItemBJ(GetOwningPlayer(GetEnteringUnit()),udg_leaderboard01,GetPlayerName(GetOwningPlayer(GetEnteringUnit())),udg_integer03)
endfunction
function Trig_Turn_On_Spawn_cells_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetEnteringUnit())!=Player(7)))and((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))
endfunction
function Trig_Turn_On_Spawn_cells_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_trigger553)
endfunction
function Trig_Turn_Off_Spawn_cells_Func001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(7))
endfunction
function Trig_Turn_Off_Spawn_cells_Func002C takes nothing returns boolean
return((CountUnitsInGroup(udg_group05)==0))
endfunction
function Trig_Turn_Off_Spawn_cells_Actions takes nothing returns nothing
set udg_group05=GetUnitsInRectMatching(udg_rect50,Condition(function Trig_Turn_Off_Spawn_cells_Func001002002))
if(Trig_Turn_Off_Spawn_cells_Func002C())then
call LeaderboardDisplayBJ(false,udg_leaderboard01)
call DisableTrigger(udg_trigger553)
call EnableTrigger(udg_trigger551)
endif
call DestroyGroup(udg_group05)
endfunction
function Trig_Spawn_Super_Buu_cells_Func012A takes nothing returns nothing
call IssuePointOrderLoc(GetEnumUnit(),"patrol",GetRectCenter(udg_rect50))
endfunction
function Trig_Spawn_Super_Buu_cells_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'o00H',Player(7),GetRectCenter(udg_rect90),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(2.00)
call CreateNUnitsAtLoc(1,'o00H',Player(7),GetRectCenter(udg_rect67),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(2.00)
call CreateNUnitsAtLoc(1,'o00H',Player(7),GetRectCenter(udg_rect114),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',bj_lastCreatedUnit)
call TriggerSleepAction(2.00)
call CreateNUnitsAtLoc(1,'o00H',Player(7),GetRectCenter(udg_rect21),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(60,'BTLF',bj_lastCreatedUnit)
call ForGroupBJ(GetUnitsInRectOfPlayer(udg_rect50,Player(7)),function Trig_Spawn_Super_Buu_cells_Func012A)
endfunction
function Trig_Update_Mini_Buu_Kills_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect50,GetKillingUnit())))and((GetOwningPlayer(GetDyingUnit())==Player(7)))
endfunction
function Trig_Update_Mini_Buu_Kills_Func002A takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ(GetEnumPlayer(),udg_leaderboard01,udg_integer03)
endfunction
function Trig_Update_Mini_Buu_Kills_Actions takes nothing returns nothing
set udg_integer03=(udg_integer03+1)
call ForForce(bj_FORCE_ALL_PLAYERS,function Trig_Update_Mini_Buu_Kills_Func002A)
call LeaderboardDisplayBJ(false,udg_leaderboard01)
call LeaderboardDisplayBJ(true,udg_leaderboard01)
endfunction
function Trig_absorb_Trunks_Func004C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Trunks_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit32))and(Trig_absorb_Trunks_Func004C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit32)>=1.00))
endfunction
function Trig_absorb_Trunks_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger565)
call SetUnitInvulnerable(udg_unit32,true)
call PauseUnit(udg_unit32,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],3.00,"TRIGSTR_540")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_555")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit32,GetRectCenter(udg_rect50))
call PanCameraToTimedLocForPlayer(Player(3),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_544")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],3.00,"TRIGSTR_556")
call SetUnitInvulnerable(udg_unit32,false)
call SetUnitLifePercentBJ(udg_unit32,75.00)
call PauseUnit(udg_unit32,false)
endfunction
function Trig_absorb_Goten_Func021C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Goten_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit30))and(Trig_absorb_Goten_Func021C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit30)>=1.00))
endfunction
function Trig_absorb_Goten_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger565)
call SetUnitInvulnerable(udg_unit30,true)
call PauseUnit(udg_unit30,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],3.00,"TRIGSTR_536")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_553")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit30,GetRectCenter(udg_rect50))
call PanCameraToTimedLocForPlayer(Player(3),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_538")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[3],3.00,"TRIGSTR_554")
call SetUnitInvulnerable(udg_unit30,false)
call SetUnitLifePercentBJ(udg_unit30,75.00)
call PauseUnit(udg_unit30,false)
endfunction
function Trig_absorb_Ftrunks_Func019C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Ftrunks_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit29))and(Trig_absorb_Ftrunks_Func019C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit29)>=1.00))
endfunction
function Trig_absorb_Ftrunks_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger565)
call SetUnitInvulnerable(udg_unit29,true)
call PauseUnit(udg_unit29,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[5],3.00,"TRIGSTR_552")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_533")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit29,GetRectCenter(udg_rect50))
call PanCameraToTimedLocForPlayer(Player(5),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(2)
call SetUnitInvulnerable(udg_unit29,false)
call SetUnitLifePercentBJ(udg_unit29,75.00)
call PauseUnit(udg_unit29,false)
endfunction
function Trig_absorb_Vegeta_Func021C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Vegeta_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit26))and(Trig_absorb_Vegeta_Func021C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit26)>=1.00))
endfunction
function Trig_absorb_Vegeta_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger565)
call SetUnitInvulnerable(udg_unit26,true)
call PauseUnit(udg_unit26,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_528")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_550")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit26,GetRectCenter(udg_rect50))
call PanCameraToTimedLocForPlayer(Player(1),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_530")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_551")
call SetUnitInvulnerable(udg_unit26,false)
call SetUnitLifePercentBJ(udg_unit26,75.00)
call PauseUnit(udg_unit26,false)
endfunction
function Trig_absorb_Piccolo_fused_Func021C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Piccolo_fused_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit83))and(Trig_absorb_Piccolo_fused_Func021C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit83)>=1.00))
endfunction
function Trig_absorb_Piccolo_fused_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger565)
call SetUnitInvulnerable(udg_unit83,true)
call PauseUnit(udg_unit83,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_603")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_604")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit83,GetRectCenter(udg_rect50))
call PanCameraToTimedLocForPlayer(Player(6),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_605")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_606")
call SetUnitInvulnerable(udg_unit83,false)
call SetUnitLifePercentBJ(udg_unit83,75.00)
call PauseUnit(udg_unit83,false)
endfunction
function Trig_absorb_Piccolo_Func021C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Piccolo_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit28))and(Trig_absorb_Piccolo_Func021C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit28)>=1.00))
endfunction
function Trig_absorb_Piccolo_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger565)
call SetUnitInvulnerable(udg_unit28,true)
call PauseUnit(udg_unit28,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_524")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_548")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit28,GetRectCenter(udg_rect50))
call PanCameraToTimedLocForPlayer(Player(6),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_526")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[6],3.00,"TRIGSTR_549")
call SetUnitInvulnerable(udg_unit28,false)
call SetUnitLifePercentBJ(udg_unit28,75.00)
call PauseUnit(udg_unit28,false)
endfunction
function Trig_absorb_Gohan_Func021C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Gohan_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit27))and(Trig_absorb_Gohan_Func021C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit27)>=1.00))
endfunction
function Trig_absorb_Gohan_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger565)
call SetUnitInvulnerable(udg_unit27,true)
call PauseUnit(udg_unit27,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_520")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_546")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit27,GetRectCenter(udg_rect50))
call PanCameraToTimedLocForPlayer(Player(2),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_522")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_547")
call SetUnitInvulnerable(udg_unit27,false)
call SetUnitLifePercentBJ(udg_unit27,75.00)
call PauseUnit(udg_unit27,false)
endfunction
function Trig_absorb_Saiyaman_Func021C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Saiyaman_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit82))and(Trig_absorb_Saiyaman_Func021C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit82)>=1.00))
endfunction
function Trig_absorb_Saiyaman_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger565)
call SetUnitInvulnerable(udg_unit82,true)
call PauseUnit(udg_unit82,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_6577")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_6578")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit82,GetRectCenter(udg_rect50))
call PanCameraToTimedLocForPlayer(Player(2),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_6579")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[2],3.00,"TRIGSTR_6580")
call SetUnitInvulnerable(udg_unit82,false)
call SetUnitLifePercentBJ(udg_unit82,75.00)
call PauseUnit(udg_unit82,false)
endfunction
function Trig_absorb_Goku_Func021C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Goku_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit31))and(Trig_absorb_Goku_Func021C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit31)>=1.00))
endfunction
function Trig_absorb_Goku_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger565)
call SetUnitInvulnerable(udg_unit31,true)
call PauseUnit(udg_unit31,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_363")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_364")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect50))
call PanCameraToTimedLocForPlayer(Player(0),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_365")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_366")
call SetUnitInvulnerable(udg_unit31,false)
call SetUnitLifePercentBJ(udg_unit31,75.00)
call PauseUnit(udg_unit31,false)
endfunction
function Trig_absorb_Vegito_Func048C takes nothing returns boolean
return((GetUnitLifePercent(GetSpellTargetUnit())<=30.00))or((GetUnitStateSwap(UNIT_STATE_LIFE,GetSpellTargetUnit())<=1000.00))
endfunction
function Trig_absorb_Vegito_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P'))and((RectContainsUnit(udg_rect99,udg_unit75)==false))and((GetSpellTargetUnit()==udg_unit93))and(Trig_absorb_Vegito_Func048C())and((GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit93)>=1.00))
endfunction
function Trig_absorb_Vegito_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger384)
call TriggerExecute(udg_trigger565)
call TriggerExecute(udg_trigger565)
call SetUserControlForceOff(bj_FORCE_PLAYER[0])
call SetUserControlForceOff(bj_FORCE_PLAYER[1])
call TriggerExecute(udg_trigger380)
call SetPlayerName(Player(0),"TRIGSTR_1219")
call SetPlayerName(Player(1),"TRIGSTR_1220")
set udg_integers03[1]=GetHeroLevel(udg_unit31)
call SetUnitInvulnerable(udg_unit93,true)
call PauseUnit(udg_unit93,true)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_981")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_985")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_986")
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellTargetUnit()),"Abilities\\Spells\\Other\\Doom\\DoomDeath.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(1.00)
call SetUnitOwner(udg_unit93,Player(15),true)
call SetUnitPositionLoc(udg_unit93,GetRectCenter(udg_rect30))
call PanCameraToTimedLocForPlayer(Player(0),GetRectCenter(udg_rect50),0.00)
call PanCameraToTimedLocForPlayer(Player(1),GetRectCenter(udg_rect50),0.00)
call TriggerSleepAction(0.20)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect50),"Abilities\\Spells\\Human\\CloudOfFog\\CloudOfFog.mdl")
call TriggerExecute(udg_trigger620)
call TriggerSleepAction(0.40)
call SetUnitPositionLoc(udg_unit31,GetRectCenter(udg_rect50))
call SetUnitPositionLoc(udg_unit26,GetRectCenter(udg_rect50))
call SetUnitOwner(udg_unit31,Player(0),true)
call SetUnitOwner(udg_unit26,Player(1),true)
call SetPlayerAllianceStateBJ(Player(0),Player(1),3)
call SetPlayerAllianceStateBJ(Player(1),Player(0),3)
call SetUnitLifePercentBJ(udg_unit31,75.00)
call SetUnitLifePercentBJ(udg_unit26,75.00)
call PauseUnit(udg_unit31,false)
call PauseUnit(udg_unit26,false)
call TriggerExecute(udg_trigger383)
call TriggerExecute(udg_trigger377)
call SetUserControlForceOn(bj_FORCE_PLAYER[0])
call SetUserControlForceOn(bj_FORCE_PLAYER[1])
call TriggerSleepAction(1.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[0],3.00,"TRIGSTR_984")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[1],3.00,"TRIGSTR_987")
call DisplayTimedTextToForce(bj_FORCE_PLAYER[7],3.00,"TRIGSTR_983")
endfunction
function Trig_Absorb_Alter_Super_Buu_Stats_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit75),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,100.00,70.00,80.00,0)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit75))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit75))
call ModifyHeroStat(0,udg_unit75,2,R2I((I2R(GetHeroStatBJ(0,udg_unit75,false))/udg_reals02[8])))
call ModifyHeroStat(1,udg_unit75,2,R2I((I2R(GetHeroStatBJ(1,udg_unit75,false))/udg_reals01[8])))
call ModifyHeroStat(2,udg_unit75,2,R2I((I2R(GetHeroStatBJ(2,udg_unit75,false))/udg_reals01[8])))
call SetUnitManaBJ(udg_unit75,(I2R(udg_integer14)/udg_reals01[8]))
call SetWidgetLife(udg_unit75,(I2R(udg_integer16)/udg_reals02[8]))
set udg_reals01[8]=(udg_reals01[8]+0.25)
set udg_reals02[8]=(udg_reals02[8]+0.25)
call TriggerExecute(udg_trigger546)
endfunction
function Trig_Fully_absorbed_Func004C takes nothing returns boolean
return((GetDyingUnit()==udg_unit31))or((GetDyingUnit()==udg_unit26))or((GetDyingUnit()==udg_unit92))or((GetDyingUnit()==udg_unit91))or((GetDyingUnit()==udg_unit27))or((GetDyingUnit()==udg_unit82))or((GetDyingUnit()==udg_unit32))or((GetDyingUnit()==udg_unit30))or((GetDyingUnit()==udg_unit45))or((GetDyingUnit()==udg_unit28))or((GetDyingUnit()==udg_unit83))or((GetDyingUnit()==udg_unit29))
endfunction
function Trig_Fully_absorbed_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect50,GetDyingUnit())))and(Trig_Fully_absorbed_Func004C())
endfunction
function Trig_Fully_absorbed_Actions takes nothing returns nothing
call LeaderboardRemovePlayerItemBJ(GetOwningPlayer(GetDyingUnit()),udg_leaderboard01)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.00,(GetPlayerName(GetOwningPlayer(GetDyingUnit()))+" has been absorbed by Super Buu."))
endfunction
function Trig_Koola_gains_level_Func002C takes nothing returns boolean
return((GetHeroLevel(GetLevelingUnit())<105))
endfunction
function Trig_Koola_gains_level_Actions takes nothing returns nothing
set udg_integer14=((GetUnitAbilityLevelSwapped('A03H',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00H',GetLevelingUnit()))+((GetUnitAbilityLevelSwapped('A02Z',GetLevelingUnit())+GetUnitAbilityLevelSwapped('A00M',GetLevelingUnit()))+GetUnitAbilityLevelSwapped('A032',GetLevelingUnit())))
if(Trig_Koola_gains_level_Func002C())then
set udg_integer14=(((GetHeroLevel(GetLevelingUnit())/3)-udg_integer14)+1)
call ModifyHeroSkillPoints(GetLevelingUnit(),2,udg_integer14)
endif
set udg_integers03[12]=(GetHeroLevel(GetLevelingUnit())-udg_integers03[12])
call ModifyHeroStat(0,GetLevelingUnit(),0,R2I((udg_reals02[12]*(4.00*I2R(udg_integers03[12])))))
call ModifyHeroStat(1,GetLevelingUnit(),0,R2I((udg_reals01[12]*(4.00*I2R(udg_integers03[12])))))
call ModifyHeroStat(2,GetLevelingUnit(),0,R2I((udg_reals01[12]*(4.00*I2R(udg_integers03[12])))))
set udg_integers03[12]=GetHeroLevel(GetLevelingUnit())
endfunction
function Trig_Metal_Koola_Gain_money_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(4,Player(11),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Metal_Koola_dies_Conditions takes nothing returns boolean
return((RectContainsUnit(udg_rect99,udg_unit52)==false))
endfunction
function Trig_Metal_Koola_dies_Func002C takes nothing returns boolean
return((RectContainsUnit(udg_rect64,GetDyingUnit())))and((GetUnitTypeId(GetDyingUnit())=='H01A'))
endfunction
function Trig_Metal_Koola_dies_Actions takes nothing returns nothing
if(Trig_Metal_Koola_dies_Func002C())then
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],4.00,"TRIGSTR_772")
call TriggerSleepAction(15.00)
call ReviveHeroLoc(udg_unit52,GetRectCenter(udg_rect73),true)
else
call ReviveHeroLoc(udg_unit52,GetRectCenter(udg_rect73),true)
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetKillingUnit())),5.00,"TRIGSTR_457")
endif
endfunction
function Trig_Scan_for_Powers_Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A00H'))
endfunction
function Trig_Scan_for_Powers_Func001Func002002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(12))
endfunction
function Trig_Scan_for_Powers_Func001Func002002002002001 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(14))
endfunction
function Trig_Scan_for_Powers_Func001Func002002002002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(15))
endfunction
function Trig_Scan_for_Powers_Func001Func002002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Scan_for_Powers_Func001Func002002002002001(),Trig_Scan_for_Powers_Func001Func002002002002002())
endfunction
function Trig_Scan_for_Powers_Func001Func002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Scan_for_Powers_Func001Func002002002001(),Trig_Scan_for_Powers_Func001Func002002002002())
endfunction
function Trig_Scan_for_Powers_Func001Func003Func001C takes nothing returns boolean
return((IsPlayerAlly(GetOwningPlayer(GetEnumUnit()),Player(11))==false))
endfunction
function Trig_Scan_for_Powers_Func001Func003A takes nothing returns nothing
if(Trig_Scan_for_Powers_Func001Func003Func001C())then
set udg_location07=GetUnitLoc(GetEnumUnit())
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[11],udg_location07,5.00,2,100,0.00,0.00)
call RemoveLocation(udg_location07)
endif
endfunction
function Trig_Scan_for_Powers_Func001C takes nothing returns boolean
return((GetUnitAbilityLevelSwapped(GetSpellAbilityId(),GetTriggerUnit())==2))
endfunction
function Trig_Scan_for_Powers_Func003A takes nothing returns nothing
set udg_location07=GetUnitLoc(GetEnumUnit())
call PingMinimapLocForForceEx(bj_FORCE_PLAYER[11],udg_location07,5.00,0,100,100,100)
call RemoveLocation(udg_location07)
endfunction
function Trig_Scan_for_Powers_Actions takes nothing returns nothing
if(Trig_Scan_for_Powers_Func001C())then
set udg_group05=GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Scan_for_Powers_Func001Func002002002))
call ForGroupBJ(udg_group05,function Trig_Scan_for_Powers_Func001Func003A)
call DestroyGroup(udg_group05)
endif
set udg_group05=GetUnitsOfTypeIdAll('n01I')
call ForGroupBJ(udg_group05,function Trig_Scan_for_Powers_Func003A)
call DestroyGroup(udg_group05)
endfunction
function Trig_Death_Notice_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],10.00,"TRIGSTR_512")
endfunction
function Trig_Building_Conditions takes nothing returns boolean
return((GetPlayerState(Player(11),PLAYER_STATE_RESOURCE_GOLD)>=900))
endfunction
function Trig_Building_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(udg_sound38)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],12.00,"TRIGSTR_513")
endfunction
function Trig_Metal_Koola_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],8.00,"TRIGSTR_508")
endfunction
function Trig_Metal_Koola_Help_skills_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],10.00,"TRIGSTR_6635")
call TriggerSleepAction(9.00)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],10.00,"TRIGSTR_7337")
endfunction
function Trig_Upgrade_Koola_Kill_Conditions takes nothing returns boolean
return((IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)))and((IsPlayerAlly(GetOwningPlayer(GetDyingUnit()),Player(0))))and((GetOwningPlayer(GetKillingUnit())==Player(11)))and((I2R(GetHeroLevel(udg_unit52))>=(Pow(udg_reals01[12],2.00)*12.00)))
endfunction
function Trig_Upgrade_Koola_Kill_Func014C takes nothing returns boolean
return((udg_reals01[12]==3.50))
endfunction
function Trig_Upgrade_Koola_Kill_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],3.00,"TRIGSTR_6541")
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit52))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit52))
call ModifyHeroStat(0,udg_unit52,2,R2I((I2R(GetHeroStatBJ(0,udg_unit52,false))/udg_reals02[12])))
call ModifyHeroStat(1,udg_unit52,2,R2I((I2R(GetHeroStatBJ(1,udg_unit52,false))/udg_reals01[12])))
call ModifyHeroStat(2,udg_unit52,2,R2I((I2R(GetHeroStatBJ(2,udg_unit52,false))/udg_reals01[12])))
call SetUnitManaBJ(udg_unit52,(I2R(udg_integer14)/udg_reals01[12]))
call SetWidgetLife(udg_unit52,(I2R(udg_integer16)/udg_reals02[12]))
set udg_reals01[12]=(udg_reals01[12]+0.25)
set udg_reals02[12]=(udg_reals02[12]+0.25)
call ModifyHeroStat(0,udg_unit52,0,(R2I(udg_reals01[12])*13))
call ModifyHeroStat(1,udg_unit52,0,(R2I(udg_reals01[12])*13))
call ModifyHeroStat(2,udg_unit52,0,(R2I(udg_reals01[12])*13))
call TriggerExecute(udg_trigger578)
if(Trig_Upgrade_Koola_Kill_Func014C())then
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger576)
call TriggerExecute(udg_trigger577)
endif
endfunction
function Trig_Upgrade_Koola_Death_Func013001 takes nothing returns boolean
return(GetDyingUnit()==udg_unit52)
endfunction
function Trig_Upgrade_Koola_Death_Func013002 takes nothing returns boolean
return(GetUnitTypeId(GetDyingUnit())=='H01Z')
endfunction
function Trig_Upgrade_Koola_Death_Conditions takes nothing returns boolean
return(GetBooleanOr(Trig_Upgrade_Koola_Death_Func013001(),Trig_Upgrade_Koola_Death_Func013002()))and((IsPlayerAlly(GetOwningPlayer(GetKillingUnit()),Player(0))))and((I2R(GetHeroLevel(udg_unit52))>=(Pow(udg_reals01[12],2.00)*12.00)))
endfunction
function Trig_Upgrade_Koola_Death_Func012C takes nothing returns boolean
return((udg_reals01[12]==3.50))
endfunction
function Trig_Upgrade_Koola_Death_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],3.00,"TRIGSTR_6543")
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit52))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit52))
call ModifyHeroStat(0,udg_unit52,2,R2I((I2R(GetHeroStatBJ(0,udg_unit52,false))/udg_reals02[12])))
call ModifyHeroStat(1,udg_unit52,2,R2I((I2R(GetHeroStatBJ(1,udg_unit52,false))/udg_reals01[12])))
call ModifyHeroStat(2,udg_unit52,2,R2I((I2R(GetHeroStatBJ(2,udg_unit52,false))/udg_reals01[12])))
call SetUnitManaBJ(udg_unit52,(I2R(udg_integer14)/udg_reals01[12]))
call SetWidgetLife(udg_unit52,(I2R(udg_integer16)/udg_reals02[12]))
set udg_reals01[12]=(udg_reals01[12]+0.25)
set udg_reals02[12]=(udg_reals02[12]+0.25)
call ModifyHeroStat(0,udg_unit52,0,(R2I(udg_reals01[12])*13))
call ModifyHeroStat(1,udg_unit52,0,(R2I(udg_reals01[12])*13))
call ModifyHeroStat(2,udg_unit52,0,(R2I(udg_reals01[12])*13))
call TriggerExecute(udg_trigger578)
if(Trig_Upgrade_Koola_Death_Func012C())then
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(udg_trigger575)
call TriggerExecute(udg_trigger577)
endif
endfunction
function Trig_Complete_data_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger585)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],10.00,"TRIGSTR_518")
endfunction
function Trig_Koola_Alter_Stats_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound44)
call CreateNUnitsAtLoc(1,'h02O',Player(15),GetUnitLoc(udg_unit52),bj_UNIT_FACING)
call SetUnitScalePercent(bj_lastCreatedUnit,800.00,800.00,800.00)
call SetUnitVertexColorBJ(bj_lastCreatedUnit,50.00,100.00,100.00,0)
set udg_integer14=R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_unit52))
set udg_integer16=R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit52))
call ModifyHeroStat(0,udg_unit52,2,R2I((I2R(GetHeroStatBJ(0,udg_unit52,false))*udg_reals02[12])))
call ModifyHeroStat(1,udg_unit52,2,R2I((I2R(GetHeroStatBJ(1,udg_unit52,false))*udg_reals01[12])))
call ModifyHeroStat(2,udg_unit52,2,R2I((I2R(GetHeroStatBJ(2,udg_unit52,false))*udg_reals01[12])))
call SetUnitManaBJ(udg_unit52,(I2R(udg_integer14)*udg_reals01[12]))
call SetWidgetLife(udg_unit52,(I2R(udg_integer16)*udg_reals02[12]))
endfunction
function Trig_Update_for_Copies_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTrainedUnit())=='H01Z'))
endfunction
function Trig_Update_for_Copies_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger581)
call SuspendHeroXPBJ(false,GetTrainedUnit())
call SetUnitColor(GetTrainedUnit(),PLAYER_COLOR_LIGHT_GRAY)
endfunction
function Trig_Periodic_Clone_Stats_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger581)
endfunction
function Trig_Set_Copy_Stats_Func002A takes nothing returns nothing
call ModifyHeroStat(0,GetEnumUnit(),2,(GetHeroStatBJ(0,udg_unit52,false)/2))
call ModifyHeroStat(1,GetEnumUnit(),2,(GetHeroStatBJ(1,udg_unit52,false)/2))
call ModifyHeroStat(2,GetEnumUnit(),2,(GetHeroStatBJ(2,udg_unit52,false)/2))
call SetHeroLevelBJ(GetEnumUnit(),(GetHeroLevel(udg_unit52)/10),false)
endfunction
function Trig_Set_Copy_Stats_Actions takes nothing returns nothing
set udg_group05=GetUnitsOfTypeIdAll('H01Z')
call ForGroupBJ(udg_group05,function Trig_Set_Copy_Stats_Func002A)
call DestroyGroup(udg_group05)
endfunction
function Trig_Copy_dies_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='H01Z'))
endfunction
function Trig_Copy_dies_Actions takes nothing returns nothing
call TriggerSleepAction(4.00)
call RemoveUnit(GetDyingUnit())
endfunction
function Trig_Destroy_copies_Func002002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Destroy_copies_Func003002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Destroy_copies_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'h00N'),function Trig_Destroy_copies_Func002002)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(Player(11),'H01Z'),function Trig_Destroy_copies_Func003002)
call DisableTrigger(udg_trigger569)
call DisableTrigger(udg_trigger576)
call DisableTrigger(udg_trigger575)
call TriggerSleepAction(2)
call DisplayTimedTextToForce(bj_FORCE_PLAYER[11],18.00,"TRIGSTR_519")
endfunction
function Trig_Disable_exp_Koola_Conditions takes nothing returns boolean
return((GetUnitTypeId(GetDyingUnit())=='u001'))
endfunction
function Trig_Disable_exp_Koola_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SuspendHeroXPBJ(false,GetTriggerUnit())
endfunction
function Trig_Complete_data_effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("chest",udg_unit52,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call TriggerExecute(udg_trigger620)
endfunction
function Trig_Ally_Help_Actions takes nothing returns nothing
call DisplayTimedTextToForce(GetForceOfPlayer(GetTriggerPlayer()),10.00,"TRIGSTR_3795")
endfunction
function Trig_Player_ally_androids_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(4),3)
endfunction
function Trig_Player_Unally_androids_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(4),0)
endfunction
function Trig_Player_ally_buu_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(7),3)
endfunction
function Trig_Player_Unally_buu_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(7),0)
endfunction
function Trig_Player_ally_Broly_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(9),3)
endfunction
function Trig_Player_Unally_broly_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(9),0)
endfunction
function Trig_Player_ally_bebi_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(8),3)
endfunction
function Trig_Player_Unally_bebi_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(8),0)
endfunction
function Trig_Player_ally_getistar_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(11),3)
endfunction
function Trig_Player_Unally_getistar_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(11),0)
endfunction
function Trig_Player_ally_cell_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(10),3)
endfunction
function Trig_Player_Unally_cell_Actions takes nothing returns nothing
call SetPlayerAllianceStateBJ(GetTriggerPlayer(),Player(10),0)
endfunction
function Trig_Reveal_Lookout_Conditions takes nothing returns boolean
return((GetOwningPlayer(GetEnteringUnit())!=Player(4)))and((GetOwningPlayer(GetEnteringUnit())!=Player(7)))and((GetOwningPlayer(GetEnteringUnit())!=Player(8)))and((GetOwningPlayer(GetEnteringUnit())!=Player(9)))and((GetOwningPlayer(GetEnteringUnit())!=Player(10)))and((GetOwningPlayer(GetEnteringUnit())!=Player(11)))
endfunction
function Trig_Reveal_Lookout_Actions takes nothing returns nothing
call CreateFogModifierRectBJ(true,GetOwningPlayer(GetEnteringUnit()),FOG_OF_WAR_VISIBLE,udg_rect62)
endfunction
function Trig_Reveal_all_map_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=12
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,udg_rect81)
call CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,udg_rect80)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Fruit_Tree_Conditions takes nothing returns boolean
return((udg_integer17<15))
endfunction
function Trig_Fruit_Tree_Actions takes nothing returns nothing
set udg_location07=GetDestructableLoc(udg_destructable04)
set udg_location08=PolarProjectionBJ(udg_location07,GetRandomReal(75.00,250.00),GetRandomReal(0,360))
call CreateItemLoc('tpow',udg_location08)
set udg_integer17=(udg_integer17+1)
call RemoveLocation(udg_location08)
call RemoveLocation(udg_location07)
endfunction
function Trig_Aquire_Fruit_Conditions takes nothing returns boolean
return((GetItemTypeId(GetManipulatedItem())=='tpow'))
endfunction
function Trig_Aquire_Fruit_Actions takes nothing returns nothing
set udg_integer17=(udg_integer17-1)
endfunction
function Trig_Enter_Lookout_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((GetOwningPlayer(GetEnteringUnit())!=Player(12)))
endfunction
function Trig_Enter_Lookout_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect65),0.00)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect65))
endfunction
function Trig_Leave_Lookout_Conditions takes nothing returns boolean
return((IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)))and((RectContainsUnit(udg_rect59,GetEnteringUnit())))
endfunction
function Trig_Leave_Lookout_Actions takes nothing returns nothing
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetEnteringUnit()),GetRectCenter(udg_rect04),0.00)
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect04))
endfunction
function Trig_Enter_Lab_Door_Conditions takes nothing returns boolean
return((IsPlayerAlly(GetOwningPlayer(GetEnteringUnit()),Player(4))))and((CountUnitsInGroup(GetUnitsInRectAll(udg_rect132))==0))
endfunction
function Trig_Enter_Lab_Door_Actions takes nothing returns nothing
call ModifyGateBJ(1,udg_destructable03)
call PlaySoundAtPointBJ(udg_sound36,100,GetDestructableLoc(udg_destructable03),0)
endfunction
function Trig_Enter_Lab_Door_Good_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger605)
call DisableTrigger(udg_trigger607)
call ModifyGateBJ(1,udg_destructable03)
call PlaySoundAtPointBJ(udg_sound36,100,GetDestructableLoc(udg_destructable03),0)
endfunction
function Trig_Exit_Lab_Door_Conditions takes nothing returns boolean
return((CountUnitsInGroup(GetUnitsInRectAll(udg_rect132))==0))
endfunction
function Trig_Exit_Lab_Door_Actions takes nothing returns nothing
call ModifyGateBJ(0,udg_destructable03)
call PlaySoundAtPointBJ(udg_sound36,100,GetDestructableLoc(udg_destructable03),0)
endfunction
function Trig_FAQ_Actions takes nothing returns nothing
call CreateQuestBJ(2,"TRIGSTR_6492","TRIGSTR_6493","ReplaceableTextures\\CommandButtons\\BTNVengeanceIncarnate.tga")
call CreateQuestBJ(2,"TRIGSTR_7302","TRIGSTR_7303","ReplaceableTextures\\CommandButtons\\BTNVengeanceIncarnate.tga")
call CreateQuestBJ(2,"TRIGSTR_7299","TRIGSTR_7300","ReplaceableTextures\\CommandButtons\\BTNVengeanceIncarnate.tga")
call CreateQuestBJ(0,"TRIGSTR_4294","TRIGSTR_4295","ReplaceableTextures\\CommandButtons\\BTNInfernalStone.blp")
call CreateQuestBJ(0,"TRIGSTR_1128","TRIGSTR_1129","ReplaceableTextures\\CommandButtons\\BTNDevour.blp")
call CreateQuestBJ(0,"TRIGSTR_1126","TRIGSTR_1127","ReplaceableTextures\\PassiveButtons\\PASBTNShadeTrueSight.blp")
call CreateQuestBJ(0,"TRIGSTR_4250","TRIGSTR_4251","ReplaceableTextures\\WorldEditUI\\Editor-Random-Unit.blp")
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Hints_Func003001 takes nothing returns boolean
return(udg_integer10==1)
endfunction
function Trig_Hints_Func004001 takes nothing returns boolean
return(udg_integer10==2)
endfunction
function Trig_Hints_Func005001 takes nothing returns boolean
return(udg_integer10==3)
endfunction
function Trig_Hints_Func006001 takes nothing returns boolean
return(udg_integer10==4)
endfunction
function Trig_Hints_Func007001 takes nothing returns boolean
return(udg_integer10==5)
endfunction
function Trig_Hints_Func008001 takes nothing returns boolean
return(udg_integer10==6)
endfunction
function Trig_Hints_Func009001 takes nothing returns boolean
return(udg_integer10==7)
endfunction
function Trig_Hints_Func010001 takes nothing returns boolean
return(udg_integer10==8)
endfunction
function Trig_Hints_Func011001 takes nothing returns boolean
return(udg_integer10==9)
endfunction
function Trig_Hints_Func012001 takes nothing returns boolean
return(udg_integer10==10)
endfunction
function Trig_Hints_Func013001 takes nothing returns boolean
return(udg_integer10==11)
endfunction
function Trig_Hints_Func014001 takes nothing returns boolean
return(udg_integer10==12)
endfunction
function Trig_Hints_Func015001 takes nothing returns boolean
return(udg_integer10==13)
endfunction
function Trig_Hints_Func016001 takes nothing returns boolean
return(udg_integer10==14)
endfunction
function Trig_Hints_Func017001 takes nothing returns boolean
return(udg_integer10==15)
endfunction
function Trig_Hints_Func018001 takes nothing returns boolean
return(udg_integer10==16)
endfunction
function Trig_Hints_Func019001 takes nothing returns boolean
return(udg_integer10==17)
endfunction
function Trig_Hints_Func020001 takes nothing returns boolean
return(udg_integer10==18)
endfunction
function Trig_Hints_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound40)
set udg_integer10=GetRandomInt(1,18)
if(Trig_Hints_Func003001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_4369")
endif
if(Trig_Hints_Func004001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_4351")
endif
if(Trig_Hints_Func005001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_6390")
endif
if(Trig_Hints_Func006001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_4353")
endif
if(Trig_Hints_Func007001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_4441")
endif
if(Trig_Hints_Func008001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_4355")
endif
if(Trig_Hints_Func009001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_4356")
endif
if(Trig_Hints_Func010001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_4357")
endif
if(Trig_Hints_Func011001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_4358")
endif
if(Trig_Hints_Func012001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_4359")
endif
if(Trig_Hints_Func013001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_6877")
endif
if(Trig_Hints_Func014001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_6878")
endif
if(Trig_Hints_Func015001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_6879")
endif
if(Trig_Hints_Func016001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_6880")
endif
if(Trig_Hints_Func017001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_6881")
endif
if(Trig_Hints_Func018001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_6882")
endif
if(Trig_Hints_Func019001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_6883")
endif
if(Trig_Hints_Func020001())then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_6884")
endif
endfunction
function Trig_Z_Fighters_Lose_Func001Func001001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_unit31,'I02K'))
endfunction
function Trig_Z_Fighters_Lose_Func001Func001002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_unit26,'I02K'))
endfunction
function Trig_Z_Fighters_Lose_Func001C takes nothing returns boolean
return(GetBooleanAnd(Trig_Z_Fighters_Lose_Func001Func001001(),Trig_Z_Fighters_Lose_Func001Func001002()))or((UnitHasItemOfTypeBJ(udg_unit93,'I02K')))or((UnitHasItemOfTypeBJ(udg_unit92,'I02K')))
endfunction
function Trig_Z_Fighters_Lose_Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit27,'I02K')))or((UnitHasItemOfTypeBJ(udg_unit82,'I02K')))
endfunction
function Trig_Z_Fighters_Lose_Func003Func001001 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_unit30,'I02K'))
endfunction
function Trig_Z_Fighters_Lose_Func003Func001002 takes nothing returns boolean
return(UnitHasItemOfTypeBJ(udg_unit32,'I02K'))
endfunction
function Trig_Z_Fighters_Lose_Func003C takes nothing returns boolean
return(GetBooleanAnd(Trig_Z_Fighters_Lose_Func003Func001001(),Trig_Z_Fighters_Lose_Func003Func001002()))or((UnitHasItemOfTypeBJ(udg_unit45,'I02K')))
endfunction
function Trig_Z_Fighters_Lose_Func004C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit28,'I02K')))or((UnitHasItemOfTypeBJ(udg_unit83,'I02K')))
endfunction
function Trig_Z_Fighters_Lose_Conditions takes nothing returns boolean
return(Trig_Z_Fighters_Lose_Func001C())and(Trig_Z_Fighters_Lose_Func002C())and(Trig_Z_Fighters_Lose_Func003C())and(Trig_Z_Fighters_Lose_Func004C())and((UnitHasItemOfTypeBJ(udg_unit29,'I02K')))
endfunction
function Trig_Z_Fighters_Lose_Actions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_851")
call TriggerSleepAction(5.00)
call CustomDefeatBJ(Player(0),"TRIGSTR_852")
call CustomDefeatBJ(Player(1),"TRIGSTR_853")
call CustomDefeatBJ(Player(2),"TRIGSTR_854")
call CustomDefeatBJ(Player(3),"TRIGSTR_855")
call CustomDefeatBJ(Player(5),"TRIGSTR_857")
call CustomDefeatBJ(Player(6),"TRIGSTR_858")
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(7),true,true)
call CustomVictoryBJ(Player(8),true,true)
call CustomVictoryBJ(Player(9),true,true)
call CustomVictoryBJ(Player(10),true,true)
call CustomVictoryBJ(Player(11),true,true)
endfunction
function Trig_Z_Fighters_Win_Func001C takes nothing returns boolean
return((RectContainsUnit(udg_rect45,udg_unit68)))or((RectContainsUnit(udg_rect45,udg_unit65)))or((RectContainsUnit(udg_rect45,udg_unit71)))
endfunction
function Trig_Z_Fighters_Win_Func002C takes nothing returns boolean
return((RectContainsUnit(udg_rect45,udg_unit46)))or((RectContainsUnit(udg_rect45,udg_unit77)))or((RectContainsUnit(udg_rect45,udg_unit94)))
endfunction
function Trig_Z_Fighters_Win_Func003001 takes nothing returns boolean
return(RectContainsUnit(udg_rect45,udg_unit34))
endfunction
function Trig_Z_Fighters_Win_Func003002001 takes nothing returns boolean
return(RectContainsUnit(udg_rect45,udg_unit76))
endfunction
function Trig_Z_Fighters_Win_Func003002002001 takes nothing returns boolean
return(RectContainsUnit(udg_rect45,udg_unit75))
endfunction
function Trig_Z_Fighters_Win_Func003002002002 takes nothing returns boolean
return(RectContainsUnit(udg_rect45,udg_unit79))
endfunction
function Trig_Z_Fighters_Win_Func003002002 takes nothing returns boolean
return GetBooleanOr(Trig_Z_Fighters_Win_Func003002002001(),Trig_Z_Fighters_Win_Func003002002002())
endfunction
function Trig_Z_Fighters_Win_Func003002 takes nothing returns boolean
return GetBooleanOr(Trig_Z_Fighters_Win_Func003002001(),Trig_Z_Fighters_Win_Func003002002())
endfunction
function Trig_Z_Fighters_Win_Func004001 takes nothing returns boolean
return(RectContainsUnit(udg_rect45,udg_unit35))
endfunction
function Trig_Z_Fighters_Win_Func004002001 takes nothing returns boolean
return(RectContainsUnit(udg_rect45,udg_unit43))
endfunction
function Trig_Z_Fighters_Win_Func004002002001 takes nothing returns boolean
return(RectContainsUnit(udg_rect45,udg_unit42))
endfunction
function Trig_Z_Fighters_Win_Func004002002002 takes nothing returns boolean
return(RectContainsUnit(udg_rect45,udg_unit41))
endfunction
function Trig_Z_Fighters_Win_Func004002002 takes nothing returns boolean
return GetBooleanOr(Trig_Z_Fighters_Win_Func004002002001(),Trig_Z_Fighters_Win_Func004002002002())
endfunction
function Trig_Z_Fighters_Win_Func004002 takes nothing returns boolean
return GetBooleanOr(Trig_Z_Fighters_Win_Func004002001(),Trig_Z_Fighters_Win_Func004002002())
endfunction
function Trig_Z_Fighters_Win_Func006C takes nothing returns boolean
return((IsUnitDeadBJ(udg_unit50)))and((IsUnitDeadBJ(udg_unit52)))
endfunction
function Trig_Z_Fighters_Win_Conditions takes nothing returns boolean
return(Trig_Z_Fighters_Win_Func001C())and(Trig_Z_Fighters_Win_Func002C())and(GetBooleanOr(Trig_Z_Fighters_Win_Func003001(),Trig_Z_Fighters_Win_Func003002()))and(GetBooleanOr(Trig_Z_Fighters_Win_Func004001(),Trig_Z_Fighters_Win_Func004002()))and((RectContainsUnit(udg_rect45,udg_unit67)))and(Trig_Z_Fighters_Win_Func006C())
endfunction
function Trig_Z_Fighters_Win_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(7),"TRIGSTR_1109")
call CustomDefeatBJ(Player(4),"TRIGSTR_1110")
call CustomDefeatBJ(Player(8),"TRIGSTR_1111")
call CustomDefeatBJ(Player(9),"TRIGSTR_1112")
call CustomDefeatBJ(Player(10),"TRIGSTR_1113")
call CustomDefeatBJ(Player(11),"TRIGSTR_1114")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.00,"TRIGSTR_868")
call TriggerSleepAction(5.00)
call CustomVictoryBJ(Player(0),true,true)
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
call CustomVictoryBJ(Player(3),true,true)
call CustomVictoryBJ(Player(5),true,true)
call CustomVictoryBJ(Player(6),true,true)
endfunction
function Trig_Sort_Items_Func001C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func002C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func003C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func004C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func005C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func006C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func007C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func008C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func009C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func010C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func011C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func012C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Func013C takes nothing returns boolean
return((UnitInventoryCount(udg_unit18)>5))
endfunction
function Trig_Sort_Items_Actions takes nothing returns nothing
if(Trig_Sort_Items_Func001C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I01X'),udg_unit18)
call SetUnitUserData(udg_unit18,0)
endif
if(Trig_Sort_Items_Func002C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I008'),udg_unit18)
endif
if(Trig_Sort_Items_Func003C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I024'),udg_unit18)
endif
if(Trig_Sort_Items_Func004C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I010'),udg_unit18)
endif
if(Trig_Sort_Items_Func005C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I02A'),udg_unit18)
endif
if(Trig_Sort_Items_Func006C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I025'),udg_unit18)
endif
if(Trig_Sort_Items_Func007C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I000'),udg_unit18)
endif
if(Trig_Sort_Items_Func008C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I026'),udg_unit18)
endif
if(Trig_Sort_Items_Func009C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I01Q'),udg_unit18)
endif
if(Trig_Sort_Items_Func010C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I01V'),udg_unit18)
endif
if(Trig_Sort_Items_Func011C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I01U'),udg_unit18)
endif
if(Trig_Sort_Items_Func012C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I02E'),udg_unit18)
endif
if(Trig_Sort_Items_Func013C())then
call UnitRemoveItemSwapped(GetItemOfTypeFromUnitBJ(udg_unit18,'I00I'),udg_unit18)
endif
endfunction
function Trig_Add_Items_to_new_Form_Func001C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I00I')))
endfunction
function Trig_Add_Items_to_new_Form_Func002C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I02E')))
endfunction
function Trig_Add_Items_to_new_Form_Func003C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I01U')))
endfunction
function Trig_Add_Items_to_new_Form_Func004C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I01V')))
endfunction
function Trig_Add_Items_to_new_Form_Func005C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I01Q')))
endfunction
function Trig_Add_Items_to_new_Form_Func006C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I026')))
endfunction
function Trig_Add_Items_to_new_Form_Func007C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I000')))
endfunction
function Trig_Add_Items_to_new_Form_Func008C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I025')))
endfunction
function Trig_Add_Items_to_new_Form_Func009C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I02A')))
endfunction
function Trig_Add_Items_to_new_Form_Func010C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I010')))
endfunction
function Trig_Add_Items_to_new_Form_Func011C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I024')))
endfunction
function Trig_Add_Items_to_new_Form_Func012C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I01X')))
endfunction
function Trig_Add_Items_to_new_Form_Func013C takes nothing returns boolean
return((UnitHasItemOfTypeBJ(udg_unit18,'I008')))
endfunction
function Trig_Add_Items_to_new_Form_Actions takes nothing returns nothing
if(Trig_Add_Items_to_new_Form_Func001C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I00I'))
endif
if(Trig_Add_Items_to_new_Form_Func002C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I02E'))
endif
if(Trig_Add_Items_to_new_Form_Func003C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I01U'))
endif
if(Trig_Add_Items_to_new_Form_Func004C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I01V'))
endif
if(Trig_Add_Items_to_new_Form_Func005C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I01Q'))
endif
if(Trig_Add_Items_to_new_Form_Func006C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I026'))
endif
if(Trig_Add_Items_to_new_Form_Func007C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I000'))
endif
if(Trig_Add_Items_to_new_Form_Func008C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I025'))
endif
if(Trig_Add_Items_to_new_Form_Func009C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I02A'))
endif
if(Trig_Add_Items_to_new_Form_Func010C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I010'))
endif
if(Trig_Add_Items_to_new_Form_Func011C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I024'))
endif
if(Trig_Add_Items_to_new_Form_Func012C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I01X'))
call SetUnitUserData(udg_unit18,0)
endif
if(Trig_Add_Items_to_new_Form_Func013C())then
call UnitAddItem(udg_unit19,GetItemOfTypeFromUnitBJ(udg_unit18,'I008'))
endif
endfunction
function Trig_Adjust_Speed_Func001002002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))
endfunction
function Trig_Adjust_Speed_Func002Func002C takes nothing returns boolean
return((udg_integer13>522))
endfunction
function Trig_Adjust_Speed_Func002A takes nothing returns nothing
set udg_integer13=(R2I(GetUnitDefaultMoveSpeed(GetEnumUnit()))+GetHeroStatBJ(1,GetEnumUnit(),true))
if(Trig_Adjust_Speed_Func002Func002C())then
set udg_integer13=523
endif
set udg_integer13=(udg_integer13-(200-(R2I(GetUnitLifePercent(GetEnumUnit()))*2)))
call SetUnitMoveSpeed(GetEnumUnit(),I2R(udg_integer13))
endfunction
function Trig_Adjust_Speed_Func004C takes nothing returns boolean
return((UnitHasItem(udg_unit27,udg_item04)))
endfunction
function Trig_Adjust_Speed_Func005C takes nothing returns boolean
return((udg_reals02[6]==5.00))
endfunction
function Trig_Adjust_Speed_Func006C takes nothing returns boolean
return((RectContainsUnit(udg_rect139,udg_unit26)))
endfunction
function Trig_Adjust_Speed_Actions takes nothing returns nothing
set udg_group05=GetUnitsInRectMatching(bj_mapInitialPlayableArea,Condition(function Trig_Adjust_Speed_Func001002002))
call ForGroupBJ(udg_group05,function Trig_Adjust_Speed_Func002A)
call DestroyGroup(udg_group05)
if(Trig_Adjust_Speed_Func004C())then
call SetUnitMoveSpeed(udg_unit27,(100.00+(I2R(udg_integer06)*15.00)))
endif
if(Trig_Adjust_Speed_Func005C())then
call SetUnitMoveSpeed(udg_unit29,(GetUnitMoveSpeed(udg_unit29)/2.00))
endif
if(Trig_Adjust_Speed_Func006C())then
call SetUnitMoveSpeed(udg_unit26,(GetUnitMoveSpeed(udg_unit26)/2.00))
endif
endfunction
function Trig_Create_Leaderboard_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call CreateMultiboardBJ(2,13,"TRIGSTR_6500")
call MultiboardSetItemWidthBJ(bj_lastCreatedMultiboard,1,0,10.00)
call MultiboardSetItemWidthBJ(bj_lastCreatedMultiboard,2,0,5.00)
call MultiboardSetItemStyleBJ(bj_lastCreatedMultiboard,0,0,true,false)
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=13
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemStyleBJ(bj_lastCreatedMultiboard,1,bj_forLoopAIndex,true,true)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,1,1,"TRIGSTR_6501")
call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,2,1,"TRIGSTR_6503")
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,2,80.00,0.00,0.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,3,0.00,0.00,80.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,4,0.00,80,80.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,5,50.00,0.00,50.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,6,80.00,80,0.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,7,80.00,50.00,0.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,8,0.00,80,0.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,9,80.00,60.00,60.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,10,50.00,50.00,50.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,11,60.00,60.00,80.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,12,0.00,40.00,20.00,0)
call MultiboardSetItemColorBJ(bj_lastCreatedMultiboard,1,13,50.00,30.00,0.00,0)
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,2,"CommandButtons\\BTNGoku.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,3,"CommandButtons\\BTNVegeta.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,4,"CommandButtons\\BTNGohan.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,5,"CommandButtons\\BTNGotenks.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,6,"CommandButtons\\BTNSuper13.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,7,"CommandButtons\\BTNFTrunks.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,8,"CommandButtons\\BTNPiccolo.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,9,"CommandButtons\\BTNSuperBuu.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,10,"CommandButtons\\BTNBabyVegeta.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,11,"CommandButtons\\BTNBroly.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,12,"CommandButtons\\BTNCell3.blp")
call MultiboardSetItemIconBJ(bj_lastCreatedMultiboard,1,13,"CommandButtons\\BTNCooler.blp")
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=13
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,2,bj_forLoopAIndex,(R2S(udg_reals02[(bj_forLoopAIndex-1)])+"x"))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger616)
call TriggerExecute(udg_trigger616)
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Trig_Update_Leaderboard_Func002Func001001 takes nothing returns boolean
return(GetPlayerSlotState(GetEnumPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Update_Leaderboard_Func002A takes nothing returns nothing
if(Trig_Update_Leaderboard_Func002Func001001())then
else
call SetPlayerName(GetEnumPlayer(),"TRIGSTR_6509")
endif
endfunction
function Trig_Update_Leaderboard_Actions takes nothing returns nothing
set udg_force07=GetPlayersByMapControl(MAP_CONTROL_USER)
call ForForce(udg_force07,function Trig_Update_Leaderboard_Func002A)
call DestroyForce(udg_force07)
set bj_forLoopAIndex=2
set bj_forLoopAIndexEnd=13
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,1,bj_forLoopAIndex,GetPlayerName(Player(-1+((bj_forLoopAIndex-1)))))
call MultiboardSetItemValueBJ(bj_lastCreatedMultiboard,2,bj_forLoopAIndex,(R2S(udg_reals02[(bj_forLoopAIndex-1)])+"x"))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call MultiboardDisplay(bj_lastCreatedMultiboard,true)
endfunction
function Trig_Destroy_Effect_Actions takes nothing returns nothing
local effect udg_effect01
set udg_effect01=bj_lastCreatedEffect
call PolledWait(3.00)
call DestroyEffect(udg_effect01)
endfunction
function Trig_Destroy_Effect_10s_Actions takes nothing returns nothing
local effect udg_effect01
set udg_effect01=bj_lastCreatedEffect
call PolledWait(10.00)
call DestroyEffect(udg_effect01)
endfunction
function Trig_Destroy_Effect_20s_Actions takes nothing returns nothing
local effect udg_effect01
set udg_effect01=bj_lastCreatedEffect
call PolledWait(5.00)
call DestroyEffect(udg_effect01)
endfunction
function Trig_Regrow_Tree_Actions takes nothing returns nothing
local destructable udg_destructable02
set udg_destructable02=GetEnumDestructable()
call PolledWait(20.00)
call DestructableRestoreLife(udg_destructable02,GetDestructableMaxLife(udg_destructable02),true)
endfunction
function main2 takes nothing returns nothing
local weathereffect we
local destructable d
local trigger t
local real life
local integer itemID
local player p
local unit u
local integer unitID
local integer i
call SetCameraBounds(-16128.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-15872.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),16128.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),16128.0-GetCameraMargin(CAMERA_MARGIN_TOP),-16128.0+GetCameraMargin(CAMERA_MARGIN_LEFT),16128.0-GetCameraMargin(CAMERA_MARGIN_TOP),16128.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-15872.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call SetTerrainFogEx(0,1000.0,4000.0,0.500,0.000,0.502,0.502)
call NewSoundEnvironment("Default")
call SetAmbientDaySound("LordaeronSummerDay")
call SetAmbientNightSound("LordaeronSummerNight")
call SetMapMusic("Music",true,0)
call SetSoundParamsFromLabel(udg_sound03,"AltarOfKingsWhat")
call SetSoundDuration(udg_sound03,3585)
call SetSoundChannel(udg_sound03,0)
call SetSoundVolume(udg_sound03,127)
call SetSoundParamsFromLabel(udg_sound04,"AncestralGuardianAttack1")
call SetSoundDuration(udg_sound04,1181)
call SetSoundParamsFromLabel(udg_sound05,"BanishLoop")
call SetSoundDuration(udg_sound05,1721)
call SetSoundParamsFromLabel(udg_sound06,"Barkskin")
call SetSoundDuration(udg_sound06,2669)
call SetSoundParamsFromLabel(udg_sound07,"ClanInvitation")
call SetSoundDuration(udg_sound07,4296)
call SetSoundPitch(udg_sound07,0.7)
call SetSoundDuration(udg_sound08,66125)
call SetSoundChannel(udg_sound08,0)
call SetSoundVolume(udg_sound08,127)
call SetSoundPitch(udg_sound08,1.0)
call SetSoundParamsFromLabel(udg_sound09,"DryadDeath")
call SetSoundDuration(udg_sound09,2667)
call SetSoundParamsFromLabel(udg_sound10,"FreezingBreath")
call SetSoundDuration(udg_sound10,2833)
call SetSoundParamsFromLabel(udg_sound11,"FrostmourneLoop")
call SetSoundDuration(udg_sound11,3320)
call SetSoundPitch(udg_sound11,0.7)
call SetSoundDistances(udg_sound11,600.0,5000.0)
call SetSoundDistanceCutoff(udg_sound11,2500.0)
call SetSoundParamsFromLabel(udg_sound12,"U08Archimonde19")
call SetSoundDuration(udg_sound12,7549)
call SetSoundVolume(udg_sound12,127)
call SetSoundPitch(udg_sound12,1.7)
call SetSoundDistances(udg_sound12,100.0,10000.0)
call SetSoundParamsFromLabel(udg_sound13,"HeroArchMageYesAttack")
call SetSoundDuration(udg_sound13,1683)
call SetSoundParamsFromLabel(udg_sound14,"HeroMoonPriestessDeath")
call SetSoundDuration(udg_sound14,1567)
call SetSoundParamsFromLabel(udg_sound15,"SargerasRoar")
call SetSoundDuration(udg_sound15,4481)
call SetSoundPitch(udg_sound15,0.8)
call SetSoundParamsFromLabel(udg_sound16,"HumanDissipate")
call SetSoundDuration(udg_sound16,2270)
call SetSoundParamsFromLabel(udg_sound17,"H01Bandit32")
call SetSoundDuration(udg_sound17,3683)
call SetSoundVolume(udg_sound17,127)
call SetSoundPitch(udg_sound17,1.7)
call SetSoundDistances(udg_sound17,100.0,10000.0)
call SetSoundParamsFromLabel(udg_sound18,"KnightDeath")
call SetSoundDuration(udg_sound18,2415)
call SetSoundParamsFromLabel(udg_sound19,"DevourPuke")
call SetSoundDuration(udg_sound19,2096)
call SetSoundParamsFromLabel(udg_sound20,"MarkOfChaos")
call SetSoundDuration(udg_sound20,4000)
call SetSoundParamsFromLabel(udg_sound21,"PeasantDeath")
call SetSoundDuration(udg_sound21,3645)
call SetSoundParamsFromLabel(udg_sound22,"RiflemanDeath")
call SetSoundDuration(udg_sound22,1770)
call SetSoundParamsFromLabel(udg_sound23,"SargerasRoar")
call SetSoundDuration(udg_sound23,4481)
call SetSoundPitch(udg_sound23,1.2)
call SetSoundParamsFromLabel(udg_sound24,"ShadowStrikeBirth")
call SetSoundDuration(udg_sound24,2194)
call SetSoundParamsFromLabel(udg_sound25,"ShimmeringPortalBirth")
call SetSoundDuration(udg_sound25,8529)
call SetSoundParamsFromLabel(udg_sound26,"ShimmeringPortalBirth")
call SetSoundDuration(udg_sound26,8529)
call SetSoundParamsFromLabel(udg_sound27,"ShimmeringPortalDeath")
call SetSoundDuration(udg_sound27,4783)
call SetSoundParamsFromLabel(udg_sound28,"ShimmeringPortalDeath")
call SetSoundDuration(udg_sound28,4783)
call SetSoundParamsFromLabel(udg_sound29,"BlueFireLoop")
call SetSoundDuration(udg_sound29,4000)
call SetSoundParamsFromLabel(udg_sound30,"Flare1")
call SetSoundDuration(udg_sound30,3582)
call SetSoundPitch(udg_sound30,0.7)
call SetSoundParamsFromLabel(udg_sound31,"TaurenWarcry")
call SetSoundDuration(udg_sound31,2711)
call SetSoundParamsFromLabel(udg_sound32,"UndeadDissipate")
call SetSoundDuration(udg_sound32,3613)
call SetSoundParamsFromLabel(udg_sound33,"Warning")
call SetSoundDuration(udg_sound33,1904)
call SetSoundPitch(udg_sound33,0.8)
call SetSoundParamsFromLabel(udg_sound34,"RollingThunderSound")
call SetSoundDuration(udg_sound34,3831)
call SetSoundParamsFromLabel(udg_sound35,"SargerasLaugh")
call SetSoundDuration(udg_sound35,3326)
call SetSoundPitch(udg_sound35,0.5)
call SetSoundParamsFromLabel(udg_sound36,"BridgeDeath")
call SetSoundDuration(udg_sound36,9081)
call SetSoundParamsFromLabel(udg_sound37,"LichKingDream")
call SetSoundDuration(udg_sound37,7883)
call SetSoundParamsFromLabel(udg_sound38,"Rescue")
call SetSoundDuration(udg_sound38,3796)
call SetSoundVolume(udg_sound38,127)
call SetSoundPitch(udg_sound38,0.7)
call SetSoundParamsFromLabel(udg_sound39,"EnchantedCellLoop")
call SetSoundDuration(udg_sound39,4999)
call SetSoundPitch(udg_sound39,1.3)
call SetSoundParamsFromLabel(udg_sound40,"SecretFound")
call SetSoundDuration(udg_sound40,2525)
call SetSoundVolume(udg_sound40,99)
call SetSoundPitch(udg_sound40,0.7)
call SetSoundParamsFromLabel(udg_sound41,"FrostWyrmPissed")
call SetSoundDuration(udg_sound41,4772)
call SetSoundParamsFromLabel(udg_sound42,"EarthquakeLoop")
call SetSoundDuration(udg_sound42,1962)
call SetSoundParamsFromLabel(udg_sound43,"RunesGlowLoop")
call SetSoundDuration(udg_sound43,5000)
call SetSoundPitch(udg_sound43,0.9)
call SetSoundParamsFromLabel(udg_sound44,"Switch")
call SetSoundDuration(udg_sound44,2606)
call SetSoundPitch(udg_sound44,1.3)
set udg_rect01=Rect(15680.0,14560.0,15936.0,14688.0)
set udg_rect02=Rect(2624.0,14496.0,2816.0,14688.0)
set udg_rect03=Rect(7488.0,3456.0,7712.0,3648.0)
set udg_rect04=Rect(-4320.0,-6080.0,-3968.0,-5856.0)
set udg_rect05=Rect(15584.0,14976.0,16032.0,15328.0)
set udg_rect06=Rect(4032.0,-14528.0,4192.0,-14368.0)
set udg_rect07=Rect(-13888.0,15232.0,-13760.0,15360.0)
set udg_rect08=Rect(7904.0,3584.0,8160.0,3904.0)
set udg_rect09=Rect(15200.0,15584.0,15488.0,16032.0)
set udg_rect10=Rect(10304.0,-12928.0,10720.0,-12672.0)
set udg_rect11=Rect(10272.0,-10336.0,11328.0,-9216.0)
set udg_rect12=Rect(12992.0,1440.0,13152.0,1664.0)
set udg_rect13=Rect(13312.0,1376.0,13376.0,1472.0)
set udg_rect14=Rect(9088.0,-12128.0,9856.0,-11456.0)
set udg_rect15=Rect(15584.0,15328.0,16032.0,15584.0)
set udg_rect16=Rect(14720.0,8064.0,15488.0,8576.0)
set udg_rect16=Rect(14720.0,8064.0,15488.0,8576.0)
set udg_rect17=Rect(6624.0,13024.0,9216.0,16256.0)
set udg_rect18=Rect(8000.0,-12640.0,11712.0,-12512.0)
set udg_rect19=Rect(-10016.0,-15232.0,-4288.0,-9152.0)
set udg_rect20=Rect(-6368.0,8800.0,-5280.0,9632.0)
set udg_rect21=Rect(8640.0,9344.0,8768.0,9440.0)
set udg_rect22=Rect(3712.0,15072.0,3968.0,15264.0)
set udg_rect23=Rect(-10528.0,12160.0,-10144.0,12448.0)
set we=AddWeatherEffect(udg_rect23,'FDrh')
call EnableWeatherEffect(we,true)
set udg_rect24=Rect(-3616.0,1536.0,-3296.0,1792.0)
set udg_rect25=Rect(1408.0,-8768.0,1632.0,-8576.0)
set udg_rect26=Rect(3968.0,14784.0,4128.0,14944.0)
set udg_rect27=Rect(7552.0,14304.0,9152.0,15200.0)
set udg_rect28=Rect(12000.0,13664.0,12576.0,14016.0)
set udg_rect29=Rect(6912.0,14400.0,7040.0,14528.0)
set udg_rect30=Rect(14560.0,15584.0,14912.0,15904.0)
set udg_rect31=Rect(14464.0,14336.0,14592.0,14432.0)
set udg_rect32=Rect(12224.0,13472.0,12352.0,13600.0)
set udg_rect33=Rect(-2464.0,5248.0,-2336.0,5376.0)
set udg_rect34=Rect(8640.0,13248.0,8768.0,13376.0)
set udg_rect35=Rect(14912.0,15584.0,15200.0,15808.0)
set udg_rect36=Rect(7872.0,13248.0,8000.0,13376.0)
set udg_rect37=Rect(14912.0,15808.0,15200.0,16032.0)
set udg_rect38=Rect(-2784.0,4928.0,-2240.0,5472.0)
set udg_rect39=Rect(-15104.0,15808.0,-14976.0,15936.0)
set udg_rect40=Rect(9856.0,-13408.0,9920.0,-13344.0)
set udg_rect41=Rect(9568.0,-13184.0,9696.0,-13056.0)
set udg_rect42=Rect(10016.0,-12992.0,10080.0,-12928.0)
set udg_rect43=Rect(9664.0,-12992.0,9728.0,-12928.0)
set udg_rect44=Rect(9792.0,-13184.0,9952.0,-13056.0)
set udg_rect45=Rect(-10688.0,11968.0,-1856.0,16224.0)
set udg_rect46=Rect(11648.0,-10688.0,12128.0,-10240.0)
set udg_rect47=Rect(-13920.0,-4096.0,-13632.0,-3808.0)
set we=AddWeatherEffect(udg_rect47,'WOlw')
call EnableWeatherEffect(we,true)
set udg_rect48=Rect(7712.0,14528.0,8000.0,14784.0)
set udg_rect49=Rect(-4768.0,8416.0,-3968.0,8992.0)
set udg_rect50=Rect(6720.0,8896.0,9024.0,11968.0)
set udg_rect51=Rect(12960.0,13600.0,13280.0,13888.0)
set udg_rect52=Rect(10112.0,9280.0,16000.0,15264.0)
set udg_rect53=Rect(2144.0,14176.0,2880.0,15040.0)
set udg_rect54=Rect(14336.0,14624.0,14464.0,14720.0)
set udg_rect55=Rect(12320.0,13792.0,12480.0,13920.0)
set udg_rect56=Rect(-3328.0,2080.0,-3104.0,2272.0)
set udg_rect57=Rect(-2464.0,15296.0,-2240.0,15520.0)
set we=AddWeatherEffect(udg_rect57,'FDrh')
call EnableWeatherEffect(we,true)
set udg_rect58=Rect(8896.0,13696.0,9024.0,13824.0)
set udg_rect59=Rect(2240.0,11776.0,2912.0,11936.0)
set udg_rect60=Rect(7776.0,15072.0,8032.0,15360.0)
set udg_rect61=Rect(2336.0,11776.0,2784.0,11904.0)
set udg_rect62=Rect(-32.0,11776.0,5376.0,16000.0)
set udg_rect63=Rect(-352.0,-6400.0,-224.0,-6304.0)
set udg_rect64=Rect(-15904.0,8576.0,-14400.0,10240.0)
set udg_rect65=Rect(2144.0,12288.0,2304.0,12448.0)
set udg_rect66=Rect(14528.0,14496.0,14624.0,14560.0)
set udg_rect67=Rect(7808.0,11232.0,7936.0,11328.0)
set udg_rect68=Rect(-3744.0,8928.0,-3616.0,9056.0)
set udg_rect69=Rect(15488.0,15808.0,15744.0,16032.0)
set udg_rect70=Rect(-800.0,-6976.0,704.0,-5760.0)
set udg_rect71=Rect(-96.0,-6432.0,32.0,-6272.0)
set udg_rect72=Rect(-3968.0,2176.0,-3840.0,2304.0)
set udg_rect73=Rect(-14880.0,9248.0,-14656.0,9536.0)
set udg_rect74=Rect(2272.0,14528.0,2560.0,14784.0)
set udg_rect75=Rect(2208.0,14208.0,2368.0,14336.0)
set udg_rect76=Rect(14528.0,14528.0,14656.0,14624.0)
set udg_rect77=Rect(13056.0,13920.0,13184.0,14080.0)
set udg_rect78=Rect(12736.0,13792.0,12864.0,13952.0)
set udg_rect79=Rect(12736.0,13600.0,12864.0,13728.0)
set udg_rect80=Rect(-16320.0,-16128.0,2496.0,10336.0)
set udg_rect81=Rect(2400.0,-16192.0,16320.0,-4000.0)
set udg_rect82=Rect(-3904.0,8672.0,-3776.0,8800.0)
set udg_rect83=Rect(3936.0,8096.0,4032.0,8192.0)
set we=AddWeatherEffect(udg_rect83,'SNhs')
call EnableWeatherEffect(we,true)
set udg_rect84=Rect(2336.0,12768.0,2784.0,13184.0)
set udg_rect85=Rect(7680.0,3904.0,7776.0,4000.0)
set udg_rect86=Rect(8224.0,3808.0,8320.0,3904.0)
set udg_rect87=Rect(8096.0,3456.0,8192.0,3552.0)
set udg_rect88=Rect(7904.0,3968.0,8000.0,4064.0)
set udg_rect89=Rect(-9056.0,8096.0,-8736.0,8352.0)
set udg_rect90=Rect(7744.0,9280.0,7872.0,9376.0)
set udg_rect91=Rect(-128.0,-13376.0,32.0,-13248.0)
set udg_rect92=Rect(9984.0,-10240.0,10144.0,-10112.0)
set udg_rect93=Rect(12096.0,13792.0,12224.0,13920.0)
set udg_rect94=Rect(14752.0,14464.0,14848.0,14560.0)
set udg_rect95=Rect(-3200.0,1760.0,-3072.0,1888.0)
set udg_rect96=Rect(4768.0,14560.0,5280.0,15072.0)
set udg_rect97=Rect(13088.0,8096.0,14176.0,8544.0)
set udg_rect98=Rect(13152.0,-14656.0,15712.0,-11616.0)
set udg_rect99=Rect(12416.0,-15328.0,16064.0,-12800.0)
set udg_rect100=Rect(13728.0,-14080.0,13984.0,-13792.0)
set udg_rect101=Rect(14848.0,-14080.0,15104.0,-13792.0)
set udg_rect102=Rect(11200.0,-15136.0,11456.0,-14688.0)
set udg_rect103=Rect(12864.0,-14496.0,13088.0,-13248.0)
set udg_rect104=Rect(13216.0,-14944.0,15968.0,-14720.0)
set udg_rect105=Rect(-10784.0,2336.0,-10176.0,2752.0)
set udg_rect106=Rect(-10720.0,1440.0,-10592.0,1600.0)
set udg_rect107=Rect(-11040.0,1344.0,-10912.0,1504.0)
set udg_rect108=Rect(-10944.0,1728.0,-10848.0,1856.0)
set udg_rect109=Rect(-10400.0,1696.0,-10208.0,1888.0)
set udg_rect110=Rect(-10656.0,1760.0,-10464.0,1920.0)
set udg_rect111=Rect(6848.0,13312.0,6976.0,13440.0)
set udg_rect112=Rect(-3424.0,1952.0,-3360.0,2016.0)
set udg_rect113=Rect(-4128.0,-5344.0,-3200.0,-4640.0)
set we=AddWeatherEffect(udg_rect113,'LRma')
call EnableWeatherEffect(we,true)
set udg_rect114=Rect(6912.0,9440.0,7008.0,9568.0)
set udg_rect115=Rect(-13920.0,-14432.0,-13728.0,-14144.0)
set udg_rect116=Rect(14272.0,-14496.0,14432.0,-14432.0)
set udg_rect117=Rect(-15936.0,15488.0,-15808.0,15616.0)
set udg_rect118=Rect(1952.0,-7808.0,2144.0,-7648.0)
set udg_rect119=Rect(-8704.0,-3520.0,-8480.0,-3264.0)
set we=AddWeatherEffect(udg_rect119,'LRaa')
call EnableWeatherEffect(we,true)
set udg_rect120=Rect(2656.0,6912.0,4384.0,8576.0)
set we=AddWeatherEffect(udg_rect120,'SNls')
call EnableWeatherEffect(we,true)
call SetSoundPosition(udg_sound11,3520.0,7744.0,-13.0)
call RegisterStackedSound(udg_sound11,true,1728.0,1664.0)
set udg_rect121=Rect(2400.0,13280.0,2720.0,13472.0)
set udg_rect122=Rect(2848.0,12288.0,3008.0,12448.0)
set udg_rect123=Rect(3360.0,-3328.0,3808.0,-2880.0)
set udg_rect124=Rect(3232.0,-3488.0,3360.0,-3360.0)
set udg_rect125=Rect(3456.0,-3616.0,3584.0,-3488.0)
set udg_rect126=Rect(14560.0,-4608.0,14720.0,-4448.0)
set we=AddWeatherEffect(udg_rect126,'FDrh')
call EnableWeatherEffect(we,true)
set udg_rect127=Rect(14304.0,-4864.0,14400.0,-4768.0)
set udg_rect128=Rect(14464.0,-4896.0,14560.0,-4800.0)
set udg_rect129=Rect(14688.0,-4896.0,14784.0,-4800.0)
set udg_rect130=Rect(14816.0,-4896.0,14912.0,-4800.0)
set udg_rect131=Rect(-5312.0,-1248.0,-5024.0,-928.0)
set udg_rect132=Rect(4672.0,-3648.0,5312.0,-2944.0)
set udg_rect133=Rect(-6560.0,13280.0,-6336.0,13472.0)
set we=AddWeatherEffect(udg_rect133,'FDrh')
call EnableWeatherEffect(we,true)
set udg_rect134=Rect(-10592.0,15840.0,-10368.0,16064.0)
set we=AddWeatherEffect(udg_rect134,'FDrh')
call EnableWeatherEffect(we,true)
set udg_rect135=Rect(-13248.0,15520.0,-12992.0,15840.0)
set we=AddWeatherEffect(udg_rect135,'MEds')
call EnableWeatherEffect(we,true)
set udg_rect136=Rect(10976.0,-10048.0,11168.0,-9856.0)
set udg_rect137=Rect(2880.0,9792.0,3072.0,10176.0)
set we=AddWeatherEffect(udg_rect137,'LRaa')
call EnableWeatherEffect(we,true)
set udg_rect138=Rect(3200.0,9920.0,3296.0,10016.0)
set udg_rect139=Rect(4480.0,9344.0,5632.0,10624.0)
set udg_rect140=Rect(11104.0,-10208.0,11232.0,-10080.0)
set udg_rect141=Rect(32.0,1600.0,3264.0,7872.0)
set we=AddWeatherEffect(udg_rect141,'SNhs')
call EnableWeatherEffect(we,true)
set udg_rect142=Rect(-2112.0,2048.0,256.0,5408.0)
set we=AddWeatherEffect(udg_rect142,'SNls')
call EnableWeatherEffect(we,true)
set udg_rect143=Rect(-1504.0,-736.0,3776.0,2176.0)
set we=AddWeatherEffect(udg_rect143,'SNls')
call EnableWeatherEffect(we,true)
set udg_rect144=Rect(-15648.0,11872.0,-14560.0,12064.0)
set udg_rect145=Rect(-16128.0,10784.0,-13888.0,11584.0)
set udg_rect146=Rect(-14752.0,12960.0,-14560.0,13184.0)
set udg_rect147=Rect(-14432.0,13056.0,-14336.0,13184.0)
set udg_rect148=Rect(-16128.0,10784.0,-13888.0,12640.0)
set udg_rect149=Rect(-15872.0,13312.0,-15744.0,13440.0)
set udg_rect150=Rect(-13504.0,13184.0,-13376.0,13312.0)
set udg_rect151=Rect(-15776.0,11648.0,-14432.0,12224.0)
set udg_rect152=Rect(-16064.0,10976.0,-14048.0,11424.0)
set udg_rect153=Rect(6176.0,-928.0,6400.0,-704.0)
set udg_rect154=Rect(2528.0,9152.0,5888.0,10784.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ANGLE_OF_ATTACK,302.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_TARGET_DISTANCE,1650.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup01,14632.0,15100.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROTATION,94.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ANGLE_OF_ATTACK,332.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_TARGET_DISTANCE,1239.7,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup02,-9658.7,998.4,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ANGLE_OF_ATTACK,319.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_TARGET_DISTANCE,1450.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup03,9871.8,-13077.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ROTATION,250.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ANGLE_OF_ATTACK,336.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_TARGET_DISTANCE,900.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup04,10147.3,-10255.6,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ROTATION,241.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ANGLE_OF_ATTACK,310.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_TARGET_DISTANCE,475.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_FIELD_OF_VIEW,96.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup05,10144.6,-10268.6,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ROTATION,63.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ANGLE_OF_ATTACK,8.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_TARGET_DISTANCE,1650.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ROLL,9.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup06,8185.7,4462.3,0.0)
set udg_destructable04=CreateDestructable('B001',-8672.0,13536.0,270.000,1.195,1)
set udg_destructable03=CreateDestructableZ('ZTd3',5056.0,-3264.0,-12.8,90.000,0.900,0)
set udg_item04=CreateItem('I009',14976.1,15706.8)
set udg_item14=CreateItem('I00L',14651.2,15952.0)
set udg_item19=CreateItem('I00T',15310.6,15886.8)
set udg_item05=CreateItem('I00U',15379.7,15884.8)
set udg_item10=CreateItem('I01B',14728.3,15956.9)
set udg_item03=CreateItem('I01E',15004.2,15727.1)
set udg_item02=CreateItem('I01F',15791.1,15408.0)
set udg_item13=CreateItem('I01G',15851.7,15408.0)
set udg_item09=CreateItem('I01K',15734.7,15397.0)
set udg_item07=CreateItem('I01L',15067.5,15944.9)
set udg_item08=CreateItem('I01M',15067.0,15906.2)
set udg_item15=CreateItem('I01N',15572.9,15930.6)
set udg_item12=CreateItem('I01S',15745.8,15028.3)
set udg_item06=CreateItem('I01U',15805.0,14635.8)
set udg_item11=CreateItem('I01W',15848.7,15903.2)
set udg_item17=CreateItem('I020',14766.4,15853.5)
set udg_item16=CreateItem('I027',14845.0,15806.3)
set udg_item18=CreateItem('I028',14843.2,15679.3)
set udg_item20=CreateItem('I029',14658.5,15697.8)
set p=Player(12)
set udg_unit90=CreateUnit(p,'h007',3648.0,-14464.0,270.000)
set p=Player(15)
set u=CreateUnit(p,'n002',-14304.0,15968.0,270.000)
set udg_unit98=CreateUnit(p,'h002',6528.0,-1152.0,270.000)
call SetUnitColor(udg_unit98,ConvertPlayerColor(6))
set udg_unit69=CreateUnit(p,'n00R',5184.0,-1664.0,270.000)
set udg_unit72=CreateUnit(p,'n00R',576.0,15040.0,270.000)
set udg_unit78=CreateUnit(p,'h024',5056.0,9984.0,270.000)
call SetUnitColor(udg_unit78,ConvertPlayerColor(9))
set u=CreateUnit(p,'n001',-13824.0,15296.0,270.000)
set u=CreateUnit(p,'n001',-15040.0,15872.0,270.000)
set u=CreateUnit(p,'n01Q',-8896.0,8512.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(2))
set udg_unit96=CreateUnit(p,'n01P',2112.0,12608.0,270.000)
set u=CreateUnit(p,'n001',-15808.0,13376.0,270.000)
set u=CreateUnit(p,'n01H',7872.0,15424.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01H',3776.0,15424.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n001',-13440.0,13248.0,270.000)
set u=CreateUnit(p,'n02L',-14656.0,13056.0,270.000)
set u=CreateUnit(p,'n001',-15872.0,15552.0,270.000)
set u=CreateUnit(p,'n01J',2688.0,15232.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01J',2112.0,15232.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01K',3072.0,15040.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01L',1664.0,14912.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01N',10816.0,-9600.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01K',14848.0,-12032.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01L',13632.0,-12032.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01J',14080.0,-11840.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n02N',-11776.0,10688.0,270.000)
set u=CreateUnit(p,'n01I',-5312.0,4800.0,270.000)
call SetResourceAmount(u,25000)
set u=CreateUnit(p,'n01I',-15744.0,1856.0,270.000)
call SetResourceAmount(u,35000)
set u=CreateUnit(p,'n001',6976.0,14464.0,270.000)
set u=CreateUnit(p,'n001',6912.0,13376.0,270.000)
set u=CreateUnit(p,'n001',8704.0,13312.0,270.000)
set u=CreateUnit(p,'n001',8960.0,13760.0,270.000)
set u=CreateUnit(p,'n001',7936.0,13312.0,270.000)
set u=CreateUnit(p,'n00R',8576.0,14912.0,270.000)
set u=CreateUnit(p,'n01I',-1472.0,-10816.0,270.000)
call SetResourceAmount(u,100000)
set u=CreateUnit(p,'n01I',7680.0,-3584.0,270.000)
call SetResourceAmount(u,50000)
set u=CreateUnit(p,'n01I',-1984.0,-2944.0,270.000)
call SetResourceAmount(u,50000)
set u=CreateUnit(p,'n01I',10240.0,5760.0,270.000)
call SetResourceAmount(u,100000)
set u=CreateUnit(p,'n01I',4672.0,-8000.0,270.000)
call SetResourceAmount(u,50000)
set u=CreateUnit(p,'n01I',2048.0,-12992.0,270.000)
call SetResourceAmount(u,75000)
set p=Player(7)
set udg_unit49=CreateUnit(p,'u002',8032.0,3744.0,270.000)
set p=Player(9)
set udg_unit74=CreateUnit(p,'n005',3968.0,8000.0,270.000)
set p=Player(11)
set udg_unit50=CreateUnit(p,'u001',-15392.0,9696.0,270.000)
call SetUnitColor(udg_unit50,ConvertPlayerColor(8))
set p=Player(12)
set udg_unit37=CreateUnit(p,'n008',-15519.8,-5690.1,11.540)
call SetUnitColor(udg_unit37,ConvertPlayerColor(12))
set udg_unit64=CreateUnit(p,'n01M',1748.7,-13014.2,140.910)
call SetUnitColor(udg_unit64,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01D',9995.8,5879.2,187.575)
set u=CreateUnit(p,'n01D',9610.2,5074.4,148.298)
set u=CreateUnit(p,'n01D',11592.1,5535.9,285.401)
set u=CreateUnit(p,'n01E',11126.3,5037.3,134.367)
set u=CreateUnit(p,'n01D',13359.3,5643.1,208.516)
set u=CreateUnit(p,'n01D',14019.1,3708.0,225.886)
set u=CreateUnit(p,'n01D',12812.3,3630.8,80.741)
set u=CreateUnit(p,'n01E',11758.6,3796.4,201.440)
set u=CreateUnit(p,'n01D',11455.7,1817.5,340.609)
set u=CreateUnit(p,'n01D',12396.3,1668.1,317.778)
set u=CreateUnit(p,'n01E',12030.1,2087.2,313.032)
set u=CreateUnit(p,'n02C',-6493.3,14006.1,68.029)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-9533.5,12701.5,171.557)
call SetUnitColor(u,ConvertPlayerColor(12))
set udg_unit99=CreateUnit(p,'h00C',6535.3,-1165.6,166.290)
set u=CreateUnit(p,'n01A',1209.1,-9955.5,76.489)
set u=CreateUnit(p,'n01A',13750.6,-7068.5,140.179)
set u=CreateUnit(p,'n01A',-996.9,-7784.0,300.000)
set u=CreateUnit(p,'n01A',521.6,7763.6,270.000)
set u=CreateUnit(p,'n01A',-783.2,-1984.7,148.518)
set u=CreateUnit(p,'n015',-14018.4,4865.6,355.221)
set u=CreateUnit(p,'n015',-12785.8,3727.7,30.158)
set u=CreateUnit(p,'n015',-13854.7,3541.9,208.164)
set u=CreateUnit(p,'n015',-12999.3,4958.9,74.160)
set u=CreateUnit(p,'n02E',-5130.7,-11969.7,130.258)
set u=CreateUnit(p,'n02E',-3832.4,-9768.2,136.421)
set u=CreateUnit(p,'n02E',-2047.9,-11338.5,23.391)
set u=CreateUnit(p,'n02E',-888.0,-10904.0,136.465)
set u=CreateUnit(p,'n02E',-5369.4,-14791.8,193.739)
set u=CreateUnit(p,'n02F',-4684.3,-14138.2,183.247)
set u=CreateUnit(p,'n02F',-3708.8,-12065.5,42.980)
set u=CreateUnit(p,'n02F',-3920.9,-13667.4,1.450)
set u=CreateUnit(p,'n02F',-4008.4,-10997.6,341.531)
set u=CreateUnit(p,'n02F',-1394.0,-14367.8,316.284)
set u=CreateUnit(p,'n02F',-1324.7,-12448.5,231.280)
set u=CreateUnit(p,'n02F',-2725.2,-13409.7,86.234)
set u=CreateUnit(p,'n019',-14873.2,4055.8,140.080)
set u=CreateUnit(p,'n019',-14987.5,3189.3,287.895)
set u=CreateUnit(p,'n019',-11505.4,1153.2,86.959)
set u=CreateUnit(p,'n01U',-11516.9,-5026.9,167.041)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01A',-14899.1,1744.6,347.047)
set u=CreateUnit(p,'n019',-11761.9,2996.2,107.450)
set u=CreateUnit(p,'n019',-13049.2,2599.1,330.819)
set u=CreateUnit(p,'n015',-12342.0,1227.6,132.895)
set u=CreateUnit(p,'n015',-12119.5,4294.5,304.506)
set u=CreateUnit(p,'n015',-11537.1,5131.2,353.551)
set u=CreateUnit(p,'n015',-8706.3,2757.4,85.333)
set u=CreateUnit(p,'n019',-10510.6,3541.0,28.510)
set u=CreateUnit(p,'n019',-9516.2,4136.1,356.814)
set u=CreateUnit(p,'n014',-1671.2,10338.2,260.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n014',-6766.7,9967.3,320.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n014',-4178.7,7244.7,260.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n014',-599.2,6661.6,260.000)
call SetUnitColor(u,ConvertPlayerColor(8))
set u=CreateUnit(p,'n01U',-12673.1,-6185.8,303.452)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-11372.7,-3565.5,144.617)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-10629.2,-5774.7,130.401)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-11325.3,-6935.2,344.146)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01E',-7327.4,-8610.6,109.757)
set u=CreateUnit(p,'n01U',-14991.8,-5227.5,322.711)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-15046.1,-4021.8,316.251)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-15335.4,-2308.9,195.881)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n019',-9970.5,676.5,107.450)
set u=CreateUnit(p,'n01U',-9287.2,-3413.5,245.805)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-10246.9,-3315.6,32.147)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-8699.7,-3318.2,130.258)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-8327.4,-3909.9,284.082)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-9381.8,-4699.3,90.816)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-8834.3,-6510.0,32.652)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-9496.7,-7940.9,115.755)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-12350.3,-7407.5,344.146)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-14282.9,-7888.9,344.146)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-13371.7,-6773.9,344.146)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-15419.5,-9248.7,344.146)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-12699.6,-8553.2,344.146)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01U',-11828.2,-8331.5,344.146)
call SetUnitColor(u,ConvertPlayerColor(0))
set u=CreateUnit(p,'n01D',-3550.6,-426.6,350.310)
set u=CreateUnit(p,'n01D',-6357.3,-220.8,350.310)
set u=CreateUnit(p,'n01D',-4553.4,-134.6,350.310)
set u=CreateUnit(p,'n015',-9053.6,2185.5,353.551)
set u=CreateUnit(p,'n015',-7832.8,565.6,85.333)
set u=CreateUnit(p,'n019',-8133.5,-1384.4,28.510)
set u=CreateUnit(p,'n01X',-10512.4,13336.3,322.513)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-9077.8,13820.9,326.271)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-9797.4,14165.7,208.054)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-8208.4,13170.9,197.452)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-7944.1,13380.0,341.630)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-8121.4,13950.3,287.422)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n020',-2290.4,-6719.8,323.436)
set u=CreateUnit(p,'n01X',-7434.5,14679.4,292.740)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-7961.9,15934.0,222.996)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-8110.2,15400.5,77.434)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-8653.7,15894.5,338.180)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-8898.7,15211.5,179.764)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-9186.5,15382.3,305.056)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-9199.0,14719.9,109.273)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-9676.4,15016.2,212.845)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-10341.1,14300.6,295.893)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01X',-9875.4,15335.8,120.161)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n020',-2637.7,-6703.6,244.937)
set u=CreateUnit(p,'n020',-2360.7,-6144.5,244.376)
set u=CreateUnit(p,'n020',-2353.6,-5764.7,248.288)
set u=CreateUnit(p,'n020',-2615.0,-6466.4,74.138)
set u=CreateUnit(p,'n020',-2921.0,-7145.1,166.393)
set u=CreateUnit(p,'n020',-2821.5,-7240.8,324.370)
set u=CreateUnit(p,'n020',-2865.4,-6719.8,168.623)
set u=CreateUnit(p,'n020',-2866.7,-7575.3,234.170)
set u=CreateUnit(p,'n020',-2728.8,-7386.5,262.988)
set u=CreateUnit(p,'n020',-3054.4,-7386.5,9.449)
set u=CreateUnit(p,'n020',-3083.3,-8178.2,63.041)
set u=CreateUnit(p,'n020',-2963.3,-8037.5,255.835)
set u=CreateUnit(p,'n020',-3208.9,-7974.1,332.017)
set u=CreateUnit(p,'n020',-2665.6,-8203.9,88.553)
set u=CreateUnit(p,'n020',-3035.9,-8410.3,12.613)
set u=CreateUnit(p,'n020',-3221.5,-8233.0,247.156)
set u=CreateUnit(p,'n020',-8187.2,4527.0,244.420)
set u=CreateUnit(p,'n020',-9085.7,4173.8,234.587)
set u=CreateUnit(p,'n020',-9301.3,4447.8,67.920)
set u=CreateUnit(p,'n020',-8145.5,5089.1,236.005)
set u=CreateUnit(p,'n020',-2342.9,6343.7,159.318)
set u=CreateUnit(p,'n020',-2421.4,8117.9,122.457)
set u=CreateUnit(p,'n020',-6269.6,8190.8,185.048)
set u=CreateUnit(p,'n019',-7909.8,2907.7,356.814)
set u=CreateUnit(p,'n019',-15403.6,306.1,86.959)
set u=CreateUnit(p,'n015',-14768.7,833.6,353.551)
set u=CreateUnit(p,'n019',-13810.6,-641.7,28.510)
set u=CreateUnit(p,'n019',-13208.5,1098.8,356.814)
set u=CreateUnit(p,'n02C',-5901.6,15022.6,111.372)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02C',-6157.9,14534.9,165.206)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02C',-5294.4,13825.2,31.960)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02C',-4714.5,15250.2,104.802)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02C',-4202.2,13731.3,304.990)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02C',-3231.3,13999.9,55.691)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02C',-3913.0,15708.7,211.878)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02C',-3278.0,15226.9,109.922)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02C',-2632.6,13733.3,240.223)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02C',-2296.7,14413.8,215.734)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01E',14489.2,342.1,275.897)
set u=CreateUnit(p,'n01E',14830.8,-1927.0,239.015)
set u=CreateUnit(p,'n01D',14253.3,-2701.0,172.392)
set u=CreateUnit(p,'n01D',15623.1,-5914.8,308.363)
set u=CreateUnit(p,'n01D',12439.6,-4277.6,327.392)
set u=CreateUnit(p,'n01E',14095.9,-5954.9,175.699)
set u=CreateUnit(p,'n01E',11139.5,-4902.8,179.291)
set u=CreateUnit(p,'n01E',14760.8,-6952.5,130.181)
set u=CreateUnit(p,'n02D',-3964.3,14642.4,0.000)
call SetUnitColor(u,ConvertPlayerColor(12))
set u=CreateUnit(p,'n01E',15586.5,-2827.3,82.389)
set u=CreateUnit(p,'n01E',12595.4,-7024.8,245.552)
set u=CreateUnit(p,'n01E',9720.0,-4972.4,307.682)
set u=CreateUnit(p,'n01E',12891.3,-5639.2,69.084)
set u=CreateUnit(p,'n01E',9604.6,-7282.6,119.370)
set u=CreateUnit(p,'n01E',8623.5,-6555.0,6.669)
set u=CreateUnit(p,'n01E',6146.8,-5314.4,260.637)
set u=CreateUnit(p,'n01E',5897.5,-7505.6,51.659)
set u=CreateUnit(p,'n01E',7346.2,-7988.9,301.672)
set u=CreateUnit(p,'n01E',4542.3,-5523.8,149.320)
set u=CreateUnit(p,'n01E',3371.8,-11241.1,202.001)
set u=CreateUnit(p,'n01E',4736.9,-11898.0,343.641)
set u=CreateUnit(p,'n01E',1999.5,-13697.1,356.847)
set u=CreateUnit(p,'n01E',2446.5,-12434.3,170.985)
set u=CreateUnit(p,'n01E',3700.5,-9805.1,280.017)
set u=CreateUnit(p,'n01E',3872.8,-7956.7,329.831)
set u=CreateUnit(p,'n01E',4959.8,-9665.9,21.171)
set u=CreateUnit(p,'n01E',2782.4,-3880.4,54.867)
set u=CreateUnit(p,'n01E',-566.6,-4976.0,301.562)
set u=CreateUnit(p,'n01E',3047.2,-5217.7,259.494)
set u=CreateUnit(p,'n01E',1676.4,-3268.2,180.544)
set u=CreateUnit(p,'n01E',-1626.8,-2811.2,255.726)
set u=CreateUnit(p,'n01D',3732.6,-3987.6,12.920)
set u=CreateUnit(p,'n01D',3000.3,-6630.4,240.454)
set u=CreateUnit(p,'n01D',6131.8,-6694.9,342.300)
set u=CreateUnit(p,'n01D',9153.3,-7032.3,168.393)
set u=CreateUnit(p,'n01D',14090.4,-7947.4,322.371)
set u=CreateUnit(p,'n01D',15647.0,-7424.7,245.047)
set u=CreateUnit(p,'n01D',-196.0,340.0,110.779)
set u=CreateUnit(p,'n01D',-574.4,-555.6,3.703)
set u=CreateUnit(p,'n01D',570.6,-806.1,79.840)
set u=CreateUnit(p,'n01D',1170.7,86.7,293.575)
set u=CreateUnit(p,'n01D',1929.9,-1173.6,217.811)
set u=CreateUnit(p,'n01D',3229.1,462.6,40.596)
set u=CreateUnit(p,'n01D',2521.6,-86.5,325.260)
set u=CreateUnit(p,'n01D',2183.1,1772.3,3.417)
set u=CreateUnit(p,'n01D',4016.0,1509.6,3.395)
set u=CreateUnit(p,'n01D',1184.8,1040.5,227.534)
set u=CreateUnit(p,'n01D',199.5,1720.7,255.572)
set u=CreateUnit(p,'n01D',87.8,3641.4,239.993)
set u=CreateUnit(p,'n01D',-1134.7,3229.3,170.513)
set u=CreateUnit(p,'n01D',1180.3,2783.8,260.648)
set u=CreateUnit(p,'n01D',2863.9,3191.9,254.100)
set u=CreateUnit(p,'n01D',2539.3,4318.4,189.201)
set u=CreateUnit(p,'n01D',1669.3,5071.2,317.833)
set u=CreateUnit(p,'n01D',761.3,3959.8,278.874)
set u=CreateUnit(p,'n01D',811.0,5748.2,240.992)
set u=CreateUnit(p,'n01D',1772.2,5765.3,88.618)
set u=CreateUnit(p,'n01D',-872.8,5751.2,77.588)
set u=CreateUnit(p,'n01D',-944.1,7393.7,65.459)
set u=CreateUnit(p,'n01D',-2459.5,4008.2,111.976)
set u=CreateUnit(p,'n01E',-2241.6,3129.7,24.215)
set u=CreateUnit(p,'n01E',-4277.4,4374.5,43.870)
set u=CreateUnit(p,'n01E',-4249.4,5655.0,95.232)
set u=CreateUnit(p,'n01E',26.5,-14899.0,308.044)
set u=CreateUnit(p,'n01E',52.9,-15443.2,11.503)
set u=CreateUnit(p,'n01D',-191.7,-15592.9,202.297)
set u=CreateUnit(p,'n015',-8188.7,-14977.2,130.027)
set u=CreateUnit(p,'n015',-8728.2,-15781.1,157.747)
set u=CreateUnit(p,'n015',-7425.1,-15723.8,44.738)
set u=CreateUnit(p,'n015',-7681.7,-14889.7,300.419)
set u=CreateUnit(p,'n015',-8760.1,-13135.2,197.353)
set u=CreateUnit(p,'n015',-8780.6,-14817.5,185.894)
set u=CreateUnit(p,'n015',-7503.7,-13364.4,262.131)
set u=CreateUnit(p,'n015',-6908.1,-12367.6,343.366)
set u=CreateUnit(p,'n015',-6749.2,-14659.4,98.353)
set u=CreateUnit(p,'n019',-5682.3,-10164.1,256.033)
set u=CreateUnit(p,'n015',-9711.3,-12205.2,267.185)
set u=CreateUnit(p,'n01A',-4779.7,-5608.2,250.869)
set u=CreateUnit(p,'n01A',-4760.8,-6078.2,153.583)
set u=CreateUnit(p,'n019',-14448.4,-10001.4,17.897)
set u=CreateUnit(p,'n019',-15343.8,-10442.7,318.525)
set u=CreateUnit(p,'n019',-13085.2,-10357.5,228.061)
set u=CreateUnit(p,'n019',-10934.7,-10227.5,63.272)
set u=CreateUnit(p,'n019',-10666.8,-1474.0,350.156)
set u=CreateUnit(p,'n019',-9490.3,-223.2,97.540)
set u=CreateUnit(p,'n019',-11732.8,-65.1,180.104)
set u=CreateUnit(p,'n019',-6006.4,3075.8,220.590)
set u=CreateUnit(p,'n019',-7707.1,4525.1,73.545)
set u=CreateUnit(p,'n01A',-7073.2,3637.2,66.678)
set u=CreateUnit(p,'n019',-8841.7,3608.7,208.736)
set u=CreateUnit(p,'n015',-7430.7,6056.7,342.641)
set u=CreateUnit(p,'n01D',14272.9,-565.1,135.553)
set u=CreateUnit(p,'n01D',13721.2,-1276.9,227.303)
set u=CreateUnit(p,'n01D',15780.8,-1170.6,291.696)
set u=CreateUnit(p,'n01D',15836.4,569.8,276.413)
set u=CreateUnit(p,'n01D',14412.2,1347.3,319.976)
set u=CreateUnit(p,'n01D',15473.2,-473.5,248.947)
set u=CreateUnit(p,'n01D',13282.0,830.7,321.426)
set u=CreateUnit(p,'n01D',2420.5,-15347.5,130.148)
set u=CreateUnit(p,'n01A',2891.6,-10959.4,250.000)
set u=CreateUnit(p,'n01A',-6593.1,-12887.7,85.916)
set u=CreateUnit(p,'n01A',-7457.1,1528.0,66.008)
set u=CreateUnit(p,'n01D',2870.3,-8367.1,23.127)
set u=CreateUnit(p,'n01A',-8619.2,873.1,345.223)
set u=CreateUnit(p,'n01A',7328.3,-5250.1,229.610)
set u=CreateUnit(p,'n01A',1053.3,-4825.8,205.374)
set u=CreateUnit(p,'n01A',3550.9,1839.6,302.188)
set u=CreateUnit(p,'n01E',1451.6,1880.2,105.626)
set u=CreateUnit(p,'n01E',-77.0,-8780.3,142.343)
set u=CreateUnit(p,'n01E',-716.5,-7749.8,310.340)
set u=CreateUnit(p,'n01E',1151.5,-9474.1,229.160)
set u=CreateUnit(p,'n01E',1103.2,-7946.1,43.233)
set u=CreateUnit(p,'n01E',2892.8,-9420.6,264.361)
set u=CreateUnit(p,'n01E',-1535.8,2110.2,176.413)
set u=CreateUnit(p,'n01E',1025.9,-12033.8,164.317)
set u=CreateUnit(p,'n01E',126.5,-13811.4,214.987)
set u=CreateUnit(p,'n01E',-621.0,-13496.6,70.457)
set u=CreateUnit(p,'n01E',385.8,-11761.7,301.298)
set u=CreateUnit(p,'n01E',-4539.3,-3513.9,164.031)
set u=CreateUnit(p,'n01E',-4617.5,-2640.9,152.297)
set u=CreateUnit(p,'n01E',-5487.7,-3014.3,299.826)
set u=CreateUnit(p,'n01E',-5150.3,-3886.9,172.721)
set u=CreateUnit(p,'n01E',-6356.2,-4077.3,260.527)
set u=CreateUnit(p,'n01E',-6316.4,-2288.2,132.796)
set u=CreateUnit(p,'n01E',-5625.3,65.5,271.755)
set u=CreateUnit(p,'n01E',-6851.9,-721.9,349.716)
set u=CreateUnit(p,'n01E',-4152.6,-1422.0,66.557)
set u=CreateUnit(p,'n01D',-3964.0,775.4,251.562)
set u=CreateUnit(p,'n01D',-2614.0,323.6,350.310)
set u=CreateUnit(p,'n01D',-2723.2,1478.7,3.505)
set u=CreateUnit(p,'n01D',-5537.3,831.8,39.178)
set u=CreateUnit(p,'n01E',-7280.8,-10660.3,263.186)
set u=CreateUnit(p,'n01E',-5562.1,-11372.4,153.912)
set u=CreateUnit(p,'n01E',-9481.3,-10544.0,47.968)
set u=CreateUnit(p,'n01E',-8978.0,-12033.2,200.594)
set u=CreateUnit(p,'n01E',-6141.7,-7947.8,323.140)
set u=CreateUnit(p,'n01E',-5675.5,-6765.6,227.039)
set u=CreateUnit(p,'n01E',-7509.7,-4897.6,21.918)
set u=CreateUnit(p,'n015',-6342.4,-9521.9,194.211)
set u=CreateUnit(p,'n015',-8852.9,-10005.4,316.306)
set u=CreateUnit(p,'n015',-10163.9,-8893.1,302.122)
set u=CreateUnit(p,'n015',-9827.8,-15410.7,104.373)
set u=CreateUnit(p,'n015',-9849.1,-13350.9,337.576)
set p=Player(15)
set udg_unit40=CreateUnit(p,'O007',13537.6,8223.8,250.000)
call SetHeroLevel(udg_unit40,9,false)
call SetUnitState(udg_unit40,UNIT_STATE_MANA,0)
call SelectHeroSkill(udg_unit40,'AOcr')
call UnitAddItemToSlotById(udg_unit40,'I01P',0)
set udg_unit59=CreateUnit(p,'H012',13921.3,8362.2,250.000)
call SetHeroLevel(udg_unit59,15,false)
call SetUnitState(udg_unit59,UNIT_STATE_MANA,0)
call SelectHeroSkill(udg_unit59,'A00S')
call SelectHeroSkill(udg_unit59,'A00S')
call SelectHeroSkill(udg_unit59,'A00S')
call SelectHeroSkill(udg_unit59,'A00S')
call SelectHeroSkill(udg_unit59,'A00S')
call SelectHeroSkill(udg_unit59,'A00S')
call SelectHeroSkill(udg_unit59,'A00S')
call SelectHeroSkill(udg_unit59,'A00S')
call IssueImmediateOrder(udg_unit59,"")
call UnitAddItemToSlotById(udg_unit59,'I01P',0)
set udg_unit47=CreateUnit(p,'H01E',13969.9,8265.6,250.000)
call SetHeroLevel(udg_unit47,18,false)
call SetUnitState(udg_unit47,UNIT_STATE_MANA,0)
call UnitAddItemToSlotById(udg_unit47,'I01P',0)
set udg_unit57=CreateUnit(p,'H01M',13596.3,8291.0,250.000)
call SetHeroLevel(udg_unit57,6,false)
call SetUnitState(udg_unit57,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit57,ConvertPlayerColor(7))
call UnitAddItemToSlotById(udg_unit57,'I01P',0)
set udg_unit84=CreateUnit(p,'H01R',13450.8,8282.6,250.000)
call SetHeroLevel(udg_unit84,14,false)
call SetUnitState(udg_unit84,UNIT_STATE_MANA,0)
call UnitAddItemToSlotById(udg_unit84,'I01P',0)
set udg_unit51=CreateUnit(p,'H01Q',13819.0,8248.6,250.000)
call SetHeroLevel(udg_unit51,7,false)
call SetUnitState(udg_unit51,UNIT_STATE_MANA,0)
call UnitAddItemToSlotById(udg_unit51,'I01P',0)
set udg_unit38=CreateUnit(p,'H01O',13599.3,8379.7,250.000)
call SetHeroLevel(udg_unit38,17,false)
call SetUnitState(udg_unit38,UNIT_STATE_MANA,0)
call UnitAddItemToSlotById(udg_unit38,'I01P',0)
set udg_unit36=CreateUnit(p,'H01N',13520.0,8299.4,250.000)
call SetHeroLevel(udg_unit36,15,false)
call SetUnitState(udg_unit36,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit36,ConvertPlayerColor(8))
call UnitAddItemToSlotById(udg_unit36,'I01P',0)
set udg_unit53=CreateUnit(p,'O008',13445.2,8382.6,250.000)
call SetHeroLevel(udg_unit53,12,false)
call SetUnitState(udg_unit53,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit53,ConvertPlayerColor(1))
call SelectHeroSkill(udg_unit53,'AOmi')
call SelectHeroSkill(udg_unit53,'AOmi')
call SelectHeroSkill(udg_unit53,'AOmi')
call SelectHeroSkill(udg_unit53,'AOcr')
call SelectHeroSkill(udg_unit53,'AOcr')
call SelectHeroSkill(udg_unit53,'AOcr')
call SelectHeroSkill(udg_unit53,'AOww')
call UnitAddItemToSlotById(udg_unit53,'I01P',0)
set udg_unit55=CreateUnit(p,'H01P',13526.0,8385.5,250.000)
call SetHeroLevel(udg_unit55,23,false)
call SetUnitState(udg_unit55,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit55,ConvertPlayerColor(11))
call UnitAddItemToSlotById(udg_unit55,'I01P',0)
set udg_unit61=CreateUnit(p,'H011',13829.5,8365.2,250.000)
call SetHeroLevel(udg_unit61,5,false)
call SetUnitState(udg_unit61,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit61,ConvertPlayerColor(6))
call IssueImmediateOrder(udg_unit61,"")
call UnitAddItemToSlotById(udg_unit61,'I01P',0)
set udg_unit65=CreateUnit(p,'H01U',15642.2,15735.8,229.790)
call SetUnitColor(udg_unit65,ConvertPlayerColor(12))
set udg_unit71=CreateUnit(p,'H01W',15581.6,15713.6,235.590)
call SetUnitColor(udg_unit71,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02B',14999.4,519.0,185.708)
set u=CreateUnit(p,'h023',5049.3,10427.1,90.000)
set u=CreateUnit(p,'h023',5306.7,9669.0,225.000)
set udg_unit83=CreateUnit(p,'H00S',15666.0,15943.8,275.380)
set udg_unit95=CreateUnit(p,'h00T',-3642.9,9164.2,300.000)
call IssueImmediateOrder(udg_unit95,"")
set u=CreateUnit(p,'h023',5051.6,9539.8,270.000)
set u=CreateUnit(p,'h023',4798.2,9662.2,315.000)
set u=CreateUnit(p,'h023',4664.7,9975.6,0.000)
set udg_unit62=CreateUnit(p,'O00F',-2549.3,5115.1,59.700)
set u=CreateUnit(p,'h023',4798.6,10301.5,45.000)
set u=CreateUnit(p,'h023',5305.7,10302.3,135.000)
set u=CreateUnit(p,'h023',5440.4,9989.8,180.000)
set u=CreateUnit(p,'n02B',-4249.8,-9371.1,129.500)
set u=CreateUnit(p,'n02B',-14283.3,5337.7,248.510)
set u=CreateUnit(p,'h00U',11633.6,11488.4,181.990)
set u=CreateUnit(p,'h00U',10803.9,12868.4,223.513)
set u=CreateUnit(p,'h00U',10272.9,12086.6,63.063)
set udg_unit86=CreateUnit(p,'E007',13314.1,13712.2,230.000)
call SetUnitState(udg_unit86,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit86,ConvertPlayerColor(0))
call SelectHeroSkill(udg_unit86,'A046')
call IssueImmediateOrder(udg_unit86,"")
set u=CreateUnit(p,'h00U',10367.7,10989.5,153.099)
set u=CreateUnit(p,'h00U',11757.7,9859.8,167.030)
set u=CreateUnit(p,'h00U',12384.1,9636.8,150.902)
set u=CreateUnit(p,'h00U',12193.0,10625.0,306.484)
set u=CreateUnit(p,'h00U',13413.9,9592.4,63.613)
set u=CreateUnit(p,'h00U',14497.7,9624.5,341.938)
set u=CreateUnit(p,'h00U',13606.9,10432.7,145.859)
set u=CreateUnit(p,'h00U',15678.9,11147.3,197.309)
set u=CreateUnit(p,'h00U',14744.3,10858.8,264.317)
set udg_unit43=CreateUnit(p,'H00E',15708.5,15491.7,140.596)
call SetUnitState(udg_unit43,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit43,ConvertPlayerColor(12))
set udg_unit42=CreateUnit(p,'H00G',15911.1,15495.2,353.990)
call SetUnitState(udg_unit42,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit42,ConvertPlayerColor(12))
set udg_unit41=CreateUnit(p,'H00F',15796.5,15488.3,97.902)
call SetUnitState(udg_unit41,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit41,ConvertPlayerColor(12))
set u=CreateUnit(p,'n02B',-3467.8,-13272.7,129.500)
set u=CreateUnit(p,'n02B',-8413.7,-13440.2,129.500)
set u=CreateUnit(p,'h00U',11781.5,12460.8,223.095)
set u=CreateUnit(p,'h00U',12808.0,12763.9,54.801)
set u=CreateUnit(p,'n02B',9654.0,-6192.2,129.500)
set u=CreateUnit(p,'n02B',5873.8,5066.4,129.500)
set u=CreateUnit(p,'h00U',14196.2,13029.9,120.908)
set u=CreateUnit(p,'n02B',13473.0,5242.0,129.500)
set u=CreateUnit(p,'n02B',3143.2,-11171.2,129.500)
set u=CreateUnit(p,'n02B',-14151.4,-5037.7,129.500)
set u=CreateUnit(p,'n02B',-11086.2,818.5,129.500)
set u=CreateUnit(p,'h00U',13737.1,11880.9,144.508)
set u=CreateUnit(p,'n02B',-6250.7,2235.2,129.500)
set u=CreateUnit(p,'n02B',1303.1,2792.8,129.500)
set u=CreateUnit(p,'n02B',-2131.7,-363.7,129.500)
set u=CreateUnit(p,'h00U',12741.8,9594.0,304.627)
set u=CreateUnit(p,'n02B',-1832.4,10599.2,248.510)
set udg_unit45=CreateUnit(p,'H00A',15001.3,15915.2,71.700)
set u=CreateUnit(p,'n02B',415.8,8508.3,248.510)
set u=CreateUnit(p,'h00U',11102.7,11418.7,221.392)
set u=CreateUnit(p,'h00U',11419.1,10435.7,224.139)
set udg_unit58=CreateUnit(p,'O00E',2516.1,14932.0,260.000)
call SetUnitColor(udg_unit58,ConvertPlayerColor(6))
call SelectHeroSkill(udg_unit58,'A046')
call IssueImmediateOrder(udg_unit58,"")
set udg_unit76=CreateUnit(p,'O005',15324.1,15770.1,241.060)
call SetUnitState(udg_unit76,UNIT_STATE_MANA,0)
set udg_unit44=CreateUnit(p,'n004',-15050.2,16020.0,270.000)
set udg_unit97=CreateUnit(p,'n003',-13820.4,15099.7,90.000)
set u=CreateUnit(p,'n02B',9939.4,-12890.3,64.118)
set u=CreateUnit(p,'h00U',13202.4,11029.6,102.615)
set u=CreateUnit(p,'n02B',-4036.5,10941.8,154.770)
set u=CreateUnit(p,'n007',-3680.0,-4992.0,270.000)
call SetUnitColor(u,ConvertPlayerColor(9))
set udg_unit54=CreateUnit(p,'e005',5088.2,14875.9,279.290)
call IssueImmediateOrder(udg_unit54,"")
set u=CreateUnit(p,'h00U',12515.5,11685.6,35.564)
set u=CreateUnit(p,'h00U',13277.7,12245.0,129.489)
set u=CreateUnit(p,'h00U',14329.0,11432.4,16.425)
set u=CreateUnit(p,'h00U',12845.2,10329.8,74.347)
set udg_unit100=CreateUnit(p,'O00Y',-14809.0,11984.8,270.000)
call SetHeroLevel(udg_unit100,15,false)
call SetUnitState(udg_unit100,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit100,ConvertPlayerColor(1))
call UnitAddItemToSlotById(udg_unit100,'I02L',0)
set udg_unit101=CreateUnit(p,'O00Z',-15317.6,11941.3,270.000)
call SetHeroLevel(udg_unit101,10,false)
call SetUnitState(udg_unit101,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit101,ConvertPlayerColor(6))
call SelectHeroSkill(udg_unit101,'AOcr')
call UnitAddItemToSlotById(udg_unit101,'I02L',0)
set udg_unit102=CreateUnit(p,'H026',-15433.1,11971.2,270.000)
call SetHeroLevel(udg_unit102,10,false)
call SetUnitState(udg_unit102,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit102,ConvertPlayerColor(11))
call SelectHeroSkill(udg_unit102,'AOmi')
call SelectHeroSkill(udg_unit102,'AOmi')
call SelectHeroSkill(udg_unit102,'AOmi')
call UnitAddItemToSlotById(udg_unit102,'I02L',0)
set u=CreateUnit(p,'n02B',-2922.0,-6612.4,247.079)
set udg_unit103=CreateUnit(p,'H027',-15523.8,11959.3,270.000)
call SetHeroLevel(udg_unit103,25,false)
call SetUnitState(udg_unit103,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit103,ConvertPlayerColor(4))
call UnitAddItemToSlotById(udg_unit103,'I02L',0)
set udg_unit104=CreateUnit(p,'O010',-14699.2,11976.6,270.000)
call SetHeroLevel(udg_unit104,35,false)
call SetUnitState(udg_unit104,UNIT_STATE_MANA,112)
call SetUnitColor(udg_unit104,ConvertPlayerColor(10))
call SelectHeroSkill(udg_unit104,'AOcr')
call SelectHeroSkill(udg_unit104,'AOcr')
call SelectHeroSkill(udg_unit104,'AOcr')
call UnitAddItemToSlotById(udg_unit104,'I02L',0)
set udg_unit66=CreateUnit(p,'n01W',-16000.4,15565.2,0.000)
set udg_unit48=CreateUnit(p,'N000',-13964.0,15835.5,290.000)
call SetHeroLevel(udg_unit48,10,false)
call SelectHeroSkill(udg_unit48,'A046')
call IssueImmediateOrder(udg_unit48,"")
set udg_unit63=CreateUnit(p,'H01B',1956.4,12932.7,291.750)
call SetUnitColor(udg_unit63,ConvertPlayerColor(8))
call SelectHeroSkill(udg_unit63,'A046')
call IssueImmediateOrder(udg_unit63,"")
set u=CreateUnit(p,'n02B',-14559.2,-13704.4,103.956)
set u=CreateUnit(p,'N02M',-15102.7,12445.4,270.000)
call SetHeroLevel(u,15,false)
call SetUnitColor(u,ConvertPlayerColor(8))
call SelectHeroSkill(u,'A046')
call IssueImmediateOrder(u,"")
set udg_unit105=CreateUnit(p,'H027',-15956.6,13380.4,0.000)
call SetHeroLevel(udg_unit105,15,false)
call SetUnitState(udg_unit105,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit105,ConvertPlayerColor(4))
set u=CreateUnit(p,'n02B',4883.7,1525.1,248.510)
set udg_unit93=CreateUnit(p,'E002',14738.1,15793.8,50.000)
call SetHeroLevel(udg_unit93,2,false)
call SetUnitState(udg_unit93,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit93,ConvertPlayerColor(2))
call SelectHeroSkill(udg_unit93,'A00A')
call IssueImmediateOrder(udg_unit93,"")
call SelectHeroSkill(udg_unit93,'A00F')
call IssueImmediateOrder(udg_unit93,"")
set u=CreateUnit(p,'n02B',-491.5,-13971.7,129.500)
set u=CreateUnit(p,'n02B',-3131.6,-3437.0,151.759)
set u=CreateUnit(p,'n02B',8435.6,-15488.5,248.510)
set udg_unit92=CreateUnit(p,'H01D',14740.0,15677.8,294.320)
call SetUnitState(udg_unit92,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit92,ConvertPlayerColor(5))
call SelectHeroSkill(udg_unit92,'A00A')
call IssueImmediateOrder(udg_unit92,"")
set udg_unit91=CreateUnit(p,'E008',14663.4,15777.9,196.068)
call SetUnitState(udg_unit91,UNIT_STATE_MANA,0)
call SetUnitColor(udg_unit91,ConvertPlayerColor(8))
set udg_unit106=CreateUnit(p,'O010',-13281.3,13272.1,180.000)
call SetHeroLevel(udg_unit106,20,false)
call SetUnitState(udg_unit106,UNIT_STATE_MANA,112)
call SetUnitColor(udg_unit106,ConvertPlayerColor(10))
call SelectHeroSkill(udg_unit106,'AOcr')
call SelectHeroSkill(udg_unit106,'AOcr')
call SelectHeroSkill(udg_unit106,'AOcr')
set udg_unit67=CreateUnit(p,'H00M',15913.5,15915.1,297.930)
call SetUnitColor(udg_unit67,ConvertPlayerColor(9))
set u=CreateUnit(p,'n02B',11920.4,-1380.1,248.510)
set u=CreateUnit(p,'N02O',-11448.7,10667.4,320.000)
call SetUnitColor(u,ConvertPlayerColor(5))
call SelectHeroSkill(u,'A046')
call IssueImmediateOrder(u,"")
set udg_unit82=CreateUnit(p,'H01K',15067.1,15713.0,120.030)
call SetUnitColor(udg_unit82,ConvertPlayerColor(6))
set u=CreateUnit(p,'h036',11536.4,-14913.1,180.000)
set u=CreateUnit(p,'h037',-16037.6,14894.5,281.599)
set u=CreateUnit(p,'n018',8297.1,-9808.4,231.643)
set u=CreateUnit(p,'n018',8759.7,-9772.9,30.136)
set u=CreateUnit(p,'n02B',-8956.9,-3459.9,248.510)
set u=CreateUnit(p,'h037',-15888.1,14927.3,78.884)
set u=CreateUnit(p,'h037',-15940.1,14785.5,189.432)
set u=CreateUnit(p,'h037',-15850.8,14653.3,172.359)
set u=CreateUnit(p,'n016',9582.2,-9790.7,185.971)
set u=CreateUnit(p,'n017',9530.8,-10340.1,102.989)
set u=CreateUnit(p,'n018',7534.6,-12595.3,231.643)
set u=CreateUnit(p,'n018',7997.2,-12559.9,30.136)
set u=CreateUnit(p,'n016',8819.7,-12577.6,185.971)
set u=CreateUnit(p,'n017',8768.3,-13127.0,102.989)
set u=CreateUnit(p,'n018',10092.2,-13540.0,231.643)
set u=CreateUnit(p,'n018',10380.4,-13585.6,30.136)
set u=CreateUnit(p,'n016',11267.8,-14664.7,185.971)
set u=CreateUnit(p,'n017',10234.6,-12768.6,102.989)
set u=CreateUnit(p,'n018',10498.9,-11018.0,231.643)
set u=CreateUnit(p,'n018',10961.5,-10982.5,30.136)
set udg_unit94=CreateUnit(p,'H01L',15852.5,15132.2,268.000)
call SetUnitColor(udg_unit94,ConvertPlayerColor(8))
set u=CreateUnit(p,'n018',11527.0,-9050.7,231.643)
set u=CreateUnit(p,'n018',11989.6,-9015.3,30.136)
set u=CreateUnit(p,'n016',12812.1,-9033.0,185.971)
set u=CreateUnit(p,'n017',12760.7,-9582.4,102.989)
set u=CreateUnit(p,'n018',9676.4,-14757.6,231.643)
set udg_unit39=CreateUnit(p,'h021',14591.5,14585.8,42.376)
set u=CreateUnit(p,'h037',-15985.4,14662.3,196.716)
set udg_unit81=CreateUnit(p,'H001',13895.7,8260.2,250.000)
call SetUnitState(udg_unit81,UNIT_STATE_MANA,0)
call UnitAddItemToSlotById(udg_unit81,'I01P',0)
set u=CreateUnit(p,'n018',10139.1,-14722.1,30.136)
set u=CreateUnit(p,'n018',6729.3,-14101.8,231.643)
set u=CreateUnit(p,'n018',7191.9,-14066.4,30.136)
set u=CreateUnit(p,'n016',8014.4,-14084.1,185.971)
set u=CreateUnit(p,'n017',7963.0,-14633.5,102.989)
set u=CreateUnit(p,'n018',5735.5,-13357.4,231.643)
set u=CreateUnit(p,'n018',6198.1,-13322.0,30.136)
set u=CreateUnit(p,'n016',7020.6,-13339.7,185.971)
set u=CreateUnit(p,'n017',6969.2,-13889.1,102.989)
set u=CreateUnit(p,'n018',5735.5,-11585.1,231.643)
set u=CreateUnit(p,'n018',6198.1,-11549.7,30.136)
set u=CreateUnit(p,'n016',7020.6,-11567.4,185.971)
set u=CreateUnit(p,'n017',6969.2,-12116.8,102.989)
set u=CreateUnit(p,'n018',5889.7,-10752.1,231.643)
set u=CreateUnit(p,'n018',6352.3,-10716.7,30.136)
set u=CreateUnit(p,'n016',7174.8,-10734.4,185.971)
set u=CreateUnit(p,'n017',7123.4,-11283.8,102.989)
set u=CreateUnit(p,'n018',5821.2,-9458.3,231.643)
set u=CreateUnit(p,'n018',6283.8,-9422.9,30.136)
set u=CreateUnit(p,'n016',7106.3,-9440.6,185.971)
set u=CreateUnit(p,'n017',7054.9,-9990.0,102.989)
set udg_unit75=CreateUnit(p,'O006',15404.3,15702.2,227.039)
call SetUnitState(udg_unit75,UNIT_STATE_MANA,0)
set udg_unit79=CreateUnit(p,'O00C',15329.6,15704.9,272.470)
call SetUnitState(udg_unit79,UNIT_STATE_MANA,0)
set udg_unit80=CreateUnit(p,'H00H',15263.9,15710.2,31.700)
call SetUnitColor(udg_unit80,ConvertPlayerColor(12))
set udg_unit73=CreateUnit(p,'H00I',10450.9,-10058.3,240.000)
call SetHeroLevel(udg_unit73,3,false)
call SetUnitState(udg_unit73,UNIT_STATE_MANA,49)
call SelectHeroSkill(udg_unit73,'A048')
call IssueImmediateOrder(udg_unit73,"")
call IssueImmediateOrder(udg_unit73,"")
set udg_unit77=CreateUnit(p,'U004',15694.2,15129.0,268.000)
set u=CreateUnit(p,'n018',13685.8,-9245.6,231.643)
set u=CreateUnit(p,'n018',14148.5,-9210.1,30.136)
set u=CreateUnit(p,'n016',14970.9,-9227.8,185.971)
set u=CreateUnit(p,'n017',14919.5,-9777.3,102.989)
set u=CreateUnit(p,'n018',-15133.4,-15431.0,231.643)
set u=CreateUnit(p,'n018',-14670.8,-15395.6,30.136)
set u=CreateUnit(p,'n016',-13848.4,-15413.3,185.971)
set u=CreateUnit(p,'n018',-15013.5,-14598.1,231.643)
set u=CreateUnit(p,'n018',-14550.9,-14562.6,30.136)
set u=CreateUnit(p,'n016',-13728.4,-14580.3,185.971)
set u=CreateUnit(p,'n017',-13779.8,-15129.7,102.989)
set u=CreateUnit(p,'n018',-14242.4,-13906.9,231.643)
set u=CreateUnit(p,'n018',-13779.8,-13871.4,30.136)
set u=CreateUnit(p,'n016',-12957.4,-13889.1,185.971)
set u=CreateUnit(p,'n017',-13008.8,-14438.5,102.989)
set u=CreateUnit(p,'n018',-13865.5,-13233.4,231.643)
set u=CreateUnit(p,'n018',-13402.9,-13197.9,30.136)
set u=CreateUnit(p,'n016',-12580.4,-13215.6,185.971)
set u=CreateUnit(p,'n017',-12631.8,-13765.1,102.989)
set u=CreateUnit(p,'n018',-13797.0,-12205.4,231.643)
set u=CreateUnit(p,'n018',-13334.3,-12170.0,30.136)
set u=CreateUnit(p,'n016',-12511.9,-12187.7,185.971)
set u=CreateUnit(p,'n017',-12563.3,-12737.1,102.989)
set u=CreateUnit(p,'n018',-15321.9,-11354.7,231.643)
set u=CreateUnit(p,'n018',-14859.3,-11319.3,30.136)
set u=CreateUnit(p,'n016',-14036.8,-11337.0,185.971)
set u=CreateUnit(p,'n017',-14088.2,-11886.4,102.989)
set u=CreateUnit(p,'n018',-15785.5,-12106.3,30.136)
set u=CreateUnit(p,'n016',-14790.8,-12382.7,185.971)
set u=CreateUnit(p,'n017',-14842.2,-12932.1,102.989)
set u=CreateUnit(p,'n018',-15853.1,-13729.6,30.136)
set u=CreateUnit(p,'n016',-15030.6,-13747.3,185.971)
set u=CreateUnit(p,'n017',-15082.0,-14296.8,102.989)
set u=CreateUnit(p,'n017',-15741.7,-12998.5,331.984)
set u=CreateUnit(p,'n017',-15244.8,-15143.0,193.332)
set u=CreateUnit(p,'n017',-15981.6,-15001.3,31.015)
set u=CreateUnit(p,'n017',-15656.0,-14256.9,262.285)
set u=CreateUnit(p,'n017',-13308.6,-15338.0,180.302)
set u=CreateUnit(p,'n016',-11166.8,-15532.9,185.202)
set u=CreateUnit(p,'n016',-11937.9,-15355.7,118.832)
set u=CreateUnit(p,'n016',-11578.0,-13778.4,220.733)
set u=CreateUnit(p,'n016',-11365.7,-15283.0,287.147)
set u=CreateUnit(p,'n016',-11201.1,-12980.8,133.697)
set u=CreateUnit(p,'n016',-11578.0,-12342.8,19.908)
set u=CreateUnit(p,'n016',-11201.1,-11456.6,75.533)
set u=CreateUnit(p,'n016',-12983.1,-11208.5,101.737)
set u=CreateUnit(p,'n016',-13445.7,-11297.1,187.279)
set udg_unit60=CreateUnit(p,'N01G',9120.9,13772.4,180.000)
set udg_unit56=CreateUnit(p,'H005',7942.1,13150.3,90.000)
set udg_unit89=CreateUnit(p,'H00O',8820.2,13167.2,160.000)
set udg_unit88=CreateUnit(p,'E006',6828.9,13250.6,70.000)
call SetUnitColor(udg_unit88,ConvertPlayerColor(12))
set udg_unit87=CreateUnit(p,'H00P',6828.1,14440.1,0.000)
set p=Player(0)
set udg_unit31=CreateUnit(p,'H000',-8886.8,8242.6,90.000)
call SetUnitState(udg_unit31,UNIT_STATE_MANA,550)
call UnitAddItemToSlotById(udg_unit31,'I02K',0)
set p=Player(1)
set udg_unit26=CreateUnit(p,'E003',-11588.8,-14534.0,0.000)
call SetUnitState(udg_unit26,UNIT_STATE_MANA,490)
call SetUnitColor(udg_unit26,ConvertPlayerColor(1))
set p=Player(2)
set udg_unit27=CreateUnit(p,'H00K',-15500.8,-1250.2,0.000)
call SetUnitState(udg_unit27,UNIT_STATE_MANA,490)
set p=Player(3)
set udg_unit30=CreateUnit(p,'H008',12190.1,-8935.0,250.000)
call SetUnitState(udg_unit30,UNIT_STATE_MANA,300)
set udg_unit32=CreateUnit(p,'H016',12160.8,-8900.6,240.000)
call SetUnitState(udg_unit32,UNIT_STATE_MANA,300)
set p=Player(4)
set udg_unit85=CreateUnit(p,'H01S',7397.6,432.6,229.764)
call SetUnitColor(udg_unit85,ConvertPlayerColor(12))
set udg_unit70=CreateUnit(p,'H01T',7446.5,326.0,274.754)
call SetUnitColor(udg_unit70,ConvertPlayerColor(12))
set udg_unit68=CreateUnit(p,'H01V',7566.6,342.9,341.048)
call SetUnitColor(udg_unit68,ConvertPlayerColor(12))
set p=Player(5)
set udg_unit29=CreateUnit(p,'H009',11000.3,6666.9,280.000)
call SetUnitState(udg_unit29,UNIT_STATE_MANA,490)
call SetUnitColor(udg_unit29,ConvertPlayerColor(12))
call SelectHeroSkill(udg_unit29,'A00G')
call IssueImmediateOrder(udg_unit29,"")
call UnitAddItemToSlotById(udg_unit29,'I00B',0)
set udg_unit33=CreateUnit(p,'h00W',2112.0,-7744.0,270.000)
set p=Player(6)
set udg_unit28=CreateUnit(p,'H00R',-2670.3,-15473.5,180.000)
call SetUnitState(udg_unit28,UNIT_STATE_MANA,540)
set p=Player(7)
set udg_unit34=CreateUnit(p,'O001',7598.8,3586.2,22.237)
call SetUnitColor(udg_unit34,ConvertPlayerColor(12))
set p=Player(8)
set udg_unit46=CreateUnit(p,'H00D',-2517.9,2101.4,165.240)
call SetUnitColor(udg_unit46,ConvertPlayerColor(12))
set p=Player(10)
set udg_unit35=CreateUnit(p,'N00Q',-14654.8,6983.4,43.936)
set p=Player(11)
set udg_unit52=CreateUnit(p,'H01A',-14731.9,9327.6,12.591)
call SetUnitColor(udg_unit52,ConvertPlayerColor(8))
set i=0
set i=0
loop
exitwhen(i>7)
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 i=0
loop
exitwhen(i>300)
set udg_timers01[i]=CreateTimer()
set i=i+1
endloop
set i=0
loop
exitwhen(i>12)
set udg_reals01[i]=1.00
set udg_reals02[i]=1.00
set udg_booleans03[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>15)
set udg_integers03[i]=1
set i=i+1
endloop
set udg_dialog01=DialogCreate()
set udg_trigger01=CreateTrigger()
call TriggerAddAction(udg_trigger01,function Trig_Melee_Initialization_Actions)
set udg_trigger02=CreateTrigger()
call DisableTrigger(udg_trigger02)
call TriggerAddAction(udg_trigger02,function Trig_Player_Init_Actions)
set udg_trigger03=CreateTrigger()
call DisableTrigger(udg_trigger03)
call TriggerAddAction(udg_trigger03,function Trig_Unit_Init_Actions)
set udg_trigger04=CreateTrigger()
call DisableTrigger(udg_trigger04)
call TriggerAddAction(udg_trigger04,function Trig_Broly_Initialization_Actions)
set udg_trigger05=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger05,2.00)
call TriggerAddAction(udg_trigger05,function Trig_Rush_Game_Actions)
set udg_trigger06=CreateTrigger()
call TriggerRegisterDialogEvent(udg_trigger06,udg_dialog01)
call TriggerAddAction(udg_trigger06,function Trig_Choose_Game_Actions)
set udg_trigger07=CreateTrigger()
call DisableTrigger(udg_trigger07)
call TriggerRegisterTimerEventPeriodic(udg_trigger07,0.50)
call TriggerAddAction(udg_trigger07,function Trig_Keep_Game_Type_Dialog_On_Actions)
set udg_trigger08=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger08,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger08,Condition(function Trig_Uses_Revive_Ticket_Conditions))
call TriggerAddAction(udg_trigger08,function Trig_Uses_Revive_Ticket_Actions)
set udg_trigger09=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger09,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger09,Condition(function Trig_Good_Unit_dies_Conditions))
call TriggerAddAction(udg_trigger09,function Trig_Good_Unit_dies_Actions)
set udg_trigger10=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger10,udg_rect135)
call TriggerAddCondition(udg_trigger10,Condition(function Trig_Enter_Kais_Planet_Conditions))
call TriggerAddAction(udg_trigger10,function Trig_Enter_Kais_Planet_Actions)
set udg_trigger11=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger11,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger11,Condition(function Trig_One_Ticket_Only_Conditions))
call TriggerAddAction(udg_trigger11,function Trig_One_Ticket_Only_Actions)
set udg_trigger12=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger12,udg_rect89)
call TriggerRegisterLeaveRectSimple(udg_trigger12,udg_rect89)
call TriggerAddAction(udg_trigger12,function Trig_Stop_Saga_Baddies_Actions)
set udg_trigger13=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger13,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger13,Condition(function Trig_Evil_dies_Conditions))
call TriggerAddAction(udg_trigger13,function Trig_Evil_dies_Actions)
set udg_trigger14=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger14,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger14,Condition(function Trig_Death_Annin_Conditions))
call TriggerAddAction(udg_trigger14,function Trig_Death_Annin_Actions)
set udg_trigger15=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger15,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger15,Condition(function Trig_Evil_Revive_Conditions))
call TriggerAddAction(udg_trigger15,function Trig_Evil_Revive_Actions)
set udg_trigger16=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger16,udg_rect23)
call TriggerRegisterLeaveRectSimple(udg_trigger16,udg_rect23)
call TriggerAddAction(udg_trigger16,function Trig_Stop_Death_Cheats_Actions)
set udg_trigger17=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger17,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger17,Condition(function Trig_Death_Goz_Conditions))
call TriggerAddAction(udg_trigger17,function Trig_Death_Goz_Actions)
set udg_trigger18=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger18,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger18,Condition(function Trig_Death_Mez_Conditions))
call TriggerAddAction(udg_trigger18,function Trig_Death_Mez_Actions)
set udg_trigger19=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger19,280.00)
call TriggerAddAction(udg_trigger19,function Trig_Tournament_Init_Actions)
set udg_trigger20=CreateTrigger()
call DisableTrigger(udg_trigger20)
call TriggerRegisterEnterRectSimple(udg_trigger20,udg_rect102)
call TriggerAddCondition(udg_trigger20,Condition(function Trig_Tournament_Reg_Conditions))
call TriggerAddAction(udg_trigger20,function Trig_Tournament_Reg_Actions)
set udg_trigger21=CreateTrigger()
call DisableTrigger(udg_trigger21)
call TriggerAddAction(udg_trigger21,function Trig_Tournament_Fusion_loser_check_Actions)
set udg_trigger22=CreateTrigger()
call DisableTrigger(udg_trigger22)
call TriggerAddAction(udg_trigger22,function Trig_Tournament_Char_Repl_Actions)
set udg_trigger23=CreateTrigger()
call DisableTrigger(udg_trigger23)
call TriggerAddAction(udg_trigger23,function Trig_Tournament_Round_1_Actions)
set udg_trigger24=CreateTrigger()
call DisableTrigger(udg_trigger24)
call TriggerAddAction(udg_trigger24,function Trig_Tournament_Round_2_Actions)
set udg_trigger25=CreateTrigger()
call DisableTrigger(udg_trigger25)
call TriggerAddAction(udg_trigger25,function Trig_Tournament_Round_3_Actions)
set udg_trigger26=CreateTrigger()
call DisableTrigger(udg_trigger26)
call TriggerAddAction(udg_trigger26,function Trig_Tournament_Round_4_Actions)
set udg_trigger27=CreateTrigger()
call DisableTrigger(udg_trigger27)
call TriggerAddAction(udg_trigger27,function Trig_Tournament_Round_5_Actions)
set udg_trigger28=CreateTrigger()
call DisableTrigger(udg_trigger28)
call TriggerAddAction(udg_trigger28,function Trig_Tournament_Round_6_Actions)
set udg_trigger29=CreateTrigger()
call DisableTrigger(udg_trigger29)
call TriggerAddAction(udg_trigger29,function Trig_Tournament_Round_7_Actions)
set udg_trigger30=CreateTrigger()
call DisableTrigger(udg_trigger30)
call TriggerAddAction(udg_trigger30,function Trig_Tournament_Round_8_Actions)
set udg_trigger31=CreateTrigger()
call DisableTrigger(udg_trigger31)
call TriggerAddAction(udg_trigger31,function Trig_Tournament_Round_9_Actions)
set udg_trigger32=CreateTrigger()
call DisableTrigger(udg_trigger32)
call TriggerAddAction(udg_trigger32,function Trig_Tournament_Round_10_Actions)
set udg_trigger33=CreateTrigger()
call DisableTrigger(udg_trigger33)
call TriggerAddAction(udg_trigger33,function Trig_Tournament_Round_11_Actions)
set udg_trigger34=CreateTrigger()
call DisableTrigger(udg_trigger34)
call TriggerAddAction(udg_trigger34,function Trig_Tournament_Round_Finals_Actions)
set udg_trigger35=CreateTrigger()
call DisableTrigger(udg_trigger35)
call TriggerRegisterAnyUnitEventBJ(udg_trigger35,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger35,udg_rect98)
call TriggerAddCondition(udg_trigger35,Condition(function Trig_Tournament_Finish_Round_1_Conditions))
call TriggerAddAction(udg_trigger35,function Trig_Tournament_Finish_Round_1_Actions)
set udg_trigger36=CreateTrigger()
call DisableTrigger(udg_trigger36)
call TriggerRegisterAnyUnitEventBJ(udg_trigger36,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger36,udg_rect98)
call TriggerAddCondition(udg_trigger36,Condition(function Trig_Tournament_Finish_Round_2_Conditions))
call TriggerAddAction(udg_trigger36,function Trig_Tournament_Finish_Round_2_Actions)
set udg_trigger37=CreateTrigger()
call DisableTrigger(udg_trigger37)
call TriggerRegisterAnyUnitEventBJ(udg_trigger37,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger37,udg_rect98)
call TriggerAddCondition(udg_trigger37,Condition(function Trig_Tournament_Finish_Round_3_Conditions))
call TriggerAddAction(udg_trigger37,function Trig_Tournament_Finish_Round_3_Actions)
set udg_trigger38=CreateTrigger()
call DisableTrigger(udg_trigger38)
call TriggerRegisterAnyUnitEventBJ(udg_trigger38,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger38,udg_rect98)
call TriggerAddCondition(udg_trigger38,Condition(function Trig_Tournament_Finish_Round_4_Conditions))
call TriggerAddAction(udg_trigger38,function Trig_Tournament_Finish_Round_4_Actions)
set udg_trigger39=CreateTrigger()
call DisableTrigger(udg_trigger39)
call TriggerRegisterAnyUnitEventBJ(udg_trigger39,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger39,udg_rect98)
call TriggerAddCondition(udg_trigger39,Condition(function Trig_Tournament_Finish_Round_5_Conditions))
call TriggerAddAction(udg_trigger39,function Trig_Tournament_Finish_Round_5_Actions)
set udg_trigger40=CreateTrigger()
call DisableTrigger(udg_trigger40)
call TriggerRegisterAnyUnitEventBJ(udg_trigger40,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger40,udg_rect98)
call TriggerAddCondition(udg_trigger40,Condition(function Trig_Tournament_Finish_Round_6_Conditions))
call TriggerAddAction(udg_trigger40,function Trig_Tournament_Finish_Round_6_Actions)
set udg_trigger41=CreateTrigger()
call DisableTrigger(udg_trigger41)
call TriggerRegisterAnyUnitEventBJ(udg_trigger41,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger41,udg_rect98)
call TriggerAddCondition(udg_trigger41,Condition(function Trig_Tournament_Finish_Round_7_Conditions))
call TriggerAddAction(udg_trigger41,function Trig_Tournament_Finish_Round_7_Actions)
set udg_trigger42=CreateTrigger()
call DisableTrigger(udg_trigger42)
call TriggerRegisterAnyUnitEventBJ(udg_trigger42,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger42,udg_rect98)
call TriggerAddCondition(udg_trigger42,Condition(function Trig_Tournament_Finish_Round_8_Conditions))
call TriggerAddAction(udg_trigger42,function Trig_Tournament_Finish_Round_8_Actions)
set udg_trigger43=CreateTrigger()
call DisableTrigger(udg_trigger43)
call TriggerRegisterAnyUnitEventBJ(udg_trigger43,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger43,udg_rect98)
call TriggerAddCondition(udg_trigger43,Condition(function Trig_Tournament_Finish_Round_9_Conditions))
call TriggerAddAction(udg_trigger43,function Trig_Tournament_Finish_Round_9_Actions)
set udg_trigger44=CreateTrigger()
call DisableTrigger(udg_trigger44)
call TriggerRegisterAnyUnitEventBJ(udg_trigger44,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger44,udg_rect98)
call TriggerAddCondition(udg_trigger44,Condition(function Trig_Tournament_Finish_Round_10_Conditions))
call TriggerAddAction(udg_trigger44,function Trig_Tournament_Finish_Round_10_Actions)
set udg_trigger45=CreateTrigger()
call DisableTrigger(udg_trigger45)
call TriggerRegisterAnyUnitEventBJ(udg_trigger45,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger45,udg_rect98)
call TriggerAddCondition(udg_trigger45,Condition(function Trig_Tournament_Finish_Round_11_Conditions))
call TriggerAddAction(udg_trigger45,function Trig_Tournament_Finish_Round_11_Actions)
set udg_trigger46=CreateTrigger()
call DisableTrigger(udg_trigger46)
call TriggerRegisterAnyUnitEventBJ(udg_trigger46,EVENT_PLAYER_UNIT_DEATH)
call TriggerRegisterLeaveRectSimple(udg_trigger46,udg_rect98)
call TriggerAddCondition(udg_trigger46,Condition(function Trig_Tournament_Finish_Round_Finals_Conditions))
call TriggerAddAction(udg_trigger46,function Trig_Tournament_Finish_Round_Finals_Actions)
set udg_trigger47=CreateTrigger()
call DisableTrigger(udg_trigger47)
call TriggerAddAction(udg_trigger47,function Trig_Tournament_Ally_Sorter_Actions)
set udg_trigger48=CreateTrigger()
call DisableTrigger(udg_trigger48)
call TriggerAddAction(udg_trigger48,function Trig_Tournament_Reset_Actions)
set udg_trigger49=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger49,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger49,Condition(function Trig_Tourney_Hero_dies_Conditions))
call TriggerAddAction(udg_trigger49,function Trig_Tourney_Hero_dies_Actions)
set udg_trigger50=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger50,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger50,Condition(function Trig_Tourny_Player_Hero_dies_Conditions))
call TriggerAddAction(udg_trigger50,function Trig_Tourny_Player_Hero_dies_Actions)
set udg_trigger51=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger51,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger51,Condition(function Trig_AL_Tournament_Revive_Conditions))
call TriggerAddAction(udg_trigger51,function Trig_AL_Tournament_Revive_Actions)
set udg_trigger52=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger52,1000.00)
call TriggerAddAction(udg_trigger52,function Trig_AL_Tournament_Init_Actions)
set udg_trigger53=CreateTrigger()
call DisableTrigger(udg_trigger53)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect146)
call TriggerAddCondition(udg_trigger53,Condition(function Trig_AL_Tournament_Reg_Conditions))
call TriggerAddAction(udg_trigger53,function Trig_AL_Tournament_Reg_Actions)
set udg_trigger54=CreateTrigger()
call DisableTrigger(udg_trigger54)
call TriggerAddAction(udg_trigger54,function Trig_AL_Tournament_Start_Round_Actions)
set udg_trigger55=CreateTrigger()
call DisableTrigger(udg_trigger55)
call TriggerRegisterTimerEventPeriodic(udg_trigger55,7.00)
call TriggerAddAction(udg_trigger55,function Trig_Order_Extras_to_fight_Actions)
set udg_trigger56=CreateTrigger()
call DisableTrigger(udg_trigger56)
call TriggerRegisterAnyUnitEventBJ(udg_trigger56,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger56,Condition(function Trig_AL_Tournament_Hero_dies_Conditions))
call TriggerAddAction(udg_trigger56,function Trig_AL_Tournament_Hero_dies_Actions)
set udg_trigger57=CreateTrigger()
call DisableTrigger(udg_trigger57)
call TriggerRegisterTimerEventPeriodic(udg_trigger57,2)
call TriggerAddCondition(udg_trigger57,Condition(function Trig_AL_Tournament_Finish_Round_Conditions))
call TriggerAddAction(udg_trigger57,function Trig_AL_Tournament_Finish_Round_Actions)
set udg_trigger58=CreateTrigger()
call DisableTrigger(udg_trigger58)
call TriggerAddAction(udg_trigger58,function Trig_AL_Tournament_Ally_Sorter_Actions)
set udg_trigger59=CreateTrigger()
call DisableTrigger(udg_trigger59)
call TriggerAddAction(udg_trigger59,function Trig_AL_Tournament_Reset_Actions)
set udg_trigger60=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger60,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger60,Condition(function Trig_Gain_Neutral_Unit_Conditions))
call TriggerAddAction(udg_trigger60,function Trig_Gain_Neutral_Unit_Actions)
set udg_trigger61=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger61,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger61,Condition(function Trig_Gain_Saga_Hero_Conditions))
call TriggerAddAction(udg_trigger61,function Trig_Gain_Saga_Hero_Actions)
set udg_trigger62=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger62,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger62,Condition(function Trig_Gain_Exp_Henchmen_Conditions))
call TriggerAddAction(udg_trigger62,function Trig_Gain_Exp_Henchmen_Actions)
set udg_trigger63=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger63,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger63,Condition(function Trig_Gain_Neutral_Unit_Fuse_Conditions))
call TriggerAddAction(udg_trigger63,function Trig_Gain_Neutral_Unit_Fuse_Actions)
set udg_trigger64=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger64,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger64,Condition(function Trig_Saga_Items_Conditions))
call TriggerAddAction(udg_trigger64,function Trig_Saga_Items_Actions)
set udg_trigger65=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger65,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger65,Condition(function Trig_Candy_Items_Conditions))
call TriggerAddAction(udg_trigger65,function Trig_Candy_Items_Actions)
set udg_trigger66=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger66,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger66,Condition(function Trig_Use_Item_Conditions))
call TriggerAddAction(udg_trigger66,function Trig_Use_Item_Actions)
set udg_trigger67=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger67,udg_rect07)
call TriggerAddCondition(udg_trigger67,Condition(function Trig_Bubbles_spawn_Conditions))
call TriggerAddAction(udg_trigger67,function Trig_Bubbles_spawn_Actions)
set udg_trigger68=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger68,udg_rect39)
call TriggerAddCondition(udg_trigger68,Condition(function Trig_Gregory_Conditions))
call TriggerAddAction(udg_trigger68,function Trig_Gregory_Actions)
set udg_trigger69=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger69,udg_rect117)
call TriggerAddCondition(udg_trigger69,Condition(function Trig_Yamcha_Conditions))
call TriggerAddAction(udg_trigger69,function Trig_Yamcha_Actions)
set udg_trigger70=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger70,udg_rect149)
call TriggerAddCondition(udg_trigger70,Condition(function Trig_Olibu_Conditions))
call TriggerAddAction(udg_trigger70,function Trig_Olibu_Actions)
set udg_trigger71=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger71,udg_rect150)
call TriggerAddCondition(udg_trigger71,Condition(function Trig_Pikkon_Conditions))
call TriggerAddAction(udg_trigger71,function Trig_Pikkon_Actions)
set udg_trigger72=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger72,udg_rect22)
call TriggerAddCondition(udg_trigger72,Condition(function Trig_Goku_Enter_Conditions))
call TriggerAddAction(udg_trigger72,function Trig_Goku_Enter_Actions)
set udg_trigger73=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger73,udg_rect22)
call TriggerAddCondition(udg_trigger73,Condition(function Trig_Goku_Enter_again_Conditions))
call TriggerAddAction(udg_trigger73,function Trig_Goku_Enter_again_Actions)
set udg_trigger74=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger74,udg_rect60)
call TriggerAddCondition(udg_trigger74,Condition(function Trig_Goku_Leaves_Conditions))
call TriggerAddAction(udg_trigger74,function Trig_Goku_Leaves_Actions)
set udg_trigger75=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger75,udg_timer05)
call TriggerAddCondition(udg_trigger75,Condition(function Trig_Goku_Time_ends_Conditions))
call TriggerAddAction(udg_trigger75,function Trig_Goku_Time_ends_Actions)
set udg_trigger76=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger76,udg_rect22)
call TriggerAddCondition(udg_trigger76,Condition(function Trig_Vegeta_Enter_Conditions))
call TriggerAddAction(udg_trigger76,function Trig_Vegeta_Enter_Actions)
set udg_trigger77=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger77,udg_rect22)
call TriggerAddCondition(udg_trigger77,Condition(function Trig_Vegeta_Enter_Again_Conditions))
call TriggerAddAction(udg_trigger77,function Trig_Vegeta_Enter_Again_Actions)
set udg_trigger78=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger78,udg_rect60)
call TriggerAddCondition(udg_trigger78,Condition(function Trig_Vegeta_Leaves_Conditions))
call TriggerAddAction(udg_trigger78,function Trig_Vegeta_Leaves_Actions)
set udg_trigger79=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger79,udg_timer06)
call TriggerAddCondition(udg_trigger79,Condition(function Trig_Vegeta_Time_Ends_Conditions))
call TriggerAddAction(udg_trigger79,function Trig_Vegeta_Time_Ends_Actions)
set udg_trigger80=CreateTrigger()
call DisableTrigger(udg_trigger80)
call TriggerAddAction(udg_trigger80,function Trig_Gogeta_is_in_Actions)
set udg_trigger81=CreateTrigger()
call DisableTrigger(udg_trigger81)
call TriggerAddAction(udg_trigger81,function Trig_Vegito_is_in_Actions)
set udg_trigger82=CreateTrigger()
call DisableTrigger(udg_trigger82)
call TriggerAddAction(udg_trigger82,function Trig_Fat_Gogeta_is_in_Actions)
set udg_trigger83=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger83,udg_rect22)
call TriggerAddCondition(udg_trigger83,Condition(function Trig_Gohan_Enter_Conditions))
call TriggerAddAction(udg_trigger83,function Trig_Gohan_Enter_Actions)
set udg_trigger84=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger84,udg_rect22)
call TriggerAddCondition(udg_trigger84,Condition(function Trig_Gohan_Enter_again_Conditions))
call TriggerAddAction(udg_trigger84,function Trig_Gohan_Enter_again_Actions)
set udg_trigger85=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger85,udg_rect60)
call TriggerAddCondition(udg_trigger85,Condition(function Trig_Gohan_Leaves_Conditions))
call TriggerAddAction(udg_trigger85,function Trig_Gohan_Leaves_Actions)
set udg_trigger86=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger86,udg_timer07)
call TriggerAddCondition(udg_trigger86,Condition(function Trig_Gohan_Time_ends_Conditions))
call TriggerAddAction(udg_trigger86,function Trig_Gohan_Time_ends_Actions)
set udg_trigger87=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger87,udg_rect22)
call TriggerAddCondition(udg_trigger87,Condition(function Trig_Gotenks_Enter_Conditions))
call TriggerAddAction(udg_trigger87,function Trig_Gotenks_Enter_Actions)
set udg_trigger88=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger88,udg_rect22)
call TriggerAddCondition(udg_trigger88,Condition(function Trig_Gotenks_Enter_again_Conditions))
call TriggerAddAction(udg_trigger88,function Trig_Gotenks_Enter_again_Actions)
set udg_trigger89=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger89,udg_rect60)
call TriggerAddCondition(udg_trigger89,Condition(function Trig_Gotenks_Leaves_Conditions))
call TriggerAddAction(udg_trigger89,function Trig_Gotenks_Leaves_Actions)
set udg_trigger90=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger90,udg_timer09)
call TriggerAddAction(udg_trigger90,function Trig_Gotenks_Time_Ends_Actions)
set udg_trigger91=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger91,udg_rect22)
call TriggerAddCondition(udg_trigger91,Condition(function Trig_Piccolo_Enter_Conditions))
call TriggerAddAction(udg_trigger91,function Trig_Piccolo_Enter_Actions)
set udg_trigger92=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger92,udg_rect22)
call TriggerAddCondition(udg_trigger92,Condition(function Trig_Piccolo_Enter_Again_Conditions))
call TriggerAddAction(udg_trigger92,function Trig_Piccolo_Enter_Again_Actions)
set udg_trigger93=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger93,udg_rect60)
call TriggerAddCondition(udg_trigger93,Condition(function Trig_Piccolo_Leaves_Conditions))
call TriggerAddAction(udg_trigger93,function Trig_Piccolo_Leaves_Actions)
set udg_trigger94=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger94,udg_timer10)
call TriggerAddCondition(udg_trigger94,Condition(function Trig_Piccolo_Time_Ends_Conditions))
call TriggerAddAction(udg_trigger94,function Trig_Piccolo_Time_Ends_Actions)
set udg_trigger95=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger95,udg_rect22)
call TriggerAddCondition(udg_trigger95,Condition(function Trig_FTrunks_Enter_Conditions))
call TriggerAddAction(udg_trigger95,function Trig_FTrunks_Enter_Actions)
set udg_trigger96=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger96,udg_rect22)
call TriggerAddCondition(udg_trigger96,Condition(function Trig_FTrunks_Enter_Again_Conditions))
call TriggerAddAction(udg_trigger96,function Trig_FTrunks_Enter_Again_Actions)
set udg_trigger97=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger97,udg_rect60)
call TriggerAddCondition(udg_trigger97,Condition(function Trig_FTrunks_Leaves_Conditions))
call TriggerAddAction(udg_trigger97,function Trig_FTrunks_Leaves_Actions)
set udg_trigger98=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger98,udg_timer08)
call TriggerAddCondition(udg_trigger98,Condition(function Trig_FTrunks_Time_Ends_Conditions))
call TriggerAddAction(udg_trigger98,function Trig_FTrunks_Time_Ends_Actions)
set udg_trigger99=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger99,udg_rect22)
call TriggerAddCondition(udg_trigger99,Condition(function Trig_Less_than_35_Conditions))
call TriggerAddAction(udg_trigger99,function Trig_Less_than_35_Actions)
set udg_trigger100=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger100,udg_rect17)
call TriggerAddCondition(udg_trigger100,Condition(function Trig_Bonus_Goku_Gohan_Conditions))
call TriggerAddAction(udg_trigger100,function Trig_Bonus_Goku_Gohan_Actions)
set udg_trigger101=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger101,udg_rect17)
call TriggerAddCondition(udg_trigger101,Condition(function Trig_Bonus_Vegeta_FTrunks_Conditions))
call TriggerAddAction(udg_trigger101,function Trig_Bonus_Vegeta_FTrunks_Actions)
set udg_trigger102=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger102,udg_rect27)
call TriggerAddCondition(udg_trigger102,Condition(function Trig_Exploit_protection_Conditions))
call TriggerAddAction(udg_trigger102,function Trig_Exploit_protection_Actions)
set udg_trigger103=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger103,udg_rect58)
call TriggerAddCondition(udg_trigger103,Condition(function Trig_krillin_spawn_Conditions))
call TriggerAddAction(udg_trigger103,function Trig_krillin_spawn_Actions)
set udg_trigger104=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger104,udg_rect36)
call TriggerAddCondition(udg_trigger104,Condition(function Trig_goku_spawn_Conditions))
call TriggerAddAction(udg_trigger104,function Trig_goku_spawn_Actions)
set udg_trigger105=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger105,udg_rect111)
call TriggerAddCondition(udg_trigger105,Condition(function Trig_vegeta_spawn_Conditions))
call TriggerAddAction(udg_trigger105,function Trig_vegeta_spawn_Actions)
set udg_trigger106=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger106,udg_rect29)
call TriggerAddCondition(udg_trigger106,Condition(function Trig_ftrunks_spawn_Conditions))
call TriggerAddAction(udg_trigger106,function Trig_ftrunks_spawn_Actions)
set udg_trigger107=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger107,udg_rect34)
call TriggerAddCondition(udg_trigger107,Condition(function Trig_gohan_spawn_Conditions))
call TriggerAddAction(udg_trigger107,function Trig_gohan_spawn_Actions)
set udg_trigger108=CreateTrigger()
call DisableTrigger(udg_trigger108)
call TriggerRegisterTimerEventPeriodic(udg_trigger108,750.00)
call TriggerAddAction(udg_trigger108,function Trig_Dball_Restore_Actions)
set udg_trigger109=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger109,355.00)
call TriggerAddAction(udg_trigger109,function Trig_Create_Dballs_Actions)
set udg_trigger110=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(0),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(1),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(2),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(3),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(4),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(5),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(6),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(7),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(8),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(9),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(10),"wish help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger110,Player(11),"wish help",true)
call TriggerAddAction(udg_trigger110,function Trig_Wish_Help_Actions)
set udg_trigger111=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger111,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger111,Condition(function Trig_Wish_for_Power_Conditions))
call TriggerAddAction(udg_trigger111,function Trig_Wish_for_Power_Actions)
set udg_trigger112=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger112,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger112,Condition(function Trig_Revive_Friends_Conditions))
call TriggerAddAction(udg_trigger112,function Trig_Revive_Friends_Actions)
set udg_trigger113=CreateTrigger()
call DisableTrigger(udg_trigger113)
call TriggerAddCondition(udg_trigger113,Condition(function Trig_Dball_Checker_Conditions))
call TriggerAddAction(udg_trigger113,function Trig_Dball_Checker_Actions)
set udg_trigger114=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger114,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger114,Condition(function Trig_Pick_up_Conditions))
call TriggerAddAction(udg_trigger114,function Trig_Pick_up_Actions)
set udg_trigger115=CreateTrigger()
call DisableTrigger(udg_trigger115)
call TriggerRegisterAnyUnitEventBJ(udg_trigger115,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger115,Condition(function Trig_Dragon_ball_radar_broken_Conditions))
call TriggerAddAction(udg_trigger115,function Trig_Dragon_ball_radar_broken_Actions)
set udg_trigger116=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger116,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger116,Condition(function Trig_Dragon_ball_radar_before_Conditions))
call TriggerAddAction(udg_trigger116,function Trig_Dragon_ball_radar_before_Actions)
set udg_trigger117=CreateTrigger()
call DisableTrigger(udg_trigger117)
call TriggerRegisterAnyUnitEventBJ(udg_trigger117,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger117,Condition(function Trig_Dragon_ball_radar_Conditions))
call TriggerAddAction(udg_trigger117,function Trig_Dragon_ball_radar_Actions)
set udg_trigger118=CreateTrigger()
call DisableTrigger(udg_trigger118)
call TriggerRegisterAnyUnitEventBJ(udg_trigger118,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger118,Condition(function Trig_Dragon_ball_radar_all_dballs_Conditions))
call TriggerAddAction(udg_trigger118,function Trig_Dragon_ball_radar_all_dballs_Actions)
set udg_trigger119=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger119,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger119,Condition(function Trig_DBGetBall_Conditions))
call TriggerAddAction(udg_trigger119,function Trig_DBGetBall_Actions)
set udg_trigger120=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger120,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(udg_trigger120,Condition(function Trig_DBDropBall_Conditions))
call TriggerAddAction(udg_trigger120,function Trig_DBDropBall_Actions)
set udg_trigger121=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger121,5)
call TriggerAddAction(udg_trigger121,function Trig_Creep_Initialization_Actions)
set udg_trigger122=CreateTrigger()
call TriggerRegisterPlayerUnitEventSimple(udg_trigger122,Player(12),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger122,function Trig_Creep_Death_Actions)
set udg_trigger123=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger123,10.00)
call TriggerAddAction(udg_trigger123,function Trig_Creep_Respawn_Actions)
set udg_trigger124=CreateTrigger()
call DisableTrigger(udg_trigger124)
call TriggerAddAction(udg_trigger124,function Trig_Respawn_Everymob_Actions)
set udg_trigger125=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(0),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(1),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(2),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(3),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(4),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(5),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(6),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(7),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(8),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(9),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(10),"saga help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger125,Player(11),"saga help",true)
call TriggerAddAction(udg_trigger125,function Trig_Saga_Help_Actions)
set udg_trigger126=CreateTrigger()
call DisableTrigger(udg_trigger126)
call TriggerAddAction(udg_trigger126,function Trig_Set_Saga_Hero_Stats_Actions)
set udg_trigger127=CreateTrigger()
call DisableTrigger(udg_trigger127)
call TriggerAddAction(udg_trigger127,function Trig_Set_Saga_Hero_Weak_Actions)
set udg_trigger128=CreateTrigger()
call DisableTrigger(udg_trigger128)
call TriggerRegisterTimerEventPeriodic(udg_trigger128,45.00)
call TriggerAddCondition(udg_trigger128,Condition(function Trig_Start_Janemba_Conditions))
call TriggerAddAction(udg_trigger128,function Trig_Start_Janemba_Actions)
set udg_trigger129=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger129,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger129,Condition(function Trig_Janemba_Perfect_Conditions))
call TriggerAddAction(udg_trigger129,function Trig_Janemba_Perfect_Actions)
set udg_trigger130=CreateTrigger()
call DisableTrigger(udg_trigger130)
call TriggerRegisterTimerEventPeriodic(udg_trigger130,10.00)
call TriggerAddAction(udg_trigger130,function Trig_Janemba_Teleport_Actions)
set udg_trigger131=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger131,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger131,Condition(function Trig_Janemba_Dies_Conditions))
call TriggerAddAction(udg_trigger131,function Trig_Janemba_Dies_Actions)
set udg_trigger132=CreateTrigger()
call DisableTrigger(udg_trigger132)
call TriggerAddAction(udg_trigger132,function Trig_Start_Hildegarn_Actions)
set udg_trigger133=CreateTrigger()
call DisableTrigger(udg_trigger133)
call TriggerRegisterTimerEventPeriodic(udg_trigger133,5.00)
call TriggerAddAction(udg_trigger133,function Trig_Lower_Upper_Orders_Actions)
set udg_trigger134=CreateTrigger()
call DisableTrigger(udg_trigger134)
call TriggerAddCondition(udg_trigger134,Condition(function Trig_Hildegarn_Fuse_Conditions))
call TriggerAddAction(udg_trigger134,function Trig_Hildegarn_Fuse_Actions)
set udg_trigger135=CreateTrigger()
call DisableTrigger(udg_trigger135)
call TriggerRegisterAnyUnitEventBJ(udg_trigger135,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger135,Condition(function Trig_Half_Dies_Conditions))
call TriggerAddAction(udg_trigger135,function Trig_Half_Dies_Actions)
set udg_trigger136=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger136,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger136,Condition(function Trig_Hildegarn_Mature_Conditions))
call TriggerAddAction(udg_trigger136,function Trig_Hildegarn_Mature_Actions)
set udg_trigger137=CreateTrigger()
call DisableTrigger(udg_trigger137)
call TriggerRegisterTimerEventPeriodic(udg_trigger137,20.00)
call TriggerAddAction(udg_trigger137,function Trig_Hildegarn_Teleport_Actions)
set udg_trigger138=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger138,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger138,Condition(function Trig_Hildegarn_Dies_Conditions))
call TriggerAddAction(udg_trigger138,function Trig_Hildegarn_Dies_Actions)
set udg_trigger139=CreateTrigger()
call DisableTrigger(udg_trigger139)
call TriggerAddAction(udg_trigger139,function Trig_Start_Bio_Actions)
set udg_trigger140=CreateTrigger()
call DisableTrigger(udg_trigger140)
call TriggerRegisterTimerEventPeriodic(udg_trigger140,8.00)
call TriggerAddAction(udg_trigger140,function Trig_Extra_Saga_Bio_Fighters_Actions)
set udg_trigger141=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger141,udg_unit90,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger141,function Trig_Death_of_Factory_Actions)
set udg_trigger142=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger142,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger142,Condition(function Trig_Death_of_Bio_Broli_Conditions))
call TriggerAddAction(udg_trigger142,function Trig_Death_of_Bio_Broli_Actions)
set udg_trigger143=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger143,180.00)
call TriggerAddAction(udg_trigger143,function Trig_Start_Saiyan_Saga_Actions)
set udg_trigger144=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger144,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger144,Condition(function Trig_Death_of_Saiyans_Conditions))
call TriggerAddAction(udg_trigger144,function Trig_Death_of_Saiyans_Actions)
set udg_trigger145=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger145,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger145,Condition(function Trig_Use_Saibamen_seeds_Conditions))
call TriggerAddAction(udg_trigger145,function Trig_Use_Saibamen_seeds_Actions)
set udg_trigger146=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger146,udg_timer13)
call TriggerAddAction(udg_trigger146,function Trig_Tree_of_Might_start_Actions)
set udg_trigger147=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger147,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger147,Condition(function Trig_Use_Tree_of_Might_seedling_Conditions))
call TriggerAddAction(udg_trigger147,function Trig_Use_Tree_of_Might_seedling_Actions)
set udg_trigger148=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger148,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger148,Condition(function Trig_Turles_Dies_Conditions))
call TriggerAddAction(udg_trigger148,function Trig_Turles_Dies_Actions)
set udg_trigger149=CreateTrigger()
call DisableTrigger(udg_trigger149)
call TriggerAddAction(udg_trigger149,function Trig_Extra_Saga_Dr_Wheelo_Actions)
set udg_trigger150=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger150,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger150,Condition(function Trig_Item_drop_Dr_Wheelo_Conditions))
call TriggerAddAction(udg_trigger150,function Trig_Item_drop_Dr_Wheelo_Actions)
set udg_trigger151=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger151,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger151,Condition(function Trig_Item_drop_Dr_Kochin_Conditions))
call TriggerAddAction(udg_trigger151,function Trig_Item_drop_Dr_Kochin_Actions)
set udg_trigger152=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger152,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger152,Condition(function Trig_Extra_Wheelo_Saga_End_Conditions))
call TriggerAddAction(udg_trigger152,function Trig_Extra_Wheelo_Saga_End_Actions)
set udg_trigger153=CreateTrigger()
call DisableTrigger(udg_trigger153)
call TriggerRegisterTimerExpireEvent(udg_trigger153,udg_timer13)
call TriggerAddAction(udg_trigger153,function Trig_Start_Slug_Actions)
set udg_trigger154=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger154,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger154,Condition(function Trig_Death_of_Lord_Slug_Conditions))
call TriggerAddAction(udg_trigger154,function Trig_Death_of_Lord_Slug_Actions)
set udg_trigger155=CreateTrigger()
call DisableTrigger(udg_trigger155)
call TriggerAddAction(udg_trigger155,function Trig_Start_Garlic_Jr_Actions)
set udg_trigger156=CreateTrigger()
call DisableTrigger(udg_trigger156)
call TriggerAddAction(udg_trigger156,function Trig_BWM_Humans_Actions)
set udg_trigger157=CreateTrigger()
call DisableTrigger(udg_trigger157)
call TriggerAddAction(udg_trigger157,function Trig_Cleanse_Humans_Actions)
set udg_trigger158=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger158,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger158,Condition(function Trig_Garlic_Dies_Once_Conditions))
call TriggerAddAction(udg_trigger158,function Trig_Garlic_Dies_Once_Actions)
set udg_trigger159=CreateTrigger()
call DisableTrigger(udg_trigger159)
call TriggerAddAction(udg_trigger159,function Trig_Garlic_Opens_Dead_Zone_Actions)
set udg_trigger160=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger160,udg_rect53)
call TriggerAddCondition(udg_trigger160,Condition(function Trig_End_of_Garlic_Jr_Conditions))
call TriggerAddAction(udg_trigger160,function Trig_End_of_Garlic_Jr_Actions)
set udg_trigger161=CreateTrigger()
call DisableTrigger(udg_trigger161)
call TriggerAddAction(udg_trigger161,function Trig_Start_Future_Trunks_Actions)
set udg_trigger162=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger162,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger162,Condition(function Trig_Frieza_Dies_Conditions))
call TriggerAddAction(udg_trigger162,function Trig_Frieza_Dies_Actions)
set udg_trigger163=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger163,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger163,Condition(function Trig_King_Cold_Dies_Conditions))
call TriggerAddAction(udg_trigger163,function Trig_King_Cold_Dies_Actions)
set udg_trigger164=CreateTrigger()
call DisableTrigger(udg_trigger164)
call TriggerAddAction(udg_trigger164,function Trig_End_Future_Trunks_Actions)
set udg_trigger165=CreateTrigger()
call DisableTrigger(udg_trigger165)
call TriggerAddAction(udg_trigger165,function Trig_Start_Bojack_Actions)
set udg_trigger166=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger166,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger166,Condition(function Trig_End_Bojack_Conditions))
call TriggerAddAction(udg_trigger166,function Trig_End_Bojack_Actions)
set udg_trigger167=CreateTrigger()
call DisableTrigger(udg_trigger167)
call TriggerAddAction(udg_trigger167,function Trig_Start_Shadow_Dragon_Actions)
set udg_trigger168=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger168,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger168,Condition(function Trig_Killed_a_Dragon_Conditions))
call TriggerAddAction(udg_trigger168,function Trig_Killed_a_Dragon_Actions)
set udg_trigger169=CreateTrigger()
call DisableTrigger(udg_trigger169)
call TriggerAddAction(udg_trigger169,function Trig_Syn_Shenron_Actions)
set udg_trigger170=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger170,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger170,Condition(function Trig_Omega_Shenron_Conditions))
call TriggerAddAction(udg_trigger170,function Trig_Omega_Shenron_Actions)
set udg_trigger171=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger171,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger171,Condition(function Trig_Omega_Dies_Conditions))
call TriggerAddAction(udg_trigger171,function Trig_Omega_Dies_Actions)
set udg_trigger172=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger172,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger172,Condition(function Trig_Finish_Buster_Conditions))
call TriggerAddAction(udg_trigger172,function Trig_Finish_Buster_Actions)
set udg_trigger173=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger173,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger173,Condition(function Trig_Gallet_Gun_Conditions))
call TriggerAddAction(udg_trigger173,function Trig_Gallet_Gun_Actions)
set udg_trigger174=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger174,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger174,Condition(function Trig_Masenko_Conditions))
call TriggerAddAction(udg_trigger174,function Trig_Masenko_Actions)
set udg_trigger175=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger175,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger175,Condition(function Trig_Death_Beam_Conditions))
call TriggerAddAction(udg_trigger175,function Trig_Death_Beam_Actions)
set udg_trigger176=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger176,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger176,Condition(function Trig_Energy_Beam_Conditions))
call TriggerAddAction(udg_trigger176,function Trig_Energy_Beam_Actions)
set udg_trigger177=CreateTrigger()
call DisableTrigger(udg_trigger177)
call TriggerAddAction(udg_trigger177,function Trig_Energy_Beam_DoT_Actions)
set udg_trigger178=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger178,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger178,Condition(function Trig_Final_Flash_Conditions))
call TriggerAddAction(udg_trigger178,function Trig_Final_Flash_Actions)
set udg_trigger179=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger179,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger179,Condition(function Trig_Kamehameha_Conditions))
call TriggerAddAction(udg_trigger179,function Trig_Kamehameha_Actions)
set udg_trigger180=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger180,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger180,Condition(function Trig_Special_Beam_Cannon_Conditions))
call TriggerAddAction(udg_trigger180,function Trig_Special_Beam_Cannon_Actions)
set udg_trigger181=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger181,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger181,Condition(function Trig_Flesh_Attack_Conditions))
call TriggerAddAction(udg_trigger181,function Trig_Flesh_Attack_Actions)
set udg_trigger182=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger182,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger182,Condition(function Trig_Big_Bang_Attack_Conditions))
call TriggerAddAction(udg_trigger182,function Trig_Big_Bang_Attack_Actions)
set udg_trigger183=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger183,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger183,Condition(function Trig_Burning_Attack_Conditions))
call TriggerAddAction(udg_trigger183,function Trig_Burning_Attack_Actions)
set udg_trigger184=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger184,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger184,Condition(function Trig_Dragon_Fist_Conditions))
call TriggerAddAction(udg_trigger184,function Trig_Dragon_Fist_Actions)
set udg_trigger185=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger185,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger185,Condition(function Trig_Hell_Zone_Grenade_Conditions))
call TriggerAddAction(udg_trigger185,function Trig_Hell_Zone_Grenade_Actions)
set udg_trigger186=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger186,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger186,Condition(function Trig_Energy_Sparkle_Conditions))
call TriggerAddAction(udg_trigger186,function Trig_Energy_Sparkle_Actions)
set udg_trigger187=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger187,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger187,Condition(function Trig_Sword_of_Energy_Conditions))
call TriggerAddAction(udg_trigger187,function Trig_Sword_of_Energy_Actions)
set udg_trigger188=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger188,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger188,Condition(function Trig_SS_Deadly_Bomb_Conditions))
call TriggerAddAction(udg_trigger188,function Trig_SS_Deadly_Bomb_Actions)
set udg_trigger189=CreateTrigger()
call DisableTrigger(udg_trigger189)
call TriggerRegisterTimerEventPeriodic(udg_trigger189,0.01)
call TriggerAddAction(udg_trigger189,function Trig_Build_SS_Deadly_Bomb_Actions)
set udg_trigger190=CreateTrigger()
call DisableTrigger(udg_trigger190)
call TriggerRegisterTimerEventPeriodic(udg_trigger190,0.70)
call TriggerAddAction(udg_trigger190,function Trig_SS_Deadly_Bomb_DoT_Actions)
set udg_trigger191=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger191,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger191,Condition(function Trig_Death_Ball_Conditions))
call TriggerAddAction(udg_trigger191,function Trig_Death_Ball_Actions)
set udg_trigger192=CreateTrigger()
call DisableTrigger(udg_trigger192)
call TriggerRegisterTimerEventPeriodic(udg_trigger192,0.01)
call TriggerAddAction(udg_trigger192,function Trig_Build_Death_Ball_Actions)
set udg_trigger193=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger193,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger193,Condition(function Trig_Death_Ball_Attack_Conditions))
call TriggerAddAction(udg_trigger193,function Trig_Death_Ball_Attack_Actions)
set udg_trigger194=CreateTrigger()
call DisableTrigger(udg_trigger194)
call TriggerAddAction(udg_trigger194,function Trig_Death_Ball_DoT_Actions)
set udg_trigger195=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger195,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger195,Condition(function Trig_Vanishing_Ball_Conditions))
call TriggerAddAction(udg_trigger195,function Trig_Vanishing_Ball_Actions)
set udg_trigger196=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger196,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger196,Condition(function Trig_Vanishing_Ball_Attack_Conditions))
call TriggerAddAction(udg_trigger196,function Trig_Vanishing_Ball_Attack_Actions)
set udg_trigger197=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger197,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger197,Condition(function Trig_Destruction_Sphere_Conditions))
call TriggerAddAction(udg_trigger197,function Trig_Destruction_Sphere_Actions)
set udg_trigger198=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger198,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger198,Condition(function Trig_Destruction_Sphere_Attack_Conditions))
call TriggerAddAction(udg_trigger198,function Trig_Destruction_Sphere_Attack_Actions)
set udg_trigger199=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger199,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger199,Condition(function Trig_Revenge_Death_Ball_Conditions))
call TriggerAddAction(udg_trigger199,function Trig_Revenge_Death_Ball_Actions)
set udg_trigger200=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger200,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger200,Condition(function Trig_Revenge_Death_Ball_Attack_Conditions))
call TriggerAddAction(udg_trigger200,function Trig_Revenge_Death_Ball_Attack_Actions)
set udg_trigger201=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger201,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(udg_trigger201,Condition(function Trig_Scatter_Shot_On_Conditions))
call TriggerAddAction(udg_trigger201,function Trig_Scatter_Shot_On_Actions)
set udg_trigger202=CreateTrigger()
call DisableTrigger(udg_trigger202)
call TriggerRegisterTimerEventPeriodic(udg_trigger202,0.30)
call TriggerAddAction(udg_trigger202,function Trig_Scatter_Shot_Channel_Actions)
set udg_trigger203=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger203,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger203,Condition(function Trig_Scatter_Shot_Off_Conditions))
call TriggerAddAction(udg_trigger203,function Trig_Scatter_Shot_Off_Actions)
set udg_trigger204=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger204,EVENT_PLAYER_UNIT_SPELL_CHANNEL)
call TriggerAddCondition(udg_trigger204,Condition(function Trig_Mankind_Destruction_Attack_Conditions))
call TriggerAddAction(udg_trigger204,function Trig_Mankind_Destruction_Attack_Actions)
set udg_trigger205=CreateTrigger()
call DisableTrigger(udg_trigger205)
call TriggerRegisterTimerEventPeriodic(udg_trigger205,0.50)
call TriggerAddAction(udg_trigger205,function Trig_Mankind_Destruction_Attack_Channel_Actions)
set udg_trigger206=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger206,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger206,Condition(function Trig_Mankind_Destruction_Attack_Off_Conditions))
call TriggerAddAction(udg_trigger206,function Trig_Mankind_Destruction_Attack_Off_Actions)
set udg_trigger207=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger207,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger207,Condition(function Trig_Charge_On_Conditions))
call TriggerAddAction(udg_trigger207,function Trig_Charge_On_Actions)
set udg_trigger208=CreateTrigger()
call DisableTrigger(udg_trigger208)
call TriggerRegisterTimerEventPeriodic(udg_trigger208,1.00)
call TriggerAddAction(udg_trigger208,function Trig_Charge_Channel_Actions)
set udg_trigger209=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger209,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger209,Condition(function Trig_Renzoku_Energy_Dan_Conditions))
call TriggerAddAction(udg_trigger209,function Trig_Renzoku_Energy_Dan_Actions)
set udg_trigger210=CreateTrigger()
call DisableTrigger(udg_trigger210)
call TriggerRegisterAnyUnitEventBJ(udg_trigger210,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger210,Condition(function Trig_Renzoku_Energy_Dan_Attack_Conditions))
call TriggerAddAction(udg_trigger210,function Trig_Renzoku_Energy_Dan_Attack_Actions)
set udg_trigger211=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger211,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger211,Condition(function Trig_Shine_Shine_Missile_Conditions))
call TriggerAddAction(udg_trigger211,function Trig_Shine_Shine_Missile_Actions)
set udg_trigger212=CreateTrigger()
call DisableTrigger(udg_trigger212)
call TriggerRegisterAnyUnitEventBJ(udg_trigger212,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger212,Condition(function Trig_Shine_Shine_Missile_Attack_Conditions))
call TriggerAddAction(udg_trigger212,function Trig_Shine_Shine_Missile_Attack_Actions)
set udg_trigger213=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger213,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger213,Condition(function Trig_Buu_Energy_Disbursement_Conditions))
call TriggerAddAction(udg_trigger213,function Trig_Buu_Energy_Disbursement_Actions)
set udg_trigger214=CreateTrigger()
call DisableTrigger(udg_trigger214)
call TriggerRegisterAnyUnitEventBJ(udg_trigger214,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger214,Condition(function Trig_Buu_Energy_Disbursement_Attack_Conditions))
call TriggerAddAction(udg_trigger214,function Trig_Buu_Energy_Disbursement_Attack_Actions)
set udg_trigger215=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger215,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger215,Condition(function Trig_Tsufuru_Spirits_Conditions))
call TriggerAddAction(udg_trigger215,function Trig_Tsufuru_Spirits_Actions)
set udg_trigger216=CreateTrigger()
call DisableTrigger(udg_trigger216)
call TriggerRegisterAnyUnitEventBJ(udg_trigger216,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger216,Condition(function Trig_Tsufuru_Spirits_Attack_Conditions))
call TriggerAddAction(udg_trigger216,function Trig_Tsufuru_Spirits_Attack_Actions)
set udg_trigger217=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger217,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger217,Condition(function Trig_Oozaru_Conditions))
call TriggerAddAction(udg_trigger217,function Trig_Oozaru_Actions)
set udg_trigger218=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger218,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger218,Condition(function Trig_Golden_Oozaru_Conditions))
call TriggerAddAction(udg_trigger218,function Trig_Golden_Oozaru_Actions)
set udg_trigger219=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger219,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger219,Condition(function Trig_Bebi_Oozaru_Conditions))
call TriggerAddAction(udg_trigger219,function Trig_Bebi_Oozaru_Actions)
set udg_trigger220=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger220,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger220,Condition(function Trig_Bebi_Golden_Oozaru_Conditions))
call TriggerAddAction(udg_trigger220,function Trig_Bebi_Golden_Oozaru_Actions)
set udg_trigger221=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger221,udg_unit27,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger221,Condition(function Trig_Gohan_Oozaru_Conditions))
call TriggerAddAction(udg_trigger221,function Trig_Gohan_Oozaru_Actions)
set udg_trigger222=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger222,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger222,Condition(function Trig_Solar_Flare_Conditions))
call TriggerAddAction(udg_trigger222,function Trig_Solar_Flare_Actions)
set udg_trigger223=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger223,udg_unit45,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger223,Condition(function Trig_Kamikaze_Sound_Conditions))
call TriggerAddAction(udg_trigger223,function Trig_Kamikaze_Sound_Actions)
set udg_trigger224=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger224,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger224,Condition(function Trig_Kamikaze_Attack_Conditions))
call TriggerAddAction(udg_trigger224,function Trig_Kamikaze_Attack_Actions)
set udg_trigger225=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger225,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger225,Condition(function Trig_Area_Buu_Beam_Conditions))
call TriggerAddAction(udg_trigger225,function Trig_Area_Buu_Beam_Actions)
set udg_trigger226=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger226,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger226,Condition(function Trig_Angry_Explosion_Conditions))
call TriggerAddAction(udg_trigger226,function Trig_Angry_Explosion_Actions)
set udg_trigger227=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger227,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger227,Condition(function Trig_Energy_Punch_Conditions))
call TriggerAddAction(udg_trigger227,function Trig_Energy_Punch_Actions)
set udg_trigger228=CreateTrigger()
call DisableTrigger(udg_trigger228)
call TriggerRegisterTimerEventPeriodic(udg_trigger228,0.01)
call TriggerAddAction(udg_trigger228,function Trig_Energy_Punch_Move_Back_Actions)
set udg_trigger229=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger229,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger229,Condition(function Trig_Power_Level_Rising_Conditions))
call TriggerAddAction(udg_trigger229,function Trig_Power_Level_Rising_Actions)
set udg_trigger230=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger230,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger230,Condition(function Trig_Nuclear_Bomb_Conditions))
call TriggerAddAction(udg_trigger230,function Trig_Nuclear_Bomb_Actions)
set udg_trigger231=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger231,udg_unit34,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger231,Condition(function Trig_Babidi_Wizardry_Conditions))
call TriggerAddAction(udg_trigger231,function Trig_Babidi_Wizardry_Actions)
set udg_trigger232=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger232,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger232,Condition(function Trig_GOozaru_Wave_Recharge_Conditions))
call TriggerAddAction(udg_trigger232,function Trig_GOozaru_Wave_Recharge_Actions)
set udg_trigger233=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger233,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger233,Condition(function Trig_Regeneration_Conditions))
call TriggerAddAction(udg_trigger233,function Trig_Regeneration_Actions)
set udg_trigger234=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger234,udg_unit31,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger234,function Trig_Goku_gains_level_Actions)
set udg_trigger235=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger235,udg_rect135)
call TriggerAddCondition(udg_trigger235,Condition(function Trig_Goku_reaches_King_Kai_Conditions))
call TriggerAddAction(udg_trigger235,function Trig_Goku_reaches_King_Kai_Actions)
set udg_trigger236=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger236,udg_unit31,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger236,Condition(function Trig_Goku_fusion_reminder_Conditions))
call TriggerAddAction(udg_trigger236,function Trig_Goku_fusion_reminder_Actions)
set udg_trigger237=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger237,udg_unit31,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger237,Condition(function Trig_Goku_potara_reminder_Conditions))
call TriggerAddAction(udg_trigger237,function Trig_Goku_potara_reminder_Actions)
set udg_trigger238=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger238,udg_unit31,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger238,Condition(function Trig_Goku_Reminder_kaox10_Conditions))
call TriggerAddAction(udg_trigger238,function Trig_Goku_Reminder_kaox10_Actions)
set udg_trigger239=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger239,udg_unit31,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger239,Condition(function Trig_Goku_Reminder_ss1_Conditions))
call TriggerAddAction(udg_trigger239,function Trig_Goku_Reminder_ss1_Actions)
set udg_trigger240=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger240,udg_unit31,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger240,Condition(function Trig_Goku_Reminder_ss2_Conditions))
call TriggerAddAction(udg_trigger240,function Trig_Goku_Reminder_ss2_Actions)
set udg_trigger241=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger241,udg_unit31,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger241,Condition(function Trig_Goku_Reminder_ss3_Conditions))
call TriggerAddAction(udg_trigger241,function Trig_Goku_Reminder_ss3_Actions)
set udg_trigger242=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger242,udg_unit31,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger242,Condition(function Trig_Goku_Reminder_ss4_Conditions))
call TriggerAddAction(udg_trigger242,function Trig_Goku_Reminder_ss4_Actions)
set udg_trigger243=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger243,Player(0),"help",true)
call TriggerAddAction(udg_trigger243,function Trig_Goku_Help_Actions)
set udg_trigger244=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger244,Player(0),"help skills",true)
call TriggerAddAction(udg_trigger244,function Trig_Goku_Help_skills_Actions)
set udg_trigger245=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger245,Player(0),"kaox10",true)
call TriggerAddCondition(udg_trigger245,Condition(function Trig_Goku_kaox10_Conditions))
call TriggerAddAction(udg_trigger245,function Trig_Goku_kaox10_Actions)
set udg_trigger246=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger246,Player(0),"ss",true)
call TriggerAddCondition(udg_trigger246,Condition(function Trig_Goku_Super_Saiyan_1_Conditions))
call TriggerAddAction(udg_trigger246,function Trig_Goku_Super_Saiyan_1_Actions)
set udg_trigger247=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger247,Player(0),"ss2",true)
call TriggerAddCondition(udg_trigger247,Condition(function Trig_Goku_Super_Saiyan_2_Conditions))
call TriggerAddAction(udg_trigger247,function Trig_Goku_Super_Saiyan_2_Actions)
set udg_trigger248=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger248,Player(0),"ss3",true)
call TriggerAddCondition(udg_trigger248,Condition(function Trig_Goku_Super_Saiyan_3_Conditions))
call TriggerAddAction(udg_trigger248,function Trig_Goku_Super_Saiyan_3_Actions)
set udg_trigger249=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger249,Player(0),"ss4",true)
call TriggerAddCondition(udg_trigger249,Condition(function Trig_Goku_Super_Saiyan_4_Conditions))
call TriggerAddAction(udg_trigger249,function Trig_Goku_Super_Saiyan_4_Actions)
set udg_trigger250=CreateTrigger()
call DisableTrigger(udg_trigger250)
call TriggerAddAction(udg_trigger250,function Trig_Goku_Alter_Stats_Actions)
set udg_trigger251=CreateTrigger()
call DisableTrigger(udg_trigger251)
call TriggerRegisterTimerEventPeriodic(udg_trigger251,1.00)
call TriggerAddCondition(udg_trigger251,Condition(function Trig_Goku_Mana_Drain_Conditions))
call TriggerAddAction(udg_trigger251,function Trig_Goku_Mana_Drain_Actions)
set udg_trigger252=CreateTrigger()
call TriggerRegisterUnitManaEvent(udg_trigger252,udg_unit31,EQUAL,0.00)
call TriggerAddCondition(udg_trigger252,Condition(function Trig_Goku_Drained_Conditions))
call TriggerAddAction(udg_trigger252,function Trig_Goku_Drained_Actions)
set udg_trigger253=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger253,Player(0),"revert",true)
call TriggerAddCondition(udg_trigger253,Condition(function Trig_Goku_Revert_Conditions))
call TriggerAddAction(udg_trigger253,function Trig_Goku_Revert_Actions)
set udg_trigger254=CreateTrigger()
call DisableTrigger(udg_trigger254)
call TriggerRegisterTimerEventPeriodic(udg_trigger254,3.00)
call TriggerAddCondition(udg_trigger254,Condition(function Trig_Goku_Super_Saiyan_2_effect_Conditions))
call TriggerAddAction(udg_trigger254,function Trig_Goku_Super_Saiyan_2_effect_Actions)
set udg_trigger255=CreateTrigger()
call DisableTrigger(udg_trigger255)
call TriggerRegisterTimerEventPeriodic(udg_trigger255,4.50)
call TriggerAddCondition(udg_trigger255,Condition(function Trig_Goku_Super_Saiyan_3_effect_Conditions))
call TriggerAddAction(udg_trigger255,function Trig_Goku_Super_Saiyan_3_effect_Actions)
set udg_trigger256=CreateTrigger()
call DisableTrigger(udg_trigger256)
call TriggerRegisterTimerEventPeriodic(udg_trigger256,2.00)
call TriggerAddCondition(udg_trigger256,Condition(function Trig_Goku_Super_Saiyan_4_effect_Conditions))
call TriggerAddAction(udg_trigger256,function Trig_Goku_Super_Saiyan_4_effect_Actions)
set udg_trigger257=CreateTrigger()
call DisableTrigger(udg_trigger257)
call TriggerRegisterTimerEventPeriodic(udg_trigger257,3.00)
call TriggerAddCondition(udg_trigger257,Condition(function Trig_Goku_Golden_effect_Conditions))
call TriggerAddAction(udg_trigger257,function Trig_Goku_Golden_effect_Actions)
set udg_trigger258=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger258,Player(0),"sense help",true)
call TriggerAddAction(udg_trigger258,function Trig_Sense_help_Actions)
set udg_trigger259=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger259,Player(0),"sense",false)
call TriggerAddAction(udg_trigger259,function Trig_Sense_evil_hero_Actions)
set udg_trigger260=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger260,Player(0),"transmission help",true)
call TriggerAddCondition(udg_trigger260,Condition(function Trig_Transmission_help_Conditions))
call TriggerAddAction(udg_trigger260,function Trig_Transmission_help_Actions)
set udg_trigger261=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger261,udg_unit31,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger261,Condition(function Trig_Reminder_for_Transmission_Conditions))
call TriggerAddAction(udg_trigger261,function Trig_Reminder_for_Transmission_Actions)
set udg_trigger262=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger262,Player(0),"lockon",false)
call TriggerAddCondition(udg_trigger262,Condition(function Trig_lockon_hero_Conditions))
call TriggerAddAction(udg_trigger262,function Trig_lockon_hero_Actions)
set udg_trigger263=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger263,Player(0),"lockon lookout",true)
call TriggerAddCondition(udg_trigger263,Condition(function Trig_Lookout_Conditions))
call TriggerAddAction(udg_trigger263,function Trig_Lookout_Actions)
set udg_trigger264=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger264,Player(0),"lockon westcity",true)
call TriggerAddCondition(udg_trigger264,Condition(function Trig_West_City_Conditions))
call TriggerAddAction(udg_trigger264,function Trig_West_City_Actions)
set udg_trigger265=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger265,Player(0),"lockon capital",true)
call TriggerAddCondition(udg_trigger265,Condition(function Trig_Capital_Conditions))
call TriggerAddAction(udg_trigger265,function Trig_Capital_Actions)
set udg_trigger266=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger266,udg_unit26,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger266,function Trig_Vegeta_gains_level_Actions)
set udg_trigger267=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger267,udg_unit26,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger267,Condition(function Trig_Vegeta_fusion_reminder_Conditions))
call TriggerAddAction(udg_trigger267,function Trig_Vegeta_fusion_reminder_Actions)
set udg_trigger268=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger268,udg_unit26,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger268,Condition(function Trig_Vegeta_potara_reminder_Conditions))
call TriggerAddAction(udg_trigger268,function Trig_Vegeta_potara_reminder_Actions)
set udg_trigger269=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger269,udg_unit26,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger269,Condition(function Trig_Vegeta_Reminder_ss1_Conditions))
call TriggerAddAction(udg_trigger269,function Trig_Vegeta_Reminder_ss1_Actions)
set udg_trigger270=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger270,udg_unit26,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger270,Condition(function Trig_Vegeta_Reminder_uss_Conditions))
call TriggerAddAction(udg_trigger270,function Trig_Vegeta_Reminder_uss_Actions)
set udg_trigger271=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger271,udg_unit26,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger271,Condition(function Trig_Vegeta_Gravity_reminder_Conditions))
call TriggerAddAction(udg_trigger271,function Trig_Vegeta_Gravity_reminder_Actions)
set udg_trigger272=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger272,udg_unit26,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger272,Condition(function Trig_Vegeta_Reminder_ss2_Conditions))
call TriggerAddAction(udg_trigger272,function Trig_Vegeta_Reminder_ss2_Actions)
set udg_trigger273=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger273,udg_unit26,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger273,Condition(function Trig_Vegeta_Reminder_ss4_Conditions))
call TriggerAddAction(udg_trigger273,function Trig_Vegeta_Reminder_ss4_Actions)
set udg_trigger274=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger274,Player(1),"help",true)
call TriggerAddAction(udg_trigger274,function Trig_Vegeta_Help_Actions)
set udg_trigger275=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger275,Player(1),"help skills",true)
call TriggerAddAction(udg_trigger275,function Trig_Vegeta_Help_skills_Actions)
set udg_trigger276=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger276,Player(1),"ss",true)
call TriggerAddCondition(udg_trigger276,Condition(function Trig_Vegeta_SS1_Transformation_Conditions))
call TriggerAddAction(udg_trigger276,function Trig_Vegeta_SS1_Transformation_Actions)
set udg_trigger277=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger277,Player(1),"uss",true)
call TriggerAddCondition(udg_trigger277,Condition(function Trig_Vegeta_USS_Transformation_Conditions))
call TriggerAddAction(udg_trigger277,function Trig_Vegeta_USS_Transformation_Actions)
set udg_trigger278=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger278,Player(1),"ss2",true)
call TriggerAddCondition(udg_trigger278,Condition(function Trig_Vegeta_SS2_Transformation_Conditions))
call TriggerAddAction(udg_trigger278,function Trig_Vegeta_SS2_Transformation_Actions)
set udg_trigger279=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger279,Player(1),"ss4",true)
call TriggerAddCondition(udg_trigger279,Condition(function Trig_Vegeta_SS4_Transformation_Conditions))
call TriggerAddAction(udg_trigger279,function Trig_Vegeta_SS4_Transformation_Actions)
set udg_trigger280=CreateTrigger()
call DisableTrigger(udg_trigger280)
call TriggerAddAction(udg_trigger280,function Trig_Vegeta_Alter_Stats_Actions)
set udg_trigger281=CreateTrigger()
call DisableTrigger(udg_trigger281)
call TriggerRegisterTimerEventPeriodic(udg_trigger281,1.00)
call TriggerAddCondition(udg_trigger281,Condition(function Trig_Vegeta_Mana_Drain_Conditions))
call TriggerAddAction(udg_trigger281,function Trig_Vegeta_Mana_Drain_Actions)
set udg_trigger282=CreateTrigger()
call TriggerRegisterUnitManaEvent(udg_trigger282,udg_unit26,EQUAL,0.00)
call TriggerAddCondition(udg_trigger282,Condition(function Trig_Vegeta_Drained_Conditions))
call TriggerAddAction(udg_trigger282,function Trig_Vegeta_Drained_Actions)
set udg_trigger283=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger283,Player(1),"revert",true)
call TriggerAddCondition(udg_trigger283,Condition(function Trig_Vegeta_Revert_Conditions))
call TriggerAddAction(udg_trigger283,function Trig_Vegeta_Revert_Actions)
set udg_trigger284=CreateTrigger()
call DisableTrigger(udg_trigger284)
call TriggerRegisterTimerEventPeriodic(udg_trigger284,3.00)
call TriggerAddCondition(udg_trigger284,Condition(function Trig_Vegeta_SS2_Effect_Conditions))
call TriggerAddAction(udg_trigger284,function Trig_Vegeta_SS2_Effect_Actions)
set udg_trigger285=CreateTrigger()
call DisableTrigger(udg_trigger285)
call TriggerRegisterTimerEventPeriodic(udg_trigger285,2.00)
call TriggerAddCondition(udg_trigger285,Condition(function Trig_Vegeta_SS4_Effect_Conditions))
call TriggerAddAction(udg_trigger285,function Trig_Vegeta_SS4_Effect_Actions)
set udg_trigger286=CreateTrigger()
call DisableTrigger(udg_trigger286)
call TriggerRegisterTimerEventPeriodic(udg_trigger286,3.00)
call TriggerAddCondition(udg_trigger286,Condition(function Trig_Vegeta_Golden_Effect_Conditions))
call TriggerAddAction(udg_trigger286,function Trig_Vegeta_Golden_Effect_Actions)
set udg_trigger287=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger287,udg_rect136)
call TriggerAddAction(udg_trigger287,function Trig_Enter_Gravity_Actions)
set udg_trigger288=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger288,udg_rect137)
call TriggerAddAction(udg_trigger288,function Trig_Leave_Gravity_Actions)
set udg_trigger289=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger289,udg_rect139)
call TriggerAddCondition(udg_trigger289,Condition(function Trig_Vis_Gravity_Chamber_Conditions))
call TriggerAddAction(udg_trigger289,function Trig_Vis_Gravity_Chamber_Actions)
set udg_trigger290=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger290,udg_rect139)
call TriggerAddCondition(udg_trigger290,Condition(function Trig_Turn_on_Gravity_Chamber_Conditions))
call TriggerAddAction(udg_trigger290,function Trig_Turn_on_Gravity_Chamber_Actions)
set udg_trigger291=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_trigger291,udg_rect139)
call TriggerAddCondition(udg_trigger291,Condition(function Trig_Turn_off_Gravity_Chamber_Conditions))
call TriggerAddAction(udg_trigger291,function Trig_Turn_off_Gravity_Chamber_Actions)
set udg_trigger292=CreateTrigger()
call DisableTrigger(udg_trigger292)
call TriggerRegisterTimerEventPeriodic(udg_trigger292,4.00)
call TriggerAddAction(udg_trigger292,function Trig_Gravity_Chamber_Actions)
set udg_trigger293=CreateTrigger()
call DisableTrigger(udg_trigger293)
call TriggerRegisterTimerEventPeriodic(udg_trigger293,7.00)
call TriggerAddAction(udg_trigger293,function Trig_Chamber_Effects_Actions)
set udg_trigger294=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger294,udg_unit27,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger294,udg_unit82,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger294,function Trig_Gohan_gains_level_Actions)
set udg_trigger295=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger295,udg_unit42,EVENT_UNIT_DEATH)
call TriggerAddCondition(udg_trigger295,Condition(function Trig_Gohan_Beats_Cell_Conditions))
call TriggerAddAction(udg_trigger295,function Trig_Gohan_Beats_Cell_Actions)
set udg_trigger296=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger296,udg_unit27,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger296,Condition(function Trig_Gohan_Reminder_Potential_Conditions))
call TriggerAddAction(udg_trigger296,function Trig_Gohan_Reminder_Potential_Actions)
set udg_trigger297=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger297,udg_unit27,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger297,Condition(function Trig_Gohan_SS1_Reminder_Conditions))
call TriggerAddAction(udg_trigger297,function Trig_Gohan_SS1_Reminder_Actions)
set udg_trigger298=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger298,udg_unit27,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger298,Condition(function Trig_Gohan_SS2_Reminder_Conditions))
call TriggerAddAction(udg_trigger298,function Trig_Gohan_SS2_Reminder_Actions)
set udg_trigger299=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger299,udg_unit27,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger299,Condition(function Trig_Gohan_Mystic_Reminder_Conditions))
call TriggerAddAction(udg_trigger299,function Trig_Gohan_Mystic_Reminder_Actions)
set udg_trigger300=CreateTrigger()
call DisableTrigger(udg_trigger300)
call TriggerAddCondition(udg_trigger300,Condition(function Trig_Reminder_destroyed_15_targets_Conditions))
call TriggerAddAction(udg_trigger300,function Trig_Reminder_destroyed_15_targets_Actions)
set udg_trigger301=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger301,Player(2),"help",true)
call TriggerAddAction(udg_trigger301,function Trig_Gohan_Help_Actions)
set udg_trigger302=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger302,Player(2),"help skills",true)
call TriggerAddAction(udg_trigger302,function Trig_Gohan_Help_Skills_Actions)
set udg_trigger303=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger303,udg_rect38)
call TriggerAddCondition(udg_trigger303,Condition(function Trig_Gohan_Potential_Conditions))
call TriggerAddAction(udg_trigger303,function Trig_Gohan_Potential_Actions)
set udg_trigger304=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger304,Player(2),"ss",true)
call TriggerAddCondition(udg_trigger304,Condition(function Trig_Gohan_SS1_Transformation_Conditions))
call TriggerAddAction(udg_trigger304,function Trig_Gohan_SS1_Transformation_Actions)
set udg_trigger305=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger305,Player(2),"ss2",true)
call TriggerAddCondition(udg_trigger305,Condition(function Trig_Gohan_SS2_Transformation_Conditions))
call TriggerAddAction(udg_trigger305,function Trig_Gohan_SS2_Transformation_Actions)
set udg_trigger306=CreateTrigger()
call DisableTrigger(udg_trigger306)
call TriggerAddAction(udg_trigger306,function Trig_Gohan_Alter_Stats_Actions)
set udg_trigger307=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger307,udg_rect96)
call TriggerAddCondition(udg_trigger307,Condition(function Trig_Enter_Kai_Conditions))
call TriggerAddAction(udg_trigger307,function Trig_Enter_Kai_Actions)
set udg_trigger308=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger308,udg_rect28)
call TriggerAddCondition(udg_trigger308,Condition(function Trig_Enter_Kai_completed_Conditions))
call TriggerAddAction(udg_trigger308,function Trig_Enter_Kai_completed_Actions)
set udg_trigger309=CreateTrigger()
call DisableTrigger(udg_trigger309)
call TriggerAddCondition(udg_trigger309,Condition(function Trig_Mystic_Training_Conditions))
call TriggerAddAction(udg_trigger309,function Trig_Mystic_Training_Actions)
set udg_trigger310=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger310,udg_timer11)
call TriggerAddAction(udg_trigger310,function Trig_Timers_run_out_Actions)
set udg_trigger311=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger311,udg_unit27,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger311,Condition(function Trig_Learn_Great_Saiyaman_Conditions))
call TriggerAddAction(udg_trigger311,function Trig_Learn_Great_Saiyaman_Actions)
set udg_trigger312=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger312,udg_unit27,EVENT_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger312,Condition(function Trig_Great_Saiyaman_transformation_Conditions))
call TriggerAddAction(udg_trigger312,function Trig_Great_Saiyaman_transformation_Actions)
set udg_trigger313=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger313,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger313,Condition(function Trig_Gohan_Change_back_Conditions))
call TriggerAddAction(udg_trigger313,function Trig_Gohan_Change_back_Actions)
set udg_trigger314=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger314,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger314,Condition(function Trig_Power_Pose_Memory_Copy_Conditions))
call TriggerAddAction(udg_trigger314,function Trig_Power_Pose_Memory_Copy_Actions)
set udg_trigger315=CreateTrigger()
call DisableTrigger(udg_trigger315)
call TriggerRegisterTimerEventPeriodic(udg_trigger315,1.00)
call TriggerAddCondition(udg_trigger315,Condition(function Trig_Gohan_Mana_Drain_Conditions))
call TriggerAddAction(udg_trigger315,function Trig_Gohan_Mana_Drain_Actions)
set udg_trigger316=CreateTrigger()
call TriggerRegisterUnitManaEvent(udg_trigger316,udg_unit27,EQUAL,0.00)
call TriggerAddCondition(udg_trigger316,Condition(function Trig_Gohan_Drained_Conditions))
call TriggerAddAction(udg_trigger316,function Trig_Gohan_Drained_Actions)
set udg_trigger317=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger317,Player(2),"revert",true)
call TriggerAddCondition(udg_trigger317,Condition(function Trig_Gohan_Revert_Conditions))
call TriggerAddAction(udg_trigger317,function Trig_Gohan_Revert_Actions)
set udg_trigger318=CreateTrigger()
call DisableTrigger(udg_trigger318)
call TriggerAddAction(udg_trigger318,function Trig_Gohan_Revert_Info_Actions)
set udg_trigger319=CreateTrigger()
call DisableTrigger(udg_trigger319)
call TriggerRegisterTimerEventPeriodic(udg_trigger319,3.00)
call TriggerAddCondition(udg_trigger319,Condition(function Trig_Gohan_SS2_Effect_Conditions))
call TriggerAddAction(udg_trigger319,function Trig_Gohan_SS2_Effect_Actions)
set udg_trigger320=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger320,5.00)
call TriggerAddCondition(udg_trigger320,Condition(function Trig_Zsword_effect_Conditions))
call TriggerAddAction(udg_trigger320,function Trig_Zsword_effect_Actions)
set udg_trigger321=CreateTrigger()
call DisableTrigger(udg_trigger321)
call TriggerRegisterTimerEventPeriodic(udg_trigger321,7.00)
call TriggerAddCondition(udg_trigger321,Condition(function Trig_Mystic_Training_Effect_Conditions))
call TriggerAddAction(udg_trigger321,function Trig_Mystic_Training_Effect_Actions)
set udg_trigger322=CreateTrigger()
call DisableTrigger(udg_trigger322)
call TriggerRegisterAnyUnitEventBJ(udg_trigger322,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger322,Condition(function Trig_Mystic_Effect_Conditions))
call TriggerAddAction(udg_trigger322,function Trig_Mystic_Effect_Actions)
set udg_trigger323=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger323,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger323,Condition(function Trig_Death_to_practice_units_Conditions))
call TriggerAddAction(udg_trigger323,function Trig_Death_to_practice_units_Actions)
set udg_trigger324=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger324,udg_unit27,EVENT_UNIT_SPELL_CAST)
call TriggerAddAction(udg_trigger324,function Trig_Gohan_Casts_Actions)
set udg_trigger325=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger325,udg_unit29,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger325,function Trig_Future_Trunks_gains_level_Actions)
set udg_trigger326=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger326,udg_unit29,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger326,Condition(function Trig_Future_Trunks_Reminder_ss1_Conditions))
call TriggerAddAction(udg_trigger326,function Trig_Future_Trunks_Reminder_ss1_Actions)
set udg_trigger327=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger327,udg_unit29,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger327,Condition(function Trig_Future_Trunks_Reminder_uss_Conditions))
call TriggerAddAction(udg_trigger327,function Trig_Future_Trunks_Reminder_uss_Actions)
set udg_trigger328=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger328,udg_unit29,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger328,Condition(function Trig_Future_Trunks_Reminder_uss2_Conditions))
call TriggerAddAction(udg_trigger328,function Trig_Future_Trunks_Reminder_uss2_Actions)
set udg_trigger329=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger329,udg_unit29,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger329,Condition(function Trig_Future_Trunks_Reminder_sword_Conditions))
call TriggerAddAction(udg_trigger329,function Trig_Future_Trunks_Reminder_sword_Actions)
set udg_trigger330=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger330,Player(5),"help",true)
call TriggerAddAction(udg_trigger330,function Trig_Future_Trunks_Help_Actions)
set udg_trigger331=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger331,Player(5),"help skills",true)
call TriggerAddAction(udg_trigger331,function Trig_Future_Trunks_Help_skills_Actions)
set udg_trigger332=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger332,Player(5),"ss",true)
call TriggerAddCondition(udg_trigger332,Condition(function Trig_Future_Trunks_SS1_Transformation_Conditions))
call TriggerAddAction(udg_trigger332,function Trig_Future_Trunks_SS1_Transformation_Actions)
set udg_trigger333=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger333,Player(5),"uss",true)
call TriggerAddCondition(udg_trigger333,Condition(function Trig_Future_Trunks_USS_Transformation_Conditions))
call TriggerAddAction(udg_trigger333,function Trig_Future_Trunks_USS_Transformation_Actions)
set udg_trigger334=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger334,Player(5),"uss2",true)
call TriggerAddCondition(udg_trigger334,Condition(function Trig_Future_Trunks_USS2_Transformation_Conditions))
call TriggerAddAction(udg_trigger334,function Trig_Future_Trunks_USS2_Transformation_Actions)
set udg_trigger335=CreateTrigger()
call DisableTrigger(udg_trigger335)
call TriggerAddAction(udg_trigger335,function Trig_Future_Trunks_Alter_Stats_Actions)
set udg_trigger336=CreateTrigger()
call DisableTrigger(udg_trigger336)
call TriggerRegisterTimerEventPeriodic(udg_trigger336,1.00)
call TriggerAddCondition(udg_trigger336,Condition(function Trig_Future_Trunks_Mana_Drain_Conditions))
call TriggerAddAction(udg_trigger336,function Trig_Future_Trunks_Mana_Drain_Actions)
set udg_trigger337=CreateTrigger()
call TriggerRegisterUnitManaEvent(udg_trigger337,udg_unit29,EQUAL,0.00)
call TriggerAddCondition(udg_trigger337,Condition(function Trig_Future_Trunks_Drained_Conditions))
call TriggerAddAction(udg_trigger337,function Trig_Future_Trunks_Drained_Actions)
set udg_trigger338=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger338,Player(5),"revert",true)
call TriggerAddCondition(udg_trigger338,Condition(function Trig_Future_Trunks_Revert_Conditions))
call TriggerAddAction(udg_trigger338,function Trig_Future_Trunks_Revert_Actions)
set udg_trigger339=CreateTrigger()
call DisableTrigger(udg_trigger339)
call TriggerRegisterTimerEventPeriodic(udg_trigger339,3.00)
call TriggerAddCondition(udg_trigger339,Condition(function Trig_FTrunks_USS2_Effect_Conditions))
call TriggerAddAction(udg_trigger339,function Trig_FTrunks_USS2_Effect_Actions)
set udg_trigger340=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger340,udg_rect11)
call TriggerAddCondition(udg_trigger340,Condition(function Trig_Enter_capsule_corp_Conditions))
call TriggerAddAction(udg_trigger340,function Trig_Enter_capsule_corp_Actions)
set udg_trigger341=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger341,udg_unit30,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger341,function Trig_Goten_gains_level_Actions)
set udg_trigger342=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger342,udg_unit32,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger342,function Trig_Kid_Trunks_gains_level_Actions)
set udg_trigger343=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger343,udg_unit30,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger343,Condition(function Trig_Disable_exp_Goten_Conditions))
call TriggerAddAction(udg_trigger343,function Trig_Disable_exp_Goten_Actions)
set udg_trigger344=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger344,udg_unit32,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger344,Condition(function Trig_Disable_exp_Trunks_Conditions))
call TriggerAddAction(udg_trigger344,function Trig_Disable_exp_Trunks_Actions)
set udg_trigger345=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger345,udg_unit30,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger345,udg_unit32,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger345,Condition(function Trig_GT_SS1_Reminder_Conditions))
call TriggerAddAction(udg_trigger345,function Trig_GT_SS1_Reminder_Actions)
set udg_trigger346=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger346,Player(3),"help",true)
call TriggerAddAction(udg_trigger346,function Trig_GT_Help_Actions)
set udg_trigger347=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger347,Player(3),"help skills",true)
call TriggerAddAction(udg_trigger347,function Trig_GT_Help_Skills_Actions)
set udg_trigger348=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger348,Player(3),"ss",true)
call TriggerAddCondition(udg_trigger348,Condition(function Trig_Goten_Trunks_SS_Transformation_Conditions))
call TriggerAddAction(udg_trigger348,function Trig_Goten_Trunks_SS_Transformation_Actions)
set udg_trigger349=CreateTrigger()
call DisableTrigger(udg_trigger349)
call TriggerAddAction(udg_trigger349,function Trig_Goten_Trunks_Alter_Stats_Actions)
set udg_trigger350=CreateTrigger()
call DisableTrigger(udg_trigger350)
call TriggerRegisterTimerEventPeriodic(udg_trigger350,1.00)
call TriggerAddCondition(udg_trigger350,Condition(function Trig_Goten_Trunks_Mana_Drain_Conditions))
call TriggerAddAction(udg_trigger350,function Trig_Goten_Trunks_Mana_Drain_Actions)
set udg_trigger351=CreateTrigger()
call TriggerRegisterUnitManaEvent(udg_trigger351,udg_unit30,EQUAL,0.00)
call TriggerRegisterUnitManaEvent(udg_trigger351,udg_unit32,EQUAL,0.00)
call TriggerAddCondition(udg_trigger351,Condition(function Trig_Goten_or_Trunks_Drained_Conditions))
call TriggerAddAction(udg_trigger351,function Trig_Goten_or_Trunks_Drained_Actions)
set udg_trigger352=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger352,Player(3),"revert",true)
call TriggerAddCondition(udg_trigger352,Condition(function Trig_Goten_Trunks_Revert_Conditions))
call TriggerAddAction(udg_trigger352,function Trig_Goten_Trunks_Revert_Actions)
set udg_trigger353=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger353,udg_unit45,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger353,function Trig_Gotenks_gains_level_Actions)
set udg_trigger354=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger354,udg_unit45,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger354,Condition(function Trig_Gotenks_SS3_Reminder_Conditions))
call TriggerAddAction(udg_trigger354,function Trig_Gotenks_SS3_Reminder_Actions)
set udg_trigger355=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger355,udg_unit30,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_trigger355,udg_unit32,EVENT_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger355,Condition(function Trig_Potara_fusion_Conditions))
call TriggerAddAction(udg_trigger355,function Trig_Potara_fusion_Actions)
set udg_trigger356=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger356,Player(3),"fusion ha",true)
call TriggerAddCondition(udg_trigger356,Condition(function Trig_Fusion_ha_Conditions))
call TriggerAddAction(udg_trigger356,function Trig_Fusion_ha_Actions)
set udg_trigger357=CreateTrigger()
call DisableTrigger(udg_trigger357)
call TriggerAddCondition(udg_trigger357,Condition(function Trig_Gotenks_Normal_Fusion_Conditions))
call TriggerAddAction(udg_trigger357,function Trig_Gotenks_Normal_Fusion_Actions)
set udg_trigger358=CreateTrigger()
call DisableTrigger(udg_trigger358)
call TriggerAddCondition(udg_trigger358,Condition(function Trig_Gotenks_Super_Fusion_Conditions))
call TriggerAddAction(udg_trigger358,function Trig_Gotenks_Super_Fusion_Actions)
set udg_trigger359=CreateTrigger()
call DisableTrigger(udg_trigger359)
call TriggerAddAction(udg_trigger359,function Trig_Fusion_timer_Actions)
set udg_trigger360=CreateTrigger()
call DisableTrigger(udg_trigger360)
call TriggerRegisterTimerExpireEvent(udg_trigger360,udg_timer12)
call TriggerAddCondition(udg_trigger360,Condition(function Trig_Fusion_timer_Runs_out_Conditions))
call TriggerAddAction(udg_trigger360,function Trig_Fusion_timer_Runs_out_Actions)
set udg_trigger361=CreateTrigger()
call DisableTrigger(udg_trigger361)
call TriggerAddAction(udg_trigger361,function Trig_Gotenks_Defuse_Actions)
set udg_trigger362=CreateTrigger()
call DisableTrigger(udg_trigger362)
call TriggerAddAction(udg_trigger362,function Trig_Transfer_items_to_Gotenks_Actions)
set udg_trigger363=CreateTrigger()
call DisableTrigger(udg_trigger363)
call TriggerRegisterPlayerChatEvent(udg_trigger363,Player(3),"ss",true)
call TriggerAddCondition(udg_trigger363,Condition(function Trig_Gotenks_SS1_Transformation_Conditions))
call TriggerAddAction(udg_trigger363,function Trig_Gotenks_SS1_Transformation_Actions)
set udg_trigger364=CreateTrigger()
call DisableTrigger(udg_trigger364)
call TriggerRegisterPlayerChatEvent(udg_trigger364,Player(3),"ss3",true)
call TriggerAddCondition(udg_trigger364,Condition(function Trig_Gotenks_SS3_Transformation_Conditions))
call TriggerAddAction(udg_trigger364,function Trig_Gotenks_SS3_Transformation_Actions)
set udg_trigger365=CreateTrigger()
call DisableTrigger(udg_trigger365)
call TriggerAddAction(udg_trigger365,function Trig_Gotenks_Alter_Stats_Actions)
set udg_trigger366=CreateTrigger()
call DisableTrigger(udg_trigger366)
call TriggerRegisterTimerEventPeriodic(udg_trigger366,1.00)
call TriggerAddCondition(udg_trigger366,Condition(function Trig_Gotenks_Mana_Drain_Conditions))
call TriggerAddAction(udg_trigger366,function Trig_Gotenks_Mana_Drain_Actions)
set udg_trigger367=CreateTrigger()
call DisableTrigger(udg_trigger367)
call TriggerRegisterUnitManaEvent(udg_trigger367,udg_unit45,EQUAL,0.00)
call TriggerAddCondition(udg_trigger367,Condition(function Trig_Gotenks_Drained_Conditions))
call TriggerAddAction(udg_trigger367,function Trig_Gotenks_Drained_Actions)
set udg_trigger368=CreateTrigger()
call DisableTrigger(udg_trigger368)
call TriggerRegisterPlayerChatEvent(udg_trigger368,Player(3),"revert",true)
call TriggerAddCondition(udg_trigger368,Condition(function Trig_Gotenks_Revert_Conditions))
call TriggerAddAction(udg_trigger368,function Trig_Gotenks_Revert_Actions)
set udg_trigger369=CreateTrigger()
call DisableTrigger(udg_trigger369)
call TriggerRegisterTimerEventPeriodic(udg_trigger369,4.50)
call TriggerAddCondition(udg_trigger369,Condition(function Trig_Gotenks_SS3_Effect_Conditions))
call TriggerAddAction(udg_trigger369,function Trig_Gotenks_SS3_Effect_Actions)
set udg_trigger370=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger370,udg_unit93,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger370,function Trig_Vegito_gains_level_Actions)
set udg_trigger371=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger371,udg_rect96)
call TriggerAddCondition(udg_trigger371,Condition(function Trig_Goku_Gain_Porta_Earring_Conditions))
call TriggerAddAction(udg_trigger371,function Trig_Goku_Gain_Porta_Earring_Actions)
set udg_trigger372=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger372,udg_rect96)
call TriggerAddCondition(udg_trigger372,Condition(function Trig_Vegeta_Gain_Porta_Earring_Conditions))
call TriggerAddAction(udg_trigger372,function Trig_Vegeta_Gain_Porta_Earring_Actions)
set udg_trigger373=CreateTrigger()
call DisableTrigger(udg_trigger373)
call TriggerRegisterPlayerChatEvent(udg_trigger373,Player(0),"help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger373,Player(1),"help",true)
call TriggerAddAction(udg_trigger373,function Trig_Vegito_help_Actions)
set udg_trigger374=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger374,udg_unit31,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_trigger374,udg_unit26,EVENT_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger374,Condition(function Trig_Auth_Vegito_Fusion_Conditions))
call TriggerAddAction(udg_trigger374,function Trig_Auth_Vegito_Fusion_Actions)
set udg_trigger375=CreateTrigger()
call DisableTrigger(udg_trigger375)
call TriggerAddAction(udg_trigger375,function Trig_Vegito_Fusion_Actions)
set udg_trigger376=CreateTrigger()
call DisableTrigger(udg_trigger376)
call TriggerAddAction(udg_trigger376,function Trig_Vegito_triggersoff_Actions)
set udg_trigger377=CreateTrigger()
call DisableTrigger(udg_trigger377)
call TriggerAddAction(udg_trigger377,function Trig_Vegito_triggerson_Actions)
set udg_trigger378=CreateTrigger()
call DisableTrigger(udg_trigger378)
call TriggerRegisterPlayerChatEvent(udg_trigger378,Player(0),"ss",true)
call TriggerRegisterPlayerChatEvent(udg_trigger378,Player(1),"ss",true)
call TriggerAddAction(udg_trigger378,function Trig_Vegito_SS_Actions)
set udg_trigger379=CreateTrigger()
call DisableTrigger(udg_trigger379)
call TriggerAddAction(udg_trigger379,function Trig_Vegito_Alter_Stats_Actions)
set udg_trigger380=CreateTrigger()
call DisableTrigger(udg_trigger380)
call TriggerRegisterPlayerChatEvent(udg_trigger380,Player(0),"revert",true)
call TriggerRegisterPlayerChatEvent(udg_trigger380,Player(1),"revert",true)
call TriggerAddAction(udg_trigger380,function Trig_Vegito_Revert_Actions)
set udg_trigger381=CreateTrigger()
call DisableTrigger(udg_trigger381)
call TriggerRegisterTimerEventPeriodic(udg_trigger381,3.00)
call TriggerAddCondition(udg_trigger381,Condition(function Trig_Vegito_SS_Effect_Conditions))
call TriggerAddAction(udg_trigger381,function Trig_Vegito_SS_Effect_Actions)
set udg_trigger382=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger382,udg_unit92,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger382,udg_unit91,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger382,function Trig_Gogeta_gains_level_Actions)
set udg_trigger383=CreateTrigger()
call DisableTrigger(udg_trigger383)
call TriggerAddAction(udg_trigger383,function Trig_Defuse_Transfer_items_Actions)
set udg_trigger384=CreateTrigger()
call DisableTrigger(udg_trigger384)
call TriggerRegisterTimerEventPeriodic(udg_trigger384,5.00)
call TriggerAddAction(udg_trigger384,function Trig_Permanent_fusion_Actions)
set udg_trigger385=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger385,Player(0),"fusion help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger385,Player(1),"fusion help",true)
call TriggerAddAction(udg_trigger385,function Trig_Fusion_help_Actions)
set udg_trigger386=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger386,Player(0),"fusion ha",true)
call TriggerRegisterPlayerChatEvent(udg_trigger386,Player(1),"fusion ha",true)
call TriggerAddAction(udg_trigger386,function Trig_Auth_Fusion_ha_Actions)
set udg_trigger387=CreateTrigger()
call DisableTrigger(udg_trigger387)
call TriggerAddCondition(udg_trigger387,Condition(function Trig_Gogeta_Fusion_Sorter_Conditions))
call TriggerAddAction(udg_trigger387,function Trig_Gogeta_Fusion_Sorter_Actions)
set udg_trigger388=CreateTrigger()
call DisableTrigger(udg_trigger388)
call TriggerAddAction(udg_trigger388,function Trig_Gogeta_Fusion_Sorter_Success_Actions)
set udg_trigger389=CreateTrigger()
call DisableTrigger(udg_trigger389)
call TriggerAddAction(udg_trigger389,function Trig_Gogeta_Failed_Fusion_Actions)
set udg_trigger390=CreateTrigger()
call DisableTrigger(udg_trigger390)
call TriggerAddAction(udg_trigger390,function Trig_Gogeta_Normal_Fusion_Actions)
set udg_trigger391=CreateTrigger()
call DisableTrigger(udg_trigger391)
call TriggerAddAction(udg_trigger391,function Trig_Gogeta_SS4_Fusion_Actions)
set udg_trigger392=CreateTrigger()
call DisableTrigger(udg_trigger392)
call TriggerAddAction(udg_trigger392,function Trig_Goku_and_Vegeta_Triggers_off_Actions)
set udg_trigger393=CreateTrigger()
call DisableTrigger(udg_trigger393)
call TriggerAddAction(udg_trigger393,function Trig_Goku_and_Vegeta_Triggers_on_Actions)
set udg_trigger394=CreateTrigger()
call DisableTrigger(udg_trigger394)
call TriggerRegisterPlayerChatEvent(udg_trigger394,Player(0),"ss",true)
call TriggerRegisterPlayerChatEvent(udg_trigger394,Player(1),"ss",true)
call TriggerAddAction(udg_trigger394,function Trig_Gogeta_SS_Transformation_Actions)
set udg_trigger395=CreateTrigger()
call DisableTrigger(udg_trigger395)
call TriggerRegisterPlayerChatEvent(udg_trigger395,Player(0),"ss2",true)
call TriggerRegisterPlayerChatEvent(udg_trigger395,Player(1),"ss2",true)
call TriggerAddAction(udg_trigger395,function Trig_Gogeta_SS2_Transformation_Actions)
set udg_trigger396=CreateTrigger()
call DisableTrigger(udg_trigger396)
call TriggerRegisterPlayerChatEvent(udg_trigger396,Player(0),"ss3",true)
call TriggerRegisterPlayerChatEvent(udg_trigger396,Player(1),"ss3",true)
call TriggerAddAction(udg_trigger396,function Trig_Gogeta_SS3_Transformation_Actions)
set udg_trigger397=CreateTrigger()
call DisableTrigger(udg_trigger397)
call TriggerRegisterPlayerChatEvent(udg_trigger397,Player(0),"ss4",true)
call TriggerRegisterPlayerChatEvent(udg_trigger397,Player(1),"ss4",true)
call TriggerAddAction(udg_trigger397,function Trig_Gogeta_SS4_Transformation_Actions)
set udg_trigger398=CreateTrigger()
call DisableTrigger(udg_trigger398)
call TriggerAddAction(udg_trigger398,function Trig_Gogeta_Alter_Stats_Actions)
set udg_trigger399=CreateTrigger()
call DisableTrigger(udg_trigger399)
call TriggerRegisterTimerEventPeriodic(udg_trigger399,1.00)
call TriggerAddCondition(udg_trigger399,Condition(function Trig_Gogeta_Mana_Drain_Conditions))
call TriggerAddAction(udg_trigger399,function Trig_Gogeta_Mana_Drain_Actions)
set udg_trigger400=CreateTrigger()
call DisableTrigger(udg_trigger400)
call TriggerRegisterUnitManaEvent(udg_trigger400,udg_unit92,EQUAL,0.00)
call TriggerAddCondition(udg_trigger400,Condition(function Trig_Gogeta_Drained_Conditions))
call TriggerAddAction(udg_trigger400,function Trig_Gogeta_Drained_Actions)
set udg_trigger401=CreateTrigger()
call DisableTrigger(udg_trigger401)
call TriggerRegisterPlayerChatEvent(udg_trigger401,Player(0),"revert",true)
call TriggerRegisterPlayerChatEvent(udg_trigger401,Player(1),"revert",true)
call TriggerAddAction(udg_trigger401,function Trig_Gogeta_Revert_Actions)
set udg_trigger402=CreateTrigger()
call DisableTrigger(udg_trigger402)
call TriggerAddAction(udg_trigger402,function Trig_Gogeta_Fusion_Timer_Actions)
set udg_trigger403=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger403,udg_timer14)
call TriggerAddCondition(udg_trigger403,Condition(function Trig_Gogeta_Timer_Runs_out_Conditions))
call TriggerAddAction(udg_trigger403,function Trig_Gogeta_Timer_Runs_out_Actions)
set udg_trigger404=CreateTrigger()
call DisableTrigger(udg_trigger404)
call TriggerAddAction(udg_trigger404,function Trig_Gogeta_Defuse_Actions)
set udg_trigger405=CreateTrigger()
call DisableTrigger(udg_trigger405)
call TriggerAddAction(udg_trigger405,function Trig_Fat_Gogeta_Defuse_Actions)
set udg_trigger406=CreateTrigger()
call DisableTrigger(udg_trigger406)
call TriggerRegisterTimerEventPeriodic(udg_trigger406,3.00)
call TriggerAddCondition(udg_trigger406,Condition(function Trig_Gogeta_SS2_Effect_Conditions))
call TriggerAddAction(udg_trigger406,function Trig_Gogeta_SS2_Effect_Actions)
set udg_trigger407=CreateTrigger()
call DisableTrigger(udg_trigger407)
call TriggerRegisterTimerEventPeriodic(udg_trigger407,4.50)
call TriggerAddCondition(udg_trigger407,Condition(function Trig_Gogeta_SS3_Effect_Conditions))
call TriggerAddAction(udg_trigger407,function Trig_Gogeta_SS3_Effect_Actions)
set udg_trigger408=CreateTrigger()
call DisableTrigger(udg_trigger408)
call TriggerRegisterTimerEventPeriodic(udg_trigger408,2.00)
call TriggerAddCondition(udg_trigger408,Condition(function Trig_Gogeta_SS4_Effect_Conditions))
call TriggerAddAction(udg_trigger408,function Trig_Gogeta_SS4_Effect_Actions)
set udg_trigger409=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger409,udg_unit67,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger409,function Trig_Broly_gains_level_Actions)
set udg_trigger410=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger410,udg_unit31,EVENT_UNIT_DEATH)
call TriggerAddCondition(udg_trigger410,Condition(function Trig_Broly_kills_Goku_Conditions))
call TriggerAddAction(udg_trigger410,function Trig_Broly_kills_Goku_Actions)
set udg_trigger411=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger411,udg_unit67,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger411,Condition(function Trig_Broly_Reminder_SS_Conditions))
call TriggerAddAction(udg_trigger411,function Trig_Broly_Reminder_SS_Actions)
set udg_trigger412=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger412,udg_unit67,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger412,Condition(function Trig_Broly_Reminder_USS_Conditions))
call TriggerAddAction(udg_trigger412,function Trig_Broly_Reminder_USS_Actions)
set udg_trigger413=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger413,udg_unit67,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger413,Condition(function Trig_Broly_Reminder_LSS_Conditions))
call TriggerAddAction(udg_trigger413,function Trig_Broly_Reminder_LSS_Actions)
set udg_trigger414=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger414,udg_unit67,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger414,Condition(function Trig_Broly_Reminder_LUSS_Conditions))
call TriggerAddAction(udg_trigger414,function Trig_Broly_Reminder_LUSS_Actions)
set udg_trigger415=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger415,Player(9),"help",true)
call TriggerAddAction(udg_trigger415,function Trig_Broly_Help_Actions)
set udg_trigger416=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger416,Player(9),"help skills",true)
call TriggerAddAction(udg_trigger416,function Trig_Broly_Help_skills_Actions)
set udg_trigger417=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger417,udg_unit67,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger417,Condition(function Trig_Broly_Unthawed_Conditions))
call TriggerAddAction(udg_trigger417,function Trig_Broly_Unthawed_Actions)
set udg_trigger418=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger418,Player(9),"ss",true)
call TriggerAddCondition(udg_trigger418,Condition(function Trig_Broly_SSTransformation_Conditions))
call TriggerAddAction(udg_trigger418,function Trig_Broly_SSTransformation_Actions)
set udg_trigger419=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger419,Player(9),"uss",true)
call TriggerAddCondition(udg_trigger419,Condition(function Trig_Broly_USS_Conditions))
call TriggerAddAction(udg_trigger419,function Trig_Broly_USS_Actions)
set udg_trigger420=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger420,Player(9),"lss",true)
call TriggerAddCondition(udg_trigger420,Condition(function Trig_Broly_LSSTransformation_Conditions))
call TriggerAddAction(udg_trigger420,function Trig_Broly_LSSTransformation_Actions)
set udg_trigger421=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger421,Player(9),"luss",true)
call TriggerAddCondition(udg_trigger421,Condition(function Trig_Broly_LUSSTransformation_Conditions))
call TriggerAddAction(udg_trigger421,function Trig_Broly_LUSSTransformation_Actions)
set udg_trigger422=CreateTrigger()
call DisableTrigger(udg_trigger422)
call TriggerAddAction(udg_trigger422,function Trig_Broly_Alter_Stats_Actions)
set udg_trigger423=CreateTrigger()
call DisableTrigger(udg_trigger423)
call TriggerRegisterTimerEventPeriodic(udg_trigger423,1.00)
call TriggerAddCondition(udg_trigger423,Condition(function Trig_Broly_Mana_Drain_Conditions))
call TriggerAddAction(udg_trigger423,function Trig_Broly_Mana_Drain_Actions)
set udg_trigger424=CreateTrigger()
call TriggerRegisterUnitManaEvent(udg_trigger424,udg_unit67,EQUAL,0.00)
call TriggerAddCondition(udg_trigger424,Condition(function Trig_Broly_Drained_Conditions))
call TriggerAddAction(udg_trigger424,function Trig_Broly_Drained_Actions)
set udg_trigger425=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger425,Player(9),"revert",true)
call TriggerAddCondition(udg_trigger425,Condition(function Trig_Broly_Revert_Conditions))
call TriggerAddAction(udg_trigger425,function Trig_Broly_Revert_Actions)
set udg_trigger426=CreateTrigger()
call DisableTrigger(udg_trigger426)
call TriggerAddAction(udg_trigger426,function Trig_Broly_Revert_Info_Actions)
set udg_trigger427=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger427,23.00)
call TriggerAddCondition(udg_trigger427,Condition(function Trig_Broly_Frozen_Effect_Conditions))
call TriggerAddAction(udg_trigger427,function Trig_Broly_Frozen_Effect_Actions)
set udg_trigger428=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger428,udg_unit46,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger428,udg_unit77,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger428,udg_unit94,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger428,function Trig_Bebi_gains_level_Actions)
set udg_trigger429=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger429,EVENT_PLAYER_HERO_LEVEL)
call TriggerAddCondition(udg_trigger429,Condition(function Trig_Bebi_Host_gains_level_Conditions))
call TriggerAddAction(udg_trigger429,function Trig_Bebi_Host_gains_level_Actions)
set udg_trigger430=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger430,udg_unit46,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger430,udg_unit77,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger430,Condition(function Trig_Bebi_Infects_Human_Conditions))
call TriggerAddAction(udg_trigger430,function Trig_Bebi_Infects_Human_Actions)
set udg_trigger431=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger431,udg_unit46,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger431,udg_unit77,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger431,Condition(function Trig_Take_over_Bulma_Conditions))
call TriggerAddAction(udg_trigger431,function Trig_Take_over_Bulma_Actions)
set udg_trigger432=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger432,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger432,Condition(function Trig_Saiyan_Memories_Conditions))
call TriggerAddAction(udg_trigger432,function Trig_Saiyan_Memories_Actions)
set udg_trigger433=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger433,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger433,Condition(function Trig_Dimensional_Portal_Conditions))
call TriggerAddAction(udg_trigger433,function Trig_Dimensional_Portal_Actions)
set udg_trigger434=CreateTrigger()
call DisableTrigger(udg_trigger434)
call TriggerAddAction(udg_trigger434,function Trig_Set_Bebi_Hero_Weak_Actions)
set udg_trigger435=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger435,Player(8),"help",true)
call TriggerAddAction(udg_trigger435,function Trig_Bebi_Help_Actions)
set udg_trigger436=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger436,Player(8),"body skills",true)
call TriggerAddAction(udg_trigger436,function Trig_Body_Skills_info_Actions)
set udg_trigger437=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger437,udg_unit46,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger437,Condition(function Trig_Mature_Bebi_Conditions))
call TriggerAddAction(udg_trigger437,function Trig_Mature_Bebi_Actions)
set udg_trigger438=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger438,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger438,Condition(function Trig_Super_Bebi_Transformation_Conditions))
call TriggerAddAction(udg_trigger438,function Trig_Super_Bebi_Transformation_Actions)
set udg_trigger439=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger439,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger439,Condition(function Trig_Super_Bebi_Golden_Oozaru_Conditions))
call TriggerAddAction(udg_trigger439,function Trig_Super_Bebi_Golden_Oozaru_Actions)
set udg_trigger440=CreateTrigger()
call DisableTrigger(udg_trigger440)
call TriggerAddAction(udg_trigger440,function Trig_Bebi_Alter_Stats_Actions)
set udg_trigger441=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger441,udg_unit46,EVENT_UNIT_SPELL_EFFECT)
call TriggerRegisterUnitEvent(udg_trigger441,udg_unit77,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger441,Condition(function Trig_Body_Z_Fighter_Conditions))
call TriggerAddAction(udg_trigger441,function Trig_Body_Z_Fighter_Actions)
set udg_trigger442=CreateTrigger()
call DisableTrigger(udg_trigger442)
call TriggerRegisterTimerEventPeriodic(udg_trigger442,0.00)
call TriggerAddCondition(udg_trigger442,Condition(function Trig_Body_Z_Fighter_Leave_Conditions))
call TriggerAddAction(udg_trigger442,function Trig_Body_Z_Fighter_Leave_Actions)
set udg_trigger443=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger443,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger443,Condition(function Trig_Death_Body_Check_Z_Fighter_Conditions))
call TriggerAddAction(udg_trigger443,function Trig_Death_Body_Check_Z_Fighter_Actions)
set udg_trigger444=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger444,Player(8),"body release",true)
call TriggerAddCondition(udg_trigger444,Condition(function Trig_Body_Release_Conditions))
call TriggerAddAction(udg_trigger444,function Trig_Body_Release_Actions)
set udg_trigger445=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger445,Player(8),"ss",true)
call TriggerAddCondition(udg_trigger445,Condition(function Trig_Bebi_SS1_Transformation_Conditions))
call TriggerAddAction(udg_trigger445,function Trig_Bebi_SS1_Transformation_Actions)
set udg_trigger446=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger446,Player(8),"uss",true)
call TriggerAddCondition(udg_trigger446,Condition(function Trig_Bebi_USS_Transformation_Conditions))
call TriggerAddAction(udg_trigger446,function Trig_Bebi_USS_Transformation_Actions)
set udg_trigger447=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger447,Player(8),"ss2",true)
call TriggerAddCondition(udg_trigger447,Condition(function Trig_Bebi_SS2_Transformation_Conditions))
call TriggerAddAction(udg_trigger447,function Trig_Bebi_SS2_Transformation_Actions)
set udg_trigger448=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger448,Player(8),"ss3",true)
call TriggerAddCondition(udg_trigger448,Condition(function Trig_Bebi_SS3_Transformation_Conditions))
call TriggerAddAction(udg_trigger448,function Trig_Bebi_SS3_Transformation_Actions)
set udg_trigger449=CreateTrigger()
call DisableTrigger(udg_trigger449)
call TriggerAddAction(udg_trigger449,function Trig_Bebi_Host_Alter_Stats_Actions)
set udg_trigger450=CreateTrigger()
call DisableTrigger(udg_trigger450)
call TriggerRegisterTimerEventPeriodic(udg_trigger450,1.00)
call TriggerAddCondition(udg_trigger450,Condition(function Trig_Bebi_Mana_Drain_Conditions))
call TriggerAddAction(udg_trigger450,function Trig_Bebi_Mana_Drain_Actions)
set udg_trigger451=CreateTrigger()
call DisableTrigger(udg_trigger451)
call TriggerRegisterTimerEventPeriodic(udg_trigger451,2)
call TriggerAddCondition(udg_trigger451,Condition(function Trig_Bebi_Drained_Conditions))
call TriggerAddAction(udg_trigger451,function Trig_Bebi_Drained_Actions)
set udg_trigger452=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger452,Player(8),"revert",true)
call TriggerAddCondition(udg_trigger452,Condition(function Trig_Bebi_Revert_Conditions))
call TriggerAddAction(udg_trigger452,function Trig_Bebi_Revert_Actions)
set udg_trigger453=CreateTrigger()
call DisableTrigger(udg_trigger453)
call TriggerAddAction(udg_trigger453,function Trig_Bebi_Revert_Info_Actions)
set udg_trigger454=CreateTrigger()
call DisableTrigger(udg_trigger454)
call TriggerRegisterTimerEventPeriodic(udg_trigger454,3.00)
call TriggerAddCondition(udg_trigger454,Condition(function Trig_Bebi_SS2_Effect_Conditions))
call TriggerAddAction(udg_trigger454,function Trig_Bebi_SS2_Effect_Actions)
set udg_trigger455=CreateTrigger()
call DisableTrigger(udg_trigger455)
call TriggerRegisterTimerEventPeriodic(udg_trigger455,4.50)
call TriggerAddCondition(udg_trigger455,Condition(function Trig_Bebi_SS3_Effect_Conditions))
call TriggerAddAction(udg_trigger455,function Trig_Bebi_SS3_Effect_Actions)
set udg_trigger456=CreateTrigger()
call DisableTrigger(udg_trigger456)
call TriggerRegisterTimerEventPeriodic(udg_trigger456,3.00)
call TriggerAddCondition(udg_trigger456,Condition(function Trig_Bebi_Golden_Oozaru_Effect_Conditions))
call TriggerAddAction(udg_trigger456,function Trig_Bebi_Golden_Oozaru_Effect_Actions)
set udg_trigger457=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger457,udg_unit28,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger457,udg_unit83,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger457,function Trig_Piccolo_gains_level_Actions)
set udg_trigger458=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger458,udg_unit28,EVENT_UNIT_HERO_SKILL)
call TriggerAddCondition(udg_trigger458,Condition(function Trig_Learn_Kyodaika_Conditions))
call TriggerAddAction(udg_trigger458,function Trig_Learn_Kyodaika_Actions)
set udg_trigger459=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger459,udg_unit28,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger459,Condition(function Trig_Piccolo_Nails_warning_Conditions))
call TriggerAddAction(udg_trigger459,function Trig_Piccolo_Nails_warning_Actions)
set udg_trigger460=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger460,udg_unit28,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger460,Condition(function Trig_Piccolo_Kami_Reminder_Conditions))
call TriggerAddAction(udg_trigger460,function Trig_Piccolo_Kami_Reminder_Actions)
set udg_trigger461=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger461,Player(6),"help",true)
call TriggerAddAction(udg_trigger461,function Trig_Piccolo_Help_Actions)
set udg_trigger462=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger462,Player(6),"help skills",true)
call TriggerAddAction(udg_trigger462,function Trig_Piccolo_Help_skills_Actions)
set udg_trigger463=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger463,udg_unit28,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_trigger463,udg_unit83,EVENT_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger463,Condition(function Trig_Kyodaika_Conditions))
call TriggerAddAction(udg_trigger463,function Trig_Kyodaika_Actions)
set udg_trigger464=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger464,udg_rect49)
call TriggerAddCondition(udg_trigger464,Condition(function Trig_Fuse_Nail_Conditions))
call TriggerAddAction(udg_trigger464,function Trig_Fuse_Nail_Actions)
set udg_trigger465=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger465,udg_rect53)
call TriggerAddCondition(udg_trigger465,Condition(function Trig_Fuse_Kami_Conditions))
call TriggerAddAction(udg_trigger465,function Trig_Fuse_Kami_Actions)
set udg_trigger466=CreateTrigger()
call DisableTrigger(udg_trigger466)
call TriggerAddAction(udg_trigger466,function Trig_Piccolo_fuse_Kami_Actions)
set udg_trigger467=CreateTrigger()
call DisableTrigger(udg_trigger467)
call TriggerRegisterUnitEvent(udg_trigger467,udg_unit83,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger467,Condition(function Trig_Piccolo_x3_Conditions))
call TriggerAddAction(udg_trigger467,function Trig_Piccolo_x3_Actions)
set udg_trigger468=CreateTrigger()
call DisableTrigger(udg_trigger468)
call TriggerAddAction(udg_trigger468,function Trig_Piccolo_Alter_Stats_Actions)
set udg_trigger469=CreateTrigger()
call DisableTrigger(udg_trigger469)
call TriggerRegisterTimerEventPeriodic(udg_trigger469,1.00)
call TriggerAddCondition(udg_trigger469,Condition(function Trig_Kyodaika_Drain_Conditions))
call TriggerAddAction(udg_trigger469,function Trig_Kyodaika_Drain_Actions)
set udg_trigger470=CreateTrigger()
call TriggerRegisterUnitManaEvent(udg_trigger470,udg_unit28,EQUAL,0.00)
call TriggerRegisterUnitManaEvent(udg_trigger470,udg_unit83,EQUAL,0.00)
call TriggerAddCondition(udg_trigger470,Condition(function Trig_Kyodaika_Drained_Conditions))
call TriggerAddAction(udg_trigger470,function Trig_Kyodaika_Drained_Actions)
set udg_trigger471=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger471,udg_unit28,EVENT_UNIT_SPELL_CAST)
call TriggerRegisterUnitEvent(udg_trigger471,udg_unit83,EVENT_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger471,Condition(function Trig_Kyodaika_Revert_Conditions))
call TriggerAddAction(udg_trigger471,function Trig_Kyodaika_Revert_Actions)
set udg_trigger472=CreateTrigger()
call DisableTrigger(udg_trigger472)
call TriggerRegisterTimerEventPeriodic(udg_trigger472,4.00)
call TriggerAddAction(udg_trigger472,function Trig_Fused_effect_Actions)
set udg_trigger473=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger473,udg_unit35,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger473,udg_unit43,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger473,udg_unit41,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger473,udg_unit42,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger473,function Trig_Cell_gains_level_Actions)
set udg_trigger474=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger474,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger474,Condition(function Trig_Cell_Junior_Conditions))
call TriggerAddAction(udg_trigger474,function Trig_Cell_Junior_Actions)
set udg_trigger475=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger475,udg_unit43,EVENT_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger475,Condition(function Trig_Cell_absorb_Sorter_Conditions))
call TriggerAddAction(udg_trigger475,function Trig_Cell_absorb_Sorter_Actions)
set udg_trigger476=CreateTrigger()
call DisableTrigger(udg_trigger476)
call TriggerAddCondition(udg_trigger476,Condition(function Trig_Cell_absorb_Humans_Conditions))
call TriggerAddAction(udg_trigger476,function Trig_Cell_absorb_Humans_Actions)
set udg_trigger477=CreateTrigger()
call DisableTrigger(udg_trigger477)
call TriggerAddCondition(udg_trigger477,Condition(function Trig_Cell_absorbs_30_humans_Conditions))
set udg_trigger478=CreateTrigger()
call DisableTrigger(udg_trigger478)
call TriggerAddCondition(udg_trigger478,Condition(function Trig_Bebi_absorbs_30_humans_Conditions))
call TriggerAddAction(udg_trigger478,function Trig_Bebi_absorbs_30_humans_Actions)
set udg_trigger479=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger479,153.00)
call TriggerAddCondition(udg_trigger479,Condition(function Trig_Order_Android_17_Conditions))
call TriggerAddAction(udg_trigger479,function Trig_Order_Android_17_Actions)
set udg_trigger480=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger480,149.00)
call TriggerAddCondition(udg_trigger480,Condition(function Trig_Order_Android_18_Conditions))
call TriggerAddAction(udg_trigger480,function Trig_Order_Android_18_Actions)
set udg_trigger481=CreateTrigger()
call DisableTrigger(udg_trigger481)
call TriggerRegisterTimerEventPeriodic(udg_trigger481,125.00)
call TriggerAddAction(udg_trigger481,function Trig_Ping_Androids_Actions)
set udg_trigger482=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger482,udg_unit43,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger482,Condition(function Trig_Cell_Help_lvl_30_Conditions))
call TriggerAddAction(udg_trigger482,function Trig_Cell_Help_lvl_30_Actions)
set udg_trigger483=CreateTrigger()
call DisableTrigger(udg_trigger483)
call TriggerAddAction(udg_trigger483,function Trig_Cell_Help_update_Actions)
set udg_trigger484=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger484,Player(10),"help",true)
call TriggerAddAction(udg_trigger484,function Trig_Cell_Help_Actions)
set udg_trigger485=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger485,Player(10),"help skills",true)
call TriggerAddAction(udg_trigger485,function Trig_Cell_Help_skills_Actions)
set udg_trigger486=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger486,Player(10),"transmission help",true)
call TriggerAddCondition(udg_trigger486,Condition(function Trig_Cell_Help_Transmission_Conditions))
call TriggerAddAction(udg_trigger486,function Trig_Cell_Help_Transmission_Actions)
set udg_trigger487=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger487,Player(10),"sense help",true)
call TriggerAddCondition(udg_trigger487,Condition(function Trig_Cell_Help_sense_Conditions))
call TriggerAddAction(udg_trigger487,function Trig_Cell_Help_sense_Actions)
set udg_trigger488=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger488,udg_unit35,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger488,Condition(function Trig_Cell_Unformed_to_First_Form_Conditions))
call TriggerAddAction(udg_trigger488,function Trig_Cell_Unformed_to_First_Form_Actions)
set udg_trigger489=CreateTrigger()
call DisableTrigger(udg_trigger489)
call TriggerAddAction(udg_trigger489,function Trig_Cell_First_Form_Transformation_Actions)
set udg_trigger490=CreateTrigger()
call DisableTrigger(udg_trigger490)
call TriggerAddCondition(udg_trigger490,Condition(function Trig_Cell_First_absorb_17_Conditions))
call TriggerAddAction(udg_trigger490,function Trig_Cell_First_absorb_17_Actions)
set udg_trigger491=CreateTrigger()
call DisableTrigger(udg_trigger491)
call TriggerAddCondition(udg_trigger491,Condition(function Trig_Cell_First_absorb_18_Conditions))
call TriggerAddAction(udg_trigger491,function Trig_Cell_First_absorb_18_Actions)
set udg_trigger492=CreateTrigger()
call DisableTrigger(udg_trigger492)
call TriggerAddAction(udg_trigger492,function Trig_Transfer_First_Cell_Stats_Actions)
set udg_trigger493=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger493,udg_unit41,EVENT_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger493,Condition(function Trig_Second_absorb_17_Conditions))
call TriggerAddAction(udg_trigger493,function Trig_Second_absorb_17_Actions)
set udg_trigger494=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger494,udg_unit41,EVENT_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger494,Condition(function Trig_Second_absorb_18_Conditions))
call TriggerAddAction(udg_trigger494,function Trig_Second_absorb_18_Actions)
set udg_trigger495=CreateTrigger()
call DisableTrigger(udg_trigger495)
call TriggerAddAction(udg_trigger495,function Trig_Transfer_Second_Cell_Stats_Actions)
set udg_trigger496=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger496,udg_unit42,EVENT_UNIT_DAMAGED)
call TriggerAddCondition(udg_trigger496,Condition(function Trig_Cell_lose_droids_Conditions))
call TriggerAddAction(udg_trigger496,function Trig_Cell_lose_droids_Actions)
set udg_trigger497=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger497,udg_unit41,EVENT_UNIT_DEATH)
call TriggerAddCondition(udg_trigger497,Condition(function Trig_Reformed_Conditions))
call TriggerAddAction(udg_trigger497,function Trig_Reformed_Actions)
set udg_trigger498=CreateTrigger()
call TriggerRegisterTimerExpireEvent(udg_trigger498,udg_timer03)
call TriggerAddAction(udg_trigger498,function Trig_Cell_Timerout_Actions)
set udg_trigger499=CreateTrigger()
call DisableTrigger(udg_trigger499)
call TriggerAddAction(udg_trigger499,function Trig_Cell_Alter_Stats_Actions)
set udg_trigger500=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger500,Player(10),"sense",false)
call TriggerAddCondition(udg_trigger500,Condition(function Trig_Sense_hero_Conditions))
call TriggerAddAction(udg_trigger500,function Trig_Sense_hero_Actions)
set udg_trigger501=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger501,Player(10),"lockon lookout",true)
call TriggerAddCondition(udg_trigger501,Condition(function Trig_Cell_Lookout_Conditions))
call TriggerAddAction(udg_trigger501,function Trig_Cell_Lookout_Actions)
set udg_trigger502=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger502,Player(10),"lockon westcity",true)
call TriggerAddCondition(udg_trigger502,Condition(function Trig_Cell_West_City_Conditions))
call TriggerAddAction(udg_trigger502,function Trig_Cell_West_City_Actions)
set udg_trigger503=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger503,Player(10),"lockon capital",true)
call TriggerAddCondition(udg_trigger503,Condition(function Trig_Cell_Capital_Conditions))
call TriggerAddAction(udg_trigger503,function Trig_Cell_Capital_Actions)
set udg_trigger504=CreateTrigger()
call DisableTrigger(udg_trigger504)
call TriggerRegisterTimerEventPeriodic(udg_trigger504,3.00)
call TriggerAddCondition(udg_trigger504,Condition(function Trig_Cell_Effect_Conditions))
call TriggerAddAction(udg_trigger504,function Trig_Cell_Effect_Actions)
set udg_trigger505=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger505,udg_unit65,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger505,udg_unit71,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger505,function Trig_Super_13_gains_level_Actions)
set udg_trigger506=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger506,udg_unit68,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger506,Condition(function Trig_Android_13_gains_level_Conditions))
call TriggerAddAction(udg_trigger506,function Trig_Android_13_gains_level_Actions)
set udg_trigger507=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger507,udg_unit85,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger507,function Trig_Android_14_gains_level_Actions)
set udg_trigger508=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger508,udg_unit70,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger508,function Trig_Android_15_gains_level_Actions)
set udg_trigger509=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger509,udg_unit68,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger509,Condition(function Trig_Disable_exp_13_Conditions))
call TriggerAddAction(udg_trigger509,function Trig_Disable_exp_13_Actions)
set udg_trigger510=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger510,udg_unit85,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger510,Condition(function Trig_Disable_exp_14_Conditions))
call TriggerAddAction(udg_trigger510,function Trig_Disable_exp_14_Actions)
set udg_trigger511=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger511,udg_unit70,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger511,Condition(function Trig_Disable_exp_15_Conditions))
call TriggerAddAction(udg_trigger511,function Trig_Disable_exp_15_Actions)
set udg_trigger512=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger512,udg_unit68,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger512,udg_unit85,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(udg_trigger512,udg_unit70,EVENT_UNIT_DEATH)
call TriggerAddCondition(udg_trigger512,Condition(function Trig_Revive_13_14_15_Conditions))
call TriggerAddAction(udg_trigger512,function Trig_Revive_13_14_15_Actions)
set udg_trigger513=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger513,udg_unit98,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger513,function Trig_Computer_Dies_Actions)
set udg_trigger514=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger514,udg_unit68,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger514,udg_unit85,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger514,udg_unit70,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger514,Condition(function Trig_Programmed_Androids_Conditions))
call TriggerAddAction(udg_trigger514,function Trig_Programmed_Androids_Actions)
set udg_trigger515=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger515,Player(4),"help",true)
call TriggerAddAction(udg_trigger515,function Trig_Android_13_Help_Actions)
set udg_trigger516=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger516,Player(4),"help skills",true)
call TriggerAddAction(udg_trigger516,function Trig_Android_13_Help_skills_Actions)
set udg_trigger517=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger517,Player(4),"absorb 14",true)
call TriggerRegisterUnitEvent(udg_trigger517,udg_unit85,EVENT_UNIT_DEATH)
call TriggerAddCondition(udg_trigger517,Condition(function Trig_Android_14_Absorbed_Conditions))
call TriggerAddAction(udg_trigger517,function Trig_Android_14_Absorbed_Actions)
set udg_trigger518=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger518,Player(4),"absorb 15",true)
call TriggerRegisterUnitEvent(udg_trigger518,udg_unit70,EVENT_UNIT_DEATH)
call TriggerAddCondition(udg_trigger518,Condition(function Trig_Android_15_Absorbed_Conditions))
call TriggerAddAction(udg_trigger518,function Trig_Android_15_Absorbed_Actions)
set udg_trigger519=CreateTrigger()
call TriggerAddAction(udg_trigger519,function Trig_Super_13_Born_Actions)
set udg_trigger520=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger520,udg_unit65,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger520,Condition(function Trig_Ultra_13_Upgrade_Conditions))
call TriggerAddAction(udg_trigger520,function Trig_Ultra_13_Upgrade_Actions)
set udg_trigger521=CreateTrigger()
call DisableTrigger(udg_trigger521)
call TriggerAddAction(udg_trigger521,function Trig_Androids_Alter_Stats_Actions)
set udg_trigger522=CreateTrigger()
call DisableTrigger(udg_trigger522)
call TriggerAddAction(udg_trigger522,function Trig_Super_13_Alter_Stats_Actions)
set udg_trigger523=CreateTrigger()
call DisableTrigger(udg_trigger523)
call TriggerRegisterTimerEventPeriodic(udg_trigger523,4.00)
call TriggerAddAction(udg_trigger523,function Trig_Ultra_13_Effect_Actions)
set udg_trigger524=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger524,udg_unit34,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger524,udg_unit76,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger524,udg_unit80,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger524,udg_unit75,EVENT_UNIT_HERO_LEVEL)
call TriggerRegisterUnitEvent(udg_trigger524,udg_unit79,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger524,function Trig_Babidi_or_Buu_gains_level_Actions)
set udg_trigger525=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger525,EVENT_PLAYER_UNIT_SUMMON)
call TriggerAddCondition(udg_trigger525,Condition(function Trig_Summon_Dabura_Conditions))
call TriggerAddAction(udg_trigger525,function Trig_Summon_Dabura_Actions)
set udg_trigger526=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger526,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger526,Condition(function Trig_Haretsu_no_Maho_Conditions))
call TriggerAddAction(udg_trigger526,function Trig_Haretsu_no_Maho_Actions)
set udg_trigger527=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger527,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger527,Condition(function Trig_Candy_Monsters_Conditions))
call TriggerAddAction(udg_trigger527,function Trig_Candy_Monsters_Actions)
set udg_trigger528=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger528,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger528,Condition(function Trig_Candy_Humans_Conditions))
call TriggerAddAction(udg_trigger528,function Trig_Candy_Humans_Actions)
set udg_trigger529=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger529,udg_unit34,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger529,Condition(function Trig_Help_update_Buu_Conditions))
call TriggerAddAction(udg_trigger529,function Trig_Help_update_Buu_Actions)
set udg_trigger530=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger530,Player(7),"help",true)
call TriggerAddAction(udg_trigger530,function Trig_Buu_Help_Actions)
set udg_trigger531=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger531,Player(7),"help skills",true)
call TriggerAddAction(udg_trigger531,function Trig_Buu_Help_skills_Actions)
set udg_trigger532=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger532,5)
call TriggerAddAction(udg_trigger532,function Trig_Create_Collect_Leaderboard_Actions)
set udg_trigger533=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger533,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger533,Condition(function Trig_Update_Collect_Babidi_Conditions))
call TriggerAddAction(udg_trigger533,function Trig_Update_Collect_Babidi_Actions)
set udg_trigger534=CreateTrigger()
call DisableTrigger(udg_trigger534)
call TriggerRegisterAnyUnitEventBJ(udg_trigger534,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger534,Condition(function Trig_Update_Collect_Vegeta_Conditions))
call TriggerAddAction(udg_trigger534,function Trig_Update_Collect_Vegeta_Actions)
set udg_trigger535=CreateTrigger()
call DisableTrigger(udg_trigger535)
call TriggerAddAction(udg_trigger535,function Trig_Collecting_Finished_Actions)
set udg_trigger536=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger536,Player(7),"invadeVmind",true)
call TriggerAddCondition(udg_trigger536,Condition(function Trig_Invade_Vegeta_mind_Conditions))
call TriggerAddAction(udg_trigger536,function Trig_Invade_Vegeta_mind_Actions)
set udg_trigger537=CreateTrigger()
call DisableTrigger(udg_trigger537)
call TriggerAddAction(udg_trigger537,function Trig_Fatbuu_Release_Actions)
set udg_trigger538=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger538,udg_rect08)
call TriggerAddCondition(udg_trigger538,Condition(function Trig_Fatbuu_Release_Extra_Conditions))
call TriggerAddAction(udg_trigger538,function Trig_Fatbuu_Release_Extra_Actions)
set udg_trigger539=CreateTrigger()
call DisableTrigger(udg_trigger539)
call TriggerAddAction(udg_trigger539,function Trig_End_Majin_Actions)
set udg_trigger540=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger540,udg_unit76,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger540,Condition(function Trig_Fat_Buu_Split_Conditions))
call TriggerAddAction(udg_trigger540,function Trig_Fat_Buu_Split_Actions)
set udg_trigger541=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger541,udg_unit80,EVENT_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger541,Condition(function Trig_Fat_Buu_Split_Part_two_Conditions))
call TriggerAddAction(udg_trigger541,function Trig_Fat_Buu_Split_Part_two_Actions)
set udg_trigger542=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger542,10.00)
call TriggerAddCondition(udg_trigger542,Condition(function Trig_Run_Escape_buu_Conditions))
call TriggerAddAction(udg_trigger542,function Trig_Run_Escape_buu_Actions)
set udg_trigger543=CreateTrigger()
call DisableTrigger(udg_trigger543)
call TriggerAddCondition(udg_trigger543,Condition(function Trig_Escape_Buu_Conditions))
call TriggerAddAction(udg_trigger543,function Trig_Escape_Buu_Actions)
set udg_trigger544=CreateTrigger()
call DisableTrigger(udg_trigger544)
call TriggerAddAction(udg_trigger544,function Trig_Escaped_Saved_by_Supreme_Kai_Actions)
set udg_trigger545=CreateTrigger()
call DisableTrigger(udg_trigger545)
call TriggerAddAction(udg_trigger545,function Trig_Transformation_Actions)
set udg_trigger546=CreateTrigger()
call DisableTrigger(udg_trigger546)
call TriggerAddAction(udg_trigger546,function Trig_Buu_Alter_Stats_Actions)
set udg_trigger547=CreateTrigger()
call DisableTrigger(udg_trigger547)
call TriggerRegisterTimerEventPeriodic(udg_trigger547,4.00)
call TriggerAddAction(udg_trigger547,function Trig_Majin_effect_Actions)
set udg_trigger548=CreateTrigger()
call DisableTrigger(udg_trigger548)
call TriggerAddAction(udg_trigger548,function Trig_Transformation_effect_Actions)
set udg_trigger549=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger549,udg_rect50)
call TriggerAddCondition(udg_trigger549,Condition(function Trig_Init_Buu_Stomach_Board_Conditions))
call TriggerAddAction(udg_trigger549,function Trig_Init_Buu_Stomach_Board_Actions)
set udg_trigger550=CreateTrigger()
call DisableTrigger(udg_trigger550)
call TriggerRegisterEnterRectSimple(udg_trigger550,udg_rect50)
call TriggerAddCondition(udg_trigger550,Condition(function Trig_Update_Buu_Stomach_Board_Conditions))
call TriggerAddAction(udg_trigger550,function Trig_Update_Buu_Stomach_Board_Actions)
set udg_trigger551=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger551,udg_rect50)
call TriggerAddCondition(udg_trigger551,Condition(function Trig_Turn_On_Spawn_cells_Conditions))
call TriggerAddAction(udg_trigger551,function Trig_Turn_On_Spawn_cells_Actions)
set udg_trigger552=CreateTrigger()
call DisableTrigger(udg_trigger552)
call TriggerRegisterTimerEventPeriodic(udg_trigger552,10.00)
call TriggerAddAction(udg_trigger552,function Trig_Turn_Off_Spawn_cells_Actions)
set udg_trigger553=CreateTrigger()
call DisableTrigger(udg_trigger553)
call TriggerRegisterTimerEventPeriodic(udg_trigger553,10.00)
call TriggerAddAction(udg_trigger553,function Trig_Spawn_Super_Buu_cells_Actions)
set udg_trigger554=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger554,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger554,Condition(function Trig_Update_Mini_Buu_Kills_Conditions))
call TriggerAddAction(udg_trigger554,function Trig_Update_Mini_Buu_Kills_Actions)
set udg_trigger555=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger555,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger555,Condition(function Trig_absorb_Trunks_Conditions))
call TriggerAddAction(udg_trigger555,function Trig_absorb_Trunks_Actions)
set udg_trigger556=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger556,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger556,Condition(function Trig_absorb_Goten_Conditions))
call TriggerAddAction(udg_trigger556,function Trig_absorb_Goten_Actions)
set udg_trigger557=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger557,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger557,Condition(function Trig_absorb_Ftrunks_Conditions))
call TriggerAddAction(udg_trigger557,function Trig_absorb_Ftrunks_Actions)
set udg_trigger558=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger558,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger558,Condition(function Trig_absorb_Vegeta_Conditions))
call TriggerAddAction(udg_trigger558,function Trig_absorb_Vegeta_Actions)
set udg_trigger559=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger559,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger559,Condition(function Trig_absorb_Piccolo_fused_Conditions))
call TriggerAddAction(udg_trigger559,function Trig_absorb_Piccolo_fused_Actions)
set udg_trigger560=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger560,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger560,Condition(function Trig_absorb_Piccolo_Conditions))
call TriggerAddAction(udg_trigger560,function Trig_absorb_Piccolo_Actions)
set udg_trigger561=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger561,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger561,Condition(function Trig_absorb_Gohan_Conditions))
call TriggerAddAction(udg_trigger561,function Trig_absorb_Gohan_Actions)
set udg_trigger562=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger562,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger562,Condition(function Trig_absorb_Saiyaman_Conditions))
call TriggerAddAction(udg_trigger562,function Trig_absorb_Saiyaman_Actions)
set udg_trigger563=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger563,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger563,Condition(function Trig_absorb_Goku_Conditions))
call TriggerAddAction(udg_trigger563,function Trig_absorb_Goku_Actions)
set udg_trigger564=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger564,udg_unit75,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger564,Condition(function Trig_absorb_Vegito_Conditions))
call TriggerAddAction(udg_trigger564,function Trig_absorb_Vegito_Actions)
set udg_trigger565=CreateTrigger()
call DisableTrigger(udg_trigger565)
call TriggerAddAction(udg_trigger565,function Trig_Absorb_Alter_Super_Buu_Stats_Actions)
set udg_trigger566=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger566,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger566,Condition(function Trig_Fully_absorbed_Conditions))
call TriggerAddAction(udg_trigger566,function Trig_Fully_absorbed_Actions)
set udg_trigger567=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger567,udg_unit52,EVENT_UNIT_HERO_LEVEL)
call TriggerAddAction(udg_trigger567,function Trig_Koola_gains_level_Actions)
set udg_trigger568=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger568,2)
call TriggerAddAction(udg_trigger568,function Trig_Metal_Koola_Gain_money_Actions)
set udg_trigger569=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger569,udg_unit52,EVENT_UNIT_DEATH)
call TriggerAddCondition(udg_trigger569,Condition(function Trig_Metal_Koola_dies_Conditions))
call TriggerAddAction(udg_trigger569,function Trig_Metal_Koola_dies_Actions)
set udg_trigger570=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger570,udg_unit52,EVENT_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger570,Condition(function Trig_Scan_for_Powers_Conditions))
call TriggerAddAction(udg_trigger570,function Trig_Scan_for_Powers_Actions)
set udg_trigger571=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger571,udg_unit52,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger571,function Trig_Death_Notice_Actions)
set udg_trigger572=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger572,5.00)
call TriggerAddCondition(udg_trigger572,Condition(function Trig_Building_Conditions))
call TriggerAddAction(udg_trigger572,function Trig_Building_Actions)
set udg_trigger573=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger573,Player(11),"help",true)
call TriggerAddAction(udg_trigger573,function Trig_Metal_Koola_Help_Actions)
set udg_trigger574=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger574,Player(11),"help skills",true)
call TriggerAddAction(udg_trigger574,function Trig_Metal_Koola_Help_skills_Actions)
set udg_trigger575=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger575,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger575,Condition(function Trig_Upgrade_Koola_Kill_Conditions))
call TriggerAddAction(udg_trigger575,function Trig_Upgrade_Koola_Kill_Actions)
set udg_trigger576=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger576,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger576,Condition(function Trig_Upgrade_Koola_Death_Conditions))
call TriggerAddAction(udg_trigger576,function Trig_Upgrade_Koola_Death_Actions)
set udg_trigger577=CreateTrigger()
call DisableTrigger(udg_trigger577)
call TriggerAddAction(udg_trigger577,function Trig_Complete_data_Actions)
set udg_trigger578=CreateTrigger()
call DisableTrigger(udg_trigger578)
call TriggerAddAction(udg_trigger578,function Trig_Koola_Alter_Stats_Actions)
set udg_trigger579=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger579,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(udg_trigger579,Condition(function Trig_Update_for_Copies_Conditions))
call TriggerAddAction(udg_trigger579,function Trig_Update_for_Copies_Actions)
set udg_trigger580=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger580,11.00)
call TriggerAddAction(udg_trigger580,function Trig_Periodic_Clone_Stats_Actions)
set udg_trigger581=CreateTrigger()
call DisableTrigger(udg_trigger581)
call TriggerAddAction(udg_trigger581,function Trig_Set_Copy_Stats_Actions)
set udg_trigger582=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger582,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger582,Condition(function Trig_Copy_dies_Conditions))
call TriggerAddAction(udg_trigger582,function Trig_Copy_dies_Actions)
set udg_trigger583=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger583,udg_unit50,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger583,function Trig_Destroy_copies_Actions)
set udg_trigger584=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger584,udg_unit52,EVENT_UNIT_HERO_LEVEL)
call TriggerAddCondition(udg_trigger584,Condition(function Trig_Disable_exp_Koola_Conditions))
call TriggerAddAction(udg_trigger584,function Trig_Disable_exp_Koola_Actions)
set udg_trigger585=CreateTrigger()
call DisableTrigger(udg_trigger585)
call TriggerRegisterTimerEventPeriodic(udg_trigger585,4.00)
call TriggerAddAction(udg_trigger585,function Trig_Complete_data_effect_Actions)
set udg_trigger586=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger586,Player(4),"ally help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger586,Player(7),"ally help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger586,Player(8),"ally help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger586,Player(9),"ally help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger586,Player(10),"ally help",true)
call TriggerRegisterPlayerChatEvent(udg_trigger586,Player(11),"ally help",true)
call TriggerAddAction(udg_trigger586,function Trig_Ally_Help_Actions)
set udg_trigger587=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger587,Player(4),"ally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger587,Player(7),"ally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger587,Player(8),"ally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger587,Player(9),"ally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger587,Player(10),"ally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger587,Player(11),"ally androids",true)
call TriggerAddAction(udg_trigger587,function Trig_Player_ally_androids_Actions)
set udg_trigger588=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger588,Player(4),"unally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger588,Player(7),"unally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger588,Player(8),"unally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger588,Player(9),"unally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger588,Player(10),"unally androids",true)
call TriggerRegisterPlayerChatEvent(udg_trigger588,Player(11),"unally androids",true)
call TriggerAddAction(udg_trigger588,function Trig_Player_Unally_androids_Actions)
set udg_trigger589=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger589,Player(4),"ally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger589,Player(7),"ally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger589,Player(8),"ally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger589,Player(9),"ally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger589,Player(10),"ally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger589,Player(11),"ally buu",true)
call TriggerAddAction(udg_trigger589,function Trig_Player_ally_buu_Actions)
set udg_trigger590=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger590,Player(4),"unally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger590,Player(7),"unally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger590,Player(8),"unally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger590,Player(9),"unally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger590,Player(10),"unally buu",true)
call TriggerRegisterPlayerChatEvent(udg_trigger590,Player(11),"unally buu",true)
call TriggerAddAction(udg_trigger590,function Trig_Player_Unally_buu_Actions)
set udg_trigger591=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger591,Player(4),"ally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger591,Player(7),"ally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger591,Player(8),"ally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger591,Player(9),"ally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger591,Player(10),"ally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger591,Player(11),"ally broly",true)
call TriggerAddAction(udg_trigger591,function Trig_Player_ally_Broly_Actions)
set udg_trigger592=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger592,Player(4),"unally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger592,Player(7),"unally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger592,Player(8),"unally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger592,Player(9),"unally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger592,Player(10),"unally broly",true)
call TriggerRegisterPlayerChatEvent(udg_trigger592,Player(11),"unally broly",true)
call TriggerAddAction(udg_trigger592,function Trig_Player_Unally_broly_Actions)
set udg_trigger593=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger593,Player(4),"ally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger593,Player(7),"ally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger593,Player(8),"ally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger593,Player(9),"ally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger593,Player(10),"ally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger593,Player(11),"ally bebi",true)
call TriggerAddAction(udg_trigger593,function Trig_Player_ally_bebi_Actions)
set udg_trigger594=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger594,Player(4),"unally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger594,Player(7),"unally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger594,Player(8),"unally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger594,Player(9),"unally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger594,Player(10),"unally bebi",true)
call TriggerRegisterPlayerChatEvent(udg_trigger594,Player(11),"unally bebi",true)
call TriggerAddAction(udg_trigger594,function Trig_Player_Unally_bebi_Actions)
set udg_trigger595=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger595,Player(4),"ally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger595,Player(7),"ally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger595,Player(8),"ally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger595,Player(9),"ally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger595,Player(10),"ally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger595,Player(11),"ally geti star",true)
call TriggerAddAction(udg_trigger595,function Trig_Player_ally_getistar_Actions)
set udg_trigger596=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger596,Player(4),"unally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger596,Player(7),"unally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger596,Player(8),"unally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger596,Player(9),"unally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger596,Player(10),"unally geti star",true)
call TriggerRegisterPlayerChatEvent(udg_trigger596,Player(11),"unally geti star",true)
call TriggerAddAction(udg_trigger596,function Trig_Player_Unally_getistar_Actions)
set udg_trigger597=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger597,Player(4),"ally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger597,Player(7),"ally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger597,Player(8),"ally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger597,Player(9),"ally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger597,Player(10),"ally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger597,Player(11),"ally cell",true)
call TriggerAddAction(udg_trigger597,function Trig_Player_ally_cell_Actions)
set udg_trigger598=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger598,Player(4),"unally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger598,Player(7),"unally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger598,Player(8),"unally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger598,Player(9),"unally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger598,Player(10),"unally cell",true)
call TriggerRegisterPlayerChatEvent(udg_trigger598,Player(11),"unally cell",true)
call TriggerAddAction(udg_trigger598,function Trig_Player_Unally_cell_Actions)
set udg_trigger599=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger599,udg_rect62)
call TriggerAddCondition(udg_trigger599,Condition(function Trig_Reveal_Lookout_Conditions))
call TriggerAddAction(udg_trigger599,function Trig_Reveal_Lookout_Actions)
set udg_trigger600=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger600,5000.00)
call TriggerAddAction(udg_trigger600,function Trig_Reveal_all_map_Actions)
set udg_trigger601=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger601,125.00)
call TriggerAddCondition(udg_trigger601,Condition(function Trig_Fruit_Tree_Conditions))
call TriggerAddAction(udg_trigger601,function Trig_Fruit_Tree_Actions)
set udg_trigger602=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger602,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger602,Condition(function Trig_Aquire_Fruit_Conditions))
call TriggerAddAction(udg_trigger602,function Trig_Aquire_Fruit_Actions)
set udg_trigger603=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger603,udg_rect113)
call TriggerAddCondition(udg_trigger603,Condition(function Trig_Enter_Lookout_Conditions))
call TriggerAddAction(udg_trigger603,function Trig_Enter_Lookout_Actions)
set udg_trigger604=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger604,udg_rect61)
call TriggerAddCondition(udg_trigger604,Condition(function Trig_Leave_Lookout_Conditions))
call TriggerAddAction(udg_trigger604,function Trig_Leave_Lookout_Actions)
set udg_trigger605=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger605,udg_rect132)
call TriggerAddCondition(udg_trigger605,Condition(function Trig_Enter_Lab_Door_Conditions))
call TriggerAddAction(udg_trigger605,function Trig_Enter_Lab_Door_Actions)
set udg_trigger606=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger606,1000.00)
call TriggerAddAction(udg_trigger606,function Trig_Enter_Lab_Door_Good_Actions)
set udg_trigger607=CreateTrigger()
call TriggerRegisterLeaveRectSimple(udg_trigger607,udg_rect132)
call TriggerAddCondition(udg_trigger607,Condition(function Trig_Exit_Lab_Door_Conditions))
call TriggerAddAction(udg_trigger607,function Trig_Exit_Lab_Door_Actions)
set udg_trigger608=CreateTrigger()
call DisableTrigger(udg_trigger608)
call TriggerAddAction(udg_trigger608,function Trig_FAQ_Actions)
set udg_trigger609=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger609,133.00)
call TriggerAddAction(udg_trigger609,function Trig_Hints_Actions)
set udg_trigger610=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger610,10.00)
call TriggerAddCondition(udg_trigger610,Condition(function Trig_Z_Fighters_Lose_Conditions))
call TriggerAddAction(udg_trigger610,function Trig_Z_Fighters_Lose_Actions)
set udg_trigger611=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger611,10.00)
call TriggerAddCondition(udg_trigger611,Condition(function Trig_Z_Fighters_Win_Conditions))
call TriggerAddAction(udg_trigger611,function Trig_Z_Fighters_Win_Actions)
set udg_trigger612=CreateTrigger()
call TriggerAddAction(udg_trigger612,function Trig_Sort_Items_Actions)
set udg_trigger613=CreateTrigger()
call TriggerAddAction(udg_trigger613,function Trig_Add_Items_to_new_Form_Actions)
set udg_trigger614=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger614,1.00)
call TriggerAddAction(udg_trigger614,function Trig_Adjust_Speed_Actions)
set udg_trigger615=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger615,1.00)
call TriggerAddAction(udg_trigger615,function Trig_Create_Leaderboard_Actions)
set udg_trigger616=CreateTrigger()
call DisableTrigger(udg_trigger616)
call TriggerRegisterTimerEventPeriodic(udg_trigger616,3.00)
call TriggerAddAction(udg_trigger616,function Trig_Update_Leaderboard_Actions)
set udg_trigger620=CreateTrigger()
call DisableTrigger(udg_trigger620)
call TriggerAddAction(udg_trigger620,function Trig_Destroy_Effect_Actions)
set udg_trigger621=CreateTrigger()
call DisableTrigger(udg_trigger621)
call TriggerAddAction(udg_trigger621,function Trig_Destroy_Effect_10s_Actions)
set udg_trigger622=CreateTrigger()
call DisableTrigger(udg_trigger622)
call TriggerAddAction(udg_trigger622,function Trig_Destroy_Effect_20s_Actions)
set udg_trigger623=CreateTrigger()
call DisableTrigger(udg_trigger623)
call TriggerAddAction(udg_trigger623,function Trig_Regrow_Tree_Actions)
call ConditionalTriggerExecute(udg_trigger01)
endfunction
function InitTrig_init takes nothing returns nothing
set udg_camerasetup01 = CreateCameraSetup()
set udg_camerasetup02 = CreateCameraSetup()
set udg_camerasetup03 = CreateCameraSetup()
set udg_camerasetup04 = CreateCameraSetup()
set udg_camerasetup05 = CreateCameraSetup()
set udg_camerasetup06 = CreateCameraSetup()
set udg_sound03 = CreateSound("Buildings\\Human\\AltarOfKings\\AltarOfKingsWhat1.wav",false,false,false,10,10,"DefaultEAXON")
set udg_sound04 = CreateSound("Units\\Orc\\AncestralGuardian\\AncestralGuardianAttack1.wav",false,true,true,10,10,"CombatSoundsEAX")
set udg_sound05 = CreateSound("Abilities\\Spells\\Human\\Banish\\BanishLoop1.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound06 = CreateSound("Abilities\\Spells\\NightElf\\Barkskin\\BarkSkinTarget1.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound07 = CreateSound("Sound\\Interface\\ClanInvitation.wav",false,false,false,10,10,"DefaultEAXON")
set udg_sound08 = CreateSound("Sound\\Music\\mp3Music\\Doom.mp3",false,false,false,10,10,"")
set udg_sound09 = CreateSound("Units\\NightElf\\Dryad\\DryadDeath1.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound10 = CreateSound("Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathTarget1.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound11 = CreateSound("Sound\\Ambient\\DoodadEffects\\FrostmourneLoopUndead01.wav",true,true,false,10,10,"DoodadsEAX")
set udg_sound12 = CreateSound("Sound\\Dialogue\\UndeadCampaign\\Undead08\\U08Archimonde19.mp3",false,true,true,10,10,"DefaultEAXON")
set udg_sound13 = CreateSound("Units\\Human\\HeroArchMage\\HeroArchMageYesAttack2.wav",false,true,true,10,10,"HeroAcksEAX")
set udg_sound14 = CreateSound("Units\\NightElf\\HeroMoonPriestess\\HeroMoonPriestessDeath1.wav",false,true,true,10,10,"HeroAcksEAX")
set udg_sound15 = CreateSound("Sound\\Ambient\\DoodadEffects\\SargerasRoar.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound16 = CreateSound("Sound\\Units\\Human\\HumanDissipate1.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound17 = CreateSound("Sound\\Dialogue\\HumanCampaign\\Human01\\H01Bandit32.mp3",false,true,true,10,10,"DefaultEAXON")
set udg_sound18 = CreateSound("Units\\Human\\Knight\\KnightDeath.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound19 = CreateSound("Units\\Orc\\KotoBeast\\KodoBeastPuke1.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound20 = CreateSound("Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaos.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound21 = CreateSound("Units\\Human\\Peasant\\PeasantDeath.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound22 = CreateSound("Units\\Human\\Rifleman\\RiflemanDeath.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound23 = CreateSound("Sound\\Ambient\\DoodadEffects\\SargerasRoar.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound24 = CreateSound("Abilities\\Spells\\NightElf\\shadowstrike\\ShadowStrikeBirth1.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound25 = CreateSound("Sound\\Ambient\\DoodadEffects\\ShimmeringPortalBirth.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound26 = CreateSound("Sound\\Ambient\\DoodadEffects\\ShimmeringPortalBirth.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound27 = CreateSound("Sound\\Ambient\\DoodadEffects\\ShimmeringPortalDeath.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound28 = CreateSound("Sound\\Ambient\\DoodadEffects\\ShimmeringPortalDeath.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound29 = CreateSound("Sound\\Ambient\\DoodadEffects\\BlueFireBurstLoop.wav",true,true,false,10,10,"DefaultEAXON")
set udg_sound30 = CreateSound("Abilities\\Spells\\Human\\Flare\\FlareTarget1.wav",false,true,true,10,10,"SpellsEAX")
set udg_sound31 = CreateSound("Units\\Orc\\Tauren\\TaurenWarcry1.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound32 = CreateSound("Sound\\Units\\Undead\\Dissipate\\UndeadDissipate2.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound33 = CreateSound("Sound\\Interface\\Warning.wav",false,false,false,10,10,"DefaultEAXON")
set udg_sound34 = CreateSound("Sound\\Ambient\\DoodadEffects\\RollingThunder1.wav",false,false,false,10,10,"DefaultEAXON")
set udg_sound35 = CreateSound("Sound\\Ambient\\DoodadEffects\\SargerasLaugh.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound36 = CreateSound("Sound\\Ambient\\DoodadEffects\\BridgeDeath.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound37 = CreateSound("Sound\\Ambient\\DoodadEffects\\LichKingDream.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound38 = CreateSound("Sound\\Interface\\Rescue.wav",false,false,false,10,10,"DefaultEAXON")
set udg_sound39 = CreateSound("Sound\\Ambient\\DoodadEffects\\EnchantedCellLoop.wav",true,true,true,10,10,"DefaultEAXON")
set udg_sound40 = CreateSound("Sound\\Interface\\SecretFound.wav",false,false,false,10,10,"DefaultEAXON")
set udg_sound41 = CreateSound("Units\\Undead\\FrostWyrm\\FrostwyrmPissed1.wav",false,true,true,10,10,"DefaultEAXON")
set udg_sound42 = CreateSound("Abilities\\Spells\\Orc\\Earthquake\\EarthquakeLoop1.wav",true,true,true,10,10,"SpellsEAX")
set udg_sound43 = CreateSound("Sound\\Ambient\\DoodadEffects\\RunesGlow.wav",true,true,true,10,10,"DefaultEAXON")
set udg_sound44 = CreateSound("Sound\\Ambient\\DoodadEffects\\Switch.wav",false,true,true,10,10,"DefaultEAXON")
call ExecuteFunc("main2")
endfunction
function Trig_Time_Machine_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetEnteringUnit(), udg_location10 )
endfunction
//===========================================================================
function InitTrig_Time_Machine takes nothing returns nothing
set gg_trg_Time_Machine = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Time_Machine, gg_rct_Region_010 )
call TriggerAddAction( gg_trg_Time_Machine, function Trig_Time_Machine_Actions )
endfunction
function Trig_Time_Machine_Copy_Actions takes nothing returns nothing
call SetUnitPositionLoc( GetEnteringUnit(), udg_location10 )
endfunction
//===========================================================================
function InitTrig_Time_Machine_Copy takes nothing returns nothing
set gg_trg_Time_Machine_Copy = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Time_Machine_Copy, gg_rct_Region_010 )
call TriggerAddAction( gg_trg_Time_Machine_Copy, function Trig_Time_Machine_Copy_Actions )
endfunction
function Trig_Ginyu_End_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U000' ) ) then
return false
endif
return true
endfunction
function Trig_Ginyu_End_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), ( "The Earth has been saved from The Ginyu Force. Our saviour is " + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) )
endfunction
//===========================================================================
function InitTrig_Ginyu_End takes nothing returns nothing
set gg_trg_Ginyu_End = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Ginyu_End, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Ginyu_End, Condition( function Trig_Ginyu_End_Conditions ) )
call TriggerAddAction( gg_trg_Ginyu_End, function Trig_Ginyu_End_Actions )
endfunction
function Trig_Frieza_Form_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U011' ) ) then
return false
endif
return true
endfunction
function Trig_Frieza_Form_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7448" )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 1, 'U012', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call TriggerExecute( udg_trigger126 )
endfunction
//===========================================================================
function InitTrig_Frieza_Form_2 takes nothing returns nothing
set gg_trg_Frieza_Form_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Frieza_Form_2, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Frieza_Form_2, Condition( function Trig_Frieza_Form_2_Conditions ) )
call TriggerAddAction( gg_trg_Frieza_Form_2, function Trig_Frieza_Form_2_Actions )
endfunction
function Trig_Frieza_Form_3_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U012' ) ) then
return false
endif
return true
endfunction
function Trig_Frieza_Form_3_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7449" )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 1, 'U013', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call TriggerExecute( udg_trigger126 )
endfunction
//===========================================================================
function InitTrig_Frieza_Form_3 takes nothing returns nothing
set gg_trg_Frieza_Form_3 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Frieza_Form_3, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Frieza_Form_3, Condition( function Trig_Frieza_Form_3_Conditions ) )
call TriggerAddAction( gg_trg_Frieza_Form_3, function Trig_Frieza_Form_3_Actions )
endfunction
function Trig_Frieza_Form_4_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U013' ) ) then
return false
endif
return true
endfunction
function Trig_Frieza_Form_4_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7450" )
call TriggerSleepAction( 4.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7451" )
call TriggerSleepAction( 2.00 )
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7452" )
call CreateNUnitsAtLoc( 1, 'U014', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call TriggerExecute( udg_trigger126 )
endfunction
//===========================================================================
function InitTrig_Frieza_Form_4 takes nothing returns nothing
set gg_trg_Frieza_Form_4 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Frieza_Form_4, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Frieza_Form_4, Condition( function Trig_Frieza_Form_4_Conditions ) )
call TriggerAddAction( gg_trg_Frieza_Form_4, function Trig_Frieza_Form_4_Actions )
endfunction
function Trig_Frieza_End_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U014' ) ) then
return false
endif
return true
endfunction
function Trig_Frieza_End_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), ( "The Earth has been saved from Frieza. Our saviour is " + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) )
call CreateItemLoc( 'I02C', GetUnitLoc(GetDyingUnit()) )
endfunction
//===========================================================================
function InitTrig_Frieza_End takes nothing returns nothing
set gg_trg_Frieza_End = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Frieza_End, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Frieza_End, Condition( function Trig_Frieza_End_Conditions ) )
call TriggerAddAction( gg_trg_Frieza_End, function Trig_Frieza_End_Actions )
endfunction
function Trig_Cooler_Form_2_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U018' ) ) then
return false
endif
return true
endfunction
function Trig_Cooler_Form_2_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7453" )
call TriggerSleepAction( 4.00 )
call CreateNUnitsAtLoc( 1, 'U019', Player(PLAYER_NEUTRAL_AGGRESSIVE), GetUnitLoc(GetDyingUnit()), bj_UNIT_FACING )
call TriggerExecute( udg_trigger126 )
endfunction
//===========================================================================
function InitTrig_Cooler_Form_2 takes nothing returns nothing
set gg_trg_Cooler_Form_2 = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cooler_Form_2, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Cooler_Form_2, Condition( function Trig_Cooler_Form_2_Conditions ) )
call TriggerAddAction( gg_trg_Cooler_Form_2, function Trig_Cooler_Form_2_Actions )
endfunction
function Trig_Cooler_End_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U019' ) ) then
return false
endif
return true
endfunction
function Trig_Cooler_End_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), ( "The Earth has been saved from Cooler. Our saviour is " + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) )
call TriggerSleepAction( 60.00 )
call TriggerExecute( udg_trigger155 )
endfunction
//===========================================================================
function InitTrig_Cooler_End takes nothing returns nothing
set gg_trg_Cooler_End = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Cooler_End, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Cooler_End, Condition( function Trig_Cooler_End_Conditions ) )
call TriggerAddAction( gg_trg_Cooler_End, function Trig_Cooler_End_Actions )
endfunction
function Trig_Super_17_End_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U017' ) ) then
return false
endif
return true
endfunction
function Trig_Super_17_End_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7454" )
call TriggerSleepAction( 3.00 )
call DisplayTextToForce( GetPlayersAll(), ( "The Earth has been saved from Super 17.. Our saviour is " + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) )
call TriggerSleepAction( 60.00 )
call TriggerExecute( udg_trigger167 )
endfunction
//===========================================================================
function InitTrig_Super_17_End takes nothing returns nothing
set gg_trg_Super_17_End = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Super_17_End, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Super_17_End, Condition( function Trig_Super_17_End_Conditions ) )
call TriggerAddAction( gg_trg_Super_17_End, function Trig_Super_17_End_Actions )
endfunction
function Trig_Legendary_SayianEnd_Conditions takes nothing returns boolean
if ( not ( GetUnitTypeId(GetDyingUnit()) == 'U01A' ) ) then
return false
endif
return true
endfunction
function Trig_Legendary_SayianEnd_Actions takes nothing returns nothing
call DisplayTextToForce( GetPlayersAll(), "TRIGSTR_7500" )
call TriggerSleepAction( 3.00 )
call DisplayTextToForce( GetPlayersAll(), ( "The Earth has been saved from Legendary Super Sayain .. Our saviour is " + GetPlayerName(GetOwningPlayer(GetKillingUnitBJ())) ) )
call TriggerSleepAction( 60.00 )
call TriggerExecute( udg_trigger167 )
endfunction
//===========================================================================
function InitTrig_Legendary_SayianEnd takes nothing returns nothing
set gg_trg_Legendary_SayianEnd = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Legendary_SayianEnd, EVENT_PLAYER_UNIT_DEATH )
call TriggerAddCondition( gg_trg_Legendary_SayianEnd, Condition( function Trig_Legendary_SayianEnd_Conditions ) )
call TriggerAddAction( gg_trg_Legendary_SayianEnd, function Trig_Legendary_SayianEnd_Actions )
endfunction
function Trig_Jass_Scriptt_Actions takes nothing returns nothing
call AddHeroXPSwapped( 13000, GetTriggerUnit(), false )
endfunction
//===========================================================================
function InitTrig_Jass_Scriptt takes nothing returns nothing
set gg_trg_Jass_Scriptt = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Jass_Scriptt, gg_rct_Region_017 )
call TriggerAddAction( gg_trg_Jass_Scriptt, function Trig_Jass_Scriptt_Actions )
endfunction
function Trig_Jass_Scriipt_Actions takes nothing returns nothing
call UnitAddItemSwapped( gg_item_I00W_0063, GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Jass_Scriipt takes nothing returns nothing
set gg_trg_Jass_Scriipt = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(0), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(1), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(2), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(3), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(4), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(5), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(6), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(7), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(9), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(10), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt, Player(11), "-turtleness", true )
call TriggerAddAction( gg_trg_Jass_Scriipt, function Trig_Jass_Scriipt_Actions )
endfunction
function Trig_Jass_Scriipt_Copy_Actions takes nothing returns nothing
call UnitAddItemSwapped( GetLastCreatedItem(), GetTriggerUnit() )
endfunction
//===========================================================================
function InitTrig_Jass_Scriipt_Copy takes nothing returns nothing
set gg_trg_Jass_Scriipt_Copy = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(0), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(1), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(2), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(3), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(4), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(5), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(6), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(7), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(9), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(10), "-turtleness", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Jass_Scriipt_Copy, Player(11), "-turtleness", true )
call TriggerAddAction( gg_trg_Jass_Scriipt_Copy, function Trig_Jass_Scriipt_Copy_Actions )
endfunction
function Trig_drop1_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_drop1 takes nothing returns nothing
set gg_trg_drop1 = CreateTrigger( )
call TriggerRegisterPlayerUnitEventSimple( gg_trg_drop1, Player(0), EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddAction( gg_trg_drop1, function Trig_drop1_Actions )
endfunction
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction