// Map deprotected by X-deprotect (version 2006-10-02) by zibada
// http://dimon.xgm.ru/xdep/
// Visit our modmaking community at http://xgm.ru/
Name | Type | is_array | initial_value |
AfterDamageEvent | real | No | |
Agi | integer | Yes | |
Allstats | integer | No | |
AOEDamageEvent | real | No | |
Attract_Life_Hashtable | hashtable | No | |
Attract_Life_Integer | integer | No | |
Attract_Life_Lightning | lightning | Yes | |
Attract_Life_Special | effect | Yes | |
boolean01 | boolean | No | |
boolean02 | boolean | No | |
boolean03 | boolean | No | |
boolean04 | boolean | No | |
boolean05 | boolean | No | |
boolean06 | boolean | No | |
boolean07 | boolean | No | |
boolean08 | boolean | No | |
boolean09 | boolean | No | |
boolean10 | boolean | No | |
booleans01 | boolean | Yes | |
booleans02 | boolean | Yes | |
booleans03 | boolean | Yes | |
booleans04 | boolean | Yes | |
booleans05 | boolean | Yes | |
button01 | button | No | |
button02 | button | No | |
button03 | button | No | |
button04 | button | No | |
button05 | button | No | |
button06 | button | No | |
button07 | button | No | |
button08 | button | No | |
button09 | button | No | |
button10 | button | No | |
button11 | button | No | |
button12 | button | No | |
button13 | button | No | |
button14 | button | No | |
button15 | button | No | |
button16 | button | No | |
button17 | button | No | |
button18 | button | No | |
button19 | button | No | |
button20 | button | No | |
button21 | button | No | |
button22 | button | No | |
button23 | button | No | |
camerasetup01 | camerasetup | No | |
camerasetup02 | camerasetup | No | |
camerasetup03 | camerasetup | No | |
camerasetup04 | camerasetup | No | |
camerasetup05 | camerasetup | No | |
camerasetup06 | camerasetup | No | |
camerasetup07 | camerasetup | No | |
camerasetup08 | camerasetup | No | |
camerasetup09 | camerasetup | No | |
camerasetup10 | camerasetup | No | |
camerasetup11 | camerasetup | No | |
camerasetup12 | camerasetup | No | |
camerasetup13 | camerasetup | No | |
camerasetup14 | camerasetup | No | |
camerasetup15 | camerasetup | No | |
camerasetup16 | camerasetup | No | |
Cast_Pos | location | No | |
ClearDamageEvent | trigger | No | |
CSS_Abilities | abilcode | Yes | |
CSS_Counter | integer | No | |
CSS_CustomSwitch | boolean | No | |
CSS_EventMainItem | item | No | |
CSS_EventMainItemStacked | item | Yes | |
CSS_EventSocketItem | item | No | |
CSS_EventSocketItemStacked | item | Yes | |
CSS_EventUnit | unit | No | |
CSS_EventUnitStacked | unit | Yes | |
CSS_GemBonusBoolean | boolean | No | |
CSS_GemLevel | integer | No | |
CSS_Hashtable | hashtable | No | |
CSS_Power | integer | Yes | |
CSS_PreloadBoolean | boolean | No | |
CSS_SocketingEnabled | boolean | No | |
CSS_String | string | Yes | |
DAMAGE_FACTOR_BRACERS | real | No | |
DAMAGE_FACTOR_ELUNES | real | No | |
DAMAGE_FACTOR_ETHEREAL | real | No | |
Damage_Resist | real | Yes | |
DamageBlockingAbility | abilcode | No | |
Damaged_Pos | location | Yes | |
DamageEvent | real | No | |
DamageEventAmount | real | No | |
DamageEventAOE | integer | No | |
DamageEventAOEGroup | group | No | |
DamageEventLevel | integer | No | |
DamageEventOverride | boolean | No | |
DamageEventPrevAmt | real | No | |
DamageEventSource | unit | No | |
DamageEventsWasted | integer | No | |
DamageEventTarget | unit | No | |
DamageEventTrigger | trigger | No | |
DamageEventType | integer | No | |
DamageModifierEvent | real | No | |
Damager_Pos | location | Yes | |
DamageTypeBlocked | integer | No | |
DamageTypeCriticalStrike | integer | No | |
DamageTypeExplosive | integer | No | |
DamageTypeHeal | integer | No | |
DamageTypeReduced | integer | No | |
DamageTypeSplash | integer | No | |
destructable01 | destructable | No | |
destructables01 | destructable | Yes | |
destructables02 | destructable | Yes | |
dialog01 | dialog | No | |
dialog02 | dialog | No | |
dialog03 | dialog | No | |
dialog04 | dialog | No | |
dialog05 | dialog | No | |
Diff_int | integer | No | |
DmgEvBracers | itemcode | No | |
DmgEvRecursionN | integer | No | |
DmgEvRunning | boolean | No | |
DmgEvStarted | boolean | No | |
DmgEvTimer | timer | No | |
DmgEvTrig | trigger | No | |
Dying_Hero | unit | Yes | |
effect01 | effect | No | |
effect02 | effect | No | |
effects01 | effect | Yes | |
EnhancedDamageTarget | unit | No | |
EVENT_SOCKET_FINISH | real | No | |
force01 | force | No | |
GetHeroPrimary | unit | No | |
GetHeroUnit | unit | No | |
GetPrimaryAttribute | integer | No | |
GetPrimaryString | string | No | |
GetPrimaryValueExc | integer | No | |
GetPrimaryValueInc | integer | No | |
group01 | group | No | |
group02 | group | No | |
group03 | group | No | |
group04 | group | No | |
group05 | group | No | |
group06 | group | No | |
group07 | group | No | |
group08 | group | No | |
group09 | group | No | |
group10 | group | No | |
group11 | group | No | |
group12 | group | No | |
group13 | group | No | |
group14 | group | No | |
group15 | group | No | |
group16 | group | No | |
group17 | group | No | |
group18 | group | No | |
group19 | group | No | |
group20 | group | No | |
group21 | group | No | |
group22 | group | No | |
group23 | group | No | |
group24 | group | No | |
group25 | group | No | |
group26 | group | No | |
group27 | group | No | |
group28 | group | No | |
group29 | group | No | |
groups01 | group | Yes | |
groups02 | group | Yes | |
groups03 | group | Yes | |
groups04 | group | Yes | |
HideDamageFrom | boolean | Yes | |
Int | integer | Yes | |
integer01 | integer | No | |
integer02 | integer | No | |
integer03 | integer | No | |
integer04 | integer | No | |
integer05 | integer | No | |
integer06 | integer | No | |
integer07 | integer | No | |
integer08 | integer | No | |
integer09 | integer | No | |
integer10 | integer | No | |
integer11 | integer | No | |
integer12 | integer | No | |
integer13 | integer | No | |
integer14 | integer | No | |
integer15 | integer | No | |
integer16 | integer | No | |
integer17 | integer | No | |
integer18 | integer | No | |
integer19 | integer | No | |
integer20 | integer | No | |
integer21 | integer | No | |
integers01 | integer | Yes | |
integers02 | integer | Yes | |
integers03 | integer | Yes | |
integers04 | integer | Yes | |
integers05 | integer | Yes | |
integers06 | integer | Yes | |
InventorySystem_AlreadyHave | boolean | No | |
InventorySystem_FinalObject | itemcode | No | |
InventorySystem_GoodToGo | boolean | No | |
InventorySystem_Max | integer | No | |
InventorySystem_Model | string | No | |
InventorySystem_Objects | itemcode | Yes | |
InventorySystem_Recap | integer | No | |
IsDamageSpell | boolean | No | |
Item_level | integer | Yes | |
LastDamageHP | real | No | |
LastDmgPrevAmount | real | Yes | |
LastDmgPrevType | integer | Yes | |
LastDmgSource | unit | Yes | |
LastDmgTarget | unit | Yes | |
LastDmgValue | real | Yes | |
LastDmgWasSpell | boolean | Yes | |
leaderboard01 | leaderboard | No | |
location01 | location | No | |
location02 | location | No | |
location03 | location | No | |
location04 | location | No | |
location05 | location | No | |
locations01 | location | Yes | |
locations02 | location | Yes | |
locations03 | location | Yes | |
locations04 | location | Yes | |
locations05 | location | Yes | |
locations06 | location | Yes | |
locations07 | location | Yes | |
locations08 | location | Yes | |
locations09 | location | Yes | |
locations10 | location | Yes | |
locations11 | location | Yes | |
locations12 | location | Yes | |
locations13 | location | Yes | |
locations14 | location | Yes | |
locations15 | location | Yes | |
locations16 | location | Yes | |
locations17 | location | Yes | |
Made_Item | string | No | |
Man_Crit_Chance | real | Yes | |
Man_Crit_Timing | real | Yes | |
NextDamageOverride | boolean | No | |
NextDamageType | integer | No | |
Player_Number | integer | No | |
PrimaryAGI | integer | No | |
PrimaryINT | integer | No | |
PrimaryStatEnd | trigger | No | |
PrimarySTR | integer | No | |
real01 | real | No | |
real02 | real | No | |
real03 | real | No | |
real04 | real | No | |
real05 | real | No | |
real06 | real | No | |
real07 | real | No | |
real08 | real | No | |
real09 | real | No | |
real10 | real | No | |
real11 | real | No | |
real12 | real | No | |
real13 | real | No | |
real14 | real | No | |
real15 | real | No | |
real16 | real | No | |
real17 | real | No | |
real18 | real | No | |
real19 | real | No | |
real20 | real | No | |
real21 | real | No | |
real22 | real | No | |
reals01 | real | Yes | |
reals02 | real | Yes | |
reals03 | real | Yes | |
reals04 | real | Yes | |
reals05 | real | Yes | |
reals06 | real | Yes | |
reals07 | real | Yes | |
reals08 | real | Yes | |
reals09 | real | Yes | |
reals10 | real | Yes | |
reals11 | real | Yes | |
reals12 | real | Yes | |
reals13 | real | Yes | |
reals14 | real | Yes | |
reals15 | real | Yes | |
reals16 | real | Yes | |
reals17 | real | Yes | |
reals18 | real | Yes | |
reals19 | real | Yes | |
reals20 | real | Yes | |
reals21 | real | Yes | |
reals22 | real | Yes | |
reals23 | real | Yes | |
reals24 | real | Yes | |
reals25 | real | Yes | |
reals26 | real | Yes | |
rect01 | rect | No | |
rect02 | rect | No | |
rect03 | rect | No | |
rect04 | rect | No | |
rect05 | rect | No | |
rect06 | rect | No | |
rect07 | rect | No | |
rect08 | rect | No | |
rect09 | rect | No | |
rect10 | rect | No | |
rect100 | rect | No | |
rect101 | rect | No | |
rect102 | rect | No | |
rect103 | rect | No | |
rect104 | rect | No | |
rect105 | rect | No | |
rect106 | rect | No | |
rect107 | rect | No | |
rect108 | rect | No | |
rect109 | rect | No | |
rect11 | rect | No | |
rect110 | rect | No | |
rect111 | rect | No | |
rect112 | rect | No | |
rect113 | rect | No | |
rect114 | rect | No | |
rect115 | rect | No | |
rect116 | rect | No | |
rect117 | rect | No | |
rect118 | rect | No | |
rect119 | rect | No | |
rect12 | rect | No | |
rect120 | rect | No | |
rect121 | rect | No | |
rect122 | rect | No | |
rect123 | rect | No | |
rect124 | rect | No | |
rect125 | rect | No | |
rect126 | rect | No | |
rect127 | rect | No | |
rect128 | rect | No | |
rect129 | rect | No | |
rect13 | rect | No | |
rect130 | rect | No | |
rect131 | rect | No | |
rect132 | rect | No | |
rect133 | rect | No | |
rect134 | rect | No | |
rect135 | rect | No | |
rect136 | rect | No | |
rect137 | rect | No | |
rect138 | rect | No | |
rect139 | rect | No | |
rect14 | rect | No | |
rect140 | rect | No | |
rect141 | rect | No | |
rect142 | rect | No | |
rect143 | rect | No | |
rect144 | rect | No | |
rect145 | rect | No | |
rect146 | rect | No | |
rect147 | rect | No | |
rect148 | rect | No | |
rect149 | rect | No | |
rect15 | rect | No | |
rect150 | rect | No | |
rect151 | rect | No | |
rect152 | rect | No | |
rect153 | rect | No | |
rect154 | rect | No | |
rect155 | rect | No | |
rect156 | rect | No | |
rect157 | rect | No | |
rect158 | rect | No | |
rect159 | rect | No | |
rect16 | rect | No | |
rect160 | rect | No | |
rect161 | rect | No | |
rect162 | rect | No | |
rect163 | rect | No | |
rect164 | rect | No | |
rect165 | rect | No | |
rect166 | rect | No | |
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 | |
rects01 | rect | Yes | |
rects02 | rect | Yes | |
rects03 | rect | Yes | |
rects04 | rect | Yes | |
rects05 | rect | Yes | |
Slash_Count | integer | No | |
Slash_Point | location | Yes | |
Slash_Special | unit | Yes | |
Slash_Unit | unit | Yes | |
Slasher | unit | Yes | |
sound01 | sound | No | |
sound02 | sound | No | |
sound03 | sound | No | |
sound04 | sound | No | |
sound05 | sound | No | |
sound06 | sound | No | |
sound07 | sound | No | |
sound08 | sound | No | |
sound09 | sound | No | |
sound10 | sound | No | |
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 | |
SPA_Group | group | No | |
Spear_of_Annihilation_Facing | real | No | |
Spear_of_Annihilation_SInteger | integer | Yes | |
Spear_of_Annihilation_SReal | real | Yes | |
Spear_Unit | unit | Yes | |
Spell_Damage | real | Yes | |
SpellDamageAbility | abilcode | No | |
Str | integer | Yes | |
Talent1_Bol | boolean | Yes | |
Talent2_Bol | boolean | Yes | |
Talent3_Bol | boolean | Yes | |
Talent4_Bol | boolean | Yes | |
Talent_1 | dialog | Yes | |
Talent_2 | dialog | Yes | |
Talent_3 | dialog | Yes | |
Talent_4 | dialog | Yes | |
Talent_Button1 | button | Yes | |
Talent_Button10 | button | Yes | |
Talent_Button11 | button | Yes | |
Talent_Button12 | button | Yes | |
Talent_Button2 | button | Yes | |
Talent_Button3 | button | Yes | |
Talent_Button4 | button | Yes | |
Talent_Button5 | button | Yes | |
Talent_Button6 | button | Yes | |
Talent_Button7 | button | Yes | |
Talent_Button8 | button | Yes | |
Talent_Button9 | button | Yes | |
Talent_Hero | unit | Yes | |
TempInteger | integer | No | |
TempItemClass | itemcode | No | |
timer01 | timer | No | |
timer02 | timer | No | |
timer03 | timer | No | |
timer04 | timer | No | |
timer05 | timer | No | |
timer06 | timer | No | |
timerdialog01 | timerdialog | No | |
timerdialog02 | timerdialog | No | |
timerdialog03 | timerdialog | No | |
timerdialog04 | timerdialog | No | |
timerdialog05 | timerdialog | No | |
trigger01 | trigger | No | |
trigger02 | trigger | No | |
trigger03 | trigger | No | |
trigger04 | trigger | No | |
trigger05 | trigger | No | |
trigger06 | trigger | No | |
trigger07 | trigger | No | |
trigger08 | trigger | No | |
trigger09 | trigger | No | |
trigger10 | trigger | No | |
trigger100 | trigger | No | |
trigger101 | trigger | No | |
trigger102 | trigger | No | |
trigger103 | trigger | No | |
trigger104 | trigger | No | |
trigger105 | trigger | No | |
trigger106 | trigger | No | |
trigger107 | trigger | No | |
trigger108 | trigger | No | |
trigger109 | trigger | No | |
trigger11 | trigger | No | |
trigger110 | trigger | No | |
trigger111 | trigger | No | |
trigger112 | trigger | No | |
trigger113 | trigger | No | |
trigger114 | trigger | No | |
trigger115 | trigger | No | |
trigger116 | trigger | No | |
trigger117 | trigger | No | |
trigger118 | trigger | No | |
trigger119 | trigger | No | |
trigger12 | trigger | No | |
trigger120 | trigger | No | |
trigger121 | trigger | No | |
trigger122 | trigger | No | |
trigger123 | trigger | No | |
trigger124 | trigger | No | |
trigger125 | trigger | No | |
trigger126 | trigger | No | |
trigger127 | trigger | No | |
trigger128 | trigger | No | |
trigger129 | trigger | No | |
trigger13 | trigger | No | |
trigger130 | trigger | No | |
trigger131 | trigger | No | |
trigger132 | trigger | No | |
trigger133 | trigger | No | |
trigger134 | trigger | No | |
trigger135 | trigger | No | |
trigger136 | trigger | No | |
trigger137 | trigger | No | |
trigger138 | trigger | No | |
trigger139 | trigger | No | |
trigger14 | trigger | No | |
trigger140 | trigger | No | |
trigger141 | trigger | No | |
trigger142 | trigger | No | |
trigger143 | trigger | No | |
trigger144 | trigger | No | |
trigger145 | trigger | No | |
trigger146 | trigger | No | |
trigger147 | trigger | No | |
trigger148 | trigger | No | |
trigger149 | trigger | No | |
trigger15 | trigger | No | |
trigger150 | trigger | No | |
trigger151 | trigger | No | |
trigger152 | trigger | No | |
trigger153 | trigger | No | |
trigger154 | trigger | No | |
trigger155 | trigger | No | |
trigger156 | trigger | No | |
trigger157 | trigger | No | |
trigger158 | trigger | No | |
trigger159 | trigger | No | |
trigger16 | trigger | No | |
trigger160 | trigger | No | |
trigger161 | trigger | No | |
trigger162 | trigger | No | |
trigger163 | trigger | No | |
trigger164 | trigger | No | |
trigger165 | trigger | No | |
trigger166 | trigger | No | |
trigger167 | trigger | No | |
trigger168 | trigger | No | |
trigger169 | trigger | No | |
trigger17 | trigger | No | |
trigger170 | trigger | No | |
trigger171 | trigger | No | |
trigger172 | trigger | No | |
trigger173 | trigger | No | |
trigger174 | trigger | No | |
trigger175 | trigger | No | |
trigger176 | trigger | No | |
trigger177 | trigger | No | |
trigger178 | trigger | No | |
trigger179 | trigger | No | |
trigger18 | trigger | No | |
trigger180 | trigger | No | |
trigger181 | trigger | No | |
trigger182 | trigger | No | |
trigger183 | trigger | No | |
trigger184 | trigger | No | |
trigger185 | trigger | No | |
trigger186 | trigger | No | |
trigger187 | trigger | No | |
trigger188 | trigger | No | |
trigger189 | trigger | No | |
trigger19 | trigger | No | |
trigger190 | trigger | No | |
trigger191 | trigger | No | |
trigger192 | trigger | No | |
trigger193 | trigger | No | |
trigger194 | trigger | No | |
trigger195 | trigger | No | |
trigger196 | trigger | No | |
trigger197 | trigger | No | |
trigger198 | trigger | No | |
trigger199 | trigger | No | |
trigger20 | trigger | No | |
trigger200 | trigger | No | |
trigger201 | trigger | No | |
trigger202 | trigger | No | |
trigger203 | trigger | No | |
trigger204 | trigger | No | |
trigger205 | trigger | No | |
trigger206 | trigger | No | |
trigger207 | trigger | No | |
trigger208 | trigger | No | |
trigger209 | trigger | No | |
trigger21 | trigger | No | |
trigger210 | trigger | No | |
trigger211 | trigger | No | |
trigger212 | trigger | No | |
trigger213 | trigger | No | |
trigger214 | trigger | No | |
trigger215 | trigger | No | |
trigger216 | trigger | No | |
trigger217 | trigger | No | |
trigger218 | trigger | No | |
trigger219 | trigger | No | |
trigger22 | trigger | No | |
trigger220 | trigger | No | |
trigger221 | trigger | No | |
trigger222 | trigger | No | |
trigger223 | trigger | No | |
trigger224 | trigger | No | |
trigger225 | trigger | No | |
trigger226 | trigger | No | |
trigger227 | trigger | No | |
trigger228 | trigger | No | |
trigger229 | trigger | No | |
trigger23 | trigger | No | |
trigger230 | trigger | No | |
trigger231 | trigger | No | |
trigger232 | trigger | No | |
trigger233 | trigger | No | |
trigger234 | trigger | No | |
trigger235 | trigger | No | |
trigger236 | trigger | No | |
trigger237 | trigger | No | |
trigger238 | trigger | No | |
trigger239 | trigger | No | |
trigger24 | trigger | No | |
trigger240 | trigger | No | |
trigger241 | trigger | No | |
trigger242 | trigger | No | |
trigger243 | trigger | No | |
trigger244 | trigger | No | |
trigger245 | trigger | No | |
trigger246 | trigger | No | |
trigger247 | trigger | No | |
trigger248 | trigger | No | |
trigger249 | trigger | No | |
trigger25 | trigger | No | |
trigger250 | trigger | No | |
trigger251 | trigger | No | |
trigger252 | trigger | No | |
trigger253 | trigger | No | |
trigger254 | trigger | No | |
trigger255 | trigger | No | |
trigger256 | trigger | No | |
trigger257 | trigger | No | |
trigger258 | trigger | No | |
trigger259 | trigger | No | |
trigger26 | trigger | No | |
trigger260 | trigger | No | |
trigger261 | trigger | No | |
trigger262 | trigger | No | |
trigger263 | trigger | No | |
trigger264 | trigger | No | |
trigger265 | trigger | No | |
trigger266 | trigger | No | |
trigger267 | trigger | No | |
trigger268 | trigger | No | |
trigger269 | trigger | No | |
trigger27 | trigger | No | |
trigger270 | trigger | No | |
trigger271 | trigger | No | |
trigger272 | trigger | No | |
trigger273 | trigger | No | |
trigger274 | trigger | No | |
trigger275 | trigger | No | |
trigger276 | trigger | No | |
trigger277 | trigger | No | |
trigger278 | trigger | No | |
trigger279 | trigger | No | |
trigger28 | trigger | No | |
trigger280 | trigger | No | |
trigger281 | trigger | No | |
trigger282 | trigger | No | |
trigger283 | trigger | No | |
trigger284 | trigger | No | |
trigger285 | trigger | No | |
trigger286 | trigger | No | |
trigger287 | trigger | No | |
trigger288 | trigger | No | |
trigger289 | trigger | No | |
trigger29 | trigger | No | |
trigger290 | trigger | No | |
trigger291 | trigger | No | |
trigger292 | trigger | No | |
trigger293 | trigger | No | |
trigger294 | trigger | No | |
trigger295 | trigger | No | |
trigger296 | trigger | No | |
trigger297 | trigger | No | |
trigger298 | trigger | No | |
trigger299 | trigger | No | |
trigger30 | trigger | No | |
trigger300 | trigger | No | |
trigger301 | trigger | No | |
trigger302 | trigger | No | |
trigger303 | trigger | No | |
trigger304 | trigger | No | |
trigger305 | trigger | No | |
trigger306 | trigger | No | |
trigger307 | trigger | No | |
trigger308 | trigger | No | |
trigger309 | trigger | No | |
trigger31 | trigger | No | |
trigger310 | trigger | No | |
trigger311 | trigger | No | |
trigger312 | trigger | No | |
trigger313 | trigger | No | |
trigger314 | trigger | No | |
trigger315 | trigger | No | |
trigger316 | trigger | No | |
trigger317 | trigger | No | |
trigger318 | trigger | No | |
trigger319 | trigger | No | |
trigger32 | trigger | No | |
trigger320 | trigger | No | |
trigger321 | trigger | No | |
trigger322 | trigger | No | |
trigger323 | trigger | No | |
trigger324 | trigger | No | |
trigger325 | trigger | No | |
trigger326 | trigger | No | |
trigger327 | trigger | No | |
trigger328 | trigger | No | |
trigger329 | trigger | No | |
trigger33 | trigger | No | |
trigger330 | trigger | No | |
trigger331 | trigger | No | |
trigger332 | trigger | No | |
trigger333 | trigger | No | |
trigger334 | trigger | No | |
trigger335 | trigger | No | |
trigger336 | trigger | No | |
trigger337 | trigger | No | |
trigger338 | trigger | No | |
trigger339 | trigger | No | |
trigger34 | trigger | No | |
trigger340 | trigger | No | |
trigger341 | trigger | No | |
trigger342 | trigger | No | |
trigger343 | trigger | No | |
trigger344 | trigger | No | |
trigger345 | trigger | No | |
trigger346 | trigger | No | |
trigger347 | trigger | No | |
trigger348 | trigger | No | |
trigger349 | trigger | No | |
trigger35 | trigger | No | |
trigger350 | trigger | No | |
trigger351 | trigger | No | |
trigger352 | trigger | No | |
trigger353 | trigger | No | |
trigger354 | trigger | No | |
trigger355 | trigger | No | |
trigger356 | trigger | No | |
trigger357 | trigger | No | |
trigger358 | trigger | No | |
trigger359 | trigger | No | |
trigger36 | trigger | No | |
trigger360 | trigger | No | |
trigger361 | trigger | No | |
trigger362 | trigger | No | |
trigger363 | trigger | No | |
trigger364 | trigger | No | |
trigger365 | trigger | No | |
trigger366 | trigger | No | |
trigger367 | trigger | No | |
trigger368 | trigger | No | |
trigger369 | trigger | No | |
trigger37 | trigger | No | |
trigger370 | trigger | No | |
trigger371 | trigger | No | |
trigger372 | trigger | No | |
trigger373 | trigger | No | |
trigger374 | trigger | No | |
trigger375 | trigger | No | |
trigger376 | trigger | No | |
trigger377 | trigger | No | |
trigger378 | trigger | No | |
trigger379 | trigger | No | |
trigger38 | trigger | No | |
trigger380 | trigger | No | |
trigger381 | trigger | No | |
trigger382 | trigger | No | |
trigger383 | trigger | No | |
trigger384 | trigger | No | |
trigger385 | trigger | No | |
trigger386 | trigger | No | |
trigger387 | trigger | No | |
trigger388 | trigger | No | |
trigger389 | trigger | No | |
trigger39 | trigger | No | |
trigger390 | trigger | No | |
trigger391 | trigger | No | |
trigger392 | trigger | No | |
trigger393 | trigger | No | |
trigger394 | trigger | No | |
trigger395 | trigger | No | |
trigger396 | trigger | No | |
trigger397 | trigger | No | |
trigger398 | trigger | No | |
trigger399 | trigger | No | |
trigger40 | trigger | No | |
trigger400 | trigger | No | |
trigger401 | trigger | No | |
trigger402 | trigger | No | |
trigger403 | trigger | No | |
trigger404 | trigger | No | |
trigger405 | trigger | No | |
trigger406 | trigger | No | |
trigger407 | trigger | No | |
trigger408 | trigger | No | |
trigger409 | trigger | No | |
trigger41 | trigger | No | |
trigger410 | trigger | No | |
trigger411 | trigger | No | |
trigger412 | trigger | No | |
trigger413 | trigger | No | |
trigger414 | trigger | No | |
trigger415 | trigger | No | |
trigger416 | trigger | No | |
trigger417 | trigger | No | |
trigger418 | trigger | No | |
trigger419 | trigger | No | |
trigger42 | trigger | No | |
trigger420 | trigger | No | |
trigger421 | trigger | No | |
trigger422 | trigger | No | |
trigger423 | trigger | No | |
trigger424 | trigger | No | |
trigger425 | trigger | No | |
trigger426 | trigger | No | |
trigger427 | trigger | No | |
trigger428 | trigger | No | |
trigger43 | trigger | No | |
trigger44 | trigger | No | |
trigger45 | trigger | No | |
trigger46 | trigger | No | |
trigger47 | trigger | No | |
trigger48 | trigger | No | |
trigger49 | trigger | No | |
trigger50 | trigger | No | |
trigger51 | trigger | No | |
trigger52 | trigger | No | |
trigger53 | trigger | No | |
trigger54 | trigger | No | |
trigger55 | trigger | No | |
trigger56 | trigger | No | |
trigger57 | trigger | No | |
trigger58 | trigger | No | |
trigger59 | trigger | No | |
trigger60 | trigger | No | |
trigger61 | trigger | No | |
trigger62 | trigger | No | |
trigger63 | trigger | No | |
trigger64 | trigger | No | |
trigger65 | trigger | No | |
trigger66 | trigger | No | |
trigger67 | trigger | No | |
trigger68 | trigger | No | |
trigger69 | trigger | No | |
trigger70 | trigger | No | |
trigger71 | trigger | No | |
trigger72 | trigger | No | |
trigger73 | trigger | No | |
trigger74 | trigger | No | |
trigger75 | trigger | No | |
trigger76 | trigger | No | |
trigger77 | trigger | No | |
trigger78 | trigger | No | |
trigger79 | trigger | No | |
trigger80 | trigger | No | |
trigger81 | trigger | No | |
trigger82 | trigger | No | |
trigger83 | trigger | No | |
trigger84 | trigger | No | |
trigger85 | trigger | No | |
trigger86 | trigger | No | |
trigger87 | trigger | No | |
trigger88 | trigger | No | |
trigger89 | trigger | No | |
trigger90 | trigger | No | |
trigger91 | trigger | No | |
trigger92 | trigger | No | |
trigger93 | trigger | No | |
trigger94 | trigger | No | |
trigger95 | trigger | No | |
trigger96 | trigger | No | |
trigger97 | trigger | No | |
trigger98 | trigger | No | |
trigger99 | trigger | No | |
UDex | integer | No | |
UDexGen | integer | No | |
UDexNext | integer | Yes | |
UDexPrev | integer | Yes | |
UDexRecycle | integer | No | |
UDexUnits | unit | Yes | |
UDexWasted | integer | No | |
unit01 | unit | No | |
unit02 | unit | No | |
unit03 | unit | No | |
unit04 | unit | No | |
unit05 | unit | No | |
unit06 | unit | No | |
unit07 | unit | No | |
unit08 | unit | No | |
unit09 | unit | No | |
unit10 | unit | No | |
unit11 | unit | No | |
unit12 | unit | No | |
unit13 | unit | No | |
unit14 | unit | No | |
unit15 | unit | No | |
unit16 | unit | No | |
unit17 | unit | No | |
unit18 | unit | No | |
unit19 | unit | No | |
unit20 | unit | No | |
unit21 | unit | No | |
unit22 | unit | No | |
unit23 | unit | No | |
unit24 | unit | No | |
unit25 | unit | No | |
unit26 | unit | No | |
unit27 | unit | No | |
unit28 | unit | No | |
unit29 | unit | No | |
unit30 | unit | No | |
unit31 | unit | No | |
unit32 | unit | No | |
unit33 | unit | No | |
unit34 | unit | No | |
unit35 | unit | No | |
unit36 | unit | No | |
unit37 | unit | No | |
unit38 | unit | No | |
unit39 | unit | No | |
unit40 | unit | No | |
unit41 | unit | No | |
unit42 | unit | No | |
unit43 | unit | No | |
unit44 | unit | No | |
unit45 | unit | No | |
unit46 | unit | No | |
unit47 | unit | No | |
unit48 | unit | No | |
unit49 | unit | No | |
unit50 | unit | No | |
unit51 | unit | No | |
unit52 | unit | No | |
unit53 | unit | No | |
unit54 | unit | No | |
unit55 | unit | No | |
unit56 | unit | No | |
unit57 | unit | No | |
unit58 | unit | No | |
unit59 | unit | No | |
unit60 | unit | No | |
unit61 | unit | No | |
unit62 | unit | No | |
unit63 | unit | No | |
unit64 | unit | No | |
unit65 | unit | No | |
unit66 | unit | No | |
unit67 | unit | No | |
unit68 | unit | No | |
unit69 | unit | No | |
unit70 | unit | No | |
unit71 | unit | No | |
unit72 | unit | No | |
unit73 | unit | No | |
unit74 | unit | No | |
unit75 | unit | No | |
unit76 | unit | No | |
unit77 | unit | No | |
unit78 | unit | No | |
unit79 | unit | No | |
unit80 | unit | No | |
unit81 | unit | No | |
UnitDamageRegistered | boolean | Yes | |
UnitIndexerEnabled | boolean | No | |
UnitIndexEvent | real | No | |
UnitIndexLock | integer | Yes | |
UnitMoving | boolean | Yes | |
units01 | unit | Yes | |
units02 | unit | Yes | |
units03 | unit | Yes | |
units04 | unit | Yes | |
units05 | unit | Yes | |
units06 | unit | Yes | |
units07 | unit | Yes | |
units08 | unit | Yes | |
units09 | unit | Yes | |
units10 | unit | Yes | |
units11 | unit | Yes | |
units12 | unit | Yes | |
units13 | unit | Yes | |
units14 | unit | Yes | |
units15 | unit | Yes | |
units16 | unit | Yes | |
units17 | unit | Yes | |
units18 | unit | Yes | |
units19 | unit | Yes | |
units20 | unit | Yes | |
units21 | unit | Yes | |
units22 | unit | Yes | |
units23 | unit | Yes | |
units24 | unit | Yes | |
units25 | unit | Yes | |
units26 | unit | Yes | |
units27 | unit | Yes | |
units28 | unit | Yes | |
units29 | unit | Yes | |
units30 | unit | Yes | |
units31 | unit | Yes | |
units32 | unit | Yes | |
units33 | unit | Yes | |
units34 | unit | Yes | |
units35 | unit | Yes | |
units36 | unit | Yes | |
Warbringer_Rage_Int | integer | Yes | |
weathereffects01 | weathereffect | Yes |
//TESH.scrollpos=0
//TESH.alwaysfold=0
function InitGlobals2 takes nothing returns nothing
local integer i=0
set udg_integer01=0
set udg_integer02=0
set udg_integer03=0
set udg_integer04=0
set udg_integer05=0
set udg_dialog01=DialogCreate()
set udg_dialog02=DialogCreate()
set udg_timer01=CreateTimer()
set udg_integer06=0
set udg_integer07=0
set udg_real01=0
set udg_dialog03=DialogCreate()
set udg_timer02=CreateTimer()
set udg_integer08=0
set udg_integer09=0
set udg_integer10=0
set i=0
loop
exitwhen(i>1)
set udg_integers01[i]=0
set i=i+1
endloop
set udg_dialog04=DialogCreate()
set i=0
loop
exitwhen(i>1)
set udg_booleans01[i]=false
set i=i+1
endloop
set udg_timer03=CreateTimer()
set udg_integer11=0
set i=0
loop
exitwhen(i>1)
set udg_reals01[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals02[i]=0
set i=i+1
endloop
set udg_group01=CreateGroup()
set udg_integer12=0
set udg_boolean01=false
set udg_integer13=0
set i=0
loop
exitwhen(i>1)
set udg_integers02[i]=0
set i=i+1
endloop
set udg_integer14=0
set i=0
loop
exitwhen(i>1)
set udg_reals03[i]=0
set i=i+1
endloop
set udg_real02=0
set udg_real03=0
set udg_real04=0
set i=0
loop
exitwhen(i>1)
set udg_reals04[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals05[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals06[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals07[i]=0
set i=i+1
endloop
set udg_real05=0
set udg_group02=CreateGroup()
set udg_group03=CreateGroup()
set udg_real06=0
set i=0
loop
exitwhen(i>1)
set udg_reals08[i]=0
set i=i+1
endloop
set udg_group04=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_reals09[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals10[i]=0
set i=i+1
endloop
set udg_integer15=0
set i=0
loop
exitwhen(i>1)
set udg_groups01[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals11[i]=0
set i=i+1
endloop
set udg_group05=CreateGroup()
set udg_group06=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_groups02[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals12[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals13[i]=0
set i=i+1
endloop
set udg_group07=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_booleans02[i]=false
set i=i+1
endloop
set udg_real07=0
set udg_real08=0
set i=0
loop
exitwhen(i>1)
set udg_reals14[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_groups03[i]=CreateGroup()
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals15[i]=0
set i=i+1
endloop
set udg_group08=CreateGroup()
set udg_group09=CreateGroup()
set udg_real09=0
set udg_integer16=0
set udg_integer17=0
set i=0
loop
exitwhen(i>1)
set udg_reals16[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals17[i]=0
set i=i+1
endloop
set udg_integer18=0
set udg_integer19=0
set udg_group10=CreateGroup()
set udg_integer20=0
set udg_group11=CreateGroup()
set udg_real10=0
set i=0
loop
exitwhen(i>1)
set udg_reals18[i]=0
set i=i+1
endloop
set udg_group12=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_reals19[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals20[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_groups04[i]=CreateGroup()
set i=i+1
endloop
set udg_timer04=CreateTimer()
set udg_real11=0
set udg_real12=0
set udg_timer05=CreateTimer()
set udg_real13=0
set udg_real14=0
set udg_group13=CreateGroup()
set udg_group14=CreateGroup()
set udg_boolean02=false
set udg_group15=CreateGroup()
set udg_group16=CreateGroup()
set udg_group17=CreateGroup()
set udg_group18=CreateGroup()
set udg_group19=CreateGroup()
set udg_group20=CreateGroup()
set i=0
loop
exitwhen(i>1)
set udg_reals21[i]=0
set i=i+1
endloop
set udg_integer21=0
set udg_real15=0
set i=0
loop
exitwhen(i>1)
set udg_reals22[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals23[i]=0
set i=i+1
endloop
set udg_group21=CreateGroup()
set udg_real16=0
set udg_real17=0
set udg_real18=0
set udg_timer06=CreateTimer()
set udg_group22=CreateGroup()
set udg_real19=0
set udg_group23=CreateGroup()
set udg_boolean03=false
set udg_force01=CreateForce()
set i=0
loop
exitwhen(i>1)
set udg_reals24[i]=0
set i=i+1
endloop
set udg_real20=0
set i=0
loop
exitwhen(i>1)
set udg_integers03[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_reals25[i]=0
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_integers04[i]=0
set i=i+1
endloop
set udg_group24=CreateGroup()
set udg_boolean04=false
set udg_boolean05=false
set udg_boolean06=false
set i=0
loop
exitwhen(i>1)
set udg_integers05[i]=0
set i=i+1
endloop
set udg_group25=CreateGroup()
set udg_real21=0
set i=0
loop
exitwhen(i>1)
set udg_reals26[i]=0
set i=i+1
endloop
set udg_real22=0
set udg_group26=CreateGroup()
set udg_boolean07=false
set udg_boolean08=false
set udg_boolean09=false
set i=0
loop
exitwhen(i>1)
set udg_integers06[i]=0
set i=i+1
endloop
set udg_boolean10=false
set i=0
loop
exitwhen(i>1)
set udg_booleans03[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_booleans04[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>1)
set udg_booleans05[i]=false
set i=i+1
endloop
set udg_dialog05=DialogCreate()
set udg_group27=CreateGroup()
set udg_group28=CreateGroup()
set udg_group29=CreateGroup()
endfunction
function Nn000051_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I00E',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function Unit000052_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player(PLAYER_NEUTRAL_AGGRESSIVE))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('I00D',100)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function CreateAllDestructables takes nothing returns nothing
local destructable d
local trigger t
local real life
set udg_destructable01=CreateDestructable('ITx1',-5952.0,6208.0,270.000,0.900,0)
endfunction
function CreateAllItems takes nothing returns nothing
local integer itemID
call CreateItem('I007',-4126.9,223.5)
call CreateItem('I008',4157.3,220.5)
endfunction
function CreateBuildingsForPlayer0 takes nothing returns nothing
local player p=Player(0)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'hgtw',-384.0,-8640.0,270.000)
set u=CreateUnit(p,'halt',-6496.0,12640.0,270.000)
endfunction
function CreateBuildingsForPlayer1 takes nothing returns nothing
local player p=Player(1)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'halt',-6176.0,12640.0,270.000)
set u=CreateUnit(p,'hgtw',-384.0,-8384.0,270.000)
endfunction
function CreateBuildingsForPlayer2 takes nothing returns nothing
local player p=Player(2)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'halt',-5856.0,12640.0,270.000)
set u=CreateUnit(p,'hgtw',-192.0,-8064.0,270.000)
endfunction
function CreateBuildingsForPlayer3 takes nothing returns nothing
local player p=Player(3)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'halt',-5536.0,12640.0,270.000)
set u=CreateUnit(p,'hgtw',192.0,-8064.0,270.000)
endfunction
function CreateBuildingsForPlayer4 takes nothing returns nothing
local player p=Player(4)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'halt',-6496.0,12128.0,270.000)
set u=CreateUnit(p,'hgtw',384.0,-8384.0,270.000)
endfunction
function CreateBuildingsForPlayer5 takes nothing returns nothing
local player p=Player(5)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'halt',-6176.0,12128.0,270.000)
set u=CreateUnit(p,'hgtw',384.0,-8640.0,270.000)
endfunction
function CreateBuildingsForPlayer6 takes nothing returns nothing
local player p=Player(6)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'halt',-5856.0,12128.0,270.000)
set u=CreateUnit(p,'hgtw',192.0,-8832.0,270.000)
endfunction
function CreateBuildingsForPlayer7 takes nothing returns nothing
local player p=Player(7)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'halt',-5536.0,12128.0,270.000)
set u=CreateUnit(p,'hgtw',-192.0,-8832.0,270.000)
endfunction
function CreateBuildingsForPlayer10 takes nothing returns nothing
local player p=Player(10)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit80=CreateUnit(p,'hcas',0.0,-8448.0,270.000)
set u=CreateUnit(p,'ngme',-2432.0,-8448.0,270.000)
set u=CreateUnit(p,'ngme',0.0,-5760.0,270.000)
set u=CreateUnit(p,'ngme',2432.0,-8448.0,270.000)
set u=CreateUnit(p,'ngme',0.0,-11136.0,270.000)
set udg_unit78=CreateUnit(p,'hgra',896.0,-7488.0,270.000)
set u=CreateUnit(p,'ngad',2176.0,-9408.0,270.000)
set u=CreateUnit(p,'ngad',960.0,-6016.0,270.000)
set u=CreateUnit(p,'ngad',-2112.0,-7360.0,270.000)
set u=CreateUnit(p,'ngad',-960.0,-10624.0,270.000)
endfunction
function CreateUnitsForPlayer10 takes nothing returns nothing
local player p=Player(10)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'O00B',-6522.5,-13562.4,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O018',-6533.4,-13434.4,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00J',-6276.6,-13315.6,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O008',-6532.9,-13183.9,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O001',-6278.3,-13051.3,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O010',-6530.4,-12923.0,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00W',-6284.0,-12817.2,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00Y',-6531.3,-12675.0,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00D',-6272.3,-12551.2,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O005',-6521.9,-12422.8,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00R',-6254.9,-12289.1,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O01G',-6531.3,-12154.4,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00M',-6402.3,-12165.4,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00I',-6275.0,-12158.4,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O002',-6151.9,-12158.4,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00T',-6012.5,-12163.1,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00H',-5894.0,-12167.9,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O01A',-5763.5,-12151.2,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O016',-5633.8,-12160.8,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00O',-5504.4,-12156.6,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00N',-5378.8,-12154.2,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00L',-5380.6,-12287.0,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O003',-5640.3,-12412.6,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00U',-5377.3,-12540.6,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00Z',-5631.0,-12672.6,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00G',-5377.4,-12799.0,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00E',-5621.6,-12919.1,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00P',-5374.2,-13057.4,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00S',-5619.2,-13190.8,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O009',-5376.5,-13305.0,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00V',-5628.4,-13426.9,180.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O01D',-5373.6,-13563.5,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O019',-5506.8,-13568.6,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O006',-5635.0,-13568.6,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00A',-5758.8,-13570.4,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00K',-5877.1,-13563.4,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00C',-6017.6,-13563.3,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O007',-6147.5,-13561.5,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O004',-6273.7,-13570.4,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O017',-6400.6,-13565.1,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00F',-6143.5,-12799.7,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00X',-5761.3,-12804.7,270.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O00Q',-5754.8,-13053.6,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'O01E',-6143.8,-13049.6,90.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
endfunction
function CreateBuildingsForPlayer11 takes nothing returns nothing
local player p=Player(11)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'owtw',-896.0,-4032.0,270.000)
set u=CreateUnit(p,'owtw',-384.0,-4032.0,270.000)
set u=CreateUnit(p,'owtw',-640.0,-4224.0,270.000)
set u=CreateUnit(p,'owtw',384.0,-4032.0,270.000)
set u=CreateUnit(p,'owtw',896.0,-4032.0,270.000)
set u=CreateUnit(p,'owtw',640.0,-4224.0,270.000)
set u=CreateUnit(p,'owtw',4160.0,-7552.0,270.000)
set u=CreateUnit(p,'owtw',4160.0,-8128.0,270.000)
set u=CreateUnit(p,'owtw',3904.0,-7872.0,270.000)
set u=CreateUnit(p,'owtw',4160.0,-8832.0,270.000)
set u=CreateUnit(p,'owtw',4160.0,-9408.0,270.000)
set u=CreateUnit(p,'owtw',3904.0,-9152.0,270.000)
set u=CreateUnit(p,'owtw',320.0,-12672.0,270.000)
set u=CreateUnit(p,'owtw',960.0,-12672.0,270.000)
set u=CreateUnit(p,'owtw',640.0,-12480.0,270.000)
set u=CreateUnit(p,'owtw',-384.0,-12672.0,270.000)
set u=CreateUnit(p,'owtw',-960.0,-12672.0,270.000)
set u=CreateUnit(p,'owtw',-704.0,-12480.0,270.000)
set u=CreateUnit(p,'owtw',-4160.0,-9408.0,270.000)
set u=CreateUnit(p,'owtw',-4160.0,-8768.0,270.000)
set u=CreateUnit(p,'owtw',-3904.0,-9088.0,270.000)
set u=CreateUnit(p,'owtw',-4160.0,-7424.0,270.000)
set u=CreateUnit(p,'owtw',-4160.0,-8128.0,270.000)
set u=CreateUnit(p,'owtw',-3904.0,-7808.0,270.000)
set udg_unit81=CreateUnit(p,'obar',-6080.0,8640.0,270.000)
set udg_unit67=CreateUnit(p,'unp2',-640.0,-3648.0,270.000)
set udg_unit62=CreateUnit(p,'unp2',640.0,-3584.0,270.000)
set udg_unit61=CreateUnit(p,'unp2',4480.0,-7808.0,270.000)
set udg_unit60=CreateUnit(p,'unp2',4480.0,-9088.0,270.000)
set udg_unit58=CreateUnit(p,'unp2',640.0,-12992.0,270.000)
set udg_unit63=CreateUnit(p,'unp2',-704.0,-12992.0,270.000)
set udg_unit59=CreateUnit(p,'unp2',-4480.0,-9088.0,270.000)
set udg_unit57=CreateUnit(p,'unp2',-4480.0,-7744.0,270.000)
set udg_unit72=CreateUnit(p,'h00I',-3136.0,-5120.0,270.000)
set udg_unit66=CreateUnit(p,'h00I',3200.0,-11776.0,270.000)
set udg_unit71=CreateUnit(p,'h00I',3072.0,-5120.0,270.000)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit71,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit71,EVENT_UNIT_CHANGE_OWNER)
call TriggerAddAction(t,function Unit000052_DropItems)
set udg_unit70=CreateUnit(p,'h00I',-3136.0,-11776.0,270.000)
set t=CreateTrigger()
call TriggerRegisterUnitEvent(t,udg_unit70,EVENT_UNIT_DEATH)
call TriggerRegisterUnitEvent(t,udg_unit70,EVENT_UNIT_CHANGE_OWNER)
set udg_unit75=CreateUnit(p,'nitb',-5952.0,5952.0,270.000)
set udg_unit74=CreateUnit(p,'nitb',-5952.0,-4544.0,270.000)
set udg_unit56=CreateUnit(p,'nitb',-5952.0,2496.0,270.000)
set udg_unit68=CreateUnit(p,'hbar',-5440.0,8640.0,270.000)
set udg_unit77=CreateUnit(p,'hbla',-5760.0,8640.0,270.000)
set udg_unit76=CreateUnit(p,'h01T',-5440.0,8192.0,270.000)
set udg_unit64=CreateUnit(p,'hlum',-6432.0,8608.0,270.000)
endfunction
function CreateUnitsForPlayer11 takes nothing returns nothing
local player p=Player(11)
local unit u
local integer unitID
local trigger t
local real life
set udg_unit79=CreateUnit(p,'H005',-93.3,-1273.6,0.000)
call SetHeroLevel(udg_unit79,10000,false)
call SetHeroStr(udg_unit79,99999,true)
call SetHeroAgi(udg_unit79,99999,true)
call SetHeroInt(udg_unit79,99999,true)
call SelectHeroSkill(udg_unit79,'AHtb')
call SelectHeroSkill(udg_unit79,'AHtb')
call SelectHeroSkill(udg_unit79,'AHtb')
call SelectHeroSkill(udg_unit79,'AHtc')
call SelectHeroSkill(udg_unit79,'AHtc')
call SelectHeroSkill(udg_unit79,'AHtc')
call UnitAddItemToSlotById(udg_unit79,'I00E',0)
call UnitAddItemToSlotById(udg_unit79,'I00D',1)
call UnitAddItemToSlotById(udg_unit79,'I00C',2)
set udg_unit69=CreateUnit(p,'H005',22.3,-1234.6,270.000)
call SetHeroLevel(udg_unit69,10000,false)
call SetHeroStr(udg_unit69,99999,true)
call SetHeroAgi(udg_unit69,99999,true)
call SetHeroInt(udg_unit69,99999,true)
call SelectHeroSkill(udg_unit69,'AHtb')
call SelectHeroSkill(udg_unit69,'AHtb')
call SelectHeroSkill(udg_unit69,'AHtb')
call SelectHeroSkill(udg_unit69,'AHtc')
call SelectHeroSkill(udg_unit69,'AHtc')
call SelectHeroSkill(udg_unit69,'AHtc')
call UnitAddItemToSlotById(udg_unit69,'I00E',0)
call UnitAddItemToSlotById(udg_unit69,'I00D',1)
call UnitAddItemToSlotById(udg_unit69,'I00C',2)
set u=CreateUnit(p,'uktn',-6465.4,6317.5,305.611)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-5430.0,6303.4,200.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-6462.2,6523.7,292.147)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-6467.6,6756.8,284.702)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-6458.1,7029.9,281.702)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-6473.8,7303.4,279.981)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-6469.8,7553.6,278.383)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-5418.3,7598.9,200.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-5437.1,7281.3,200.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-5436.6,7030.8,200.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-5432.5,6785.9,200.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'uktn',-5427.9,6552.7,200.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'h009',-505.1,-9209.5,56.770)
set u=CreateUnit(p,'nzom',-5922.6,8169.2,304.672)
set u=CreateUnit(p,'h009',-638.2,-9086.3,45.381)
set u=CreateUnit(p,'h009',-768.3,-8963.4,34.247)
set u=CreateUnit(p,'h009',-880.6,-8828.0,23.728)
set u=CreateUnit(p,'h009',-897.1,-8703.4,16.292)
set u=CreateUnit(p,'h009',-895.5,-8575.9,8.532)
set u=CreateUnit(p,'h009',-893.1,-8455.9,0.902)
set u=CreateUnit(p,'h009',-889.1,-8327.1,352.629)
set udg_unit73=CreateUnit(p,'H005',148.0,-1257.5,180.000)
call SetHeroLevel(udg_unit73,10000,false)
call SetHeroStr(udg_unit73,99999,true)
call SetHeroAgi(udg_unit73,99999,true)
call SetHeroInt(udg_unit73,99999,true)
call SelectHeroSkill(udg_unit73,'AHtb')
call SelectHeroSkill(udg_unit73,'AHtb')
call SelectHeroSkill(udg_unit73,'AHtb')
call SelectHeroSkill(udg_unit73,'AHtc')
call SelectHeroSkill(udg_unit73,'AHtc')
call SelectHeroSkill(udg_unit73,'AHtc')
call UnitAddItemToSlotById(udg_unit73,'I00E',0)
call UnitAddItemToSlotById(udg_unit73,'I00D',1)
call UnitAddItemToSlotById(udg_unit73,'I00C',2)
set u=CreateUnit(p,'h009',-507.6,-7687.9,303.836)
set u=CreateUnit(p,'h009',-635.2,-7814.3,315.244)
set u=CreateUnit(p,'h009',-764.9,-7937.5,326.521)
set u=CreateUnit(p,'h009',-888.1,-8061.6,336.765)
set u=CreateUnit(p,'h009',-888.8,-8190.1,344.148)
set u=CreateUnit(p,'h009',-376.7,-7689.4,296.454)
set u=CreateUnit(p,'h009',-258.4,-7684.2,288.682)
set u=CreateUnit(p,'h009',-128.8,-7685.6,279.500)
set u=CreateUnit(p,'h009',6.8,-7686.1,269.317)
set u=CreateUnit(p,'h009',134.8,-7674.0,259.883)
set u=CreateUnit(p,'h009',264.4,-7679.4,250.727)
set u=CreateUnit(p,'h009',906.2,-8196.5,195.114)
set u=CreateUnit(p,'h009',896.5,-8067.6,202.609)
set u=CreateUnit(p,'h009',770.7,-7939.7,213.009)
set u=CreateUnit(p,'h009',642.1,-7811.5,224.372)
set u=CreateUnit(p,'h009',387.8,-7684.5,242.755)
set u=CreateUnit(p,'h009',902.6,-8317.3,187.842)
set u=CreateUnit(p,'h009',895.2,-8439.6,180.142)
set u=CreateUnit(p,'h009',892.9,-8577.2,171.405)
set u=CreateUnit(p,'h009',888.7,-8834.6,156.213)
set u=CreateUnit(p,'h009',890.3,-8709.8,163.289)
set u=CreateUnit(p,'h009',757.0,-8957.5,145.816)
set u=CreateUnit(p,'h009',633.5,-9082.8,134.769)
set u=CreateUnit(p,'h009',513.7,-9208.2,123.952)
set u=CreateUnit(p,'h009',386.8,-9220.6,116.543)
set u=CreateUnit(p,'h009',256.1,-9225.2,108.251)
set u=CreateUnit(p,'h009',132.7,-9225.6,99.769)
set u=CreateUnit(p,'h009',12.4,-9215.1,91.083)
set u=CreateUnit(p,'h009',-125.9,-9218.1,80.949)
set u=CreateUnit(p,'h009',-241.6,-9215.7,72.811)
set u=CreateUnit(p,'h009',-374.9,-9217.8,64.345)
set u=CreateUnit(p,'h009',518.8,-7686.6,235.400)
set u=CreateUnit(p,'h02C',-635.0,-7955.0,322.423)
set u=CreateUnit(p,'h02C',-502.7,-7817.8,308.724)
set u=CreateUnit(p,'h02C',-375.3,-7817.3,300.850)
set u=CreateUnit(p,'h02C',-254.4,-7820.5,292.085)
set u=CreateUnit(p,'h02C',-118.0,-7811.9,280.409)
set u=CreateUnit(p,'h02C',5.8,-7816.3,269.264)
set u=CreateUnit(p,'h02C',130.4,-7820.7,257.948)
set u=CreateUnit(p,'h02C',251.0,-7815.9,247.977)
set u=CreateUnit(p,'h02C',381.6,-7823.6,238.164)
set u=CreateUnit(p,'h02C',511.6,-7809.4,230.911)
set u=CreateUnit(p,'h02C',640.3,-7948.7,217.509)
set u=CreateUnit(p,'h02C',756.4,-8070.0,206.110)
set u=CreateUnit(p,'h02C',769.6,-8196.1,197.661)
set u=CreateUnit(p,'h02C',769.7,-8319.2,189.029)
set u=CreateUnit(p,'h02C',762.3,-8444.3,179.819)
set u=CreateUnit(p,'h02C',768.3,-8586.4,169.377)
set u=CreateUnit(p,'h02C',762.5,-8705.1,161.006)
set u=CreateUnit(p,'h02C',768.4,-8833.8,153.044)
set u=CreateUnit(p,'h02C',638.1,-8961.5,140.940)
set u=CreateUnit(p,'h02C',513.1,-9081.9,128.839)
set u=CreateUnit(p,'h02C',389.7,-9085.5,121.336)
set u=CreateUnit(p,'h02C',263.1,-9083.9,112.451)
set u=CreateUnit(p,'h02C',137.2,-9099.5,101.971)
set u=CreateUnit(p,'h02C',4.8,-9085.3,90.624)
set u=CreateUnit(p,'h02C',-123.2,-9097.3,79.545)
set u=CreateUnit(p,'h02C',-250.4,-9090.9,69.072)
set u=CreateUnit(p,'h02C',-378.6,-9081.5,59.526)
set u=CreateUnit(p,'h02C',-511.4,-9081.7,51.485)
set u=CreateUnit(p,'h02C',-629.2,-8974.6,40.353)
set u=CreateUnit(p,'h02C',-755.6,-8826.3,27.035)
set u=CreateUnit(p,'h02C',-763.3,-8701.0,18.802)
set u=CreateUnit(p,'h02C',-760.6,-8576.8,10.090)
set u=CreateUnit(p,'h02C',-766.5,-8450.0,0.611)
set u=CreateUnit(p,'h02C',-760.5,-8324.6,351.206)
set u=CreateUnit(p,'h02C',-761.5,-8177.7,340.814)
set u=CreateUnit(p,'h02C',-763.9,-8068.1,333.859)
set u=CreateUnit(p,'h02D',-497.2,-9361.3,61.701)
set u=CreateUnit(p,'h02D',-376.5,-9352.9,67.664)
set u=CreateUnit(p,'h02D',-255.3,-9352.7,74.470)
set u=CreateUnit(p,'h02D',-132.1,-9349.9,81.862)
set u=CreateUnit(p,'h02D',5.8,-9354.3,90.504)
set u=CreateUnit(p,'h02D',128.3,-9354.0,98.145)
set u=CreateUnit(p,'h02D',253.2,-9348.3,105.738)
set u=CreateUnit(p,'h02D',379.6,-9349.7,112.813)
set u=CreateUnit(p,'h02D',508.4,-9346.6,119.442)
set u=CreateUnit(p,'h02D',1024.4,-8834.4,159.075)
set u=CreateUnit(p,'h02D',1020.1,-8698.9,165.887)
set u=CreateUnit(p,'h02D',1026.2,-8579.6,172.371)
set u=CreateUnit(p,'h02D',1019.2,-8445.0,179.822)
set u=CreateUnit(p,'h02D',1023.8,-8319.6,186.796)
set u=CreateUnit(p,'h02D',1025.9,-8197.9,193.347)
set u=CreateUnit(p,'h02D',1023.4,-8070.1,199.922)
set u=CreateUnit(p,'h02D',513.2,-7561.5,239.650)
set u=CreateUnit(p,'h02D',388.0,-7562.7,246.066)
set u=CreateUnit(p,'h02D',253.3,-7551.7,253.984)
set u=CreateUnit(p,'h02D',131.5,-7550.8,261.464)
set u=CreateUnit(p,'h02D',0.4,-7557.2,269.830)
set u=CreateUnit(p,'h02D',-122.0,-7564.9,277.775)
set u=CreateUnit(p,'h02D',-249.0,-7558.2,285.604)
set u=CreateUnit(p,'h02D',-379.9,-7559.6,293.175)
set u=CreateUnit(p,'h02D',-505.0,-7559.0,299.660)
set u=CreateUnit(p,'h02D',-1010.9,-8065.4,339.533)
set u=CreateUnit(p,'h02D',-1019.3,-8189.8,346.079)
set u=CreateUnit(p,'h02D',-1016.2,-8323.0,353.311)
set u=CreateUnit(p,'h02D',-1014.7,-8448.6,0.382)
set u=CreateUnit(p,'h02D',-1021.6,-8578.1,7.613)
set u=CreateUnit(p,'h02D',-1014.7,-8704.3,14.532)
set u=CreateUnit(p,'h02D',-1011.6,-8832.5,21.155)
set u=CreateUnit(p,'u001',-1152.2,-8844.9,0.000)
set u=CreateUnit(p,'u001',-1149.4,-9096.0,0.000)
set u=CreateUnit(p,'u001',-1281.5,-8834.7,0.000)
set u=CreateUnit(p,'u001',-1280.5,-9087.9,0.000)
set u=CreateUnit(p,'u001',-1409.4,-9088.0,0.000)
set u=CreateUnit(p,'u001',-1537.3,-8831.2,0.000)
set u=CreateUnit(p,'u001',-1408.5,-8831.9,0.000)
set u=CreateUnit(p,'u001',-1662.9,-8835.1,0.000)
set u=CreateUnit(p,'u001',-1788.5,-8836.7,0.000)
set u=CreateUnit(p,'u001',-1920.8,-8829.3,0.000)
set u=CreateUnit(p,'u001',-2047.7,-8833.0,0.000)
set u=CreateUnit(p,'u001',-1543.4,-9090.5,0.000)
set u=CreateUnit(p,'u001',-1664.6,-9090.2,0.000)
set u=CreateUnit(p,'u001',-1788.2,-9085.5,0.000)
set u=CreateUnit(p,'u001',-1923.9,-9080.6,0.000)
set u=CreateUnit(p,'u001',-2051.0,-9086.5,0.000)
set u=CreateUnit(p,'u001',-1170.6,-7821.2,0.000)
set u=CreateUnit(p,'u001',-1167.7,-8072.2,0.000)
set u=CreateUnit(p,'u001',-1299.9,-7810.9,0.000)
set u=CreateUnit(p,'u001',-1298.8,-8064.2,0.000)
set u=CreateUnit(p,'u001',-1427.7,-8064.2,0.000)
set u=CreateUnit(p,'u001',-1426.8,-7808.2,0.000)
set u=CreateUnit(p,'u001',-1555.7,-7807.5,0.000)
set u=CreateUnit(p,'u001',-1681.3,-7811.3,0.000)
set u=CreateUnit(p,'u001',-1806.9,-7812.9,0.000)
set u=CreateUnit(p,'u001',-1939.2,-7805.5,0.000)
set u=CreateUnit(p,'u001',-2066.0,-7809.2,0.000)
set u=CreateUnit(p,'u001',-1561.8,-8066.7,0.000)
set u=CreateUnit(p,'u001',-1683.0,-8066.4,0.000)
set u=CreateUnit(p,'u001',-1806.6,-8061.7,0.000)
set u=CreateUnit(p,'u001',-1942.2,-8056.8,0.000)
set u=CreateUnit(p,'u001',-2069.3,-8062.8,0.000)
set u=CreateUnit(p,'u002',-640.5,-7038.4,270.000)
set u=CreateUnit(p,'u002',-640.9,-6913.2,270.000)
set u=CreateUnit(p,'u002',-641.5,-6779.0,270.000)
set u=CreateUnit(p,'u002',-642.9,-6657.5,270.000)
set u=CreateUnit(p,'u002',-640.9,-6525.4,270.000)
set u=CreateUnit(p,'u002',-641.3,-6396.1,270.000)
set u=CreateUnit(p,'u002',-640.9,-6270.7,270.000)
set u=CreateUnit(p,'u002',-640.1,-6140.5,270.000)
set u=CreateUnit(p,'u002',-390.3,-7030.8,270.000)
set u=CreateUnit(p,'u002',-390.7,-6905.6,270.000)
set u=CreateUnit(p,'u002',-391.3,-6771.4,270.000)
set u=CreateUnit(p,'u002',-392.8,-6650.0,270.000)
set u=CreateUnit(p,'u002',-390.7,-6517.9,270.000)
set u=CreateUnit(p,'u002',-391.1,-6388.5,270.000)
set u=CreateUnit(p,'u002',-390.7,-6263.2,270.000)
set u=CreateUnit(p,'u002',-389.9,-6133.0,270.000)
set u=CreateUnit(p,'u002',389.6,-7026.9,270.000)
set u=CreateUnit(p,'u002',389.2,-6901.7,270.000)
set u=CreateUnit(p,'u002',388.6,-6767.5,270.000)
set u=CreateUnit(p,'u002',387.1,-6646.1,270.000)
set u=CreateUnit(p,'u002',389.1,-6514.0,270.000)
set u=CreateUnit(p,'u002',388.8,-6384.6,270.000)
set u=CreateUnit(p,'u002',389.2,-6259.3,270.000)
set u=CreateUnit(p,'u002',389.9,-6129.1,270.000)
set u=CreateUnit(p,'u002',639.7,-7019.4,270.000)
set u=CreateUnit(p,'u002',639.3,-6894.2,270.000)
set u=CreateUnit(p,'u002',638.7,-6760.0,270.000)
set u=CreateUnit(p,'u002',637.3,-6638.5,270.000)
set u=CreateUnit(p,'u002',639.3,-6506.4,270.000)
set u=CreateUnit(p,'u002',638.9,-6377.1,270.000)
set u=CreateUnit(p,'u002',639.3,-6251.7,270.000)
set u=CreateUnit(p,'u002',640.1,-6121.5,270.000)
set u=CreateUnit(p,'u003',1152.5,-7936.1,180.000)
set u=CreateUnit(p,'u003',1277.5,-7935.4,180.000)
set u=CreateUnit(p,'u003',1406.2,-7942.6,180.000)
set u=CreateUnit(p,'u003',1532.9,-7937.1,180.000)
set u=CreateUnit(p,'u003',1658.5,-7936.1,180.000)
set u=CreateUnit(p,'u003',1786.8,-7936.5,180.000)
set u=CreateUnit(p,'u003',1917.9,-7936.9,180.000)
set u=CreateUnit(p,'u003',1917.6,-8188.8,180.000)
set u=CreateUnit(p,'u003',1790.4,-8191.3,180.000)
set u=CreateUnit(p,'u003',1662.3,-8192.3,180.000)
set u=CreateUnit(p,'u003',1535.5,-8193.2,180.000)
set u=CreateUnit(p,'u003',1407.5,-8186.4,180.000)
set u=CreateUnit(p,'u003',1277.7,-8190.4,180.000)
set u=CreateUnit(p,'u003',1150.1,-8191.2,180.000)
set u=CreateUnit(p,'u003',1165.8,-8702.5,180.000)
set u=CreateUnit(p,'u003',1290.8,-8701.9,180.000)
set u=CreateUnit(p,'u003',1419.4,-8709.0,180.000)
set u=CreateUnit(p,'u003',1546.2,-8703.6,180.000)
set u=CreateUnit(p,'u003',1671.8,-8702.5,180.000)
set u=CreateUnit(p,'u003',1800.1,-8702.9,180.000)
set u=CreateUnit(p,'u003',1931.2,-8703.4,180.000)
set u=CreateUnit(p,'u003',1930.9,-8955.2,180.000)
set u=CreateUnit(p,'u003',1803.7,-8957.8,180.000)
set u=CreateUnit(p,'u003',1675.6,-8958.7,180.000)
set u=CreateUnit(p,'u003',1548.8,-8959.7,180.000)
set u=CreateUnit(p,'u003',1420.8,-8952.8,180.000)
set u=CreateUnit(p,'u003',1291.0,-8956.8,180.000)
set u=CreateUnit(p,'u003',1163.4,-8957.7,180.000)
set u=CreateUnit(p,'u004',-516.0,-9858.0,90.000)
set u=CreateUnit(p,'u004',-512.5,-9983.7,90.000)
set u=CreateUnit(p,'u004',-515.0,-10108.6,90.000)
set u=CreateUnit(p,'u004',-514.3,-10240.3,90.000)
set u=CreateUnit(p,'u004',-514.7,-10362.7,90.000)
set u=CreateUnit(p,'u004',-513.7,-10495.7,90.000)
set u=CreateUnit(p,'u004',-515.3,-10617.9,90.000)
set u=CreateUnit(p,'u004',-513.6,-10745.9,90.000)
set u=CreateUnit(p,'u004',-264.6,-9862.4,90.000)
set u=CreateUnit(p,'u004',-261.1,-9988.2,90.000)
set u=CreateUnit(p,'u004',-263.6,-10113.1,90.000)
set u=CreateUnit(p,'u004',-262.9,-10244.8,90.000)
set u=CreateUnit(p,'u004',-263.3,-10367.2,90.000)
set u=CreateUnit(p,'u004',-262.2,-10500.2,90.000)
set u=CreateUnit(p,'u004',-263.9,-10622.4,90.000)
set u=CreateUnit(p,'u004',-262.2,-10750.4,90.000)
set u=CreateUnit(p,'u004',283.9,-9841.1,90.000)
set u=CreateUnit(p,'u004',287.5,-9966.8,90.000)
set u=CreateUnit(p,'u004',284.9,-10091.7,90.000)
set u=CreateUnit(p,'u004',285.7,-10223.4,90.000)
set u=CreateUnit(p,'u004',285.3,-10345.8,90.000)
set u=CreateUnit(p,'u004',286.3,-10478.8,90.000)
set u=CreateUnit(p,'u004',284.7,-10601.0,90.000)
set u=CreateUnit(p,'u004',286.4,-10729.0,90.000)
set u=CreateUnit(p,'u004',535.4,-9845.5,90.000)
set u=CreateUnit(p,'u004',538.9,-9971.3,90.000)
set u=CreateUnit(p,'u004',536.3,-10096.2,90.000)
set u=CreateUnit(p,'u004',537.1,-10227.9,90.000)
set u=CreateUnit(p,'u004',536.7,-10350.3,90.000)
set u=CreateUnit(p,'u004',537.7,-10483.3,90.000)
set u=CreateUnit(p,'u004',536.1,-10605.5,90.000)
set u=CreateUnit(p,'u004',537.8,-10733.5,90.000)
set udg_unit65=CreateUnit(p,'h00B',169.9,12552.7,273.172)
set u=CreateUnit(p,'u00M',-129.6,-9856.7,90.000)
set u=CreateUnit(p,'u00M',4.8,-9860.5,90.000)
set u=CreateUnit(p,'u00M',126.4,-9853.8,90.000)
set u=CreateUnit(p,'u00M',-123.4,-9970.5,90.000)
set u=CreateUnit(p,'u00M',10.9,-9974.3,90.000)
set u=CreateUnit(p,'u00M',132.5,-9967.7,90.000)
set u=CreateUnit(p,'u00M',-128.3,-10097.2,90.000)
set u=CreateUnit(p,'u00M',6.1,-10101.0,90.000)
set u=CreateUnit(p,'u00M',127.6,-10094.3,90.000)
set u=CreateUnit(p,'u00M',-133.3,-10232.3,90.000)
set u=CreateUnit(p,'u00M',1.0,-10236.1,90.000)
set u=CreateUnit(p,'u00M',122.6,-10229.5,90.000)
set u=CreateUnit(p,'u00M',-131.7,-10357.6,90.000)
set u=CreateUnit(p,'u00M',2.7,-10361.4,90.000)
set u=CreateUnit(p,'u00M',124.3,-10354.8,90.000)
set u=CreateUnit(p,'u00M',-136.5,-10475.3,90.000)
set u=CreateUnit(p,'u00M',-2.1,-10479.1,90.000)
set u=CreateUnit(p,'u00M',119.5,-10472.4,90.000)
set u=CreateUnit(p,'u00J',-1151.0,-8321.4,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1150.0,-8449.2,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1148.8,-8577.6,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1273.4,-8325.6,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1272.4,-8453.4,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1271.2,-8581.8,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1413.6,-8328.3,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1412.6,-8456.1,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1411.4,-8584.5,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1530.9,-8333.1,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1529.9,-8460.9,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1528.7,-8589.3,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1679.3,-8342.3,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1678.3,-8470.1,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1677.1,-8598.5,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1799.6,-8341.9,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1798.6,-8469.7,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00J',-1797.4,-8598.1,0.000)
call SetUnitState(u,UNIT_STATE_MANA,0)
set u=CreateUnit(p,'u00K',-120.6,-7042.3,270.000)
set u=CreateUnit(p,'u00K',0.3,-7042.8,270.000)
set u=CreateUnit(p,'u00K',126.2,-7039.3,270.000)
set u=CreateUnit(p,'u00K',-131.2,-6908.9,270.000)
set u=CreateUnit(p,'u00K',-10.3,-6909.5,270.000)
set u=CreateUnit(p,'u00K',115.6,-6905.9,270.000)
set u=CreateUnit(p,'u00K',-125.5,-6781.5,270.000)
set u=CreateUnit(p,'u00K',-4.7,-6782.0,270.000)
set u=CreateUnit(p,'u00K',121.3,-6778.5,270.000)
set u=CreateUnit(p,'u00K',-125.2,-6655.6,270.000)
set u=CreateUnit(p,'u00K',-4.3,-6656.1,270.000)
set u=CreateUnit(p,'u00K',121.6,-6652.6,270.000)
set u=CreateUnit(p,'u00K',-126.6,-6542.0,270.000)
set u=CreateUnit(p,'u00K',-5.8,-6542.6,270.000)
set u=CreateUnit(p,'u00K',120.2,-6539.1,270.000)
set u=CreateUnit(p,'u00K',-126.1,-6401.1,270.000)
set u=CreateUnit(p,'u00K',-5.2,-6401.7,270.000)
set u=CreateUnit(p,'u00K',120.7,-6398.2,270.000)
set u=CreateUnit(p,'u00L',1148.9,-8322.5,180.000)
set u=CreateUnit(p,'u00L',1148.4,-8442.3,180.000)
set u=CreateUnit(p,'u00L',1150.9,-8574.4,180.000)
set u=CreateUnit(p,'u00L',1278.9,-8324.6,180.000)
set u=CreateUnit(p,'u00L',1278.5,-8444.5,180.000)
set u=CreateUnit(p,'u00L',1281.0,-8576.6,180.000)
set u=CreateUnit(p,'u00L',1406.6,-8325.5,180.000)
set u=CreateUnit(p,'u00L',1406.1,-8445.4,180.000)
set u=CreateUnit(p,'u00L',1408.6,-8577.5,180.000)
set u=CreateUnit(p,'u00L',1532.4,-8319.8,180.000)
set u=CreateUnit(p,'u00L',1531.9,-8439.6,180.000)
set u=CreateUnit(p,'u00L',1534.4,-8571.7,180.000)
set u=CreateUnit(p,'u00L',1660.6,-8321.4,180.000)
set u=CreateUnit(p,'u00L',1660.2,-8441.2,180.000)
set u=CreateUnit(p,'u00L',1662.7,-8573.3,180.000)
set u=CreateUnit(p,'u00L',1789.1,-8319.6,180.000)
set u=CreateUnit(p,'u00L',1788.7,-8439.4,180.000)
set u=CreateUnit(p,'u00L',1791.1,-8571.5,180.000)
endfunction
function CreateNeutralPassiveBuildings2 takes nothing returns nothing
local player p=Player(PLAYER_NEUTRAL_PASSIVE)
local unit u
local integer unitID
local trigger t
local real life
set u=CreateUnit(p,'ncp3',832.0,-9536.0,270.000)
set u=CreateUnit(p,'ncp3',-896.0,-7296.0,270.000)
set u=CreateUnit(p,'n00N',-896.0,-9600.0,270.000)
set u=CreateUnit(p,'ncp3',1664.0,192.0,270.000)
set u=CreateUnit(p,'ncp3',-2880.0,192.0,270.000)
set u=CreateUnit(p,'ncp3',-2944.0,-1664.0,270.000)
set u=CreateUnit(p,'ncp3',1664.0,-1664.0,270.000)
endfunction
function CreateRegions2 takes nothing returns nothing
local weathereffect we
set udg_rect01=Rect(-3904.0,-9440.0,-3296.0,-8672.0)
set udg_rect02=Rect(-3776.0,-8288.0,-3296.0,-7328.0)
set udg_rect03=Rect(-928.0,-4832.0,-288.0,-4384.0)
set udg_rect04=Rect(320.0,-4832.0,992.0,-4384.0)
set udg_rect05=Rect(3360.0,-8288.0,3808.0,-7424.0)
set udg_rect06=Rect(3392.0,-9440.0,3808.0,-8704.0)
set udg_rect07=Rect(320.0,-12416.0,928.0,-11936.0)
set udg_rect08=Rect(-960.0,-12384.0,-320.0,-11936.0)
set udg_rect09=Rect(-640.0,-1024.0,-480.0,-864.0)
set udg_rect10=Rect(-288.0,-608.0,-96.0,-416.0)
set udg_rect11=Rect(128.0,-640.0,288.0,-480.0)
set udg_rect12=Rect(448.0,-1024.0,608.0,-864.0)
set udg_rect13=Rect(416.0,-1536.0,544.0,-1376.0)
set udg_rect14=Rect(192.0,-1824.0,352.0,-1696.0)
set udg_rect15=Rect(-224.0,-1824.0,-64.0,-1696.0)
set udg_rect16=Rect(-544.0,-1536.0,-384.0,-1376.0)
set udg_rect17=Rect(-4128.0,-6016.0,-2272.0,-4224.0)
set udg_rect18=Rect(-4128.0,-12640.0,-2304.0,-10880.0)
set udg_rect19=Rect(2304.0,-12672.0,4096.0,-10944.0)
set udg_rect20=Rect(2176.0,-5984.0,3968.0,-4224.0)
set udg_rect21=Rect(1184.0,-7808.0,1920.0,-7072.0)
set udg_rect22=Rect(640.0,-7008.0,1376.0,-6304.0)
set udg_rect23=Rect(1216.0,-9824.0,1920.0,-9152.0)
set udg_rect24=Rect(640.0,-10464.0,1312.0,-9824.0)
set udg_rect25=Rect(-1344.0,-10464.0,-640.0,-9856.0)
set udg_rect26=Rect(-1888.0,-9824.0,-1184.0,-9088.0)
set udg_rect27=Rect(-1920.0,-7744.0,-1216.0,-7008.0)
set udg_rect28=Rect(-1376.0,-6976.0,-640.0,-6304.0)
set udg_rect29=Rect(-4128.0,10784.0,-3680.0,11200.0)
set udg_rect30=Rect(-224.0,800.0,256.0,1120.0)
set udg_rect31=Rect(-512.0,-8960.0,512.0,-7808.0)
set udg_rect32=Rect(-4608.0,-2048.0,-4480.0,-1920.0)
set udg_rect33=Rect(-4352.0,-1792.0,-4224.0,-1664.0)
set udg_rect34=Rect(-4096.0,-1792.0,-3968.0,-1664.0)
set udg_rect35=Rect(-3840.0,-2048.0,-3712.0,-1920.0)
set udg_rect36=Rect(-3712.0,-1920.0,-3584.0,-1792.0)
set udg_rect37=Rect(-4608.0,-1536.0,-4480.0,-1408.0)
set udg_rect38=Rect(-4352.0,-1280.0,-4224.0,-1152.0)
set udg_rect39=Rect(-3968.0,-1408.0,-3840.0,-1280.0)
set udg_rect40=Rect(-4480.0,-1024.0,-4352.0,-896.0)
set udg_rect41=Rect(-4224.0,-896.0,-4096.0,-768.0)
set udg_rect42=Rect(-3968.0,-1152.0,-3840.0,-1024.0)
set udg_rect43=Rect(-3968.0,-640.0,-3840.0,-512.0)
set udg_rect44=Rect(-4480.0,-640.0,-4352.0,-512.0)
set udg_rect45=Rect(-4480.0,-384.0,-4352.0,-256.0)
set udg_rect46=Rect(-4192.0,-480.0,-4064.0,-352.0)
set udg_rect47=Rect(-4736.0,-384.0,-4608.0,-256.0)
set udg_rect48=Rect(-3968.0,-256.0,-3840.0,-128.0)
set udg_rect49=Rect(-3840.0,-384.0,-3712.0,-256.0)
set udg_rect50=Rect(-3712.0,-1024.0,-3584.0,-896.0)
set udg_rect51=Rect(-3968.0,-864.0,-3840.0,-736.0)
set udg_rect52=Rect(-3712.0,-128.0,-3584.0,0.0)
set udg_rect53=Rect(-4608.0,-128.0,-4480.0,0.0)
set udg_rect54=Rect(-4224.0,-2688.0,-3968.0,-2464.0)
set udg_rect55=Rect(3456.0,-2176.0,3584.0,-2048.0)
set udg_rect56=Rect(3712.0,-2176.0,3840.0,-2048.0)
set udg_rect57=Rect(3968.0,-2176.0,4096.0,-2048.0)
set udg_rect58=Rect(4224.0,-2176.0,4352.0,-2048.0)
set udg_rect59=Rect(4480.0,-2176.0,4608.0,-2048.0)
set udg_rect60=Rect(3584.0,-1920.0,3712.0,-1792.0)
set udg_rect61=Rect(3840.0,-1920.0,3968.0,-1792.0)
set udg_rect62=Rect(4096.0,-1920.0,4224.0,-1792.0)
set udg_rect63=Rect(4352.0,-1920.0,4480.0,-1792.0)
set udg_rect64=Rect(4608.0,-1920.0,4736.0,-1792.0)
set udg_rect65=Rect(3456.0,-1536.0,3584.0,-1408.0)
set udg_rect66=Rect(3712.0,-1536.0,3840.0,-1408.0)
set udg_rect67=Rect(3968.0,-1536.0,4096.0,-1408.0)
set udg_rect68=Rect(4224.0,-1536.0,4352.0,-1408.0)
set udg_rect69=Rect(4480.0,-1536.0,4608.0,-1408.0)
set udg_rect70=Rect(3584.0,-1248.0,3712.0,-1024.0)
set udg_rect71=Rect(3840.0,-1248.0,3968.0,-1024.0)
set udg_rect72=Rect(4096.0,-1248.0,4224.0,-1024.0)
set udg_rect73=Rect(4352.0,-1248.0,4480.0,-1024.0)
set udg_rect74=Rect(4608.0,-1248.0,4736.0,-1024.0)
set udg_rect75=Rect(3712.0,-768.0,3840.0,-640.0)
set udg_rect76=Rect(3456.0,-768.0,3584.0,-640.0)
set udg_rect77=Rect(3968.0,-768.0,4096.0,-640.0)
set udg_rect78=Rect(4224.0,-768.0,4352.0,-640.0)
set udg_rect79=Rect(4480.0,-768.0,4608.0,-640.0)
set udg_rect80=Rect(3936.0,-2784.0,4224.0,-2368.0)
set udg_rect81=Rect(-576.0,-10016.0,608.0,-8960.0)
set udg_rect82=Rect(416.0,-8960.0,1504.0,-7840.0)
set udg_rect83=Rect(-480.0,-7808.0,544.0,-7040.0)
set udg_rect84=Rect(-1376.0,-9088.0,-448.0,-7904.0)
set udg_rect85=Rect(-3648.0,-5536.0,-2688.0,-4640.0)
set udg_rect86=Rect(-3616.0,-12224.0,-2592.0,-11328.0)
set udg_rect87=Rect(2688.0,-12224.0,3648.0,-11296.0)
set udg_rect88=Rect(2560.0,-5600.0,3616.0,-4640.0)
set udg_rect89=Rect(736.0,-9632.0,928.0,-9440.0)
set udg_rect90=Rect(-512.0,-9056.0,-160.0,-8736.0)
set udg_rect91=Rect(-1216.0,-9920.0,1088.0,-6912.0)
set udg_rect92=Rect(-992.0,-7360.0,-832.0,-7200.0)
set udg_rect93=Rect(-4768.0,-2816.0,-3552.0,352.0)
set udg_rect94=Rect(3392.0,-2784.0,4768.0,320.0)
set udg_rect95=Rect(-6208.0,-10464.0,-5696.0,-5120.0)
set we=AddWeatherEffect(udg_rect95,'FDgh')
call EnableWeatherEffect(we,true)
set udg_rect96=Rect(-1024.0,-2080.0,960.0,-128.0)
set udg_rect97=Rect(544.0,-7680.0,800.0,-7456.0)
set udg_rect98=Rect(-800.0,-7712.0,-608.0,-7520.0)
set udg_rect99=Rect(-864.0,-9408.0,-672.0,-9216.0)
set udg_rect100=Rect(576.0,-9408.0,768.0,-9248.0)
set udg_rect101=Rect(-2144.0,-10848.0,2016.0,-5920.0)
set udg_rect102=Rect(-6176.0,-11392.0,-5728.0,-11072.0)
set udg_rect103=Rect(-6272.0,-3872.0,-5696.0,1760.0)
set we=AddWeatherEffect(udg_rect103,'FDrh')
call EnableWeatherEffect(we,true)
set udg_rect104=Rect(-6208.0,3232.0,-5696.0,5824.0)
set we=AddWeatherEffect(udg_rect104,'WOcw')
call EnableWeatherEffect(we,true)
set udg_rect105=Rect(-6336.0,6304.0,-5536.0,7968.0)
set we=AddWeatherEffect(udg_rect105,'FDrh')
call EnableWeatherEffect(we,true)
set udg_rect106=Rect(-6112.0,7520.0,-5760.0,7872.0)
set udg_rect107=Rect(-6688.0,-13824.0,-5184.0,-12032.0)
set udg_rect108=Rect(-6688.0,8512.0,-5280.0,12736.0)
set udg_rect109=Rect(-4224.0,160.0,-4032.0,352.0)
set udg_rect110=Rect(-2912.0,-864.0,-2624.0,-576.0)
set udg_rect111=Rect(-3104.0,-1024.0,-1536.0,352.0)
set udg_rect112=Rect(-2080.0,-224.0,-1696.0,128.0)
set udg_rect113=Rect(-2912.0,-2496.0,-2656.0,-2272.0)
set udg_rect114=Rect(-2016.0,-1984.0,-1696.0,-1728.0)
set udg_rect115=Rect(-3104.0,-2720.0,-1472.0,-1536.0)
set udg_rect116=Rect(1504.0,-1024.0,2976.0,352.0)
set udg_rect117=Rect(1760.0,-768.0,2016.0,-544.0)
set udg_rect118=Rect(2432.0,-128.0,2720.0,128.0)
set udg_rect119=Rect(1600.0,-2496.0,1856.0,-2240.0)
set udg_rect120=Rect(2464.0,-1952.0,2752.0,-1664.0)
set udg_rect121=Rect(1472.0,-2720.0,2976.0,-1600.0)
set udg_rect122=Rect(-6176.0,-4736.0,-5728.0,-4352.0)
set udg_rect123=Rect(-6208.0,2240.0,-5696.0,2752.0)
set udg_rect124=Rect(3584.0,-512.0,3712.0,-384.0)
set udg_rect125=Rect(3840.0,-512.0,3968.0,-384.0)
set udg_rect126=Rect(4096.0,-512.0,4224.0,-384.0)
set udg_rect127=Rect(4352.0,-512.0,4480.0,-384.0)
set udg_rect128=Rect(4608.0,-512.0,4736.0,-384.0)
set udg_rect129=Rect(4480.0,-256.0,4608.0,-128.0)
set udg_rect130=Rect(4224.0,-256.0,4352.0,-128.0)
set udg_rect131=Rect(3968.0,-256.0,4096.0,-128.0)
set udg_rect132=Rect(3712.0,-256.0,3840.0,-128.0)
set udg_rect133=Rect(3456.0,-256.0,3584.0,-128.0)
set udg_rect134=Rect(3968.0,0.0,4096.0,128.0)
set udg_rect135=Rect(4224.0,0.0,4352.0,128.0)
set udg_rect136=Rect(-3040.0,32.0,-2784.0,320.0)
set udg_rect137=Rect(-3104.0,-1792.0,-2848.0,-1536.0)
set udg_rect138=Rect(1504.0,-1792.0,1792.0,-1536.0)
set udg_rect139=Rect(1504.0,32.0,1824.0,320.0)
set udg_rect140=Rect(-896.0,-9344.0,768.0,-7520.0)
set udg_rect141=Rect(-256.0,-8896.0,-128.0,-8768.0)
set udg_rect142=Rect(128.0,-8896.0,256.0,-8768.0)
set udg_rect143=Rect(320.0,-8704.0,448.0,-8576.0)
set udg_rect144=Rect(320.0,-8480.0,448.0,-8352.0)
set udg_rect145=Rect(128.0,-8160.0,256.0,-8032.0)
set udg_rect146=Rect(-256.0,-8128.0,-128.0,-8000.0)
set udg_rect147=Rect(-448.0,-8448.0,-320.0,-8320.0)
set udg_rect148=Rect(-448.0,-8704.0,-320.0,-8576.0)
set udg_rect149=Rect(-1952.0,-8480.0,-1888.0,-8416.0)
set udg_rect150=Rect(-32.0,-6304.0,32.0,-6240.0)
set udg_rect151=Rect(1888.0,-8480.0,1952.0,-8416.0)
set udg_rect152=Rect(-32.0,-10656.0,32.0,-10592.0)
set udg_rect153=Rect(-96.0,-1376.0,128.0,-1120.0)
set udg_rect154=Rect(-1056.0,6080.0,896.0,7968.0)
set udg_rect155=Rect(-64.0,7296.0,64.0,7424.0)
set udg_rect156=Rect(-64.0,6400.0,64.0,6528.0)
set udg_rect157=Rect(-448.0,6848.0,-320.0,6976.0)
set udg_rect158=Rect(320.0,6848.0,448.0,6976.0)
set udg_rect159=Rect(192.0,7104.0,320.0,7232.0)
set udg_rect160=Rect(192.0,6528.0,320.0,6656.0)
set udg_rect161=Rect(-320.0,6528.0,-192.0,6656.0)
set udg_rect162=Rect(-320.0,7104.0,-192.0,7232.0)
set udg_rect163=Rect(-32.0,6912.0,0.0,6944.0)
set udg_rect164=Rect(-576.0,6304.0,576.0,7456.0)
set udg_rect165=Rect(-160.0,5120.0,96.0,5408.0)
set udg_rect166=Rect(-416.0,10208.0,416.0,10912.0)
endfunction
function Trig_Xem_HP_Actions takes nothing returns nothing
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),("|cFFFFFF00HP of "+(GetPlayerName(GetTriggerPlayer())+(" : "+I2S(R2I(GetUnitStateSwap(UNIT_STATE_LIFE,udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])))))))
endfunction
function Trig_Xem_MP_Actions takes nothing returns nothing
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),("|cFFFFFF00MP of "+(GetPlayerName(GetTriggerPlayer())+(" : "+I2S(R2I(GetUnitStateSwap(UNIT_STATE_MANA,udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])))))))
endfunction
function Trig_Xem_MS_Actions takes nothing returns nothing
call DisplayTextToForce(GetForceOfPlayer(GetTriggerPlayer()),("|cFFFFFF00MS of "+(GetPlayerName(GetTriggerPlayer())+(" : "+I2S(R2I(GetUnitMoveSpeed(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])))))))
endfunction
function Trig_Fun_Spell_Func001Func001C takes nothing returns boolean
if((IsUnitPausedBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((IsUnitHiddenBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
return false
endfunction
function Trig_Fun_Spell_Func001C takes nothing returns boolean
if(not Trig_Fun_Spell_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_Fun_Spell_Actions takes nothing returns nothing
if(Trig_Fun_Spell_Func001C())then
call DoNothing()
else
call SetUnitAnimation(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())],"spell")
call SetUnitAnimation(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())],"spell slam")
call SetUnitAnimation(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())],"spell chanel")
endif
endfunction
function Trig_Fun_Attack_Func001Func001C takes nothing returns boolean
if((IsUnitPausedBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((IsUnitHiddenBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
return false
endfunction
function Trig_Fun_Attack_Func001C takes nothing returns boolean
if(not Trig_Fun_Attack_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_Fun_Attack_Actions takes nothing returns nothing
if(Trig_Fun_Attack_Func001C())then
call DoNothing()
else
call SetUnitAnimation(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())],"attack slam")
endif
endfunction
function Trig_Fun_Death_Func001Func001C takes nothing returns boolean
if((IsUnitPausedBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((IsUnitHiddenBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
return false
endfunction
function Trig_Fun_Death_Func001C takes nothing returns boolean
if(not Trig_Fun_Death_Func001Func001C())then
return false
endif
return true
endfunction
function Trig_Fun_Death_Actions takes nothing returns nothing
if(Trig_Fun_Death_Func001C())then
call DoNothing()
else
call SetUnitAnimation(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())],"death")
endif
endfunction
function Trig_Fun_OhShit_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("|cFFFFFF00Oh Shit !!!!",udg_units02[GetConvertedPlayerId(GetTriggerPlayer())],0,20.00,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
endfunction
function Trig_Fun_Damn_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("|cFFFFFF00Damn !!!!",udg_units02[GetConvertedPlayerId(GetTriggerPlayer())],0,20.00,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,0.00,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
endfunction
function Trig_Fun_MyGod_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("|cFFFFFF00My God !!!!",udg_units02[GetConvertedPlayerId(GetTriggerPlayer())],0,25.00,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100.00,100.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
endfunction
function Trig_Call_Assistant_Func001Func003C takes nothing returns boolean
if((IsUnitPausedBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((IsUnitDeadBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
if((IsUnitHiddenBJ(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return true
endif
return false
endfunction
function Trig_Call_Assistant_Func001C takes nothing returns boolean
if(not Trig_Call_Assistant_Func001Func003C())then
return false
endif
return true
endfunction
function Trig_Call_Assistant_Actions takes nothing returns nothing
if(Trig_Call_Assistant_Func001C())then
call DoNothing()
else
call SetUnitPositionLoc(udg_units34[GetConvertedPlayerId(GetTriggerPlayer())],GetUnitLoc(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]))
call PauseUnitBJ(false,udg_units34[GetConvertedPlayerId(GetTriggerPlayer())])
endif
endfunction
function Trig_PickHero_Func002001 takes nothing returns boolean
return(udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]==false)
endfunction
function Trig_PickHero_Func002002 takes nothing returns boolean
return(GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_PASSIVE))
endfunction
function Trig_PickHero_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_PickHero_Func002001(),Trig_PickHero_Func002002()))then
return false
endif
return true
endfunction
function Trig_PickHero_Func001Func016Func001C takes nothing returns boolean
if((udg_boolean08==true))then
return true
endif
if((udg_boolean09==true))then
return true
endif
return false
endfunction
function Trig_PickHero_Func001Func016C takes nothing returns boolean
if(not Trig_PickHero_Func001Func016Func001C())then
return false
endif
return true
endfunction
function Trig_PickHero_Func001Func021001 takes nothing returns boolean
return(udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]==false)
endfunction
function Trig_PickHero_Func001Func021002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==GetUnitTypeId(udg_units18[GetConvertedPlayerId(GetTriggerPlayer())]))
endfunction
function Trig_PickHero_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_PickHero_Func001Func021001(),Trig_PickHero_Func001Func021002()))then
return false
endif
return true
endfunction
function Trig_PickHero_Actions takes nothing returns nothing
if(Trig_PickHero_Func001C())then
set udg_booleans02[GetConvertedPlayerId(GetTriggerPlayer())]=true
call RemoveUnit(GetTriggerUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_units18[GetConvertedPlayerId(GetTriggerPlayer())]),GetTriggerPlayer(),GetRectCenter(udg_rect90),270.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect90),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
set udg_units36[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
call UnitAddItemByIdSwapped('phea',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('pman',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('ankh',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('ckng',GetLastCreatedUnit())
call SetUnitManaPercentBJ(GetLastCreatedUnit(),100)
call AdjustPlayerStateBJ(1000,GetOwningPlayer(GetLastCreatedUnit()),PLAYER_STATE_RESOURCE_GOLD)
if(Trig_PickHero_Func001Func016C())then
set udg_booleans05[GetConvertedPlayerId(GetTriggerPlayer())]=false
else
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect90),0)
endif
else
set udg_units18[GetConvertedPlayerId(GetTriggerPlayer())]=GetTriggerUnit()
call SetUnitAnimation(GetTriggerUnit(),"attack")
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_Double_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!=GetUnitTypeId(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])))then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_PASSIVE)))then
return false
endif
if(not(udg_booleans05[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function Trig_Double_Conditions takes nothing returns boolean
if(not Trig_Double_Func001C())then
return false
endif
return true
endfunction
function Trig_Double_Func002Func017C takes nothing returns boolean
if(not(udg_boolean10==true))then
return false
endif
return true
endfunction
function Trig_Double_Func002Func022001 takes nothing returns boolean
return(udg_booleans05[GetConvertedPlayerId(GetTriggerPlayer())]==false)
endfunction
function Trig_Double_Func002Func022002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==GetUnitTypeId(udg_units32[GetConvertedPlayerId(GetTriggerPlayer())]))
endfunction
function Trig_Double_Func002C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Double_Func002Func022001(),Trig_Double_Func002Func022002()))then
return false
endif
return true
endfunction
function Trig_Double_Actions takes nothing returns nothing
if(Trig_Double_Func002C())then
set udg_booleans05[GetConvertedPlayerId(GetTriggerPlayer())]=true
set udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]=0
call RemoveUnit(GetTriggerUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_units32[GetConvertedPlayerId(GetTriggerPlayer())]),GetTriggerPlayer(),GetRectCenter(udg_rect90),270.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect90),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
call UnitAddItemByIdSwapped('phea',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('pman',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('ankh',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('ckng',GetLastCreatedUnit())
call SetUnitManaPercentBJ(GetLastCreatedUnit(),100)
call SetUnitPositionLoc(GetTriggerUnit(),GetUnitLoc(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]))
call ShowUnitHide(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())])
if(Trig_Double_Func002Func017C())then
set udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]=false
else
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect90),0)
endif
else
set udg_units32[GetConvertedPlayerId(GetTriggerPlayer())]=GetTriggerUnit()
call SetUnitAnimation(GetTriggerUnit(),"attack")
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_Triple_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!=GetUnitTypeId(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])))then
return false
endif
if(not(GetUnitTypeId(GetTriggerUnit())!=GetUnitTypeId(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())])))then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_PASSIVE)))then
return false
endif
if(not(udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function Trig_Triple_Conditions takes nothing returns boolean
if(not Trig_Triple_Func001C())then
return false
endif
return true
endfunction
function Trig_Triple_Func002Func021001 takes nothing returns boolean
return(udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]==false)
endfunction
function Trig_Triple_Func002Func021002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==GetUnitTypeId(udg_units33[GetConvertedPlayerId(GetTriggerPlayer())]))
endfunction
function Trig_Triple_Func002C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Triple_Func002Func021001(),Trig_Triple_Func002Func021002()))then
return false
endif
return true
endfunction
function Trig_Triple_Actions takes nothing returns nothing
if(Trig_Triple_Func002C())then
set udg_booleans03[GetConvertedPlayerId(GetTriggerPlayer())]=true
call RemoveUnit(GetTriggerUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_units33[GetConvertedPlayerId(GetTriggerPlayer())]),GetTriggerPlayer(),GetRectCenter(udg_rect90),270.00)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect90),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
call UnitAddItemByIdSwapped('phea',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('pman',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('ankh',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('ckng',GetLastCreatedUnit())
call SetUnitManaPercentBJ(GetLastCreatedUnit(),100)
call SetUnitPositionLoc(GetTriggerUnit(),GetUnitLoc(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]))
call ShowUnitHide(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect90),0)
else
set udg_units33[GetConvertedPlayerId(GetTriggerPlayer())]=GetTriggerUnit()
call SetUnitAnimation(GetTriggerUnit(),"attack")
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_Assistant_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())!=GetUnitTypeId(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())])))then
return false
endif
if(not(GetOwningPlayer(GetTriggerUnit())==Player(PLAYER_NEUTRAL_PASSIVE)))then
return false
endif
if(not(udg_booleans04[GetConvertedPlayerId(GetTriggerPlayer())]==false))then
return false
endif
return true
endfunction
function Trig_Assistant_Conditions takes nothing returns boolean
if(not Trig_Assistant_Func001C())then
return false
endif
return true
endfunction
function Trig_Assistant_Func002Func020001 takes nothing returns boolean
return(udg_booleans04[GetConvertedPlayerId(GetTriggerPlayer())]==false)
endfunction
function Trig_Assistant_Func002Func020002 takes nothing returns boolean
return(GetUnitTypeId(GetTriggerUnit())==GetUnitTypeId(udg_units31[GetConvertedPlayerId(GetTriggerPlayer())]))
endfunction
function Trig_Assistant_Func002C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Assistant_Func002Func020001(),Trig_Assistant_Func002Func020002()))then
return false
endif
return true
endfunction
function Trig_Assistant_Actions takes nothing returns nothing
if(Trig_Assistant_Func002C())then
set udg_booleans04[GetConvertedPlayerId(GetTriggerPlayer())]=true
call RemoveUnit(GetTriggerUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\NightElf\\Blink\\BlinkTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,GetUnitTypeId(udg_units31[GetConvertedPlayerId(GetTriggerPlayer())]),GetTriggerPlayer(),GetRectCenter(udg_rect90),270.00)
call AddSpecialEffectTargetUnitBJ("overhead",GetLastCreatedUnit(),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_units34[GetConvertedPlayerId(GetTriggerPlayer())]=GetLastCreatedUnit()
call UnitAddItemByIdSwapped('phea',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('pman',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('ankh',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('ckng',GetLastCreatedUnit())
call SetUnitManaPercentBJ(GetLastCreatedUnit(),100)
call SetUnitPositionLoc(GetTriggerUnit(),GetUnitLoc(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]))
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),GetRectCenter(udg_rect90),0)
else
set udg_units31[GetConvertedPlayerId(GetTriggerPlayer())]=GetTriggerUnit()
call SetUnitAnimation(GetTriggerUnit(),"attack")
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endif
endfunction
function Trig_Change_Hero_1_Conditions takes nothing returns boolean
if(not(udg_boolean08==true))then
return false
endif
return true
endfunction
function Trig_Change_Hero_1_Func001Func001Func001C takes nothing returns boolean
if(not(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]==0))then
return false
endif
if(not(IsUnitAliveBJ(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return false
endif
return true
endfunction
function Trig_Change_Hero_1_Func001Func001Func002C takes nothing returns boolean
if(not(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]==1))then
return false
endif
return true
endfunction
function Trig_Change_Hero_1_Func001Func001C takes nothing returns boolean
if(not Trig_Change_Hero_1_Func001Func001Func001C())then
return false
endif
return true
endfunction
function Trig_Change_Hero_1_Func001C takes nothing returns boolean
if(not(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())]==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Change_Hero_1_Actions takes nothing returns nothing
if(Trig_Change_Hero_1_Func001C())then
call DoNothing()
else
if(Trig_Change_Hero_1_Func001Func001C())then
set udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]=1
call PauseUnitBJ(true,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())])
call ShowUnitHide(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())])
call ShowUnitShow(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())])
call PauseUnitBJ(false,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())])
call SetUnitPositionLocFacingBJ(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],GetUnitLoc(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())]),GetUnitFacing(udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]))
call AddSpecialEffectTargetUnitBJ("overhead",udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetHeroLevelBJ(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],GetHeroLevel(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())]),false)
call SetHeroXP(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],GetHeroXP(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())]),false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_STR,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],false))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],false))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_INT,udg_units02[GetConvertedPlayerId(GetTriggerPlayer())],false))
call IssueImmediateOrderBJ(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],"stop")
call SelectUnitForPlayerSingle(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
set udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]=udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]
else
if(Trig_Change_Hero_1_Func001Func001Func002C())then
set udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]+1)
else
call DoNothing()
endif
endif
endif
endfunction
function Trig_Change_Hero_2_Func001Func001Func001C takes nothing returns boolean
if(not(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]==2))then
return false
endif
if(not(IsUnitAliveBJ(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return false
endif
return true
endfunction
function Trig_Change_Hero_2_Func001Func001Func002Func001C takes nothing returns boolean
if(not(udg_boolean10==true))then
return false
endif
return true
endfunction
function Trig_Change_Hero_2_Func001Func001Func002C takes nothing returns boolean
if(not(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]==3))then
return false
endif
return true
endfunction
function Trig_Change_Hero_2_Func001Func001Func004C takes nothing returns boolean
if(not(udg_boolean10==true))then
return false
endif
return true
endfunction
function Trig_Change_Hero_2_Func001Func001C takes nothing returns boolean
if(not Trig_Change_Hero_2_Func001Func001Func001C())then
return false
endif
return true
endfunction
function Trig_Change_Hero_2_Func001C takes nothing returns boolean
if(not(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Change_Hero_2_Actions takes nothing returns nothing
if(Trig_Change_Hero_2_Func001C())then
call DoNothing()
else
if(Trig_Change_Hero_2_Func001Func001C())then
set udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]=3
if(Trig_Change_Hero_2_Func001Func001Func004C())then
call PauseUnitBJ(true,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())])
call ShowUnitHide(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())])
call ShowUnitShow(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])
call PauseUnitBJ(false,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])
call SetUnitPositionLocFacingBJ(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],GetUnitLoc(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]),GetUnitFacing(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]))
call AddSpecialEffectTargetUnitBJ("overhead",udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetHeroLevelBJ(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],GetHeroLevel(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]),false)
call SetHeroXP(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],GetHeroXP(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]),false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_STR,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],false))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],false))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_INT,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],false))
call IssueImmediateOrderBJ(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],"stop")
call SelectUnitForPlayerSingle(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
set udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]=udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]
else
call PauseUnitBJ(true,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())])
call ShowUnitHide(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())])
call ShowUnitShow(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())])
call PauseUnitBJ(false,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())])
call SetUnitPositionLocFacingBJ(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],GetUnitLoc(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]),GetUnitFacing(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]))
call AddSpecialEffectTargetUnitBJ("overhead",udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetHeroLevelBJ(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],GetHeroLevel(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]),false)
call SetHeroXP(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],GetHeroXP(udg_units35[GetConvertedPlayerId(GetTriggerPlayer())]),false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_STR,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],false))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],false))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_INT,udg_units35[GetConvertedPlayerId(GetTriggerPlayer())],false))
call IssueImmediateOrderBJ(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],"stop")
call SelectUnitForPlayerSingle(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
set udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]=udg_units36[GetConvertedPlayerId(GetTriggerPlayer())]
endif
else
if(Trig_Change_Hero_2_Func001Func001Func002C())then
if(Trig_Change_Hero_2_Func001Func001Func002Func001C())then
set udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]+1)
else
set udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]-3)
endif
else
call DoNothing()
endif
endif
endif
endfunction
function Trig_Change_Hero_3_Func001Func002Func001C takes nothing returns boolean
if(not(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]==4))then
return false
endif
if(not(IsUnitAliveBJ(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])==true))then
return false
endif
return true
endfunction
function Trig_Change_Hero_3_Func001Func002Func002C takes nothing returns boolean
if(not(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]==5))then
return false
endif
return true
endfunction
function Trig_Change_Hero_3_Func001Func002C takes nothing returns boolean
if(not Trig_Change_Hero_3_Func001Func002Func001C())then
return false
endif
return true
endfunction
function Trig_Change_Hero_3_Func001C takes nothing returns boolean
if(not(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Change_Hero_3_Actions takes nothing returns nothing
if(Trig_Change_Hero_3_Func001C())then
call DoNothing()
else
if(Trig_Change_Hero_3_Func001Func002C())then
set udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]=5
call PauseUnitBJ(true,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])
call ShowUnitHide(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())])
call ShowUnitShow(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())])
call PauseUnitBJ(false,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())])
call SetUnitPositionLocFacingBJ(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],GetUnitLoc(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]),GetUnitFacing(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]))
call AddSpecialEffectTargetUnitBJ("overhead",udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetHeroLevelBJ(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],GetHeroLevel(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]),false)
call SetHeroXP(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],GetHeroXP(udg_units30[GetConvertedPlayerId(GetTriggerPlayer())]),false)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_STR,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],false))
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],false))
call ModifyHeroStat(bj_HEROSTAT_INT,udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],bj_MODIFYMETHOD_SET,GetHeroStatBJ(bj_HEROSTAT_INT,udg_units30[GetConvertedPlayerId(GetTriggerPlayer())],false))
call SelectUnitForPlayerSingle(udg_units36[GetConvertedPlayerId(GetTriggerPlayer())],GetTriggerPlayer())
set udg_units02[GetConvertedPlayerId(GetTriggerPlayer())]=udg_units36[GetConvertedPlayerId(GetTriggerPlayer())]
else
if(Trig_Change_Hero_3_Func001Func002Func002C())then
set udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]=(udg_integers06[GetConvertedPlayerId(GetTriggerPlayer())]-5)
else
call DoNothing()
endif
endif
endif
endfunction
function Trig_System_Mode_Hero_Actions takes nothing returns nothing
call DialogSetMessageBJ(udg_dialog05,"Hero Mode
")
call DialogAddButtonBJ(udg_dialog05,"Singel Hero")
set udg_button22=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog05,"Double Hero")
set udg_button21=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog05,"Triple Hero")
set udg_button23=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog05,"Assistant Hero")
set udg_button20=GetLastCreatedButtonBJ()
endfunction
function Trig_Mode_Choice_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button20))then
return false
endif
return true
endfunction
function Trig_Mode_Choice_Func001Func001Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button23))then
return false
endif
return true
endfunction
function Trig_Mode_Choice_Func001Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button21))then
return false
endif
return true
endfunction
function Trig_Mode_Choice_Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button22))then
return false
endif
return true
endfunction
function Trig_Mode_Choice_Actions takes nothing returns nothing
if(Trig_Mode_Choice_Func001C())then
set udg_boolean08=false
set udg_boolean10=false
else
if(Trig_Mode_Choice_Func001Func001C())then
set udg_boolean08=true
set udg_boolean10=false
call EnableTrigger(udg_trigger12)
call EnableTrigger(udg_trigger15)
call EnableTrigger(udg_trigger16)
else
if(Trig_Mode_Choice_Func001Func001Func001C())then
set udg_boolean08=true
set udg_boolean10=true
call EnableTrigger(udg_trigger12)
call EnableTrigger(udg_trigger13)
call EnableTrigger(udg_trigger15)
call EnableTrigger(udg_trigger16)
call EnableTrigger(udg_trigger17)
else
if(Trig_Mode_Choice_Func001Func001Func001Func001C())then
call DisplayTimedTextToForce(GetPlayersAll(),30.00,"|cFFFFFF00All player use -as to call Assistant anytime.")
call EnableTrigger(udg_trigger10)
set udg_boolean09=true
call EnableTrigger(udg_trigger14)
else
call DoNothing()
endif
endif
endif
endif
call TriggerExecute(udg_trigger72)
endfunction
function Trig_Clear_for_Mode_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog05)
endfunction
function Trig_Untitled_Trigger_002_Func001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Untitled_Trigger_002_Func001002 takes nothing returns nothing
call UnitResetCooldown(GetEnumUnit())
endfunction
function Trig_Untitled_Trigger_002_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Untitled_Trigger_002_Func001001002)),function Trig_Untitled_Trigger_002_Func001002)
endfunction
function Trig_Upgrade_Select_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit78))then
return false
endif
return true
endfunction
function Trig_Upgrade_Select_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger23)
call SetUnitOwner(GetTriggerUnit(),GetTriggerPlayer(),true)
call AddSpecialEffectTargetUnitBJ("head",udg_unit78,"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Upgrade_DeSelect_Conditions takes nothing returns boolean
if(not(GetTriggerUnit()==udg_unit78))then
return false
endif
return true
endfunction
function Trig_Upgrade_DeSelect_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger22)
call SetUnitOwner(GetTriggerUnit(),Player(10),true)
call AddSpecialEffectTargetUnitBJ("head",udg_unit78,"Abilities\\Spells\\Items\\AItb\\AItbTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_UnitDying_Func002Func002C takes nothing returns boolean
if((GetUnitTypeId(GetDyingUnit())=='hfoo'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='hkni'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='hrif'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='hmpr'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='ogru'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='otau'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='ohun'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='oshm'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='ugho'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='uabo'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='ucry'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='unec'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='earc'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='esen'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='edoc'))then
return true
endif
if((GetUnitTypeId(GetDyingUnit())=='emtg'))then
return true
endif
return false
endfunction
function Trig_UnitDying_Func002C takes nothing returns boolean
if(not(GetOwningPlayer(GetDyingUnit())==Player(11)))then
return false
endif
if(not Trig_UnitDying_Func002Func002C())then
return false
endif
return true
endfunction
function Trig_UnitDying_Conditions takes nothing returns boolean
if(not Trig_UnitDying_Func002C())then
return false
endif
return true
endfunction
function Trig_UnitDying_Actions takes nothing returns nothing
call GroupAddUnitSimple(GetDyingUnit(),udg_group27)
endfunction
function Trig_RemoveDying_Func001A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_RemoveDying_Actions takes nothing returns nothing
call ForGroupBJ(udg_group27,function Trig_RemoveDying_Func001A)
call GroupClear(udg_group27)
endfunction
function Trig_Hero_dying_for_gain_2_Func009C takes nothing returns boolean
if(not(IsUnitType(GetKillingUnitBJ(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_Hero_dying_for_gain_2_Conditions takes nothing returns boolean
if(not Trig_Hero_dying_for_gain_2_Func009C())then
return false
endif
return true
endfunction
function Trig_Hero_dying_for_gain_2_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("2 Point !!",GetKillingUnitBJ(),0,10,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),0.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,2)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,2)
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,2)
endfunction
function Trig_Hero_dying_for_gain_4_Func009C takes nothing returns boolean
if(not(IsUnitType(GetKillingUnitBJ(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_Hero_dying_for_gain_4_Conditions takes nothing returns boolean
if(not Trig_Hero_dying_for_gain_4_Func009C())then
return false
endif
return true
endfunction
function Trig_Hero_dying_for_gain_4_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("4 Point !!",GetKillingUnitBJ(),0,10,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),0.00,100,100.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,4)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,4)
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,4)
endfunction
function Trig_Player_Group_Actions takes nothing returns nothing
call ForceAddPlayerSimple(Player(0),udg_force01)
call ForceAddPlayerSimple(Player(1),udg_force01)
call ForceAddPlayerSimple(Player(2),udg_force01)
call ForceAddPlayerSimple(Player(3),udg_force01)
call ForceAddPlayerSimple(Player(4),udg_force01)
call ForceAddPlayerSimple(Player(5),udg_force01)
call ForceAddPlayerSimple(Player(6),udg_force01)
call ForceAddPlayerSimple(Player(7),udg_force01)
endfunction
function Trig_Life_destroy_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger226)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Sytem_OW_CW_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger32)
call DisableTrigger(udg_trigger31)
call TriggerSleepAction(60.00)
call EnableTrigger(udg_trigger32)
call EnableTrigger(udg_trigger31)
call TriggerSleepAction(60.00)
call TriggerExecute(GetTriggeringTrigger())
endfunction
function Trig_Cheat_ow_Func001C takes nothing returns boolean
if(not(udg_integer05<=7))then
return false
endif
return true
endfunction
function Trig_Cheat_ow_Actions takes nothing returns nothing
if(Trig_Cheat_ow_Func001C())then
set udg_integer05=(udg_integer05+1)
call DisplayTextToForce(GetPlayersAll(),("Door "+(I2S(udg_integer05)+" has open")))
else
call DoNothing()
endif
endfunction
function Trig_Cheat_cw_Func001C takes nothing returns boolean
if(not(udg_integer05>=1))then
return false
endif
return true
endfunction
function Trig_Cheat_cw_Actions takes nothing returns nothing
if(Trig_Cheat_cw_Func001C())then
call DisplayTextToForce(GetPlayersAll(),("Door "+(I2S(udg_integer05)+" has close")))
set udg_integer05=(udg_integer05-1)
else
call DoNothing()
endif
endfunction
function Trig_Revving_FN_Conditions takes nothing returns boolean
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Revving_FN_Actions takes nothing returns nothing
call UnitAddItemByIdSwapped('ankh',GetEnteringUnit())
call UnitAddItemByIdSwapped('phea',GetEnteringUnit())
endfunction
function Trig_Item_Rescuse_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00M'))then
return false
endif
return true
endfunction
function Trig_Item_Rescuse_Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Item_Rescuse_Func004001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),Player(0))==true)
endfunction
function Trig_Item_Rescuse_Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Item_Rescuse_Func004001003001(),Trig_Item_Rescuse_Func004001003002())
endfunction
function Trig_Item_Rescuse_Func004002 takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
endfunction
function Trig_Item_Rescuse_Func005001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Item_Rescuse_Func005001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),Player(0))==true)
endfunction
function Trig_Item_Rescuse_Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Item_Rescuse_Func005001003001(),Trig_Item_Rescuse_Func005001003002())
endfunction
function Trig_Item_Rescuse_Func005002 takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function Trig_Item_Rescuse_Func007001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Item_Rescuse_Func007001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),Player(0))==true)
endfunction
function Trig_Item_Rescuse_Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Item_Rescuse_Func007001003001(),Trig_Item_Rescuse_Func007001003002())
endfunction
function Trig_Item_Rescuse_Func007002 takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
endfunction
function Trig_Item_Rescuse_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"Wow....You great.....All you will no active in 30 second...and Don't ask why?????")
call SetUnitLifePercentBJ(udg_unit80,100)
call TriggerSleepAction(1.00)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000000000.00,GetUnitLoc(udg_unit80),Condition(function Trig_Item_Rescuse_Func004001003)),function Trig_Item_Rescuse_Func004002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000000000.00,GetUnitLoc(udg_unit80),Condition(function Trig_Item_Rescuse_Func005001003)),function Trig_Item_Rescuse_Func005002)
call TriggerSleepAction(30.00)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000000000.00,GetUnitLoc(udg_unit80),Condition(function Trig_Item_Rescuse_Func007001003)),function Trig_Item_Rescuse_Func007002)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Item_Erro_Func002C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I001'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I002'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='tdx2'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='tin2'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='tst2'))then
return true
endif
return false
endfunction
function Trig_Item_Erro_Conditions takes nothing returns boolean
if(not Trig_Item_Erro_Func002C())then
return false
endif
return true
endfunction
function Trig_Item_Erro_Func001C takes nothing returns boolean
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Item_Erro_Actions takes nothing returns nothing
if(Trig_Item_Erro_Func001C())then
call DoNothing()
else
call UnitRemoveItemSwapped(GetLastCreatedItem(),GetManipulatingUnit())
endif
endfunction
function Trig_Prevent_Enter_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())!=Player(PLAYER_NEUTRAL_PASSIVE)))then
return false
endif
return true
endfunction
function Trig_Prevent_Enter_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetEnteringUnit(),GetRectCenter(udg_rect90))
endfunction
function Trig_ATTACJ_AUTO_Func001001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_ATTACJ_AUTO_Func001002 takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_rect31))
endfunction
function Trig_ATTACJ_AUTO_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect101,Condition(function Trig_ATTACJ_AUTO_Func001001002)),function Trig_ATTACJ_AUTO_Func001002)
endfunction
function Trig_Great_house_attacked_Conditions takes nothing returns boolean
if(not(GetAttackedUnitBJ()==udg_unit80))then
return false
endif
return true
endfunction
function Trig_Great_house_attacked_Func002C takes nothing returns boolean
if(not(udg_real04<=20.00))then
return false
endif
return true
endfunction
function Trig_Great_house_attacked_Func003C takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())!=Player(11)))then
return false
endif
return true
endfunction
function Trig_Great_house_attacked_Actions takes nothing returns nothing
set udg_real04=GetRandomReal(0,100.00)
if(Trig_Great_house_attacked_Func002C())then
call DisplayTextToForce(GetPlayersAll(),"Great House is attacked.!!!!!!")
else
call DoNothing()
endif
if(Trig_Great_house_attacked_Func003C())then
call KillUnit(GetAttacker())
call DisplayTextToForce(GetPlayersAll(),("What "+(GetPlayerName(GetOwningPlayer(GetAttacker()))+" ?????")))
else
call DoNothing()
endif
endfunction
function Trig_Warrior_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I009'))then
return false
endif
return true
endfunction
function Trig_Warrior_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n00O',GetOwningPlayer(GetManipulatingUnit()),GetUnitLoc(GetManipulatingUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(150.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Tiny_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I01B'))then
return false
endif
return true
endfunction
function Trig_Tiny_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'nfro',GetOwningPlayer(GetManipulatingUnit()),GetUnitLoc(GetManipulatingUnit()),bj_UNIT_FACING)
endfunction
function Trig_EXP_Func001002 takes nothing returns nothing
call SetPlayerHandicapXPBJ(GetEnumPlayer(),40.00)
endfunction
function Trig_EXP_Actions takes nothing returns nothing
call ForForce(GetPlayersAllies(Player(0)),function Trig_EXP_Func001002)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_booleans02[GetConvertedPlayerId(ConvertedPlayer(GetForLoopIndexA()))]=false
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Light_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,ConvertedPlayer(GetForLoopIndexA()),FOG_OF_WAR_VISIBLE,udg_rect107)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,ConvertedPlayer(GetForLoopIndexA()),FOG_OF_WAR_VISIBLE,udg_rect91)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Door_of_Keeper_Actions takes nothing returns nothing
call SetDestructableInvulnerableBJ(udg_destructable01,true)
call SetForceAllianceStateBJ(GetPlayersAllies(Player(0)),GetPlayersAllies(Player(0)),bj_ALLIANCE_ALLIED_VISION)
endfunction
function Trig_Time_Actions takes nothing returns nothing
set udg_real01=30.00
call TriggerSleepAction(600.00)
call DisplayTextToForce(GetPlayersAll(),"Dark is angry......")
set udg_real01=25.00
call TriggerSleepAction(600.00)
call DisplayTextToForce(GetPlayersAll(),"Dark is angry......")
set udg_real01=20.00
call TriggerSleepAction(600.00)
call DisplayTextToForce(GetPlayersAll(),"Dark is angry......")
set udg_real01=15.00
call TriggerSleepAction(1000.00)
set udg_real01=10.00
endfunction
function Trig_Float_Text_Actions takes nothing returns nothing
call CreateTextTagLocBJ("Mission",GetRectCenter(udg_rect92),0,25.00,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,100,0.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call CreateTextTagUnitBJ("Upgrade",udg_unit78,0,25.00,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,0.00,0.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
call CreateTextTagLocBJ("Event",GetRectCenter(udg_rect89),0,25.00,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),0.00,100.00,100.00,0)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),true)
endfunction
function Trig_SetGame_Actions takes nothing returns nothing
call SetUnitInvulnerable(udg_unit70,true)
call SetUnitInvulnerable(udg_unit72,true)
call SetUnitInvulnerable(udg_unit71,true)
call SetUnitInvulnerable(udg_unit66,true)
call TriggerExecute(udg_trigger30)
set udg_boolean03=false
set udg_real19=1.00
set udg_real12=1.00
set udg_real14=1.00
set udg_real11=500.00
set udg_real13=480.00
set udg_integer17=0
set udg_integer16=1
set udg_integer06=1
call TriggerSleepAction(600.00)
call TriggerExecute(udg_trigger48)
endfunction
function Trig_Level_Ability_and_Atribute_Func001C takes nothing returns boolean
if(not(udg_boolean07==false))then
return false
endif
return true
endfunction
function Trig_Level_Ability_and_Atribute_Func002C takes nothing returns boolean
if(not(udg_integer16==15))then
return false
endif
return true
endfunction
function Trig_Level_Ability_and_Atribute_Actions takes nothing returns nothing
if(Trig_Level_Ability_and_Atribute_Func001C())then
call IssueUpgradeOrderByIdBJ(udg_unit64,'R00A')
set udg_integer17=(udg_integer17+75)
else
call DoNothing()
endif
if(Trig_Level_Ability_and_Atribute_Func002C())then
call DoNothing()
else
set udg_integer16=(udg_integer16+1)
endif
call TriggerSleepAction(600.00)
call TriggerExecute(GetTriggeringTrigger())
endfunction
function Trig_Region_XuatLinh_Actions takes nothing returns nothing
set udg_rects01[1]=udg_rect01
set udg_rects01[2]=udg_rect02
set udg_rects01[3]=udg_rect03
set udg_rects01[4]=udg_rect04
set udg_rects01[5]=udg_rect05
set udg_rects01[6]=udg_rect06
set udg_rects01[7]=udg_rect07
set udg_rects01[8]=udg_rect08
set udg_rects02[1]=udg_rect25
set udg_rects02[2]=udg_rect26
set udg_rects02[3]=udg_rect27
set udg_rects02[4]=udg_rect28
set udg_rects02[5]=udg_rect22
set udg_rects02[6]=udg_rect21
set udg_rects02[7]=udg_rect23
set udg_rects02[8]=udg_rect24
set udg_rects03[1]=udg_rect09
set udg_rects03[2]=udg_rect10
set udg_rects03[3]=udg_rect11
set udg_rects03[4]=udg_rect12
set udg_rects03[5]=udg_rect13
set udg_rects03[6]=udg_rect14
set udg_rects03[7]=udg_rect15
set udg_rects03[8]=udg_rect16
set udg_rects04[1]=udg_rect148
set udg_rects04[2]=udg_rect147
set udg_rects04[3]=udg_rect146
set udg_rects04[4]=udg_rect145
set udg_rects04[5]=udg_rect144
set udg_rects04[6]=udg_rect143
set udg_rects04[7]=udg_rect142
set udg_rects04[8]=udg_rect141
set udg_rects05[1]=udg_rect157
set udg_rects05[2]=udg_rect162
set udg_rects05[3]=udg_rect155
set udg_rects05[4]=udg_rect159
set udg_rects05[5]=udg_rect158
set udg_rects05[6]=udg_rect160
set udg_rects05[7]=udg_rect156
set udg_rects05[8]=udg_rect161
endfunction
function Trig_Unit_XuatLinh_Actions takes nothing returns nothing
set udg_units01[1]=udg_unit59
set udg_units01[2]=udg_unit57
set udg_units01[3]=udg_unit67
set udg_units01[4]=udg_unit62
set udg_units01[5]=udg_unit61
set udg_units01[6]=udg_unit60
set udg_units01[7]=udg_unit58
set udg_units01[8]=udg_unit63
endfunction
function Trig_Gold_Actions takes nothing returns nothing
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(11))
endfunction
function Trig_Gai_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Undead\\Impale\\ImpaleHitTarget.mdl")
call KillUnit(GetTriggerUnit())
call DisplayTextToForce(GetPlayersAll(),"Be carefull !!!!!!")
endfunction
function Trig_Gai_and_kill_boss_Func003C takes nothing returns boolean
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Gai_and_kill_boss_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call KillUnit(GetTriggerUnit())
if(Trig_Gai_and_kill_boss_Func003C())then
call DisplayTextToForce(GetPlayersAll(),"Be carefull !!!!!!")
else
call DoNothing()
endif
endfunction
function Trig_Sytem_region_XL_Conditions takes nothing returns boolean
if(not(IsUnitAlly(GetTriggerUnit(),Player(11))==true))then
return false
endif
return true
endfunction
function Trig_Sytem_region_XL_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetTriggerUnit(),"attack",GetRectCenter(udg_rect31))
endfunction
function Trig_Hero_Revive_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rect90),0)
endfunction
function Trig_Hero_Revive_2_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetTriggerUnit(),GetRectCenter(udg_rect102))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetTriggerUnit()),GetRectCenter(udg_rect102),0)
endfunction
function Trig_Setup_Func004003001 takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Setup_Actions takes nothing returns nothing
call CreateLeaderboardBJ(GetPlayersAll(),"Number killed")
set udg_leaderboard01=GetLastCreatedLeaderboard()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integers02[GetForLoopIndexA()]=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Setup_Func004003001())then
call LeaderboardAddItemBJ(ConvertedPlayer(GetForLoopIndexA()),udg_leaderboard01,GetPlayerName(ConvertedPlayer(GetForLoopIndexA())),udg_integers02[GetForLoopIndexA()])
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Unit_die_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetDyingUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_Unit_die_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_LUMBER)
call TriggerExecute(udg_trigger59)
endfunction
function Trig_Chance_value_Actions takes nothing returns nothing
call LeaderboardSetPlayerItemValueBJ(GetOwningPlayer(GetKillingUnitBJ()),udg_leaderboard01,GetPlayerState(GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_LUMBER_GATHERED))
call LeaderboardSortItemsBJ(GetLastCreatedLeaderboard(),bj_SORTTYPE_SORTBYVALUE,false)
endfunction
function Trig_Has_left_the_game_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetTriggerPlayer())+" Has left the game !!!!"))
call LeaderboardRemovePlayerItemBJ(GetTriggerPlayer(),udg_leaderboard01)
endfunction
function Trig_Gane_over_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"Noooooooooo!!!!")
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CustomDefeatBJ(ConvertedPlayer(GetForLoopIndexA()),"Defeat!")
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Run_Bounty_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger63)
call EnableTrigger(udg_trigger64)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_HP_Func001C takes nothing returns boolean
if(not(udg_boolean07==false))then
return false
endif
return true
endfunction
function Trig_HP_Actions takes nothing returns nothing
if(Trig_HP_Func001C())then
set udg_integer18=(udg_integer18+100)
call IssueUpgradeOrderByIdBJ(udg_unit81,'Robs')
call DisplayTextToForce(GetPlayersAll(),"Enemy unit has increases their hp, damage and armor...
")
call DisplayTextToForce(GetPlayersAll(),("|cFFFFFF00Killing give to you "+(I2S(udg_integer18)+" gold more....!!!!!")))
else
call DoNothing()
endif
call TriggerSleepAction(600.00)
call TriggerExecute(GetTriggeringTrigger())
endfunction
function Trig_Add_50_gold_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(udg_integer18,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Stop_Attack_Func002C takes nothing returns boolean
if((GetUnitTypeId(GetAttackedUnitBJ())=='hcas'))then
return true
endif
if((GetUnitTypeId(GetAttackedUnitBJ())=='hgtw'))then
return true
endif
return false
endfunction
function Trig_Stop_Attack_Conditions takes nothing returns boolean
if(not Trig_Stop_Attack_Func002C())then
return false
endif
return true
endfunction
function Trig_Stop_Attack_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='hgtw'))then
return false
endif
return true
endfunction
function Trig_Stop_Attack_Actions takes nothing returns nothing
if(Trig_Stop_Attack_Func001C())then
call IssueImmediateOrderBJ(GetAttacker(),"stop")
else
call DoNothing()
endif
endfunction
function Trig_Tower_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='owtw'))then
return false
endif
return true
endfunction
function Trig_Tower_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n00J',Player(11),GetUnitLoc(GetDyingUnit()),bj_UNIT_FACING)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRectCenter(udg_rect31))
endfunction
function Trig_Tower_9_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='unp2'))then
return false
endif
return true
endfunction
function Trig_Tower_9_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'n00K',Player(11),GetUnitLoc(GetDyingUnit()),bj_UNIT_FACING)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"attack",GetRectCenter(udg_rect31))
endfunction
function Trig_Tower_Dead_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h00I'))then
return false
endif
return true
endfunction
function Trig_Tower_Dead_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(100000,GetOwningPlayer(GetKillingUnitBJ()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(GetKillingUnitBJ()))+" get 100000 gold"))
endfunction
function Trig_Gioi_thieu_Actions takes nothing returns nothing
call CinematicModeBJ(true,GetPlayersAll())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetRectCenter(udg_rect107),1.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.00)
call PlaySoundBJ(udg_sound42)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit65,"TheManTime",null,"TRIGSTR_7218",bj_TIMETYPE_ADD,3.00,true)
call TriggerSleepAction(5.00)
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00All player wait for Red to choose Mode..")
call CinematicModeBJ(false,GetPlayersAll())
call TriggerExecute(udg_trigger70)
endfunction
function Trig_Door_Actions takes nothing returns nothing
call DialogSetMessageBJ(udg_dialog01,"How many DOOR You Want ?")
call DialogAddButtonBJ(udg_dialog01,"2 DOOR")
set udg_button01=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog01,"4 DOOR
")
set udg_button02=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog01,"6 DOOR")
set udg_button03=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog01,"8 DOOR")
set udg_button04=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog01,Player(0))
endfunction
function Trig_Door_choose_Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button01))then
return false
endif
return true
endfunction
function Trig_Door_choose_Func002C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button02))then
return false
endif
return true
endfunction
function Trig_Door_choose_Func003C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button03))then
return false
endif
return true
endfunction
function Trig_Door_choose_Func004C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button04))then
return false
endif
return true
endfunction
function Trig_Door_choose_Actions takes nothing returns nothing
if(Trig_Door_choose_Func001C())then
set udg_integer05=2
call EnableTrigger(udg_trigger185)
else
call DoNothing()
endif
if(Trig_Door_choose_Func002C())then
set udg_integer05=4
call EnableTrigger(udg_trigger186)
else
call DoNothing()
endif
if(Trig_Door_choose_Func003C())then
set udg_integer05=6
call EnableTrigger(udg_trigger187)
else
call DoNothing()
endif
if(Trig_Door_choose_Func004C())then
set udg_integer05=8
call EnableTrigger(udg_trigger188)
else
call DoNothing()
endif
call TriggerExecute(udg_trigger72)
endfunction
function Trig_Difficult_Actions takes nothing returns nothing
call DialogSetMessageBJ(udg_dialog02,"TYPE ")
call DialogAddButtonBJ(udg_dialog02,"Normal")
set udg_button05=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Insane")
set udg_button06=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog02,"Hell")
set udg_button07=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog02,Player(0))
endfunction
function Trig_Difficult_choose_Func001C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button05))then
return false
endif
return true
endfunction
function Trig_Difficult_choose_Func002Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(4000,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Difficult_choose_Func002C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button06))then
return false
endif
return true
endfunction
function Trig_Difficult_choose_Func003Func004002 takes nothing returns nothing
call AdjustPlayerStateBJ(6000,GetEnumPlayer(),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Difficult_choose_Func003C takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button07))then
return false
endif
return true
endfunction
function Trig_Difficult_choose_Func005001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Difficult_choose_Func005A takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),Player(PLAYER_NEUTRAL_PASSIVE),true)
endfunction
function Trig_Difficult_choose_Actions takes nothing returns nothing
if(Trig_Difficult_choose_Func001C())then
call TriggerExecute(udg_trigger126)
call TriggerExecute(udg_trigger149)
call DisplayTextToForce(GetPlayersAll(),"Game type Normal !!!!")
set udg_integer13=1
set udg_integer01=3
set udg_integer02=2
set udg_integer03=1
set udg_integer04=1
set udg_integer12=30
set udg_boolean02=false
call TriggerExecute(udg_trigger122)
else
call DoNothing()
endif
if(Trig_Difficult_choose_Func002C())then
call EnableTrigger(udg_trigger26)
call TriggerExecute(udg_trigger126)
call TriggerExecute(udg_trigger149)
call ForForce(GetPlayersAll(),function Trig_Difficult_choose_Func002Func004002)
call TriggerExecute(udg_trigger112)
call DisplayTextToForce(GetPlayersAll(),"|cFFF00000Insane, Special - With every kill hero enemy, gain 2 allstat for Hero. !!!!")
call IssueUpgradeOrderByIdBJ(udg_unit76,'R007')
call IssueUpgradeOrderByIdBJ(udg_unit68,'R000')
set udg_integer13=2
set udg_integer01=3
set udg_integer02=2
set udg_integer03=2
set udg_integer04=2
set udg_integer12=30
set udg_boolean02=false
call TriggerExecute(udg_trigger122)
else
call DoNothing()
endif
if(Trig_Difficult_choose_Func003C())then
call EnableTrigger(udg_trigger27)
call TriggerExecute(udg_trigger126)
call TriggerExecute(udg_trigger149)
call ForForce(GetPlayersAll(),function Trig_Difficult_choose_Func003Func004002)
call DisplayTextToForce(GetPlayersAll(),"|cFFF00000Hell, Special - With every kill hero enemy, gain 5 allstat for Hero. !!!!")
call IssueUpgradeOrderByIdBJ(udg_unit76,'R008')
call IssueUpgradeOrderByIdBJ(udg_unit68,'R000')
set udg_integer13=3
set udg_integer01=3
set udg_integer02=3
set udg_integer03=1
set udg_integer04=2
set udg_integer12=30
set udg_boolean02=true
call TriggerExecute(udg_trigger112)
call TriggerExecute(udg_trigger122)
call TriggerExecute(udg_trigger124)
else
call DoNothing()
endif
call TriggerExecute(udg_trigger108)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect107,Condition(function Trig_Difficult_choose_Func005001002)),function Trig_Difficult_choose_Func005A)
call EnableTrigger(udg_trigger36)
endfunction
function Trig_Arena_Conditions takes nothing returns boolean
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Arena_Func002C takes nothing returns boolean
if(not(GetOwningPlayer(GetEnteringUnit())==Player(0)))then
return false
endif
return true
endfunction
function Trig_Arena_Actions takes nothing returns nothing
if(Trig_Arena_Func002C())then
call DialogSetMessageBJ(udg_dialog03,"ARENA")
call DialogAddButtonBJ(udg_dialog03,"Arena 1")
set udg_button08=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog03,"Arena 2")
set udg_button09=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog03,"Arena 3")
set udg_button10=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog03,"Arena Final")
set udg_button11=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog03,"Cancel")
set udg_button12=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog03,Player(0))
else
call DisplayTextToForce(GetPlayersAll(),"Only RED Can Arena Sry
")
endif
endfunction
function Trig_Arena_1_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button08))then
return false
endif
return true
endfunction
function Trig_Arena_1_choice_Func001C takes nothing returns boolean
if(not(udg_integers01[1]==1))then
return false
endif
return true
endfunction
function Trig_Arena_1_choice_Actions takes nothing returns nothing
if(Trig_Arena_1_choice_Func001C())then
call DialogClearBJ(udg_dialog03)
else
call IssueUpgradeOrderByIdBJ(udg_unit77,'R001')
call TriggerExecute(udg_trigger158)
call DialogClearBJ(udg_dialog03)
set udg_unit01=null
endif
endfunction
function Trig_Arena_2_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button09))then
return false
endif
return true
endfunction
function Trig_Arena_2_choice_Func001C takes nothing returns boolean
if(not(udg_integers01[2]==2))then
return false
endif
return true
endfunction
function Trig_Arena_2_choice_Actions takes nothing returns nothing
if(Trig_Arena_2_choice_Func001C())then
call DialogClearBJ(udg_dialog03)
else
call IssueUpgradeOrderByIdBJ(udg_unit77,'R001')
call TriggerExecute(udg_trigger162)
call DialogClearBJ(udg_dialog03)
set udg_unit01=null
endif
endfunction
function Trig_Arena_3_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button10))then
return false
endif
return true
endfunction
function Trig_Arena_3_choice_Func001C takes nothing returns boolean
if(not(udg_integers01[3]==3))then
return false
endif
return true
endfunction
function Trig_Arena_3_choice_Actions takes nothing returns nothing
if(Trig_Arena_3_choice_Func001C())then
call DialogClearBJ(udg_dialog03)
else
call IssueUpgradeOrderByIdBJ(udg_unit77,'R001')
call TriggerExecute(udg_trigger166)
call DialogClearBJ(udg_dialog03)
set udg_unit01=null
endif
endfunction
function Trig_Arena_4_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button11))then
return false
endif
return true
endfunction
function Trig_Arena_4_choice_Func001C takes nothing returns boolean
if(not(udg_integers01[4]==4))then
return false
endif
return true
endfunction
function Trig_Arena_4_choice_Actions takes nothing returns nothing
if(Trig_Arena_4_choice_Func001C())then
call DialogClearBJ(udg_dialog03)
else
call IssueUpgradeOrderByIdBJ(udg_unit77,'R001')
call TriggerExecute(udg_trigger171)
call DialogClearBJ(udg_dialog03)
set udg_unit01=null
endif
endfunction
function Trig_Cancel_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button12))then
return false
endif
return true
endfunction
function Trig_Cancel_choice_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog03)
endfunction
function Trig_Set_PlayerTomeOn_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_booleans01[GetForLoopIndexA()]=true
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Set_PlayerTomeOff_Func002001 takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I007')
endfunction
function Trig_Set_PlayerTomeOff_Func002002 takes nothing returns boolean
return(GetItemTypeId(GetManipulatedItem())=='I008')
endfunction
function Trig_Set_PlayerTomeOff_Conditions takes nothing returns boolean
if(not GetBooleanOr(Trig_Set_PlayerTomeOff_Func002001(),Trig_Set_PlayerTomeOff_Func002002()))then
return false
endif
return true
endfunction
function Trig_Set_PlayerTomeOff_Func001Func005001 takes nothing returns boolean
return(GetOwningPlayer(GetManipulatingUnit())==Player(0))
endfunction
function Trig_Set_PlayerTomeOff_Func001Func006001 takes nothing returns boolean
return(GetOwningPlayer(GetManipulatingUnit())==Player(1))
endfunction
function Trig_Set_PlayerTomeOff_Func001Func007001 takes nothing returns boolean
return(GetOwningPlayer(GetManipulatingUnit())==Player(2))
endfunction
function Trig_Set_PlayerTomeOff_Func001Func008001 takes nothing returns boolean
return(GetOwningPlayer(GetManipulatingUnit())==Player(3))
endfunction
function Trig_Set_PlayerTomeOff_Func001Func009001 takes nothing returns boolean
return(GetOwningPlayer(GetManipulatingUnit())==Player(4))
endfunction
function Trig_Set_PlayerTomeOff_Func001Func010001 takes nothing returns boolean
return(GetOwningPlayer(GetManipulatingUnit())==Player(5))
endfunction
function Trig_Set_PlayerTomeOff_Func001Func011001 takes nothing returns boolean
return(GetOwningPlayer(GetManipulatingUnit())==Player(6))
endfunction
function Trig_Set_PlayerTomeOff_Func001Func012001 takes nothing returns boolean
return(GetOwningPlayer(GetManipulatingUnit())==Player(7))
endfunction
function Trig_Set_PlayerTomeOff_Func001C takes nothing returns boolean
if(not(GetManipulatingUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Set_PlayerTomeOff_Actions takes nothing returns nothing
if(Trig_Set_PlayerTomeOff_Func001C())then
if(Trig_Set_PlayerTomeOff_Func001Func005001())then
set udg_booleans01[1]=false
else
call DoNothing()
endif
if(Trig_Set_PlayerTomeOff_Func001Func006001())then
set udg_booleans01[2]=false
else
call DoNothing()
endif
if(Trig_Set_PlayerTomeOff_Func001Func007001())then
set udg_booleans01[3]=false
else
call DoNothing()
endif
if(Trig_Set_PlayerTomeOff_Func001Func008001())then
set udg_booleans01[4]=false
else
call DoNothing()
endif
if(Trig_Set_PlayerTomeOff_Func001Func009001())then
set udg_booleans01[5]=false
else
call DoNothing()
endif
if(Trig_Set_PlayerTomeOff_Func001Func010001())then
set udg_booleans01[6]=false
else
call DoNothing()
endif
if(Trig_Set_PlayerTomeOff_Func001Func011001())then
set udg_booleans01[7]=false
else
call DoNothing()
endif
if(Trig_Set_PlayerTomeOff_Func001Func012001())then
set udg_booleans01[8]=false
else
call DoNothing()
endif
call PauseUnitBJ(true,udg_unit01)
call TriggerSleepAction(2)
call CreateItemLoc(GetItemTypeId(GetManipulatedItem()),GetItemLoc(GetManipulatedItem()))
call SetUnitPositionLocFacingBJ(udg_unit01,GetRectCenter(udg_rect90),90.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect90),0)
call PauseUnitBJ(false,udg_unit01)
set udg_unit01=null
call EnableTrigger(udg_trigger82)
else
call UnitRemoveItemSwapped(GetLastCreatedItem(),GetManipulatingUnit())
call KillUnit(GetManipulatingUnit())
call DisplayTextToForce(GetPlayersAll(),"Just first Hero !!!!")
endif
endfunction
function Trig_Test_Conditions takes nothing returns boolean
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Test_Actions takes nothing returns nothing
set udg_unit01=GetEnteringUnit()
call DialogSetMessageBJ(udg_dialog04,"Test Your Self")
call DialogAddButtonBJ(udg_dialog04,"Tome +100 All Stat")
set udg_button13=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog04,"Tome +200 All Stat")
set udg_button14=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog04,"Lightning")
set udg_button16=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog04,"Fire Magma")
set udg_button17=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog04,"Scream")
set udg_button18=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog04,"S0uLy")
set udg_button19=GetLastCreatedButtonBJ()
call DialogAddButtonBJ(udg_dialog04,"Exit")
set udg_button15=GetLastCreatedButtonBJ()
call DialogDisplayBJ(true,udg_dialog04,GetOwningPlayer(udg_unit01))
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_ALL_100_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button13))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(9))
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002001 takes nothing returns boolean
return(udg_booleans01[10]==true)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002002())
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(8))
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[9]==true)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(7))
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[8]==true)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(6))
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[7]==true)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(5))
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[6]==true)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(4))
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[5]==true)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(3))
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[4]==true)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func002002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func001Func002001(),Trig_ALL_100_choice_Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(2))
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[3]==true)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func002002001(),Trig_ALL_100_choice_Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_100_choice_Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func001Func002001(),Trig_ALL_100_choice_Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(1))
endfunction
function Trig_ALL_100_choice_Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[2]==true)
endfunction
function Trig_ALL_100_choice_Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func002002001(),Trig_ALL_100_choice_Func001Func001Func002002002())
endfunction
function Trig_ALL_100_choice_Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func001Func002001(),Trig_ALL_100_choice_Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Func001Func004001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(0))
endfunction
function Trig_ALL_100_choice_Func001Func004002001 takes nothing returns boolean
return(udg_booleans01[1]==true)
endfunction
function Trig_ALL_100_choice_Func001Func004002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=5000)
endfunction
function Trig_ALL_100_choice_Func001Func004002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_100_choice_Func001Func004002001(),Trig_ALL_100_choice_Func001Func004002002())
endfunction
function Trig_ALL_100_choice_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_100_choice_Func001Func004001(),Trig_ALL_100_choice_Func001Func004002()))then
return false
endif
return true
endfunction
function Trig_ALL_100_choice_Actions takes nothing returns nothing
if(Trig_ALL_100_choice_Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
if(Trig_ALL_100_choice_Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
if(Trig_ALL_100_choice_Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
if(Trig_ALL_100_choice_Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
if(Trig_ALL_100_choice_Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
if(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
if(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
if(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
if(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
if(Trig_ALL_100_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger94)
else
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" don't have enough 5000 gold"))
call DialogClearBJ(udg_dialog04)
set udg_unit01=null
call EnableTrigger(udg_trigger82)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function Trig_ALL_200_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button14))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(9))
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002001 takes nothing returns boolean
return(udg_booleans01[10]==true)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002002())
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001Func005002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(8))
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[9]==true)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(7))
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[8]==true)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(6))
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[7]==true)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(5))
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[6]==true)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(4))
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[5]==true)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func002002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(3))
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[4]==true)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func002002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func001Func002001(),Trig_ALL_200_choice_Func001Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(2))
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[3]==true)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func002002001(),Trig_ALL_200_choice_Func001Func001Func001Func002002002())
endfunction
function Trig_ALL_200_choice_Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func001Func002001(),Trig_ALL_200_choice_Func001Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func001Func002001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(1))
endfunction
function Trig_ALL_200_choice_Func001Func001Func002002001 takes nothing returns boolean
return(udg_booleans01[2]==true)
endfunction
function Trig_ALL_200_choice_Func001Func001Func002002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func001Func002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func002002001(),Trig_ALL_200_choice_Func001Func001Func002002002())
endfunction
function Trig_ALL_200_choice_Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func001Func002001(),Trig_ALL_200_choice_Func001Func001Func002002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Func001Func004001 takes nothing returns boolean
return(GetOwningPlayer(udg_unit01)==Player(0))
endfunction
function Trig_ALL_200_choice_Func001Func004002001 takes nothing returns boolean
return(udg_booleans01[1]==true)
endfunction
function Trig_ALL_200_choice_Func001Func004002002 takes nothing returns boolean
return(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=8000)
endfunction
function Trig_ALL_200_choice_Func001Func004002 takes nothing returns boolean
return GetBooleanAnd(Trig_ALL_200_choice_Func001Func004002001(),Trig_ALL_200_choice_Func001Func004002002())
endfunction
function Trig_ALL_200_choice_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_ALL_200_choice_Func001Func004001(),Trig_ALL_200_choice_Func001Func004002()))then
return false
endif
return true
endfunction
function Trig_ALL_200_choice_Actions takes nothing returns nothing
if(Trig_ALL_200_choice_Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
if(Trig_ALL_200_choice_Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
if(Trig_ALL_200_choice_Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
if(Trig_ALL_200_choice_Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
if(Trig_ALL_200_choice_Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
if(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
if(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
if(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
if(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
if(Trig_ALL_200_choice_Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
call DialogClearBJ(udg_dialog04)
call TriggerExecute(udg_trigger95)
else
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" don't have enough 8000 gold or take Tome alredy !!"))
call DialogClearBJ(udg_dialog04)
set udg_unit01=null
call EnableTrigger(udg_trigger82)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function Trig_Lightning_Monter_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button16))then
return false
endif
return true
endfunction
function Trig_Lightning_Monter_choice_Func002Func024Func001Func001C takes nothing returns boolean
if(not(udg_integer13==3))then
return false
endif
return true
endfunction
function Trig_Lightning_Monter_choice_Func002Func024Func001C takes nothing returns boolean
if(not(udg_integer13==2))then
return false
endif
return true
endfunction
function Trig_Lightning_Monter_choice_Func002Func024C takes nothing returns boolean
if(not(udg_integer13==1))then
return false
endif
return true
endfunction
function Trig_Lightning_Monter_choice_Func002C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=10000))then
return false
endif
return true
endfunction
function Trig_Lightning_Monter_choice_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog04)
if(Trig_Lightning_Monter_choice_Func002C())then
call AdjustPlayerStateBJ(-10000,GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)
call PauseUnitBJ(true,udg_unit01)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" decide to kill Lighting Monter Slip"))
call TriggerSleepAction(3.00)
call SetUnitPositionLocFacingBJ(udg_unit01,GetRectCenter(udg_rect110),45.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call EnableTrigger(udg_trigger97)
call EnableTrigger(udg_trigger98)
call CreateFogModifierRectBJ(true,GetOwningPlayer(udg_unit01),FOG_OF_WAR_VISIBLE,udg_rect111)
call TriggerSleepAction(2.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect112),1.00)
call TriggerSleepAction(2)
call PlaySoundBJ(udg_sound22)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect111),"Abilities\\Spells\\Other\\Monsoon\\MonsoonBoltTarget.mdl")
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.00)
call CreateNUnitsAtLoc(1,'H00K',Player(11),GetRectCenter(udg_rect112),225.00)
set udg_unit13=GetLastCreatedUnit()
call PauseUnitBJ(true,udg_unit13)
call TerrainDeformationRippleBJ(1.00,false,GetRectCenter(udg_rect112),1024,1024,80.00,1,512)
call PlaySoundBJ(udg_sound21)
if(Trig_Lightning_Monter_choice_Func002Func024C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,8000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,8000)
else
if(Trig_Lightning_Monter_choice_Func002Func024Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,10000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,6000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,10000)
else
if(Trig_Lightning_Monter_choice_Func002Func024Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,12000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,7000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,12000)
else
call DoNothing()
endif
endif
endif
call TriggerSleepAction(3.00)
call EnableTrigger(udg_trigger96)
call PauseUnitBJ(false,udg_unit01)
call PauseUnitBJ(false,udg_unit13)
call DisableTrigger(GetTriggeringTrigger())
else
call DialogClearBJ(udg_dialog04)
call DisplayTextToForce(GetPlayersAll(),"You need 10000 gold....")
call EnableTrigger(udg_trigger82)
endif
endfunction
function Trig_Lightning_Monter_choice_Ready_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button16))then
return false
endif
return true
endfunction
function Trig_Lightning_Monter_choice_Ready_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog04)
call EnableTrigger(udg_trigger82)
call DisplayTextToForce(GetPlayersAll(),"No more !!!!!")
endfunction
function Trig_Fire_Monter_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button17))then
return false
endif
return true
endfunction
function Trig_Fire_Monter_choice_Func002Func023Func001Func001C takes nothing returns boolean
if(not(udg_integer13==3))then
return false
endif
return true
endfunction
function Trig_Fire_Monter_choice_Func002Func023Func001C takes nothing returns boolean
if(not(udg_integer13==2))then
return false
endif
return true
endfunction
function Trig_Fire_Monter_choice_Func002Func023C takes nothing returns boolean
if(not(udg_integer13==1))then
return false
endif
return true
endfunction
function Trig_Fire_Monter_choice_Func002C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=10000))then
return false
endif
return true
endfunction
function Trig_Fire_Monter_choice_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog04)
if(Trig_Fire_Monter_choice_Func002C())then
call AdjustPlayerStateBJ(-10000,GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)
call PauseUnitBJ(true,udg_unit01)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" decide to kill Fire Magma"))
call TriggerSleepAction(3.00)
call SetUnitPositionLocFacingBJ(udg_unit01,GetRectCenter(udg_rect113),45.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call EnableTrigger(udg_trigger101)
call EnableTrigger(udg_trigger100)
call CreateFogModifierRectBJ(true,GetOwningPlayer(udg_unit01),FOG_OF_WAR_VISIBLE,udg_rect115)
call TriggerSleepAction(2.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect114),1.00)
call TriggerSleepAction(2)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect115),"Abilities\\Spells\\Demon\\DarkPortal\\DarkPortalTarget.mdl")
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.00)
call CreateNUnitsAtLoc(1,'H00M',Player(11),GetRectCenter(udg_rect114),225.00)
set udg_unit13=GetLastCreatedUnit()
call PauseUnitBJ(true,udg_unit13)
call TerrainDeformationRippleBJ(1.00,false,GetRectCenter(udg_rect114),1024,1024,80.00,1,512)
call PlaySoundBJ(udg_sound10)
if(Trig_Fire_Monter_choice_Func002Func023C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,10000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,10000)
else
if(Trig_Fire_Monter_choice_Func002Func023Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,12000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,6000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,12000)
else
if(Trig_Fire_Monter_choice_Func002Func023Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,15000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,8000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,15000)
else
call DoNothing()
endif
endif
endif
call TriggerSleepAction(3.00)
call EnableTrigger(udg_trigger99)
call PauseUnitBJ(false,udg_unit01)
call PauseUnitBJ(false,udg_unit13)
call DisableTrigger(GetTriggeringTrigger())
else
call DialogClearBJ(udg_dialog04)
call DisplayTextToForce(GetPlayersAll(),"You need 10000 gold....")
call EnableTrigger(udg_trigger82)
endif
endfunction
function Trig_Fire_choice_ready_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button17))then
return false
endif
return true
endfunction
function Trig_Fire_choice_ready_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog04)
call EnableTrigger(udg_trigger82)
call DisplayTextToForce(GetPlayersAll(),"No more !!!!!")
endfunction
function Trig_Fost_monter_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button18))then
return false
endif
return true
endfunction
function Trig_Fost_monter_choice_Func002Func023Func001Func001C takes nothing returns boolean
if(not(udg_integer13==3))then
return false
endif
return true
endfunction
function Trig_Fost_monter_choice_Func002Func023Func001C takes nothing returns boolean
if(not(udg_integer13==2))then
return false
endif
return true
endfunction
function Trig_Fost_monter_choice_Func002Func023C takes nothing returns boolean
if(not(udg_integer13==1))then
return false
endif
return true
endfunction
function Trig_Fost_monter_choice_Func002C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=10000))then
return false
endif
return true
endfunction
function Trig_Fost_monter_choice_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog04)
if(Trig_Fost_monter_choice_Func002C())then
call AdjustPlayerStateBJ(-10000,GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)
call PauseUnitBJ(true,udg_unit01)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" decide to kill Fost Scream"))
call TriggerSleepAction(3.00)
call SetUnitPositionLocFacingBJ(udg_unit01,GetRectCenter(udg_rect117),45.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call EnableTrigger(udg_trigger104)
call EnableTrigger(udg_trigger103)
call CreateFogModifierRectBJ(true,GetOwningPlayer(udg_unit01),FOG_OF_WAR_VISIBLE,udg_rect116)
call TriggerSleepAction(2.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect118),1.00)
call TriggerSleepAction(2)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect116),"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.00)
call CreateNUnitsAtLoc(1,'H00N',Player(11),GetRectCenter(udg_rect118),225.00)
set udg_unit13=GetLastCreatedUnit()
call PauseUnitBJ(true,udg_unit13)
call TerrainDeformationRippleBJ(1.00,false,GetRectCenter(udg_rect114),1024,1024,80.00,1,512)
call PlaySoundBJ(udg_sound10)
if(Trig_Fost_monter_choice_Func002Func023C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,15000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,8000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,15000)
else
if(Trig_Fost_monter_choice_Func002Func023Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,17000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,9000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,17000)
else
if(Trig_Fost_monter_choice_Func002Func023Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,19000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,11000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,19000)
else
call DoNothing()
endif
endif
endif
call TriggerSleepAction(3.00)
call EnableTrigger(udg_trigger102)
call PauseUnitBJ(false,udg_unit01)
call PauseUnitBJ(false,udg_unit13)
call DisableTrigger(GetTriggeringTrigger())
else
call DialogClearBJ(udg_dialog04)
call DisplayTextToForce(GetPlayersAll(),"You need 10000 gold....")
call EnableTrigger(udg_trigger82)
endif
endfunction
function Trig_Fost_choice_ready_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button18))then
return false
endif
return true
endfunction
function Trig_Fost_choice_ready_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog04)
call EnableTrigger(udg_trigger82)
call DisplayTextToForce(GetPlayersAll(),"No more !!!!!")
endfunction
function Trig_Osin_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button19))then
return false
endif
return true
endfunction
function Trig_Osin_choice_Func002Func023Func001Func001C takes nothing returns boolean
if(not(udg_integer13==3))then
return false
endif
return true
endfunction
function Trig_Osin_choice_Func002Func023Func001C takes nothing returns boolean
if(not(udg_integer13==2))then
return false
endif
return true
endfunction
function Trig_Osin_choice_Func002Func023C takes nothing returns boolean
if(not(udg_integer13==1))then
return false
endif
return true
endfunction
function Trig_Osin_choice_Func002C takes nothing returns boolean
if(not(GetPlayerState(GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)>=10000))then
return false
endif
return true
endfunction
function Trig_Osin_choice_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog04)
if(Trig_Osin_choice_Func002C())then
call AdjustPlayerStateBJ(-10000,GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)
call PauseUnitBJ(true,udg_unit01)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" decide to kill S0uLy"))
call TriggerSleepAction(3.00)
call SetUnitPositionLocFacingBJ(udg_unit01,GetRectCenter(udg_rect119),45.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call EnableTrigger(udg_trigger107)
call EnableTrigger(udg_trigger106)
call CreateFogModifierRectBJ(true,GetOwningPlayer(udg_unit01),FOG_OF_WAR_VISIBLE,udg_rect121)
call TriggerSleepAction(2.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect120),1.00)
call TriggerSleepAction(2)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect121),"Objects\\Spawnmodels\\Undead\\UCancelDeath\\UCancelDeath.mdl")
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.00)
call CreateNUnitsAtLoc(1,'H00O',Player(11),GetRectCenter(udg_rect120),225.00)
set udg_unit13=GetLastCreatedUnit()
call PauseUnitBJ(true,udg_unit13)
call TerrainDeformationRippleBJ(1.00,false,GetRectCenter(udg_rect120),1024,1024,80.00,1,512)
call PlaySoundBJ(udg_sound10)
if(Trig_Osin_choice_Func002Func023C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,20000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,10000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,20000)
else
if(Trig_Osin_choice_Func002Func023Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,23000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,10100)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,23000)
else
if(Trig_Osin_choice_Func002Func023Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit13,bj_MODIFYMETHOD_ADD,26000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit13,bj_MODIFYMETHOD_ADD,11000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit13,bj_MODIFYMETHOD_ADD,26000)
else
call DoNothing()
endif
endif
endif
call TriggerSleepAction(3.00)
call EnableTrigger(udg_trigger105)
call PauseUnitBJ(false,udg_unit01)
call PauseUnitBJ(false,udg_unit13)
call DisableTrigger(GetTriggeringTrigger())
else
call DialogClearBJ(udg_dialog04)
call DisplayTextToForce(GetPlayersAll(),"You need 10000 gold....")
call EnableTrigger(udg_trigger82)
endif
endfunction
function Trig_Osin_choi_ready_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button19))then
return false
endif
return true
endfunction
function Trig_Osin_choi_ready_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog04)
call EnableTrigger(udg_trigger82)
call DisplayTextToForce(GetPlayersAll(),"No more !!!!!")
endfunction
function Trig_Exit_choice_Conditions takes nothing returns boolean
if(not(GetClickedButtonBJ()==udg_button15))then
return false
endif
return true
endfunction
function Trig_Exit_choice_Actions takes nothing returns nothing
call DialogClearBJ(udg_dialog04)
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Test_1_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(-5000,GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)
call PauseUnitBJ(true,udg_unit01)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" has selected 100 allstat"))
call TriggerSleepAction(2.00)
call SetUnitPositionLocFacingBJ(udg_unit01,GetRectCenter(udg_rect54),90.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call CreateFogModifierRectBJ(true,GetOwningPlayer(udg_unit01),FOG_OF_WAR_VISIBLE,udg_rect93)
call TriggerSleepAction(2.00)
call PauseUnitBJ(false,udg_unit01)
call EnableTrigger(udg_trigger183)
endfunction
function Trig_Test_2_Actions takes nothing returns nothing
call AdjustPlayerStateBJ(-8000,GetOwningPlayer(udg_unit01),PLAYER_STATE_RESOURCE_GOLD)
call PauseUnitBJ(true,udg_unit01)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" has selected 200 allstat"))
call TriggerSleepAction(2.00)
call SetUnitPositionLocFacingBJ(udg_unit01,GetRectCenter(udg_rect80),90.00)
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call CreateFogModifierRectBJ(true,GetOwningPlayer(udg_unit01),FOG_OF_WAR_VISIBLE,udg_rect94)
call TriggerSleepAction(2.00)
call PauseUnitBJ(false,udg_unit01)
call EnableTrigger(udg_trigger183)
endfunction
function Trig_Monter_killed_Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_unit13)==true))then
return false
endif
return true
endfunction
function Trig_Monter_killed_Actions takes nothing returns nothing
if(Trig_Monter_killed_Func001C())then
call DisableTrigger(udg_trigger97)
call PauseUnitBJ(true,udg_unit01)
call TriggerSleepAction(2.00)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" has kill Lightning...."))
call UnitAddAbilityBJ('A02V',udg_unit01)
call TriggerSleepAction(3.00)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call PauseUnitBJ(false,udg_unit01)
set udg_unit01=null
set udg_unit13=null
call EnableTrigger(udg_trigger82)
call EnableTrigger(udg_trigger86)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Hero_Die_in_LM_Conditions takes nothing returns boolean
if(not(GetDyingUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Hero_Die_in_LM_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger85)
call DisableTrigger(udg_trigger96)
call ReviveHeroLoc(udg_unit01,GetRectCenter(udg_rect90),false)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect90),0)
call DisplayTextToForce(GetPlayersAll(),"..Over....")
call RemoveUnit(udg_unit13)
set udg_unit01=null
set udg_unit13=null
call TriggerSleepAction(1.00)
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Leave_1_Conditions takes nothing returns boolean
if(not(GetEnteringUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Leave_1_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger96)
call DisableTrigger(udg_trigger97)
call EnableTrigger(udg_trigger85)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect90),0)
call DisplayTextToForce(GetPlayersAll(),"You Can't...")
call RemoveUnit(udg_unit13)
set udg_unit13=null
set udg_unit01=null
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Monter_killed_2_Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_unit13)==true))then
return false
endif
return true
endfunction
function Trig_Monter_killed_2_Actions takes nothing returns nothing
if(Trig_Monter_killed_2_Func001C())then
call DisableTrigger(udg_trigger100)
call PauseUnitBJ(true,udg_unit01)
call TriggerSleepAction(2.00)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" has kill Magma"))
call UnitAddAbilityBJ('A02X',udg_unit01)
call TriggerSleepAction(3.00)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call PauseUnitBJ(false,udg_unit01)
set udg_unit01=null
set udg_unit13=null
call EnableTrigger(udg_trigger82)
call EnableTrigger(udg_trigger88)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Hero_Die_in_LM_2_Conditions takes nothing returns boolean
if(not(GetDyingUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Hero_Die_in_LM_2_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger87)
call DisableTrigger(udg_trigger99)
call ReviveHeroLoc(udg_unit01,GetRectCenter(udg_rect90),false)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect90),0)
call DisplayTextToForce(GetPlayersAll(),"..Over....")
call RemoveUnit(udg_unit13)
set udg_unit01=null
set udg_unit13=null
call TriggerSleepAction(1.00)
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Leave_2_Conditions takes nothing returns boolean
if(not(GetEnteringUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Leave_2_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger99)
call DisableTrigger(udg_trigger100)
call EnableTrigger(udg_trigger87)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect90),0)
call DisplayTextToForce(GetPlayersAll(),"You Can't...")
call RemoveUnit(udg_unit13)
set udg_unit13=null
set udg_unit01=null
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Monter_killed_3_Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_unit13)==true))then
return false
endif
return true
endfunction
function Trig_Monter_killed_3_Actions takes nothing returns nothing
if(Trig_Monter_killed_3_Func001C())then
call DisableTrigger(udg_trigger103)
call PauseUnitBJ(true,udg_unit01)
call TriggerSleepAction(2.00)
call UnitAddItemByIdSwapped('I00G',udg_unit01)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" has kill Fost Scream"))
call TriggerSleepAction(3.00)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call PauseUnitBJ(false,udg_unit01)
set udg_unit01=null
set udg_unit13=null
call EnableTrigger(udg_trigger82)
call EnableTrigger(udg_trigger90)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Hero_Die_in_LM_3_Conditions takes nothing returns boolean
if(not(GetDyingUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Hero_Die_in_LM_3_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger89)
call DisableTrigger(udg_trigger102)
call ReviveHeroLoc(udg_unit01,GetRectCenter(udg_rect90),false)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect90),0)
call DisplayTextToForce(GetPlayersAll(),"..Over....")
call RemoveUnit(udg_unit13)
set udg_unit01=null
set udg_unit13=null
call TriggerSleepAction(1.00)
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Leave_3_Conditions takes nothing returns boolean
if(not(GetEnteringUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Leave_3_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger102)
call DisableTrigger(udg_trigger103)
call EnableTrigger(udg_trigger89)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect90),0)
call DisplayTextToForce(GetPlayersAll(),"You Can't...")
call RemoveUnit(udg_unit13)
set udg_unit13=null
set udg_unit01=null
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Monter_killed_4_Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_unit13)==true))then
return false
endif
return true
endfunction
function Trig_Monter_killed_4_Actions takes nothing returns nothing
if(Trig_Monter_killed_4_Func001C())then
call DisableTrigger(udg_trigger106)
call PauseUnitBJ(true,udg_unit01)
call TriggerSleepAction(2.00)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" has kill S0uLy"))
call TriggerSleepAction(3.00)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetUnitLoc(udg_unit01),0)
call UnitAddItemByIdSwapped('I00H',udg_unit01)
call PauseUnitBJ(false,udg_unit01)
set udg_unit01=null
set udg_unit13=null
call EnableTrigger(udg_trigger82)
call EnableTrigger(udg_trigger92)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Hero_Die_in_LM_4_Conditions takes nothing returns boolean
if(not(GetDyingUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Hero_Die_in_LM_4_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger91)
call DisableTrigger(udg_trigger105)
call ReviveHeroLoc(udg_unit01,GetRectCenter(udg_rect90),false)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect90),0)
call DisplayTextToForce(GetPlayersAll(),"..Over....")
call RemoveUnit(udg_unit13)
set udg_unit01=null
set udg_unit13=null
call TriggerSleepAction(1.00)
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Leave_4_Conditions takes nothing returns boolean
if(not(GetEnteringUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Leave_4_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger105)
call DisableTrigger(udg_trigger106)
call EnableTrigger(udg_trigger91)
call SetUnitPositionLoc(udg_unit01,GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(udg_unit01),GetRectCenter(udg_rect90),0)
call DisplayTextToForce(GetPlayersAll(),"You Can't...")
call RemoveUnit(udg_unit13)
set udg_unit13=null
set udg_unit01=null
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Human_attack_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Human_attack_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Human_attack_Func003003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Human_attack_Func004003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Human_attack_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Human_attack_Func001003001())then
call CreateNUnitsAtLoc(udg_integer01,'hfoo',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Human_attack_Func002003001())then
call CreateNUnitsAtLoc(udg_integer02,'hrif',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Human_attack_Func003003001())then
call CreateNUnitsAtLoc(udg_integer03,'hkni',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Human_attack_Func004003001())then
call CreateNUnitsAtLoc(udg_integer04,'hmpr',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(udg_real01)
call TriggerExecute(udg_trigger109)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Orc_attack_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Orc_attack_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Orc_attack_Func003003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Orc_attack_Func004003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Orc_attack_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Orc_attack_Func001003001())then
call CreateNUnitsAtLoc(udg_integer01,'ogru',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Orc_attack_Func002003001())then
call CreateNUnitsAtLoc(udg_integer02,'ohun',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Orc_attack_Func003003001())then
call CreateNUnitsAtLoc(udg_integer03,'otau',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Orc_attack_Func004003001())then
call CreateNUnitsAtLoc(udg_integer04,'oshm',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(udg_real01)
call TriggerExecute(udg_trigger110)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Undead_attack_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Undead_attack_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Undead_attack_Func003003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Undead_attack_Func004003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Undead_attack_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Undead_attack_Func001003001())then
call CreateNUnitsAtLoc(udg_integer01,'ugho',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Undead_attack_Func002003001())then
call CreateNUnitsAtLoc(udg_integer02,'ucry',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Undead_attack_Func003003001())then
call CreateNUnitsAtLoc(udg_integer03,'uabo',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Undead_attack_Func004003001())then
call CreateNUnitsAtLoc(udg_integer04,'unec',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(udg_real01)
call TriggerExecute(udg_trigger111)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Night_attack_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Night_attack_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Night_attack_Func003003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Night_attack_Func004003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Night_attack_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Night_attack_Func001003001())then
call CreateNUnitsAtLoc(udg_integer01,'esen',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Night_attack_Func002003001())then
call CreateNUnitsAtLoc(udg_integer02,'earc',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Night_attack_Func003003001())then
call CreateNUnitsAtLoc(udg_integer03,'emtg',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Night_attack_Func004003001())then
call CreateNUnitsAtLoc(udg_integer04,'edoc',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(udg_real01)
call TriggerExecute(udg_trigger108)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Human_attack_Hero_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Human_attack_Hero_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Human_attack_Hero_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Human_attack_Hero_Func001003001())then
call CreateNUnitsAtLoc(1,'H01Y',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Human_attack_Hero_Func002003001())then
call CreateNUnitsAtLoc(1,'H01Z',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(15.00)
call TriggerExecute(udg_trigger113)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Human_attack_Hero_2_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Human_attack_Hero_2_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Human_attack_Hero_2_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Human_attack_Hero_2_Func001003001())then
call CreateNUnitsAtLoc(1,'H020',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Human_attack_Hero_2_Func002003001())then
call CreateNUnitsAtLoc(1,'H021',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(60.00)
call TriggerExecute(udg_trigger114)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Orb_attack_Hero_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Orb_attack_Hero_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Orb_attack_Hero_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Orb_attack_Hero_Func001003001())then
call CreateNUnitsAtLoc(1,'O013',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Orb_attack_Hero_Func002003001())then
call CreateNUnitsAtLoc(1,'O014',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(15.00)
call TriggerExecute(udg_trigger115)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Orb_attack_Hero_2_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Orb_attack_Hero_2_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Orb_attack_Hero_2_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Orb_attack_Hero_2_Func001003001())then
call CreateNUnitsAtLoc(1,'O015',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Orb_attack_Hero_2_Func002003001())then
call CreateNUnitsAtLoc(1,'O012',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(60.00)
call TriggerExecute(udg_trigger116)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Night_attack_Hero_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Night_attack_Hero_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Night_attack_Hero_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Night_attack_Hero_Func001003001())then
call CreateNUnitsAtLoc(1,'E00E',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Night_attack_Hero_Func002003001())then
call CreateNUnitsAtLoc(1,'E00G',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(15.00)
call TriggerExecute(udg_trigger117)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Night_attack_Hero_2_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Night_attack_Hero_2_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Night_attack_Hero_2_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Night_attack_Hero_2_Func001003001())then
call CreateNUnitsAtLoc(1,'E00H',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Night_attack_Hero_2_Func002003001())then
call CreateNUnitsAtLoc(1,'E00F',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(60.00)
call TriggerExecute(udg_trigger118)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Undead_attack_Hero_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Undead_attack_Hero_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Undead_attack_Hero_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Undead_attack_Hero_Func001003001())then
call CreateNUnitsAtLoc(1,'U006',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Undead_attack_Hero_Func002003001())then
call CreateNUnitsAtLoc(1,'U008',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(15.00)
call TriggerExecute(udg_trigger119)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Undead_attack_Hero_2_Func001003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Undead_attack_Hero_2_Func002003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_Undead_attack_Hero_2_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Undead_attack_Hero_2_Func001003001())then
call CreateNUnitsAtLoc(1,'U007',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Undead_attack_Hero_2_Func002003001())then
call CreateNUnitsAtLoc(1,'U009',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(60.00)
call TriggerExecute(udg_trigger112)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Atribute_Func004C takes nothing returns boolean
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetOwningPlayer(GetEnteringUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_Atribute_Conditions takes nothing returns boolean
if(not Trig_Atribute_Func004C())then
return false
endif
return true
endfunction
function Trig_Atribute_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,GetEnteringUnit(),bj_MODIFYMETHOD_ADD,udg_integer17)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetEnteringUnit(),bj_MODIFYMETHOD_ADD,udg_integer17)
call ModifyHeroStat(bj_HEROSTAT_INT,GetEnteringUnit(),bj_MODIFYMETHOD_ADD,udg_integer17)
endfunction
function Trig_Level_Ability_Func044C takes nothing returns boolean
if(not(IsUnitType(GetEnteringUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetOwningPlayer(GetEnteringUnit())==Player(11)))then
return false
endif
return true
endfunction
function Trig_Level_Ability_Conditions takes nothing returns boolean
if(not Trig_Level_Ability_Func044C())then
return false
endif
return true
endfunction
function Trig_Level_Ability_Actions takes nothing returns nothing
call SetUnitAbilityLevelSwapped('A085',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A075',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A076',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A081',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07T',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07O',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A089',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07U',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07S',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A088',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A082',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A083',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A01R',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07M',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07V',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A079',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07G',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07J',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07P',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A087',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A086',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07Z',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A080',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07L',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07F',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A08B',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07H',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07R',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07Y',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07N',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07C',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07K',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07X',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A08C',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07E',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A077',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07A',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A078',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07B',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A07D',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A084',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A08A',GetEnteringUnit(),udg_integer16)
call SetUnitAbilityLevelSwapped('A01L',GetEnteringUnit(),udg_integer16)
endfunction
function Trig_Time_Next_Wave_Actions takes nothing returns nothing
call CreateTimerDialogBJ(udg_timer04,"Next Wave")
call StartTimerBJ(udg_timer04,false,udg_real11)
set udg_timerdialog03=GetLastCreatedTimerDialogBJ()
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func004Func004003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func004C takes nothing returns boolean
if(not(udg_real12>=10.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func005003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real12==9.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func004003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real12==8.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func005003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real12==7.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func005003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real12==6.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func005003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real12==5.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001Func005003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func001C takes nothing returns boolean
if(not(udg_real12==4.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001Func005003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_TimeNW_Ex_Func003Func001Func001C takes nothing returns boolean
if(not(udg_real12==3.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Func003Func001Func005003001 takes nothing returns boolean
return(IsUnitAliveBJ(udg_units01[GetForLoopIndexA()])==true)
endfunction
function Trig_TimeNW_Ex_Func003Func001C takes nothing returns boolean
if(not(udg_real12==2.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Func003C takes nothing returns boolean
if(not(udg_real12==1.00))then
return false
endif
return true
endfunction
function Trig_TimeNW_Ex_Actions takes nothing returns nothing
call DestroyTimerDialogBJ(udg_timerdialog03)
call PlaySoundBJ(udg_sound04)
if(Trig_TimeNW_Ex_Func003C())then
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at BOTTOM !!!!!")
call TriggerSleepAction(7.00)
call CreateNUnitsAtLoc(10,'n000',Player(11),GetRectCenter(udg_rect81),90.00)
else
if(Trig_TimeNW_Ex_Func003Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at TOP !!!!!")
call TriggerSleepAction(7.00)
call CreateNUnitsAtLoc(16,'n001',Player(11),GetRectCenter(udg_rect83),270.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_TimeNW_Ex_Func003Func001Func005003001())then
call CreateNUnitsAtLoc(3,'n007',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_TimeNW_Ex_Func003Func001Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at RIGHT!!!!!")
call TriggerSleepAction(7.00)
call CreateNUnitsAtLoc(18,'n002',Player(11),GetRectCenter(udg_rect82),180.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_TimeNW_Ex_Func003Func001Func001Func005003001())then
call CreateNUnitsAtLoc(3,'n008',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_TimeNW_Ex_Func003Func001Func001Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at TOP !!!!!")
call TriggerSleepAction(7.00)
call CreateNUnitsAtLoc(18,'n003',Player(11),GetRectCenter(udg_rect83),270.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func005003001())then
call CreateNUnitsAtLoc(3,'n009',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at BOTTOM !!!!!")
call TriggerSleepAction(7.00)
call CreateNUnitsAtLoc(20,'n004',Player(11),GetRectCenter(udg_rect81),90.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func005003001())then
call CreateNUnitsAtLoc(3,'n00A',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at LEFT !!!!!")
call TriggerSleepAction(7.00)
call CreateNUnitsAtLoc(20,'n005',Player(11),GetRectCenter(udg_rect84),180.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func005003001())then
call CreateNUnitsAtLoc(3,'n00B',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at TOP !!!!!")
call TriggerSleepAction(7.00)
call CreateNUnitsAtLoc(20,'n006',Player(11),GetRectCenter(udg_rect83),270.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func005003001())then
call CreateNUnitsAtLoc(3,'n009',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001C())then
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at EVERYWHERE !!!!!")
call TriggerSleepAction(7.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func004003001())then
call CreateNUnitsAtLoc(3,'n009',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(15,'n000',Player(11),GetRectCenter(udg_rect81),90.00)
call CreateNUnitsAtLoc(15,'n001',Player(11),GetRectCenter(udg_rect83),270.00)
call CreateNUnitsAtLoc(15,'n004',Player(11),GetRectCenter(udg_rect84),0.00)
call CreateNUnitsAtLoc(15,'n002',Player(11),GetRectCenter(udg_rect82),0.00)
else
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_real11=120.00
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at EVERYWHERE !!!!!")
call TriggerSleepAction(7.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func005003001())then
call CreateNUnitsAtLoc(3,'h000',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(15,'n003',Player(11),GetRectCenter(udg_rect83),270.00)
call CreateNUnitsAtLoc(10,'n004',Player(11),GetRectCenter(udg_rect81),90.00)
call CreateNUnitsAtLoc(15,'n005',Player(11),GetRectCenter(udg_rect84),180.00)
call CreateNUnitsAtLoc(10,'n006',Player(11),GetRectCenter(udg_rect82),0.00)
else
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func004C())then
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Some thing is dangerous at EVERYWHERE !!!!!")
call TriggerSleepAction(7.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer05
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_TimeNW_Ex_Func003Func001Func001Func001Func001Func001Func001Func001Func001Func004Func004003001())then
call CreateNUnitsAtLoc(3,'h000',Player(11),GetRectCenter(udg_rects01[GetForLoopIndexA()]),bj_UNIT_FACING)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(10,'u00A',Player(11),GetRectCenter(udg_rect83),270.00)
call CreateNUnitsAtLoc(10,'u00C',Player(11),GetRectCenter(udg_rect81),90.00)
call CreateNUnitsAtLoc(10,'u00D',Player(11),GetRectCenter(udg_rect84),180.00)
call CreateNUnitsAtLoc(10,'u00E',Player(11),GetRectCenter(udg_rect82),0.00)
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
set udg_real12=(udg_real12+1)
call TriggerExecute(udg_trigger122)
endfunction
function Trig_Dragon_Wave_Time_Actions takes nothing returns nothing
call CreateTimerDialogBJ(udg_timer05,"Dragon Wave
")
call StartTimerBJ(udg_timer05,false,udg_real13)
set udg_timerdialog04=GetLastCreatedTimerDialogBJ()
endfunction
function Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real14>=9.00))then
return false
endif
return true
endfunction
function Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real14==8.00))then
return false
endif
return true
endfunction
function Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real14==7.00))then
return false
endif
return true
endfunction
function Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real14==6.00))then
return false
endif
return true
endfunction
function Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001C takes nothing returns boolean
if(not(udg_real14==5.00))then
return false
endif
return true
endfunction
function Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001C takes nothing returns boolean
if(not(udg_real14==4.00))then
return false
endif
return true
endfunction
function Trig_Dragon_Wave_Time_Ex_Func007Func001Func001C takes nothing returns boolean
if(not(udg_real14==3.00))then
return false
endif
return true
endfunction
function Trig_Dragon_Wave_Time_Ex_Func007Func001C takes nothing returns boolean
if(not(udg_real14==2.00))then
return false
endif
return true
endfunction
function Trig_Dragon_Wave_Time_Ex_Func007C takes nothing returns boolean
if(not(udg_real14==1.00))then
return false
endif
return true
endfunction
function Trig_Dragon_Wave_Time_Ex_Actions takes nothing returns nothing
call DisplayTextToForce(GetPlayersAll(),"|cFFFFFF00Warning on the SKY !!!!!")
call DestroyTimerDialogBJ(udg_timerdialog04)
call DisplayTextToForce(GetPlayersAll(),"Dragon Wave !!!")
call PlaySoundBJ(udg_sound06)
call TriggerSleepAction(7.00)
if(Trig_Dragon_Wave_Time_Ex_Func007C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(3,'n007',Player(11),GetRectCenter(udg_rects02[GetForLoopIndexA()]),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Dragon_Wave_Time_Ex_Func007Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(2,'n008',Player(11),GetRectCenter(udg_rects02[GetForLoopIndexA()]),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Dragon_Wave_Time_Ex_Func007Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(3,'n008',Player(11),GetRectCenter(udg_rects02[GetForLoopIndexA()]),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(2,'n009',Player(11),GetRectCenter(udg_rects02[GetForLoopIndexA()]),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(2,'n00A',Player(11),GetRectCenter(udg_rects02[GetForLoopIndexA()]),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(4,'n00A',Player(11),GetRectCenter(udg_rects02[GetForLoopIndexA()]),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(2,'n00B',Player(11),GetRectCenter(udg_rects02[GetForLoopIndexA()]),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001Func001Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(4,'n00B',Player(11),GetRectCenter(udg_rects02[GetForLoopIndexA()]),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Dragon_Wave_Time_Ex_Func007Func001Func001Func001Func001Func001Func001Func001Func001C())then
set udg_real13=120.00
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(2,'h000',Player(11),GetRectCenter(udg_rects02[GetForLoopIndexA()]),bj_UNIT_FACING)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
endif
set udg_real14=(udg_real14+1)
call TriggerExecute(udg_trigger124)
endfunction
function Trig_Bua_lun_Actions takes nothing returns nothing
set udg_integer11=0
call CreateTimerDialogBJ(udg_timer03,"Special Event")
call StartTimerBJ(udg_timer03,false,840.00)
set udg_timerdialog02=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog02)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Bua_lun_Ex_Func017001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Bua_lun_Ex_Func017001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(11))
endfunction
function Trig_Bua_lun_Ex_Func017001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Bua_lun_Ex_Func017001002001(),Trig_Bua_lun_Ex_Func017001002002())
endfunction
function Trig_Bua_lun_Ex_Func017A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group19)
endfunction
function Trig_Bua_lun_Ex_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound20)
set udg_sound01=GetLastPlayedSound()
call ShowUnitShow(udg_unit69)
call PauseAllUnitsBJ(true)
call TriggerExecute(udg_trigger179)
call DestroyTimerDialogBJ(udg_timerdialog02)
call DisplayTextToForce(GetPlayersAll(),"Special Event !!!!!")
set udg_integer11=1
set udg_integer08=udg_integer05
set udg_integer05=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[GetForLoopIndexA()]=GetUnitLoc(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer05=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,ConvertedPlayer(GetForLoopIndexA()),FOG_OF_WAR_VISIBLE,udg_rect96)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rects03[GetForLoopIndexA()]),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectMatching(udg_rect96,Condition(function Trig_Bua_lun_Ex_Func017001002)),function Trig_Bua_lun_Ex_Func017A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitResetCooldown(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PlaySoundBJ(udg_sound19)
call TriggerSleepAction(3.00)
call CreateNUnitsAtLoc(1,'h01A',Player(11),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"silence",GetUnitLoc(GetLastCreatedUnit()))
call EnableTrigger(udg_trigger181)
call EnableTrigger(udg_trigger133)
call EnableTrigger(udg_trigger132)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PauseUnitBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnitBJ(false,udg_unit69)
call DisplayTextToForce(GetPlayersAll(),"Who will be alive that get 100 000!!")
call TriggerSleepAction(0.01)
call CreateTimerDialogBJ(udg_timer03,"Cooldown")
call StartTimerBJ(udg_timer03,false,120.00)
set udg_timerdialog02=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog02)
call EnableTrigger(udg_trigger128)
call EnableTrigger(udg_trigger130)
call EnableTrigger(udg_trigger131)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Time_Ex_Func012001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Time_Ex_Func012002 takes nothing returns nothing
call AdjustPlayerStateBJ(100000,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Time_Ex_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger131)
call DisableTrigger(udg_trigger130)
call DisableTrigger(udg_trigger133)
call DisableTrigger(udg_trigger132)
call PauseAllUnitsBJ(true)
call DestroyTimerDialogBJ(udg_timerdialog02)
call DisplayTextToForce(GetPlayersAll(),"Time out !!!!!")
call TriggerSleepAction(2.00)
call PlaySoundBJ(udg_sound18)
call TriggerSleepAction(3.00)
call KillUnit(udg_unit69)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect96,Condition(function Trig_Time_Ex_Func012001002)),function Trig_Time_Ex_Func012002)
call DisplayTextToForce(GetPlayersAll(),"You get 100 000 !!!")
call TriggerSleepAction(3.00)
set udg_integer05=udg_integer08
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger180)
call DisableTrigger(udg_trigger181)
call PauseAllUnitsBJ(false)
call GroupClear(udg_group19)
call TriggerExecute(udg_trigger134)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Pause_Bua_lun_Actions takes nothing returns nothing
call PauseUnitBJ(true,udg_unit69)
call PauseUnitBJ(true,udg_unit79)
call PauseUnitBJ(true,udg_unit73)
call ShowUnitHide(udg_unit69)
call ShowUnitHide(udg_unit79)
call ShowUnitHide(udg_unit73)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Bua_lun_move_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(udg_unit69,"attack",GetRandomLocInRect(udg_rect96))
endfunction
function Trig_Bua_lun_Thunder_Actions takes nothing returns nothing
call IssueImmediateOrderBJ(udg_unit69,"thunderclap")
call TriggerSleepAction(3.00)
call IssueTargetOrderBJ(udg_unit69,"thunderbolt",GroupPickRandomUnit(GetUnitsInRectAll(udg_rect96)))
endfunction
function Trig_Leave_Region_Conditions takes nothing returns boolean
if(not(IsUnitType(GetLeavingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Leave_Region_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetLeavingUnit(),GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetLeavingUnit()),GetUnitLoc(GetLeavingUnit()),0)
call TriggerExecute(udg_trigger182)
call GroupRemoveUnitSimple(GetLeavingUnit(),udg_group18)
endfunction
function Trig_All_lose_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group19)==0))then
return false
endif
return true
endfunction
function Trig_All_lose_Actions takes nothing returns nothing
if(Trig_All_lose_Func001C())then
call StopSoundBJ(udg_sound01,false)
set udg_integer05=udg_integer08
call RemoveUnit(udg_unit69)
call DestroyTimerDialogBJ(udg_timerdialog02)
call TriggerExecute(udg_trigger180)
call DisplayTextToForce(GetPlayersAll(),"All you lose !!!!")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseAllUnitsBJ(false)
call DisableTrigger(udg_trigger131)
call DisableTrigger(udg_trigger130)
call DisableTrigger(udg_trigger132)
call DisableTrigger(udg_trigger128)
call DisableTrigger(udg_trigger181)
call GroupClear(udg_group18)
call DisableTrigger(GetTriggeringTrigger())
call TriggerExecute(udg_trigger134)
else
call DoNothing()
endif
endfunction
function Trig_Bua_lun_2_Actions takes nothing returns nothing
set udg_integer11=0
call CreateTimerDialogBJ(udg_timer03,"Special Event")
call StartTimerBJ(udg_timer03,false,700.00)
set udg_timerdialog02=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog02)
call EnableTrigger(udg_trigger135)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Bua_lun_Ex_2_Func019001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Bua_lun_Ex_2_Func019001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(11))
endfunction
function Trig_Bua_lun_Ex_2_Func019001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Bua_lun_Ex_2_Func019001002001(),Trig_Bua_lun_Ex_2_Func019001002002())
endfunction
function Trig_Bua_lun_Ex_2_Func019A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group19)
endfunction
function Trig_Bua_lun_Ex_2_Actions takes nothing returns nothing
call GroupClear(udg_group19)
call PlaySoundBJ(udg_sound20)
set udg_sound01=GetLastPlayedSound()
call ShowUnitShow(udg_unit79)
call ShowUnitShow(udg_unit73)
call PauseAllUnitsBJ(true)
call TriggerExecute(udg_trigger179)
call DestroyTimerDialogBJ(udg_timerdialog02)
call DisplayTextToForce(GetPlayersAll(),"Special Event !!!!!")
set udg_integer11=1
set udg_integer08=udg_integer05
set udg_integer05=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[GetForLoopIndexA()]=GetUnitLoc(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer05=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,ConvertedPlayer(GetForLoopIndexA()),FOG_OF_WAR_VISIBLE,udg_rect96)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rects03[GetForLoopIndexA()]),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectMatching(udg_rect96,Condition(function Trig_Bua_lun_Ex_2_Func019001002)),function Trig_Bua_lun_Ex_2_Func019A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitResetCooldown(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PlaySoundBJ(udg_sound19)
call TriggerSleepAction(3.00)
call CreateNUnitsAtLoc(1,'h01A',Player(11),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"silence",GetUnitLoc(GetLastCreatedUnit()))
call EnableTrigger(udg_trigger181)
call EnableTrigger(udg_trigger140)
call EnableTrigger(udg_trigger139)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PauseUnitBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnitBJ(false,udg_unit79)
call PauseUnitBJ(false,udg_unit73)
call DisplayTextToForce(GetPlayersAll(),"Who will be alive that get 200 000 gold and 200 lumber !!")
call TriggerSleepAction(0.01)
call CreateTimerDialogBJ(udg_timer03,"Cooldown")
call StartTimerBJ(udg_timer03,false,120.00)
set udg_timerdialog02=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog02)
call EnableTrigger(udg_trigger136)
call EnableTrigger(udg_trigger137)
call EnableTrigger(udg_trigger138)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Time_Ex_2_Func013001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Time_Ex_2_Func013002 takes nothing returns nothing
call AdjustPlayerStateBJ(200000,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Time_Ex_2_Func014001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Time_Ex_2_Func014002 takes nothing returns nothing
call AdjustPlayerStateBJ(200,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function Trig_Time_Ex_2_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger140)
call DisableTrigger(udg_trigger139)
call DisableTrigger(udg_trigger137)
call DisableTrigger(udg_trigger138)
call PauseAllUnitsBJ(true)
call DestroyTimerDialogBJ(udg_timerdialog02)
call DisplayTextToForce(GetPlayersAll(),"Time out !!!!!")
call TriggerSleepAction(2.00)
call PlaySoundBJ(udg_sound18)
call TriggerSleepAction(3.00)
call KillUnit(udg_unit73)
call KillUnit(udg_unit79)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect96,Condition(function Trig_Time_Ex_2_Func013001002)),function Trig_Time_Ex_2_Func013002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect96,Condition(function Trig_Time_Ex_2_Func014001002)),function Trig_Time_Ex_2_Func014002)
call DisplayTextToForce(GetPlayersAll(),"You get 200 000 gold and 800 lumber !!!!")
call TriggerSleepAction(3.00)
set udg_integer05=udg_integer08
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger180)
call DisableTrigger(udg_trigger181)
call PauseAllUnitsBJ(false)
call GroupClear(udg_group19)
call TriggerExecute(udg_trigger141)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Bua_lun_move_2_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(udg_unit79,"attack",GetRandomLocInRect(udg_rect96))
call IssuePointOrderLocBJ(udg_unit73,"attack",GetRandomLocInRect(udg_rect96))
endfunction
function Trig_Bua_lun_Thunder_2_Actions takes nothing returns nothing
call IssueImmediateOrderBJ(udg_unit79,"thunderclap")
call IssueTargetOrderBJ(udg_unit73,"thunderbolt",GroupPickRandomUnit(GetUnitsInRectAll(udg_rect96)))
call TriggerSleepAction(3.00)
call IssueImmediateOrderBJ(udg_unit73,"thunderclap")
call IssueTargetOrderBJ(udg_unit79,"thunderbolt",GroupPickRandomUnit(GetUnitsInRectAll(udg_rect96)))
endfunction
function Trig_Leave_Region_2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetLeavingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Leave_Region_2_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetLeavingUnit(),GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetLeavingUnit()),GetUnitLoc(GetLeavingUnit()),0)
call TriggerExecute(udg_trigger182)
call GroupRemoveUnitSimple(GetLeavingUnit(),udg_group18)
endfunction
function Trig_All_lose_2_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group19)==0))then
return false
endif
return true
endfunction
function Trig_All_lose_2_Actions takes nothing returns nothing
if(Trig_All_lose_2_Func001C())then
call GroupClear(udg_group18)
call StopSoundBJ(udg_sound01,false)
set udg_integer05=udg_integer08
call RemoveUnit(udg_unit73)
call RemoveUnit(udg_unit79)
call DestroyTimerDialogBJ(udg_timerdialog02)
call TriggerExecute(udg_trigger180)
call DisplayTextToForce(GetPlayersAll(),"All you lose !!!!")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseAllUnitsBJ(false)
call DisableTrigger(udg_trigger137)
call DisableTrigger(udg_trigger138)
call DisableTrigger(udg_trigger139)
call DisableTrigger(udg_trigger136)
call DisableTrigger(udg_trigger181)
call TriggerExecute(udg_trigger141)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Bua_lun_3_Actions takes nothing returns nothing
set udg_integer11=0
call CreateTimerDialogBJ(udg_timer03,"Special Event")
call StartTimerBJ(udg_timer03,false,800.00)
set udg_timerdialog02=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog02)
call EnableTrigger(udg_trigger142)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Bua_lun_Ex_3_Func019001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Bua_lun_Ex_3_Func019001002002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())!=Player(11))
endfunction
function Trig_Bua_lun_Ex_3_Func019001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Bua_lun_Ex_3_Func019001002001(),Trig_Bua_lun_Ex_3_Func019001002002())
endfunction
function Trig_Bua_lun_Ex_3_Func019A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group19)
endfunction
function Trig_Bua_lun_Ex_3_Actions takes nothing returns nothing
call GroupClear(udg_group19)
call PlaySoundBJ(udg_sound20)
set udg_sound01=GetLastPlayedSound()
call CreateNUnitsAtLoc(1,'O01C',Player(11),GetRectCenter(udg_rect153),270.00)
set udg_unit46=GetLastCreatedUnit()
call PauseAllUnitsBJ(true)
call TriggerExecute(udg_trigger179)
call DestroyTimerDialogBJ(udg_timerdialog02)
call DisplayTextToForce(GetPlayersAll(),"Special Event !!!!!")
set udg_integer11=1
set udg_integer08=udg_integer05
set udg_integer05=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[GetForLoopIndexA()]=GetUnitLoc(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer05=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,ConvertedPlayer(GetForLoopIndexA()),FOG_OF_WAR_VISIBLE,udg_rect96)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rects03[GetForLoopIndexA()]),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectMatching(udg_rect96,Condition(function Trig_Bua_lun_Ex_3_Func019001002)),function Trig_Bua_lun_Ex_3_Func019A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitResetCooldown(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PlaySoundBJ(udg_sound35)
call TriggerSleepAction(3.00)
call CreateNUnitsAtLoc(1,'h01A',Player(11),GetRandomLocInRect(GetPlayableMapRect()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(3.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"silence",GetUnitLoc(GetLastCreatedUnit()))
call EnableTrigger(udg_trigger181)
call EnableTrigger(udg_trigger148)
call EnableTrigger(udg_trigger147)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PauseUnitBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnitBJ(false,udg_unit46)
call DisplayTextToForce(GetPlayersAll(),"Who will be alive that get 500 000 gold and 500 lumber !!")
call TriggerSleepAction(0.01)
call CreateTimerDialogBJ(udg_timer03,"Cooldown")
call StartTimerBJ(udg_timer03,false,120.00)
set udg_timerdialog02=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog02)
call EnableTrigger(udg_trigger143)
call EnableTrigger(udg_trigger144)
call EnableTrigger(udg_trigger145)
call EnableTrigger(udg_trigger146)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Time_Ex_3_Func013001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Time_Ex_3_Func013002 takes nothing returns nothing
call AdjustPlayerStateBJ(500000,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_GOLD)
endfunction
function Trig_Time_Ex_3_Func014001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Time_Ex_3_Func014002 takes nothing returns nothing
call AdjustPlayerStateBJ(500,GetOwningPlayer(GetEnumUnit()),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function Trig_Time_Ex_3_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger148)
call DisableTrigger(udg_trigger147)
call DisableTrigger(udg_trigger144)
call DisableTrigger(udg_trigger145)
call DisableTrigger(udg_trigger146)
call PauseAllUnitsBJ(true)
call DestroyTimerDialogBJ(udg_timerdialog02)
call DisplayTextToForce(GetPlayersAll(),"Time out !!!!!")
call TriggerSleepAction(2.00)
call PlaySoundBJ(udg_sound36)
call TriggerSleepAction(3.00)
call KillUnit(udg_unit46)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect96,Condition(function Trig_Time_Ex_3_Func013001002)),function Trig_Time_Ex_3_Func013002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect96,Condition(function Trig_Time_Ex_3_Func014001002)),function Trig_Time_Ex_3_Func014002)
call DisplayTextToForce(GetPlayersAll(),"You get 500 000 gold and 500 lumber !!!!")
call TriggerSleepAction(3.00)
set udg_integer05=udg_integer08
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger180)
call DisableTrigger(udg_trigger181)
call PauseAllUnitsBJ(false)
call GroupClear(udg_group19)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Bua_lun_move_3_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(udg_unit46,"attack",GetRandomLocInRect(udg_rect96))
endfunction
function Trig_Wind_Walk_God_Actions takes nothing returns nothing
call IssueImmediateOrderBJ(udg_unit46,"windwalk")
call TriggerSleepAction(5.00)
call IssueImmediateOrderBJ(udg_unit46,"mirrorimage")
endfunction
function Trig_BladeStorm_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='O01C'))then
return false
endif
return true
endfunction
function Trig_BladeStorm_Actions takes nothing returns nothing
call IssueImmediateOrderBJ(udg_unit46,"whirlwind")
endfunction
function Trig_Leave_Region_3_Conditions takes nothing returns boolean
if(not(IsUnitType(GetLeavingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Leave_Region_3_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetLeavingUnit(),GetRectCenter(udg_rect90))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetLeavingUnit()),GetUnitLoc(GetLeavingUnit()),0)
call TriggerExecute(udg_trigger182)
call GroupRemoveUnitSimple(GetLeavingUnit(),udg_group18)
endfunction
function Trig_All_lose_3_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group19)==0))then
return false
endif
return true
endfunction
function Trig_All_lose_3_Actions takes nothing returns nothing
if(Trig_All_lose_3_Func001C())then
call GroupClear(udg_group18)
call StopSoundBJ(udg_sound01,false)
set udg_integer05=udg_integer08
call RemoveUnit(udg_unit46)
call DestroyTimerDialogBJ(udg_timerdialog02)
call TriggerExecute(udg_trigger180)
call DisplayTextToForce(GetPlayersAll(),"All you lose !!!!")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseAllUnitsBJ(false)
call DisableTrigger(udg_trigger147)
call DisableTrigger(udg_trigger143)
call DisableTrigger(udg_trigger181)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_ItemEventTime_Func001C takes nothing returns boolean
if(not(udg_boolean03==false))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Actions takes nothing returns nothing
if(Trig_ItemEventTime_Func001C())then
call CreateTimerDialogBJ(udg_timer06,"Item Event")
call StartTimerBJ(udg_timer06,false,900.00)
set udg_timerdialog05=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog05)
else
call DoNothing()
endif
endfunction
function Trig_ItemEventTime_Ex_Func003003001 takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ItemEventTime_Ex_Func006002 takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function Trig_ItemEventTime_Ex_Func007002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_ItemEventTime_Ex_Func020A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group22)
endfunction
function Trig_ItemEventTime_Ex_Func022Func001A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetRectCenter(udg_rect166))
call SetUnitInvulnerable(GetEnumUnit(),true)
call ShowUnitHide(GetEnumUnit())
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func002003001 takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func002003001 takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func003Func003003001 takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func003Func005A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group23)
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func003Func006A takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func003C takes nothing returns boolean
if(not(udg_real19==4.00))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func004A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group23)
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func005A takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func003C takes nothing returns boolean
if(not(udg_real19==3.00))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func004A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group23)
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002Func005A takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func002C takes nothing returns boolean
if(not(udg_real19==2.00))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func003003001 takes nothing returns boolean
return(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func004A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group23)
endfunction
function Trig_ItemEventTime_Ex_Func022Func002Func005A takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function Trig_ItemEventTime_Ex_Func022Func002C takes nothing returns boolean
if(not(udg_real19==1.00))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Ex_Func022Func005A takes nothing returns nothing
call UnitAddItemByIdSwapped('I01D',GetEnumUnit())
endfunction
function Trig_ItemEventTime_Ex_Func022Func011A takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
endfunction
function Trig_ItemEventTime_Ex_Func022Func015A takes nothing returns nothing
set udg_unit49=GetEnumUnit()
endfunction
function Trig_ItemEventTime_Ex_Func022Func017Func001Func001Func001C takes nothing returns boolean
if(not(udg_real19==4.00))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Ex_Func022Func017Func001Func001C takes nothing returns boolean
if(not(udg_real19==3.00))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Ex_Func022Func017Func001C takes nothing returns boolean
if(not(udg_real19==2.00))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Ex_Func022Func017C takes nothing returns boolean
if(not(udg_real19==1.00))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Ex_Func022C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group22)==1))then
return false
endif
return true
endfunction
function Trig_ItemEventTime_Ex_Actions takes nothing returns nothing
call PauseAllUnitsBJ(true)
call EnableTrigger(udg_trigger428)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ItemEventTime_Ex_Func003003001())then
call ReviveHeroLoc(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rect90),true)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.00)
call EnableTrigger(udg_trigger155)
call EnumItemsInRectBJ(udg_rect154,function Trig_ItemEventTime_Ex_Func006002)
call ForGroupBJ(GetUnitsInRectAll(udg_rect154),function Trig_ItemEventTime_Ex_Func007002)
call GroupClear(udg_group23)
call GroupClear(udg_group22)
call TriggerExecute(udg_trigger179)
call DisplayTextToForce(GetPlayersAll(),"Item Event")
set udg_integer08=udg_integer05
set udg_integer05=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[GetForLoopIndexA()]=GetUnitLoc(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer05=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateFogModifierRectBJ(true,ConvertedPlayer(GetForLoopIndexA()),FOG_OF_WAR_VISIBLE,udg_rect154)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rects05[GetForLoopIndexA()]),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectAll(udg_rect154),function Trig_ItemEventTime_Ex_Func020A)
call TriggerSleepAction(5.00)
if(Trig_ItemEventTime_Ex_Func022C())then
call ForGroupBJ(udg_group22,function Trig_ItemEventTime_Ex_Func022Func015A)
call PauseUnitBJ(false,udg_unit49)
if(Trig_ItemEventTime_Ex_Func022Func017C())then
call CreateItemLoc('I013',GetRectCenter(udg_rect154))
else
if(Trig_ItemEventTime_Ex_Func022Func017Func001C())then
call CreateItemLoc('I01A',GetRectCenter(udg_rect154))
else
if(Trig_ItemEventTime_Ex_Func022Func017Func001Func001C())then
call CreateItemLoc('I00Y',GetRectCenter(udg_rect154))
else
if(Trig_ItemEventTime_Ex_Func022Func017Func001Func001Func001C())then
set udg_boolean03=true
call CreateItemLoc('I00Z',GetRectCenter(udg_rect154))
else
call DoNothing()
endif
endif
endif
endif
else
call ForGroupBJ(udg_group22,function Trig_ItemEventTime_Ex_Func022Func001A)
if(Trig_ItemEventTime_Ex_Func022Func002C())then
call CreateItemLoc('I013',GetRectCenter(udg_rect154))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ItemEventTime_Ex_Func022Func002Func003003001())then
call CreateNUnitsAtLoc(1,'H02A',ConvertedPlayer(GetForLoopIndexA()),GetRectCenter(udg_rects05[GetForLoopIndexA()]),270.00)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectAll(udg_rect154),function Trig_ItemEventTime_Ex_Func022Func002Func004A)
call ForGroupBJ(udg_group23,function Trig_ItemEventTime_Ex_Func022Func002Func005A)
else
if(Trig_ItemEventTime_Ex_Func022Func002Func002C())then
call CreateItemLoc('I01A',GetRectCenter(udg_rect154))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ItemEventTime_Ex_Func022Func002Func002Func002003001())then
call CreateNUnitsAtLoc(1,'O01B',ConvertedPlayer(GetForLoopIndexA()),GetRectCenter(udg_rects05[GetForLoopIndexA()]),270.00)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectAll(udg_rect154),function Trig_ItemEventTime_Ex_Func022Func002Func002Func004A)
call ForGroupBJ(udg_group23,function Trig_ItemEventTime_Ex_Func022Func002Func002Func005A)
else
if(Trig_ItemEventTime_Ex_Func022Func002Func002Func003C())then
call CreateItemLoc('I00Y',GetRectCenter(udg_rect154))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func002003001())then
call CreateNUnitsAtLoc(1,'U00I',ConvertedPlayer(GetForLoopIndexA()),GetRectCenter(udg_rects05[GetForLoopIndexA()]),270.00)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectAll(udg_rect154),function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func004A)
call ForGroupBJ(udg_group23,function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func005A)
else
if(Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func003C())then
set udg_boolean03=true
call CreateItemLoc('I00Z',GetRectCenter(udg_rect154))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func003Func003003001())then
call CreateNUnitsAtLoc(1,'E00Z',ConvertedPlayer(GetForLoopIndexA()),GetRectCenter(udg_rects05[GetForLoopIndexA()]),270.00)
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectAll(udg_rect154),function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func003Func005A)
call ForGroupBJ(udg_group23,function Trig_ItemEventTime_Ex_Func022Func002Func002Func003Func003Func006A)
else
call DoNothing()
endif
endif
endif
endif
call TriggerSleepAction(3.00)
call EnableTrigger(udg_trigger157)
call ForGroupBJ(udg_group23,function Trig_ItemEventTime_Ex_Func022Func005A)
call DisplayTextToForce(GetPlayersAll(),"Kill to have Item...")
call TriggerSleepAction(2)
call PlaySoundBJ(udg_sound09)
call SetSoundVolumeBJ(GetLastPlayedSound(),100)
set udg_sound02=GetLastPlayedSound()
call ForGroupBJ(udg_group23,function Trig_ItemEventTime_Ex_Func022Func011A)
call TriggerExecute(udg_trigger406)
call EnableTrigger(udg_trigger151)
call EnableTrigger(udg_trigger156)
endif
endfunction
function Trig_Test_unit_in_ItemEventHero_2_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group23)==1))then
return false
endif
return true
endfunction
function Trig_Test_unit_in_ItemEventHero_2_Actions takes nothing returns nothing
if(Trig_Test_unit_in_ItemEventHero_2_Func001C())then
call TriggerExecute(udg_trigger407)
call DisableTrigger(udg_trigger157)
set udg_unit48=GroupPickRandomUnit(udg_group23)
call TriggerExecute(udg_trigger152)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Winer_Func002A takes nothing returns nothing
call ShowUnitShow(GetEnumUnit())
endfunction
function Trig_Winer_Func008003001 takes nothing returns boolean
return(GetOwningPlayer(udg_units02[GetForLoopIndexA()])==GetOwningPlayer(udg_unit48))
endfunction
function Trig_Winer_Actions takes nothing returns nothing
call TriggerSleepAction(5.00)
call ForGroupBJ(udg_group22,function Trig_Winer_Func002A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rects05[GetForLoopIndexA()]),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit48))+" Has win....and the item for him"))
call TriggerSleepAction(3.00)
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit48))+" go and take the item to hero..."))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_Winer_Func008003001())then
set udg_unit49=udg_units02[GetForLoopIndexA()]
else
call DoNothing()
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseUnitBJ(false,udg_unit49)
endfunction
function Trig_TakeItem_Func002C takes nothing returns boolean
if((GetItemTypeId(GetManipulatedItem())=='I00Z'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I01A'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I013'))then
return true
endif
if((GetItemTypeId(GetManipulatedItem())=='I00Y'))then
return true
endif
return false
endfunction
function Trig_TakeItem_Conditions takes nothing returns boolean
if(not Trig_TakeItem_Func002C())then
return false
endif
return true
endfunction
function Trig_TakeItem_Func001C takes nothing returns boolean
if(not(GetManipulatingUnit()==udg_unit49))then
return false
endif
return true
endfunction
function Trig_TakeItem_Actions takes nothing returns nothing
if(Trig_TakeItem_Func001C())then
call TriggerExecute(udg_trigger154)
else
call DoNothing()
endif
endfunction
function Trig_Back_Func009A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Back_Func010A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
call GroupClear(udg_group22)
endfunction
function Trig_Back_Func011C takes nothing returns boolean
if(not(udg_boolean03==true))then
return false
endif
return true
endfunction
function Trig_Back_Actions takes nothing returns nothing
call StopSoundBJ(udg_sound02,false)
call DisableTrigger(udg_trigger155)
call PauseAllUnitsBJ(true)
call TriggerSleepAction(5.00)
set udg_integer05=udg_integer08
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PauseAllUnitsBJ(false)
call ForGroupBJ(GetUnitsInRectAll(udg_rect154),function Trig_Back_Func009A)
call ForGroupBJ(udg_group22,function Trig_Back_Func010A)
if(Trig_Back_Func011C())then
call DoNothing()
else
call TriggerExecute(udg_trigger149)
endif
set udg_real19=(udg_real19+1.00)
set udg_unit48=null
set udg_unit49=null
call DisableTrigger(udg_trigger156)
call TriggerExecute(udg_trigger180)
call DisableTrigger(udg_trigger428)
endfunction
function Trig_Leave_Region_Item_Actions takes nothing returns nothing
call SetUnitPositionLoc(GetLevelingUnit(),GetRectCenter(udg_rect154))
call SetUnitLifePercentBJ(GetLeavingUnit(),10.00)
endfunction
function Trig_Remove_From_Hero2_Conditions takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Remove_From_Hero2_Actions takes nothing returns nothing
call GroupRemoveUnitSimple(GetDyingUnit(),udg_group23)
endfunction
function Trig_Create_item_Actions takes nothing returns nothing
call CreateItemLoc('tgxp',GetRandomLocInRect(udg_rect164))
call CreateItemLoc('gobm',GetRandomLocInRect(udg_rect164))
call CreateItemLoc('hlst',GetRandomLocInRect(udg_rect164))
endfunction
function Trig_Arena_1_Func014001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_1_Func014A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group18)
endfunction
function Trig_Arena_1_Actions takes nothing returns nothing
call GroupClear(udg_group18)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SuspendHeroXPBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers01[1]=1
set udg_boolean01=false
call TriggerExecute(udg_trigger179)
call StopSoundBJ(udg_sound02,false)
call PauseAllUnitsBJ(true)
set udg_integer08=udg_integer05
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[GetForLoopIndexA()]=GetUnitLoc(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer05=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRandomLocInRect(udg_rect17),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_Arena_1_Func014001002)),function Trig_Arena_1_Func014A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitResetCooldown(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger177)
call EnableTrigger(udg_trigger181)
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Destroy the Tower and stand live still end Arena, you will has 500 allstat....")
call TriggerSleepAction(3.00)
call PauseUnitBJ(false,udg_unit72)
call SetUnitInvulnerable(udg_unit72,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PauseUnitBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(udg_integer12,'n00C',Player(11),GetRectCenter(udg_rect85),270.00)
call CreateTimerDialogBJ(udg_timer02,"Cooldown")
call StartTimerBJ(udg_timer02,false,120.00)
set udg_timerdialog01=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog01)
call PlaySoundBJ(udg_sound07)
set udg_sound02=GetLastPlayedSound()
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Monter_1_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='n00C'))then
return false
endif
return true
endfunction
function Trig_Monter_1_Actions takes nothing returns nothing
if(Trig_Monter_1_Func001C())then
call RemoveUnit(GetDyingUnit())
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'n00C',Player(11),GetRandomLocInRect(udg_rect85),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function Trig_TimeArena1_Ex_Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00C')
endfunction
function Trig_TimeArena1_Ex_Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena1_Ex_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00D')
endfunction
function Trig_TimeArena1_Ex_Func004002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena1_Ex_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00E')
endfunction
function Trig_TimeArena1_Ex_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena1_Ex_Func006001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00F')
endfunction
function Trig_TimeArena1_Ex_Func006002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena1_Ex_Actions takes nothing returns nothing
set udg_boolean01=true
call StopSoundBJ(GetLastPlayedSound(),false)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena1_Ex_Func003001002)),function Trig_TimeArena1_Ex_Func003002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena1_Ex_Func004001002)),function Trig_TimeArena1_Ex_Func004002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena1_Ex_Func005001002)),function Trig_TimeArena1_Ex_Func005002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena1_Ex_Func006001002)),function Trig_TimeArena1_Ex_Func006002)
call DestroyTimerDialogBJ(udg_timerdialog01)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SuspendHeroXPBJ(true,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger161)
call DisableTrigger(udg_trigger177)
call DisableTrigger(udg_trigger181)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Arena_1_End_Func002002 takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function Trig_Arena_1_End_Func003002 takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function Trig_Arena_1_End_Func004002 takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function Trig_Arena_1_End_Func005002 takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function Trig_Arena_1_End_Func006002 takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function Trig_Arena_1_End_Func011Func001001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_1_End_Func011Func001002 takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,GetEnumUnit(),bj_MODIFYMETHOD_ADD,500)
endfunction
function Trig_Arena_1_End_Func011Func002001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_1_End_Func011Func002002 takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_AGI,GetEnumUnit(),bj_MODIFYMETHOD_ADD,500)
endfunction
function Trig_Arena_1_End_Func011Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_1_End_Func011Func003002 takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_INT,GetEnumUnit(),bj_MODIFYMETHOD_ADD,500)
endfunction
function Trig_Arena_1_End_Func011Func004001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_1_End_Func011Func004002 takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
endfunction
function Trig_Arena_1_End_Func011Func006001 takes nothing returns boolean
return(udg_boolean01==true)
endfunction
function Trig_Arena_1_End_Func011Func006002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit72)==true)
endfunction
function Trig_Arena_1_End_Func011C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Arena_1_End_Func011Func006001(),Trig_Arena_1_End_Func011Func006002()))then
return false
endif
return true
endfunction
function Trig_Arena_1_End_Actions takes nothing returns nothing
call PauseAllUnitsBJ(true)
call EnumItemsInRectBJ(udg_rect17,function Trig_Arena_1_End_Func002002)
call EnumItemsInRectBJ(udg_rect20,function Trig_Arena_1_End_Func003002)
call EnumItemsInRectBJ(udg_rect19,function Trig_Arena_1_End_Func004002)
call EnumItemsInRectBJ(udg_rect18,function Trig_Arena_1_End_Func005002)
call EnumItemsInRectBJ(udg_rect88,function Trig_Arena_1_End_Func006002)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(4.00)
if(Trig_Arena_1_End_Func011C())then
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_Arena_1_End_Func011Func001001002)),function Trig_Arena_1_End_Func011Func001002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_Arena_1_End_Func011Func002001002)),function Trig_Arena_1_End_Func011Func002002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_Arena_1_End_Func011Func003001002)),function Trig_Arena_1_End_Func011Func003002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect17,Condition(function Trig_Arena_1_End_Func011Func004001002)),function Trig_Arena_1_End_Func011Func004002)
else
call DoNothing()
endif
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer05=udg_integer08
call TriggerExecute(udg_trigger180)
call PauseAllUnitsBJ(false)
endfunction
function Trig_Arena_2_Func014001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_2_Func014A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group18)
endfunction
function Trig_Arena_2_Actions takes nothing returns nothing
call GroupClear(udg_group18)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SuspendHeroXPBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers01[2]=2
set udg_boolean01=false
call TriggerExecute(udg_trigger179)
call StopSoundBJ(udg_sound02,false)
call PauseAllUnitsBJ(true)
set udg_integer08=udg_integer05
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[GetForLoopIndexA()]=GetUnitLoc(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer05=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRandomLocInRect(udg_rect19),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectMatching(udg_rect19,Condition(function Trig_Arena_2_Func014001002)),function Trig_Arena_2_Func014A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitResetCooldown(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger177)
call EnableTrigger(udg_trigger181)
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Destroy the Tower and try to be still alive at the end......you will receive an item")
call TriggerSleepAction(3.00)
call TriggerSleepAction(3.00)
call PauseUnitBJ(false,udg_unit66)
call SetUnitInvulnerable(udg_unit66,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PauseUnitBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(udg_integer12,'n00D',Player(11),GetRectCenter(udg_rect87),270.00)
call CreateTimerDialogBJ(udg_timer02,"Cooldown")
call StartTimerBJ(udg_timer02,false,120.00)
set udg_timerdialog01=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog01)
call PlaySoundBJ(udg_sound07)
set udg_sound02=GetLastPlayedSound()
call EnableTrigger(udg_trigger164)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Monter_2_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='n00D'))then
return false
endif
return true
endfunction
function Trig_Monter_2_Actions takes nothing returns nothing
if(Trig_Monter_2_Func001C())then
call RemoveUnit(GetDyingUnit())
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'n00D',Player(11),GetRandomLocInRect(udg_rect87),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function Trig_TimeArena2_Ex_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00C')
endfunction
function Trig_TimeArena2_Ex_Func004002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena2_Ex_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00D')
endfunction
function Trig_TimeArena2_Ex_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena2_Ex_Func006001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00E')
endfunction
function Trig_TimeArena2_Ex_Func006002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena2_Ex_Func007001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00F')
endfunction
function Trig_TimeArena2_Ex_Func007002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena2_Ex_Actions takes nothing returns nothing
set udg_boolean01=true
call StopSoundBJ(GetLastPlayedSound(),false)
call DestroyTimerDialogBJ(udg_timerdialog01)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena2_Ex_Func004001002)),function Trig_TimeArena2_Ex_Func004002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena2_Ex_Func005001002)),function Trig_TimeArena2_Ex_Func005002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena2_Ex_Func006001002)),function Trig_TimeArena2_Ex_Func006002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena2_Ex_Func007001002)),function Trig_TimeArena2_Ex_Func007002)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SuspendHeroXPBJ(true,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger165)
call DisableTrigger(udg_trigger177)
call DisableTrigger(udg_trigger181)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Arena_2_End_Func005Func002001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_2_End_Func005Func002002 takes nothing returns nothing
call UnitAddItemByIdSwapped('I00C',GetEnumUnit())
endfunction
function Trig_Arena_2_End_Func005Func003001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_2_End_Func005Func003002 takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Other\\Charm\\CharmTarget.mdl")
endfunction
function Trig_Arena_2_End_Func005Func004001 takes nothing returns boolean
return(udg_boolean01==true)
endfunction
function Trig_Arena_2_End_Func005Func004002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit66)==true)
endfunction
function Trig_Arena_2_End_Func005C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Arena_2_End_Func005Func004001(),Trig_Arena_2_End_Func005Func004002()))then
return false
endif
return true
endfunction
function Trig_Arena_2_End_Actions takes nothing returns nothing
call PauseAllUnitsBJ(true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
if(Trig_Arena_2_End_Func005C())then
call ForGroupBJ(GetUnitsInRectMatching(udg_rect19,Condition(function Trig_Arena_2_End_Func005Func002001002)),function Trig_Arena_2_End_Func005Func002002)
call ForGroupBJ(GetUnitsInRectMatching(udg_rect19,Condition(function Trig_Arena_2_End_Func005Func003001002)),function Trig_Arena_2_End_Func005Func003002)
else
call DoNothing()
endif
call TriggerSleepAction(4.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer05=udg_integer08
call StopSoundBJ(GetLastPlayedSound(),false)
call TriggerExecute(udg_trigger180)
call PauseAllUnitsBJ(false)
endfunction
function Trig_Arena_3_Func014001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_3_Func014A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group18)
endfunction
function Trig_Arena_3_Actions takes nothing returns nothing
call GroupClear(udg_group18)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SuspendHeroXPBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers01[3]=3
set udg_boolean01=false
call TriggerExecute(udg_trigger179)
call StopSoundBJ(udg_sound02,false)
call PauseAllUnitsBJ(true)
set udg_integer08=udg_integer05
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[GetForLoopIndexA()]=GetUnitLoc(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer05=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRandomLocInRect(udg_rect20),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectMatching(udg_rect20,Condition(function Trig_Arena_3_Func014001002)),function Trig_Arena_3_Func014A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitResetCooldown(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger177)
call EnableTrigger(udg_trigger181)
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Destroy the Tower to take item....")
call TriggerSleepAction(3.00)
call PauseUnitBJ(false,udg_unit71)
call SetUnitInvulnerable(udg_unit71,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PauseUnitBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(udg_integer12,'n00E',Player(11),GetRectCenter(udg_rect88),270.00)
call CreateTimerDialogBJ(udg_timer02,"Cooldown")
call StartTimerBJ(udg_timer02,false,120.00)
set udg_timerdialog01=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog01)
call PlaySoundBJ(udg_sound07)
set udg_sound02=GetLastPlayedSound()
call EnableTrigger(udg_trigger168)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Monter_3_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='n00E'))then
return false
endif
return true
endfunction
function Trig_Monter_3_Actions takes nothing returns nothing
if(Trig_Monter_3_Func001C())then
call RemoveUnit(GetDyingUnit())
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'n00E',Player(11),GetRandomLocInRect(udg_rect88),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function Trig_TimeArena3_Ex_Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00C')
endfunction
function Trig_TimeArena3_Ex_Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena3_Ex_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00D')
endfunction
function Trig_TimeArena3_Ex_Func004002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena3_Ex_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00E')
endfunction
function Trig_TimeArena3_Ex_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena3_Ex_Func006001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00F')
endfunction
function Trig_TimeArena3_Ex_Func006002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena3_Ex_Actions takes nothing returns nothing
set udg_boolean01=true
call DestroyTimerDialogBJ(udg_timerdialog01)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena3_Ex_Func003001002)),function Trig_TimeArena3_Ex_Func003002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena3_Ex_Func004001002)),function Trig_TimeArena3_Ex_Func004002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena3_Ex_Func005001002)),function Trig_TimeArena3_Ex_Func005002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena3_Ex_Func006001002)),function Trig_TimeArena3_Ex_Func006002)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SuspendHeroXPBJ(true,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger169)
call DisableTrigger(udg_trigger177)
call DisableTrigger(udg_trigger181)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Arena_3_End_Func008C takes nothing returns boolean
if(not(udg_boolean01==true))then
return false
endif
return true
endfunction
function Trig_Arena_3_End_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger177)
call DisableTrigger(udg_trigger181)
call StopSoundBJ(GetLastPlayedSound(),false)
call PauseAllUnitsBJ(true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
if(Trig_Arena_3_End_Func008C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit11))+" has acquires item..."))
else
call DoNothing()
endif
call TriggerSleepAction(4.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer05=udg_integer08
call TriggerExecute(udg_trigger180)
call PauseAllUnitsBJ(false)
endfunction
function Trig_Item_arena_3_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00D'))then
return false
endif
return true
endfunction
function Trig_Item_arena_3_Func001Func006001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00E')
endfunction
function Trig_Item_arena_3_Func001Func006002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Item_arena_3_Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetManipulatingUnit())!=Player(11)))then
return false
endif
return true
endfunction
function Trig_Item_arena_3_Actions takes nothing returns nothing
if(Trig_Item_arena_3_Func001C())then
set udg_boolean01=true
set udg_unit11=GetManipulatingUnit()
call TriggerSleepAction(1.00)
call DestroyTimerDialogBJ(udg_timerdialog01)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Item_arena_3_Func001Func006001002)),function Trig_Item_arena_3_Func001Func006002)
call DisableTrigger(udg_trigger168)
call TriggerExecute(udg_trigger169)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Arena_4_Func014001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Arena_4_Func014A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group18)
endfunction
function Trig_Arena_4_Actions takes nothing returns nothing
call GroupClear(udg_group18)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SuspendHeroXPBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers01[4]=4
set udg_boolean01=false
call TriggerExecute(udg_trigger179)
call StopSoundBJ(udg_sound02,false)
call PauseAllUnitsBJ(true)
set udg_integer08=udg_integer05
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_locations01[GetForLoopIndexA()]=GetUnitLoc(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer05=0
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRandomLocInRect(udg_rect18),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(GetUnitsInRectMatching(udg_rect18,Condition(function Trig_Arena_4_Func014001002)),function Trig_Arena_4_Func014A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call UnitResetCooldown(udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call EnableTrigger(udg_trigger177)
call EnableTrigger(udg_trigger181)
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"Destroy the Tower to take item....")
call TriggerSleepAction(3.00)
call PauseUnitBJ(false,udg_unit70)
call SetUnitInvulnerable(udg_unit70,false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PauseUnitBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(udg_integer12,'n00F',Player(11),GetRectCenter(udg_rect86),270.00)
call CreateTimerDialogBJ(udg_timer02,"Cooldown")
call StartTimerBJ(udg_timer02,false,140.00)
set udg_timerdialog01=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog01)
call PlaySoundBJ(udg_sound07)
set udg_sound02=GetLastPlayedSound()
call EnableTrigger(udg_trigger173)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Monter_4_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='n00F'))then
return false
endif
return true
endfunction
function Trig_Monter_4_Actions takes nothing returns nothing
if(Trig_Monter_4_Func001C())then
call RemoveUnit(GetDyingUnit())
call TriggerSleepAction(0.10)
call CreateNUnitsAtLoc(1,'n00F',Player(11),GetRandomLocInRect(udg_rect86),bj_UNIT_FACING)
else
call DoNothing()
endif
endfunction
function Trig_TimeArena4_Ex_Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00C')
endfunction
function Trig_TimeArena4_Ex_Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena4_Ex_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00D')
endfunction
function Trig_TimeArena4_Ex_Func004002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena4_Ex_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00E')
endfunction
function Trig_TimeArena4_Ex_Func005002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena4_Ex_Func006001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00F')
endfunction
function Trig_TimeArena4_Ex_Func006002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_TimeArena4_Ex_Actions takes nothing returns nothing
set udg_boolean01=true
call DestroyTimerDialogBJ(udg_timerdialog01)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena4_Ex_Func003001002)),function Trig_TimeArena4_Ex_Func003002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena4_Ex_Func004001002)),function Trig_TimeArena4_Ex_Func004002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena4_Ex_Func005001002)),function Trig_TimeArena4_Ex_Func005002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_TimeArena4_Ex_Func006001002)),function Trig_TimeArena4_Ex_Func006002)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SuspendHeroXPBJ(true,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger174)
call DisableTrigger(udg_trigger177)
call DisableTrigger(udg_trigger181)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Arena_4_End_Func008C takes nothing returns boolean
if(not(udg_boolean01==true))then
return false
endif
return true
endfunction
function Trig_Arena_4_End_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger177)
call DisableTrigger(udg_trigger181)
call StopSoundBJ(GetLastPlayedSound(),false)
call PauseAllUnitsBJ(true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitLifePercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitManaPercentBJ(udg_units02[GetForLoopIndexA()],100)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
if(Trig_Arena_4_End_Func008C())then
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit11))+" has acquires item..."))
else
call DoNothing()
endif
call TriggerSleepAction(4.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integer05=udg_integer08
call TriggerExecute(udg_trigger180)
call PauseAllUnitsBJ(false)
endfunction
function Trig_Item_arena_4_Conditions takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00E'))then
return false
endif
return true
endfunction
function Trig_Item_arena_4_Func001Func006001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00F')
endfunction
function Trig_Item_arena_4_Func001Func006002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Item_arena_4_Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetManipulatingUnit())!=Player(11)))then
return false
endif
return true
endfunction
function Trig_Item_arena_4_Actions takes nothing returns nothing
if(Trig_Item_arena_4_Func001C())then
set udg_boolean01=true
set udg_unit11=GetManipulatingUnit()
call DestroyTimerDialogBJ(udg_timerdialog01)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Item_arena_4_Func001Func006001002)),function Trig_Item_arena_4_Func001Func006002)
call DisableTrigger(udg_trigger173)
call TriggerExecute(udg_trigger174)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Lose_Func001001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00C')
endfunction
function Trig_Lose_Func001002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Lose_Func002001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00D')
endfunction
function Trig_Lose_Func002002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Lose_Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00E')
endfunction
function Trig_Lose_Func003002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Lose_Func004001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00F')
endfunction
function Trig_Lose_Func004002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Lose_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Lose_Func001001002)),function Trig_Lose_Func001002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Lose_Func002001002)),function Trig_Lose_Func002002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Lose_Func003001002)),function Trig_Lose_Func003002)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Lose_Func004001002)),function Trig_Lose_Func004002)
call DisplayTextToForce(GetPlayersAll(),"You lose...")
call StopSoundBJ(udg_sound02,false)
call DestroyTimerDialogBJ(udg_timerdialog01)
call TriggerExecute(udg_trigger180)
call TriggerSleepAction(3.00)
call DisableTrigger(udg_trigger181)
set udg_integer05=udg_integer08
call TriggerExecute(udg_trigger178)
endfunction
function Trig_Lose_arena_Func001Func003001 takes nothing returns boolean
return(udg_integers01[1]==1)
endfunction
function Trig_Lose_arena_Func001Func004001 takes nothing returns boolean
return(udg_integers01[2]==2)
endfunction
function Trig_Lose_arena_Func001Func005001 takes nothing returns boolean
return(udg_integers01[3]==3)
endfunction
function Trig_Lose_arena_Func001Func006001 takes nothing returns boolean
return(udg_integers01[4]==4)
endfunction
function Trig_Lose_arena_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group18)==0))then
return false
endif
return true
endfunction
function Trig_Lose_arena_Actions takes nothing returns nothing
if(Trig_Lose_arena_Func001C())then
call GroupClear(udg_group18)
if(Trig_Lose_arena_Func001Func003001())then
call DisableTrigger(udg_trigger160)
else
call DoNothing()
endif
if(Trig_Lose_arena_Func001Func004001())then
call DisableTrigger(udg_trigger164)
else
call DoNothing()
endif
if(Trig_Lose_arena_Func001Func005001())then
call DisableTrigger(udg_trigger168)
else
call DoNothing()
endif
if(Trig_Lose_arena_Func001Func006001())then
call DisableTrigger(udg_trigger173)
else
call DoNothing()
endif
call TriggerExecute(udg_trigger176)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Posittion_Actions takes nothing returns nothing
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],udg_locations01[GetForLoopIndexA()],270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.00)
call PauseAllUnitsBJ(false)
endfunction
function Trig_STOP_All_time_Func011C takes nothing returns boolean
if(not(udg_boolean02==true))then
return false
endif
return true
endfunction
function Trig_STOP_All_time_Func013C takes nothing returns boolean
if(not(udg_boolean03==true))then
return false
endif
return true
endfunction
function Trig_STOP_All_time_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger15)
call DisableTrigger(udg_trigger16)
call DisableTrigger(udg_trigger17)
set udg_boolean07=true
call PauseTimerBJ(true,udg_timer03)
call TimerDialogDisplayBJ(false,udg_timerdialog02)
call PauseTimerBJ(true,udg_timer04)
call TimerDialogDisplayBJ(false,udg_timerdialog03)
if(Trig_STOP_All_time_Func011C())then
call PauseTimerBJ(true,udg_timer05)
call TimerDialogDisplayBJ(false,udg_timerdialog04)
else
call DoNothing()
endif
if(Trig_STOP_All_time_Func013C())then
call DoNothing()
else
call PauseTimerBJ(true,udg_timer06)
call TimerDialogDisplayBJ(false,udg_timerdialog05)
endif
endfunction
function Trig_Run_all_time_Func005001 takes nothing returns boolean
return(udg_integer11==0)
endfunction
function Trig_Run_all_time_Func006001 takes nothing returns boolean
return(udg_integer11==0)
endfunction
function Trig_Run_all_time_Func010C takes nothing returns boolean
if(not(udg_boolean02==true))then
return false
endif
return true
endfunction
function Trig_Run_all_time_Func013C takes nothing returns boolean
if(not(udg_boolean03==false))then
return false
endif
return true
endfunction
function Trig_Run_all_time_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger15)
call EnableTrigger(udg_trigger16)
call EnableTrigger(udg_trigger17)
set udg_boolean07=false
if(Trig_Run_all_time_Func005001())then
call PauseTimerBJ(false,udg_timer03)
else
call DoNothing()
endif
if(Trig_Run_all_time_Func006001())then
call TimerDialogDisplayBJ(true,udg_timerdialog02)
else
call DoNothing()
endif
call PauseTimerBJ(false,udg_timer04)
call TimerDialogDisplayBJ(true,udg_timerdialog03)
if(Trig_Run_all_time_Func010C())then
call PauseTimerBJ(false,udg_timer05)
call TimerDialogDisplayBJ(true,udg_timerdialog04)
else
call DoNothing()
endif
if(Trig_Run_all_time_Func013C())then
call PauseTimerBJ(false,udg_timer06)
call TimerDialogDisplayBJ(true,udg_timerdialog05)
else
call DoNothing()
endif
endfunction
function Trig_Die_Conditions takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Die_Func005001001 takes nothing returns boolean
return(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Die_Func005001002 takes nothing returns boolean
return(GetOwningPlayer(GetDyingUnit())!=Player(11))
endfunction
function Trig_Die_Func005001 takes nothing returns boolean
return GetBooleanAnd(Trig_Die_Func005001001(),Trig_Die_Func005001002())
endfunction
function Trig_Die_Actions takes nothing returns nothing
call TriggerSleepAction(2)
call GroupRemoveUnitSimple(GetDyingUnit(),udg_group18)
call GroupRemoveUnitSimple(GetDyingUnit(),udg_group19)
if(Trig_Die_Func005001())then
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect90),false)
else
call DoNothing()
endif
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_rect90),0)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SuspendHeroXPBJ(true,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger182)
endfunction
function Trig_Pause_Func001001003 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Pause_Func001002 takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function Trig_Pause_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetRectCenter(udg_rect90),Condition(function Trig_Pause_Func001001003)),function Trig_Pause_Func001002)
endfunction
function Trig_Die_2_Conditions takes nothing returns boolean
if(not(GetDyingUnit()==udg_unit01))then
return false
endif
return true
endfunction
function Trig_Die_2_Func003001001 takes nothing returns boolean
return(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Die_2_Func003001002 takes nothing returns boolean
return(GetDyingUnit()==udg_unit01)
endfunction
function Trig_Die_2_Func003001 takes nothing returns boolean
return GetBooleanAnd(Trig_Die_2_Func003001001(),Trig_Die_2_Func003001002())
endfunction
function Trig_Die_2_Actions takes nothing returns nothing
call TriggerSleepAction(3.00)
if(Trig_Die_2_Func003001())then
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect90),false)
else
call DoNothing()
endif
call DisplayTextToForce(GetPlayersAll(),(GetPlayerName(GetOwningPlayer(udg_unit01))+" has died !!!"))
call PanCameraToTimedLocForPlayer(GetOwningPlayer(GetDyingUnit()),GetRectCenter(udg_rect90),0)
set udg_unit01=null
call EnableTrigger(udg_trigger82)
endfunction
function Trig_Pick_in_Group_Func001001002 takes nothing returns boolean
return(GetOwningPlayer(GetFilterUnit())==Player(11))
endfunction
function Trig_Pick_in_Group_Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group14)
call SetUnitInvulnerable(GetEnumUnit(),true)
call PauseUnitBJ(true,GetEnumUnit())
endfunction
function Trig_Pick_in_Group_Func002Func001Func003C takes nothing returns boolean
if((GetUnitTypeId(GetEnumUnit())=='h009'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='h02C'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='h02D'))then
return true
endif
return false
endfunction
function Trig_Pick_in_Group_Func002Func001C takes nothing returns boolean
if(not Trig_Pick_in_Group_Func002Func001Func003C())then
return false
endif
return true
endfunction
function Trig_Pick_in_Group_Func002A takes nothing returns nothing
if(Trig_Pick_in_Group_Func002Func001C())then
call GroupAddUnitSimple(GetEnumUnit(),udg_group15)
else
call DoNothing()
endif
endfunction
function Trig_Pick_in_Group_Func003Func001Func003C takes nothing returns boolean
if((GetUnitTypeId(GetEnumUnit())=='u001'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='u002'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='u003'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='u004'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='u00M'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='u00J'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='u00K'))then
return true
endif
if((GetUnitTypeId(GetEnumUnit())=='u00L'))then
return true
endif
return false
endfunction
function Trig_Pick_in_Group_Func003Func001C takes nothing returns boolean
if(not Trig_Pick_in_Group_Func003Func001Func003C())then
return false
endif
return true
endfunction
function Trig_Pick_in_Group_Func003A takes nothing returns nothing
if(Trig_Pick_in_Group_Func003Func001C())then
call GroupAddUnitSimple(GetEnumUnit(),udg_group16)
else
call DoNothing()
endif
endfunction
function Trig_Pick_in_Group_Func004A takes nothing returns nothing
call ShowUnitHide(GetEnumUnit())
endfunction
function Trig_Pick_in_Group_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(udg_rect101,Condition(function Trig_Pick_in_Group_Func001001002)),function Trig_Pick_in_Group_Func001A)
call ForGroupBJ(udg_group14,function Trig_Pick_in_Group_Func002A)
call ForGroupBJ(udg_group14,function Trig_Pick_in_Group_Func003A)
call ForGroupBJ(udg_group14,function Trig_Pick_in_Group_Func004A)
endfunction
function Trig_If_number_2_Func001Func005001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit59)==true)
endfunction
function Trig_If_number_2_Func001Func005002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit57)==true)
endfunction
function Trig_If_number_2_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_If_number_2_Func001Func005001(),Trig_If_number_2_Func001Func005002()))then
return false
endif
return true
endfunction
function Trig_If_number_2_Actions takes nothing returns nothing
if(Trig_If_number_2_Func001C())then
set udg_integer07=0
set udg_integer06=0
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_If_number_4_Func001Func005001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit59)==true)
endfunction
function Trig_If_number_4_Func001Func005002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit57)==true)
endfunction
function Trig_If_number_4_Func001Func005002002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit67)==true)
endfunction
function Trig_If_number_4_Func001Func005002002002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit62)==true)
endfunction
function Trig_If_number_4_Func001Func005002002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_4_Func001Func005002002001(),Trig_If_number_4_Func001Func005002002002())
endfunction
function Trig_If_number_4_Func001Func005002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_4_Func001Func005002001(),Trig_If_number_4_Func001Func005002002())
endfunction
function Trig_If_number_4_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_If_number_4_Func001Func005001(),Trig_If_number_4_Func001Func005002()))then
return false
endif
return true
endfunction
function Trig_If_number_4_Actions takes nothing returns nothing
if(Trig_If_number_4_Func001C())then
set udg_integer07=0
set udg_integer06=0
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_If_number_6_Func001Func005001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit59)==true)
endfunction
function Trig_If_number_6_Func001Func005002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit57)==true)
endfunction
function Trig_If_number_6_Func001Func005002002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit67)==true)
endfunction
function Trig_If_number_6_Func001Func005002002002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit62)==true)
endfunction
function Trig_If_number_6_Func001Func005002002002002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit61)==true)
endfunction
function Trig_If_number_6_Func001Func005002002002002002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit60)==true)
endfunction
function Trig_If_number_6_Func001Func005002002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_6_Func001Func005002002002002001(),Trig_If_number_6_Func001Func005002002002002002())
endfunction
function Trig_If_number_6_Func001Func005002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_6_Func001Func005002002002001(),Trig_If_number_6_Func001Func005002002002002())
endfunction
function Trig_If_number_6_Func001Func005002002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_6_Func001Func005002002001(),Trig_If_number_6_Func001Func005002002002())
endfunction
function Trig_If_number_6_Func001Func005002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_6_Func001Func005002001(),Trig_If_number_6_Func001Func005002002())
endfunction
function Trig_If_number_6_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_If_number_6_Func001Func005001(),Trig_If_number_6_Func001Func005002()))then
return false
endif
return true
endfunction
function Trig_If_number_6_Actions takes nothing returns nothing
if(Trig_If_number_6_Func001C())then
set udg_integer07=0
set udg_integer06=0
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_If_number_8_Func001Func005001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit59)==true)
endfunction
function Trig_If_number_8_Func001Func005002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit57)==true)
endfunction
function Trig_If_number_8_Func001Func005002002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit67)==true)
endfunction
function Trig_If_number_8_Func001Func005002002002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit62)==true)
endfunction
function Trig_If_number_8_Func001Func005002002002002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit61)==true)
endfunction
function Trig_If_number_8_Func001Func005002002002002002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit60)==true)
endfunction
function Trig_If_number_8_Func001Func005002002002002002002001 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit58)==true)
endfunction
function Trig_If_number_8_Func001Func005002002002002002002002 takes nothing returns boolean
return(IsUnitDeadBJ(udg_unit63)==true)
endfunction
function Trig_If_number_8_Func001Func005002002002002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_8_Func001Func005002002002002002002001(),Trig_If_number_8_Func001Func005002002002002002002002())
endfunction
function Trig_If_number_8_Func001Func005002002002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_8_Func001Func005002002002002002001(),Trig_If_number_8_Func001Func005002002002002002002())
endfunction
function Trig_If_number_8_Func001Func005002002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_8_Func001Func005002002002002001(),Trig_If_number_8_Func001Func005002002002002002())
endfunction
function Trig_If_number_8_Func001Func005002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_8_Func001Func005002002002001(),Trig_If_number_8_Func001Func005002002002002())
endfunction
function Trig_If_number_8_Func001Func005002002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_8_Func001Func005002002001(),Trig_If_number_8_Func001Func005002002002())
endfunction
function Trig_If_number_8_Func001Func005002 takes nothing returns boolean
return GetBooleanAnd(Trig_If_number_8_Func001Func005002001(),Trig_If_number_8_Func001Func005002002())
endfunction
function Trig_If_number_8_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_If_number_8_Func001Func005001(),Trig_If_number_8_Func001Func005002()))then
return false
endif
return true
endfunction
function Trig_If_number_8_Actions takes nothing returns nothing
if(Trig_If_number_8_Func001C())then
set udg_integer07=0
set udg_integer06=0
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Tes_Final_Func001Func029001 takes nothing returns boolean
return(udg_integer06==0)
endfunction
function Trig_Tes_Final_Func001Func029002 takes nothing returns boolean
return(udg_integer07==0)
endfunction
function Trig_Tes_Final_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Tes_Final_Func001Func029001(),Trig_Tes_Final_Func001Func029002()))then
return false
endif
return true
endfunction
function Trig_Tes_Final_Actions takes nothing returns nothing
if(Trig_Tes_Final_Func001C())then
set udg_boolean07=true
call DisableTrigger(udg_trigger63)
call DisableTrigger(udg_trigger82)
call DisableTrigger(udg_trigger32)
call DisableTrigger(udg_trigger31)
set udg_integer05=0
call DisableTrigger(udg_trigger74)
set udg_integer10=999
set udg_integer09=999
call PauseTimerBJ(true,udg_timer04)
call PauseTimerBJ(true,udg_timer05)
call PauseTimerBJ(true,udg_timer03)
call PauseTimerBJ(true,udg_timer06)
call TimerDialogDisplayBJ(false,udg_timerdialog03)
call TimerDialogDisplayBJ(false,udg_timerdialog04)
call TimerDialogDisplayBJ(false,udg_timerdialog02)
call TimerDialogDisplayBJ(false,udg_timerdialog05)
call TriggerExecute(udg_trigger190)
call DisableTrigger(udg_trigger185)
call DisableTrigger(udg_trigger186)
call DisableTrigger(udg_trigger187)
call DisableTrigger(udg_trigger188)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Final_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound11)
call CreateTimerDialogBJ(udg_timer01,"Final Wave")
call StartTimerBJ(udg_timer01,false,60.00)
set udg_timerdialog03=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog03)
call EnableTrigger(udg_trigger191)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Final_Ex_Actions takes nothing returns nothing
call DestroyTimerDialogBJ(udg_timerdialog03)
call DisplayTextToForce(GetPlayersAll(),"Final Wave !!!")
call PauseAllUnitsBJ(true)
call StopSoundBJ(GetLastPlayedSound(),false)
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rects04[GetForLoopIndexA()]),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.00)
call PlaySoundBJ(udg_sound03)
call CinematicFilterGenericBJ(10.00,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\DiagonalSlash_mask.blp",100,100,100,100,0,0,0,0)
call DisplayCineFilterBJ(true)
call TriggerSleepAction(9.00)
call PlaySoundBJ(udg_sound04)
call TriggerSleepAction(4.00)
call PlaySoundBJ(udg_sound03)
call TriggerSleepAction(9.00)
call SetTimeOfDay(20.00)
call DisplayCineFilterBJ(false)
call SetUnitInvulnerable(udg_unit80,true)
call DisplayTextToForce(GetPlayersAll(),"The Great House has invisirable in 15s.")
call TriggerSleepAction(2.00)
call PauseAllUnitsBJ(false)
call PlaySoundBJ(udg_sound09)
set udg_sound02=GetLastPlayedSound()
call DisplayTextToForce(GetPlayersAll(),"The Sky is crying....and The Death is coming....!!!!!")
call EnableTrigger(udg_trigger192)
call TriggerSleepAction(5.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00R',Player(11),GetRandomLocInRect(udg_rect140),bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group13)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(15.00)
call SetUnitInvulnerable(udg_unit80,false)
call DisplayTextToForce(GetPlayersAll(),"The Great House has been not invisirable anymore !!!!!!")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00S',Player(11),GetRandomLocInRect(udg_rect140),bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group13)
call TriggerSleepAction(0.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(15.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00T',Player(11),GetRandomLocInRect(udg_rect140),bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group13)
call TriggerSleepAction(0.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(15.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00U',Player(11),GetRandomLocInRect(udg_rect140),bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group13)
call TriggerSleepAction(0.50)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CreateNUnitsAtLoc(1,'U00T',Player(11),GetRandomLocInRect(udg_rect140),bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group13)
call EnableTrigger(udg_trigger194)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Weather_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect101),"Objects\\Spawnmodels\\Demon\\InfernalMeteor\\InfernalMeteor.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect101),"Objects\\Spawnmodels\\Demon\\InfernalMeteor\\InfernalMeteor2.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect101),"Objects\\Spawnmodels\\Demon\\InfernalMeteor\\InfernalMeteor3.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect101),"Objects\\Spawnmodels\\Demon\\InfernalMeteor\\InfernalMeteor.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect101),"Objects\\Spawnmodels\\Demon\\InfernalMeteor\\InfernalMeteor.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect101),"Objects\\Spawnmodels\\Demon\\InfernalMeteor\\InfernalMeteor.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect101),"Objects\\Spawnmodels\\Demon\\InfernalMeteor\\InfernalMeteor2.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_Unit_in_Final_Die_Func001C takes nothing returns boolean
if(not(IsUnitInGroup(GetDyingUnit(),udg_group13)==true))then
return false
endif
return true
endfunction
function Trig_Unit_in_Final_Die_Func002C takes nothing returns boolean
if(not(IsUnitInGroup(GetDyingUnit(),udg_group15)==true))then
return false
endif
return true
endfunction
function Trig_Unit_in_Final_Die_Func003C takes nothing returns boolean
if(not(IsUnitInGroup(GetDyingUnit(),udg_group16)==true))then
return false
endif
return true
endfunction
function Trig_Unit_in_Final_Die_Func004C takes nothing returns boolean
if(not(IsUnitInGroup(GetDyingUnit(),udg_group17)==true))then
return false
endif
return true
endfunction
function Trig_Unit_in_Final_Die_Actions takes nothing returns nothing
if(Trig_Unit_in_Final_Die_Func001C())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_group13)
else
call DoNothing()
endif
if(Trig_Unit_in_Final_Die_Func002C())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_group15)
else
call DoNothing()
endif
if(Trig_Unit_in_Final_Die_Func003C())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_group16)
else
call DoNothing()
endif
if(Trig_Unit_in_Final_Die_Func004C())then
call GroupRemoveUnitSimple(GetDyingUnit(),udg_group17)
else
call DoNothing()
endif
endfunction
function Trig_Number_unit_0_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group13)==0))then
return false
endif
return true
endfunction
function Trig_Number_unit_0_Actions takes nothing returns nothing
if(Trig_Number_unit_0_Func001C())then
call DisableTrigger(udg_trigger192)
call TriggerExecute(udg_trigger198)
call DisableTrigger(GetTriggeringTrigger())
else
call DisplayTextToForce(GetPlayersAll(),"Kill All Golem !!")
endif
endfunction
function Trig_FinalAttack_1_end_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group15)==0))then
return false
endif
return true
endfunction
function Trig_FinalAttack_1_end_Actions takes nothing returns nothing
if(Trig_FinalAttack_1_end_Func001C())then
call TriggerExecute(udg_trigger199)
call DisableTrigger(GetTriggeringTrigger())
else
call DisplayTextToForce(GetPlayersAll(),"Kill all enemy alive !!!!!")
endif
endfunction
function Trig_FinalAttack_2_end_Func001Func004C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group16)==0))then
return false
endif
return true
endfunction
function Trig_FinalAttack_2_end_Func001C takes nothing returns boolean
if(not Trig_FinalAttack_2_end_Func001Func004C())then
return false
endif
return true
endfunction
function Trig_FinalAttack_2_end_Actions takes nothing returns nothing
if(Trig_FinalAttack_2_end_Func001C())then
call TriggerExecute(udg_trigger200)
call DisableTrigger(GetTriggeringTrigger())
else
call DisplayTextToForce(GetPlayersAll(),"Kill all enemy alive !!!!!")
endif
endfunction
function Trig_FinalAttack_3_end_Func001Func005C takes nothing returns boolean
if(not(CountUnitsInGroup(udg_group17)==0))then
return false
endif
return true
endfunction
function Trig_FinalAttack_3_end_Func001C takes nothing returns boolean
if(not Trig_FinalAttack_3_end_Func001Func005C())then
return false
endif
return true
endfunction
function Trig_FinalAttack_3_end_Actions takes nothing returns nothing
if(Trig_FinalAttack_3_end_Func001C())then
call PauseAllUnitsBJ(false)
call TriggerExecute(udg_trigger201)
call DisableTrigger(GetTriggeringTrigger())
else
call DisplayTextToForce(GetPlayersAll(),"Kill all enemy alive !!!!!")
endif
endfunction
function Trig_Hero_Final_Func004001002 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==true)
endfunction
function Trig_Hero_Final_Func004A takes nothing returns nothing
call KillUnit(GetEnumUnit())
call SetUnitAnimation(GetEnumUnit(),"spell")
endfunction
function Trig_Hero_Final_Func019A takes nothing returns nothing
call ShowUnitShow(GetEnumUnit())
endfunction
function Trig_Hero_Final_Func031A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"spell")
endfunction
function Trig_Hero_Final_Func032A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endfunction
function Trig_Hero_Final_Func045A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"spell")
endfunction
function Trig_Hero_Final_Func052A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"attack slam")
endfunction
function Trig_Hero_Final_Func053A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endfunction
function Trig_Hero_Final_Func066A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"spell")
endfunction
function Trig_Hero_Final_Func073A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"spell")
endfunction
function Trig_Hero_Final_Func074A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endfunction
function Trig_Hero_Final_Func087A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"spell slam")
endfunction
function Trig_Hero_Final_Func093A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"attack")
endfunction
function Trig_Hero_Final_Func094A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"stand victory")
endfunction
function Trig_Hero_Final_Func107A takes nothing returns nothing
call SetUnitAnimation(GetEnumUnit(),"spell slam")
endfunction
function Trig_Hero_Final_Func123A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
call PauseUnitBJ(false,GetEnumUnit())
endfunction
function Trig_Hero_Final_Func125A takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_rect31))
endfunction
function Trig_Hero_Final_Func126A takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
endfunction
function Trig_Hero_Final_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger61)
call EnableTrigger(udg_trigger213)
call DisplayTextToForce(GetPlayersAll(),"Greathouse no impotant more....your life is more impotant....!!!!!")
call ForGroupBJ(GetUnitsInRectMatching(udg_rect31,Condition(function Trig_Hero_Final_Func004001002)),function Trig_Hero_Final_Func004A)
call DisplayTextToForce(GetPlayersAll(),"Prepare for a hurge wave of Commander.")
call TriggerSleepAction(10.00)
call PauseAllUnitsBJ(true)
call StopSoundBJ(udg_sound02,false)
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rects04[GetForLoopIndexA()]),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
call CinematicFilterGenericBJ(10.00,BLEND_MODE_BLEND,"ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp",100,100,100,100,0,0,0,0)
call DisplayCineFilterBJ(true)
call TriggerSleepAction(9.00)
call PlaySoundBJ(udg_sound03)
call TriggerSleepAction(14.00)
call ForGroupBJ(udg_group14,function Trig_Hero_Final_Func019A)
call TriggerSleepAction(1.00)
call CinematicModeBJ(true,GetPlayersAll())
call PlaySoundBJ(udg_sound08)
set udg_sound02=GetLastPlayedSound()
call DisplayCineFilterBJ(false)
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup01,ConvertedPlayer(GetForLoopIndexA()),5.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(8.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup09,ConvertedPlayer(GetForLoopIndexA()),3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
call ForGroupBJ(udg_group16,function Trig_Hero_Final_Func031A)
call ForGroupBJ(udg_group15,function Trig_Hero_Final_Func032A)
call TerrainDeformationRippleBJ(3.00,false,GetRectCenter(udg_rect149),1024,1024,80.00,1,512)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect149),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'H008',Player(11),GetRectCenter(udg_rect149),0.00)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetHeroLevelBJ(GetLastCreatedUnit(),50,true)
call ModifyHeroStat(bj_HEROSTAT_STR,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group17)
call TriggerSleepAction(3.00)
call ForGroupBJ(udg_group17,function Trig_Hero_Final_Func045A)
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup10,ConvertedPlayer(GetForLoopIndexA()),3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup11,ConvertedPlayer(GetForLoopIndexA()),3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
call ForGroupBJ(udg_group16,function Trig_Hero_Final_Func052A)
call ForGroupBJ(udg_group15,function Trig_Hero_Final_Func053A)
call TerrainDeformationRippleBJ(3.00,false,GetRectCenter(udg_rect150),1024,1024,80.00,1,512)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect150),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'H007',Player(11),GetRectCenter(udg_rect150),270.00)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetHeroLevelBJ(GetLastCreatedUnit(),50,true)
call ModifyHeroStat(bj_HEROSTAT_STR,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group17)
call TriggerSleepAction(3.00)
call ForGroupBJ(udg_group17,function Trig_Hero_Final_Func066A)
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup12,ConvertedPlayer(GetForLoopIndexA()),3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup13,ConvertedPlayer(GetForLoopIndexA()),3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
call ForGroupBJ(udg_group16,function Trig_Hero_Final_Func073A)
call ForGroupBJ(udg_group15,function Trig_Hero_Final_Func074A)
call TerrainDeformationRippleBJ(3.00,false,GetRectCenter(udg_rect151),1024,1024,80.00,1,512)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect151),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'H006',Player(11),GetRectCenter(udg_rect151),180.00)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetHeroLevelBJ(GetLastCreatedUnit(),50,true)
call ModifyHeroStat(bj_HEROSTAT_STR,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group17)
call TriggerSleepAction(3.00)
call ForGroupBJ(udg_group17,function Trig_Hero_Final_Func087A)
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup14,ConvertedPlayer(GetForLoopIndexA()),3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup15,ConvertedPlayer(GetForLoopIndexA()),3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
call ForGroupBJ(udg_group16,function Trig_Hero_Final_Func093A)
call ForGroupBJ(udg_group15,function Trig_Hero_Final_Func094A)
call TerrainDeformationRippleBJ(3.00,false,GetRectCenter(udg_rect152),1024,1024,80.00,1,512)
call AddSpecialEffectLocBJ(GetRectCenter(udg_rect151),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'H02B',Player(11),GetRectCenter(udg_rect152),90.00)
call SetUnitInvulnerable(GetLastCreatedUnit(),true)
call PauseUnitBJ(true,GetLastCreatedUnit())
call SetHeroLevelBJ(GetLastCreatedUnit(),50,true)
call ModifyHeroStat(bj_HEROSTAT_STR,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetLastCreatedUnit(),bj_MODIFYMETHOD_ADD,5000)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group17)
call TriggerSleepAction(3.00)
call ForGroupBJ(udg_group17,function Trig_Hero_Final_Func107A)
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup16,ConvertedPlayer(GetForLoopIndexA()),3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetRectCenter(udg_rect31),4.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(6.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit65,"Lord of Hell",udg_sound04,"TRIGSTR_7159",bj_TIMETYPE_ADD,4.00,true)
call TriggerSleepAction(12.00)
call StopSoundBJ(udg_sound02,false)
call PlaySoundBJ(udg_sound07)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ResetToGameCameraForPlayer(ConvertedPlayer(GetForLoopIndexA()),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PauseUnitBJ(false,udg_units02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitInvulnerable(udg_units02[GetForLoopIndexA()],false)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call CinematicModeBJ(false,GetPlayersAll())
call TriggerSleepAction(1.00)
call ForGroupBJ(udg_group15,function Trig_Hero_Final_Func123A)
call TriggerSleepAction(1.00)
call ForGroupBJ(udg_group15,function Trig_Hero_Final_Func125A)
call ForGroupBJ(GetUnitsInRectAll(udg_rect108),function Trig_Hero_Final_Func126A)
call EnableTrigger(udg_trigger195)
endfunction
function Trig_Finsih_wave_1_Func007A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
call PauseUnitBJ(false,GetEnumUnit())
endfunction
function Trig_Finsih_wave_1_Func008A takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_rect31))
endfunction
function Trig_Finsih_wave_1_Actions takes nothing returns nothing
call StopSoundBJ(udg_sound02,false)
call TriggerSleepAction(5.00)
call PlaySoundBJ(udg_sound07)
set udg_sound02=GetLastPlayedSound()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rects04[GetForLoopIndexA()]),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(udg_group16,function Trig_Finsih_wave_1_Func007A)
call ForGroupBJ(udg_group16,function Trig_Finsih_wave_1_Func008A)
call EnableTrigger(udg_trigger196)
endfunction
function Trig_Finsih_wave_2_Func007A takes nothing returns nothing
call SetUnitInvulnerable(GetEnumUnit(),false)
call PauseUnitBJ(false,GetEnumUnit())
endfunction
function Trig_Finsih_wave_2_Func008A takes nothing returns nothing
call IssuePointOrderLocBJ(GetEnumUnit(),"attack",GetRectCenter(udg_rect31))
endfunction
function Trig_Finsih_wave_2_Actions takes nothing returns nothing
call StopSoundBJ(udg_sound02,false)
call TriggerSleepAction(5.00)
call PlaySoundBJ(udg_sound07)
set udg_sound02=GetLastPlayedSound()
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rects04[GetForLoopIndexA()]),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(udg_group17,function Trig_Finsih_wave_2_Func007A)
call ForGroupBJ(udg_group17,function Trig_Finsih_wave_2_Func008A)
call EnableTrigger(udg_trigger197)
endfunction
function Trig_End_Actions takes nothing returns nothing
call StopSoundBJ(udg_sound02,false)
call TriggerSleepAction(0.01)
call PlaySoundBJ(udg_sound12)
set udg_sound02=GetLastPlayedSound()
call TriggerExecute(udg_trigger202)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Blood_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger203)
call CreateTimerDialogBJ(udg_timer01,"Death Road")
call StartTimerBJ(udg_timer01,false,60.00)
set udg_timerdialog03=GetLastCreatedTimerDialogBJ()
call TimerDialogDisplayBJ(true,udg_timerdialog03)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Blood_Ex_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger55)
call EnableTrigger(udg_trigger56)
call DisplayTextToForce(GetPlayersAll(),"If you die you will lose.....")
call DestroyTimerDialogBJ(udg_timerdialog03)
call StopSoundBJ(udg_sound02,false)
call PauseAllUnitsBJ(true)
call CinematicModeBJ(true,GetPlayersAll())
call DisplayTextToForce(GetPlayersAll(),"Death Road Begin soon ...!!!!")
call TriggerSleepAction(5.00)
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetUnitPositionLocFacingBJ(udg_units02[GetForLoopIndexA()],GetRectCenter(udg_rect102),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PlaySoundBJ(udg_sound13)
call TriggerSleepAction(1.00)
call DisplayTextToForce(GetPlayersAll(),"This is Death Road.
")
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup02,ConvertedPlayer(GetForLoopIndexA()),4.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(6.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup04,ConvertedPlayer(GetForLoopIndexA()),4.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup03,ConvertedPlayer(GetForLoopIndexA()),3.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(9.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ResetToGameCameraForPlayer(ConvertedPlayer(GetForLoopIndexA()),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2)
call TriggerExecute(udg_trigger204)
call TriggerSleepAction(2)
call CinematicModeBJ(false,GetPlayersAll())
call PauseAllUnitsBJ(false)
endfunction
function Trig_Blood_1_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger206)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=130
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00G',Player(11),GetRandomLocInRect(udg_rect95),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Blood_1_die_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='n00G'))then
return false
endif
return true
endfunction
function Trig_Blood_1_die_Actions takes nothing returns nothing
call TriggerSleepAction(2.50)
call CreateNUnitsAtLoc(1,'n00G',Player(11),GetUnitLoc(GetDyingUnit()),270.00)
endfunction
function Trig_Blood_1_End_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00G')
endfunction
function Trig_Blood_1_End_Func005002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Blood_1_End_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger207)
call DisableTrigger(udg_trigger205)
call CreateNUnitsAtLoc(1,'H006',Player(11),GetRectCenter(udg_rect122),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'H007',Player(11),GetRectCenter(udg_rect122),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Blood_1_End_Func005001002)),function Trig_Blood_1_End_Func005002)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Blood_2_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger209)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=200
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00H',Player(11),GetRandomLocInRect(udg_rect103),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Blood_2_die_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='n00H'))then
return false
endif
return true
endfunction
function Trig_Blood_2_die_Actions takes nothing returns nothing
call TriggerSleepAction(3.50)
call CreateNUnitsAtLoc(1,'n00H',Player(11),GetUnitLoc(GetDyingUnit()),270.00)
endfunction
function Trig_Blood_2_End_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00H')
endfunction
function Trig_Blood_2_End_Func005002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Blood_2_End_Actions takes nothing returns nothing
call TriggerExecute(udg_trigger210)
call DisableTrigger(udg_trigger208)
call CreateNUnitsAtLoc(1,'H02B',Player(11),GetRectCenter(udg_rect123),bj_UNIT_FACING)
call CreateNUnitsAtLoc(1,'H008',Player(11),GetRectCenter(udg_rect123),bj_UNIT_FACING)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Blood_2_End_Func005001002)),function Trig_Blood_2_End_Func005002)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Blood_3_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger212)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=80
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'n00I',Player(11),GetRandomLocInRect(udg_rect104),270.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Blood_3_die_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='n00I'))then
return false
endif
return true
endfunction
function Trig_Blood_3_die_Actions takes nothing returns nothing
call TriggerSleepAction(4.50)
call CreateNUnitsAtLoc(1,'n00I',Player(11),GetUnitLoc(GetDyingUnit()),270.00)
endfunction
function Trig_Blood_3_End_Func003001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00I')
endfunction
function Trig_Blood_3_End_Func003002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Blood_3_End_Func005001002 takes nothing returns boolean
return(GetUnitTypeId(GetFilterUnit())=='n00I')
endfunction
function Trig_Blood_3_End_Func005002 takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Blood_3_End_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger210)
call DisableTrigger(udg_trigger211)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Blood_3_End_Func003001002)),function Trig_Blood_3_End_Func003002)
call TriggerSleepAction(10.00)
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Blood_3_End_Func005001002)),function Trig_Blood_3_End_Func005002)
call TriggerExecute(udg_trigger214)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Lose_Mission_Conditions takes nothing returns boolean
if(not(IsUnitType(GetDyingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Lose_Mission_Actions takes nothing returns nothing
call CustomDefeatBJ(GetOwningPlayer(GetDyingUnit()),"You die and all the end...No more...")
endfunction
function Trig_Kepper_of_the_Door_Actions takes nothing returns nothing
call PauseAllUnitsBJ(true)
set udg_reals01[0]=75.00
call PlaySoundBJ(udg_sound17)
call CinematicModeBJ(true,GetPlayersAll())
call TriggerSleepAction(3.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetEQNoiseForPlayer(ConvertedPlayer(GetForLoopIndexA()),15.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_units02[1],GetPlayerName(GetOwningPlayer(udg_units02[1])),null,"What happening ????",bj_TIMETYPE_ADD,1.00,true)
call TriggerSleepAction(1.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup03,ConvertedPlayer(GetForLoopIndexA()),4.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(6.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup05,ConvertedPlayer(GetForLoopIndexA()),0.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(3.00)
call PlaySoundBJ(udg_sound14)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(GetRandomLocInRect(udg_rect106),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call PlaySoundBJ(udg_sound15)
call PlaySoundBJ(udg_sound05)
call TerrainDeformationRippleBJ(1.00,false,GetRectCenter(udg_rect106),1024,1024,64,1,512)
call CreateNUnitsAtLoc(1,'N00L',Player(11),GetRectCenter(udg_rect106),270.00)
set udg_unit02=GetLastCreatedUnit()
call UnitAddItemByIdSwapped('I00E',udg_unit02)
call UnitAddItemByIdSwapped('I00A',udg_unit02)
call UnitAddItemByIdSwapped('I00B',udg_unit02)
call SetUnitAnimation(udg_unit02,"stand")
call TriggerSleepAction(2.00)
call SetUnitAnimation(udg_unit02,"stand")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup06,ConvertedPlayer(GetForLoopIndexA()),5.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(5.00)
call SetUnitAnimation(udg_unit02,"stand")
call PlaySoundBJ(udg_sound04)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit02,"Keeper Of The Door",null,"Huhm...All you will die !!!!!",bj_TIMETYPE_ADD,1.00,true)
call TriggerSleepAction(1.00)
call SetUnitAnimation(udg_unit02,"stand")
call PlaySoundBJ(udg_sound04)
call TriggerSleepAction(3.00)
call SetUnitAnimation(udg_unit02,"attack")
call TriggerSleepAction(0.50)
call IssueImmediateOrderBJ(udg_unit02,"stop")
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetupApplyForPlayer(true,udg_camerasetup03,ConvertedPlayer(GetForLoopIndexA()),4.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=14
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit02),udg_reals01[0],270.00),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.01)
set udg_reals01[0]=(udg_reals01[0]+100.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ModifyGateBJ(bj_GATEOPERATION_DESTROY,udg_destructable01)
call TriggerSleepAction(4.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ResetToGameCameraForPlayer(ConvertedPlayer(GetForLoopIndexA()),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call PanCameraToTimedLocForPlayer(ConvertedPlayer(GetForLoopIndexA()),GetUnitLoc(udg_units02[GetForLoopIndexA()]),0)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTextToForce(GetPlayersAll(),"Go and kill Keeper Of The Door !!!")
call TriggerSleepAction(1.00)
call PauseAllUnitsBJ(false)
call PlaySoundBJ(udg_sound23)
set udg_sound02=GetLastPlayedSound()
call EnableTrigger(udg_trigger215)
call CinematicModeBJ(false,GetPlayersAll())
endfunction
function Trig_Keeper_Die_Func001C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_unit02)==true))then
return false
endif
return true
endfunction
function Trig_Keeper_Die_Actions takes nothing returns nothing
if(Trig_Keeper_Die_Func001C())then
call StopSoundBJ(udg_sound02,false)
call CinematicModeBJ(true,GetPlayersAll())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RotateCameraAroundLocBJ(75.00,GetUnitLoc(udg_unit02),ConvertedPlayer(GetForLoopIndexA()),10.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(udg_trigger216)
call PauseAllUnitsBJ(true)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Victory_Actions takes nothing returns nothing
call TriggerSleepAction(3.00)
call TransmissionFromUnitWithNameBJ(GetPlayersAll(),udg_unit65,"Lord of Hell",udg_sound34,"TRIGSTR_7166",bj_TIMETYPE_ADD,3.00,true)
call TriggerSleepAction(6.00)
call CinematicModeBJ(false,GetPlayersAll())
call CustomVictoryBJ(Player(0),true,true)
call CustomVictoryBJ(Player(1),true,true)
call CustomVictoryBJ(Player(2),true,true)
call CustomVictoryBJ(Player(3),true,true)
call CustomVictoryBJ(Player(4),true,true)
call CustomVictoryBJ(Player(5),true,true)
call CustomVictoryBJ(Player(6),true,true)
call CustomVictoryBJ(Player(7),true,true)
endfunction
function Trig_Banish_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='u00C'))then
return false
endif
if(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Banish_Conditions takes nothing returns boolean
if(not Trig_Banish_Func002C())then
return false
endif
return true
endfunction
function Trig_Banish_Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'BHbn')==true))then
return false
endif
return true
endfunction
function Trig_Banish_Actions takes nothing returns nothing
if(Trig_Banish_Func001C())then
call DoNothing()
else
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"banish",GetAttacker())
endif
endfunction
function Trig_Life_Drain_Func002C takes nothing returns boolean
if((GetUnitTypeId(GetAttackedUnitBJ())=='u00A'))then
return true
endif
if((GetUnitTypeId(GetAttacker())=='u00A'))then
return true
endif
return false
endfunction
function Trig_Life_Drain_Conditions takes nothing returns boolean
if(not Trig_Life_Drain_Func002C())then
return false
endif
return true
endfunction
function Trig_Life_Drain_Func001Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='u00A'))then
return false
endif
return true
endfunction
function Trig_Life_Drain_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='u00A'))then
return false
endif
return true
endfunction
function Trig_Life_Drain_Actions takes nothing returns nothing
if(Trig_Life_Drain_Func001C())then
call IssueTargetOrderBJ(GetAttacker(),"drain",GetAttackedUnitBJ())
else
if(Trig_Life_Drain_Func001Func001C())then
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"drain",GetAttacker())
else
call DoNothing()
endif
endif
endfunction
function Trig_Mana_Burn_Func002C takes nothing returns boolean
if((GetUnitTypeId(GetAttackedUnitBJ())=='u00E'))then
return true
endif
if((GetUnitTypeId(GetAttacker())=='u00E'))then
return true
endif
return false
endfunction
function Trig_Mana_Burn_Conditions takes nothing returns boolean
if(not Trig_Mana_Burn_Func002C())then
return false
endif
return true
endfunction
function Trig_Mana_Burn_Func001Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='u00E'))then
return false
endif
return true
endfunction
function Trig_Mana_Burn_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='u00E'))then
return false
endif
return true
endfunction
function Trig_Mana_Burn_Actions takes nothing returns nothing
if(Trig_Mana_Burn_Func001C())then
call IssueTargetOrderBJ(GetAttacker(),"manaburn",GetAttackedUnitBJ())
else
if(Trig_Mana_Burn_Func001Func002C())then
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"manaburn",GetAttacker())
else
call DoNothing()
endif
endif
endfunction
function Trig_Sleep_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='u00F'))then
return false
endif
if(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Sleep_Conditions takes nothing returns boolean
if(not Trig_Sleep_Func002C())then
return false
endif
return true
endfunction
function Trig_Sleep_Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'BUsl')==true))then
return false
endif
return true
endfunction
function Trig_Sleep_Actions takes nothing returns nothing
if(Trig_Sleep_Func001C())then
call DoNothing()
else
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"sleep",GetAttacker())
endif
endfunction
function Trig_Cylone_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='u00D'))then
return false
endif
if(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Cylone_Conditions takes nothing returns boolean
if(not Trig_Cylone_Func002C())then
return false
endif
return true
endfunction
function Trig_Cylone_Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'Bcyc')==true))then
return false
endif
return true
endfunction
function Trig_Cylone_Actions takes nothing returns nothing
if(Trig_Cylone_Func001C())then
call DoNothing()
else
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"cyclone",GetAttacker())
endif
endfunction
function Trig_Healing_Wave_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='u00G'))then
return false
endif
if(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Healing_Wave_Conditions takes nothing returns boolean
if(not Trig_Healing_Wave_Func002C())then
return false
endif
return true
endfunction
function Trig_Healing_Wave_Actions takes nothing returns nothing
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"healingwave",GetAttackedUnitBJ())
endfunction
function Trig_Purge_Func002C takes nothing returns boolean
if((GetUnitTypeId(GetAttackedUnitBJ())=='u00H'))then
return true
endif
if((GetUnitTypeId(GetAttacker())=='u00H'))then
return true
endif
return false
endfunction
function Trig_Purge_Conditions takes nothing returns boolean
if(not Trig_Purge_Func002C())then
return false
endif
return true
endfunction
function Trig_Purge_Func001Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='u00H'))then
return false
endif
return true
endfunction
function Trig_Purge_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='u00H'))then
return false
endif
return true
endfunction
function Trig_Purge_Actions takes nothing returns nothing
if(Trig_Purge_Func001C())then
call IssueTargetOrderBJ(GetAttacker(),"purge",GetAttackedUnitBJ())
else
if(Trig_Purge_Func001Func001C())then
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"purge",GetAttacker())
else
call DoNothing()
endif
endif
endfunction
function Trig_Hex_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='u00B'))then
return false
endif
if(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Hex_Conditions takes nothing returns boolean
if(not Trig_Hex_Func002C())then
return false
endif
return true
endfunction
function Trig_Hex_Actions takes nothing returns nothing
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"hex",GetAttacker())
endfunction
function Trig_Faerie_Fire_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetAttackedUnitBJ())==Player(11)))then
return false
endif
return true
endfunction
function Trig_Faerie_Fire_Func002C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'Bfae')==true))then
return false
endif
return true
endfunction
function Trig_Faerie_Fire_Actions takes nothing returns nothing
if(Trig_Faerie_Fire_Func002C())then
call DoNothing()
else
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"faeriefire",GetAttacker())
endif
endfunction
function Trig_Deal_1k_life_Conditions takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(11)))then
return false
endif
return true
endfunction
function Trig_Deal_1k_life_Func002Func003C takes nothing returns boolean
if((UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I00P')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I00K')==true))then
return true
endif
if((UnitHasItemOfTypeBJ(GetAttackedUnitBJ(),'I00S')==true))then
return true
endif
return false
endfunction
function Trig_Deal_1k_life_Func002C takes nothing returns boolean
if(not Trig_Deal_1k_life_Func002Func003C())then
return false
endif
return true
endfunction
function Trig_Deal_1k_life_Actions takes nothing returns nothing
if(Trig_Deal_1k_life_Func002C())then
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(0.50*GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),(0.10*GetUnitStateSwap(UNIT_STATE_LIFE,GetAttackedUnitBJ())),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endif
endfunction
function Trig_Remove_Ilusion_Func002C takes nothing returns boolean
if((GetUnitTypeId(GetAttackedUnitBJ())=='H008'))then
return true
endif
if((GetUnitTypeId(GetAttackedUnitBJ())=='H006'))then
return true
endif
if((GetUnitTypeId(GetAttackedUnitBJ())=='H007'))then
return true
endif
if((GetUnitTypeId(GetAttackedUnitBJ())=='H02B'))then
return true
endif
return false
endfunction
function Trig_Remove_Ilusion_Conditions takes nothing returns boolean
if(not Trig_Remove_Ilusion_Func002C())then
return false
endif
return true
endfunction
function Trig_Remove_Ilusion_Func001C takes nothing returns boolean
if(not(IsUnitIllusionBJ(GetAttacker())==true))then
return false
endif
return true
endfunction
function Trig_Remove_Ilusion_Actions takes nothing returns nothing
if(Trig_Remove_Ilusion_Func001C())then
call KillUnit(GetAttacker())
else
call DoNothing()
endif
endfunction
function Trig_Skill_1_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='H008'))then
return false
endif
return true
endfunction
function Trig_Skill_1_Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'Binf')==true))then
return false
endif
return true
endfunction
function Trig_Skill_1_Actions takes nothing returns nothing
if(Trig_Skill_1_Func001C())then
call IssueImmediateOrderBJ(GetAttackedUnitBJ(),"divineshield")
else
call IssueTargetOrderBJ(GetAttackedUnitBJ(),"innerfire",GetAttackedUnitBJ())
endif
endfunction
function Trig_Skill_2_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='H007'))then
return false
endif
return true
endfunction
function Trig_Skill_2_Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'Bspl')==true))then
return false
endif
return true
endfunction
function Trig_Skill_2_Func002C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'Bhwd')==true))then
return false
endif
return true
endfunction
function Trig_Skill_2_Actions takes nothing returns nothing
if(Trig_Skill_2_Func001C())then
call DoNothing()
else
call IssueTargetOrderBJ(GetAttacker(),"spiritlink",GetAttacker())
endif
if(Trig_Skill_2_Func002C())then
call DoNothing()
else
call IssuePointOrderLocBJ(GetAttacker(),"healingward",GetUnitLoc(GetAttacker()))
endif
endfunction
function Trig_Skill_3_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='H007'))then
return false
endif
return true
endfunction
function Trig_Skill_3_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(GetAttackedUnitBJ(),"stasistrap",GetUnitLoc(GetAttacker()))
endfunction
function Trig_Skill_5_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttackedUnitBJ())=='H006'))then
return false
endif
return true
endfunction
function Trig_Skill_5_Actions takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttackedUnitBJ(),"fanofknives")
endfunction
function Trig_Skill_6_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='H02B'))then
return false
endif
return true
endfunction
function Trig_Skill_6_Actions takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttacker(),"thunderclap")
endfunction
function Trig_Kylin_Excellence_Sword_Real_Actions takes nothing returns nothing
set udg_reals16[1]=GetRandomReal(0,100.00)
set udg_reals16[2]=GetRandomReal(0,100.00)
set udg_reals16[3]=GetRandomReal(0,100.00)
endfunction
function Trig_Gain_allstat_Func010C takes nothing returns boolean
if(not(GetOwningPlayer(GetDyingUnit())==Player(11)))then
return false
endif
if(not(GetOwningPlayer(GetDyingUnit())==Player(PLAYER_NEUTRAL_AGGRESSIVE)))then
return false
endif
if(not(udg_reals16[1]<=25.00))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetKillingUnitBJ(),'I00K')==true))then
return false
endif
return true
endfunction
function Trig_Gain_allstat_Conditions takes nothing returns boolean
if(not Trig_Gain_allstat_Func010C())then
return false
endif
return true
endfunction
function Trig_Gain_allstat_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("|c000EEE00Gain 10 allstat !!!!",GetKillingUnitBJ(),0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call AddSpecialEffectTargetUnitBJ("origin",GetKillingUnitBJ(),"Objects\\Spawnmodels\\Other\\ToonBoom\\ToonBoom.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,10)
endfunction
function Trig_Damage_to_radius_Func008C takes nothing returns boolean
if(not(udg_reals16[2]<=20.00))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00K')==true))then
return false
endif
return true
endfunction
function Trig_Damage_to_radius_Conditions takes nothing returns boolean
if(not Trig_Damage_to_radius_Func008C())then
return false
endif
return true
endfunction
function Trig_Damage_to_radius_Func007001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Damage_to_radius_Func007001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Damage_to_radius_Func007001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Damage_to_radius_Func007001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_to_radius_Func007001003002001(),Trig_Damage_to_radius_Func007001003002002())
endfunction
function Trig_Damage_to_radius_Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_to_radius_Func007001003001(),Trig_Damage_to_radius_Func007001003002())
endfunction
function Trig_Damage_to_radius_Func007A takes nothing returns nothing
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),1000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Damage_to_radius_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("|c000EEE001000 dmg !!!",GetAttacker(),0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call AddSpecialEffectTargetUnitBJ("origin",GetAttacker(),"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Damage_to_radius_Func007001003)),function Trig_Damage_to_radius_Func007A)
endfunction
function Trig_Heal_your_self_Func009C takes nothing returns boolean
if(not(udg_reals16[3]<=15.00))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00K')==true))then
return false
endif
return true
endfunction
function Trig_Heal_your_self_Conditions takes nothing returns boolean
if(not Trig_Heal_your_self_Func009C())then
return false
endif
return true
endfunction
function Trig_Heal_your_self_Actions takes nothing returns nothing
call CreateTextTagUnitBJ(I2S(R2I((0.30*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker())))),GetAttacker(),0,10,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),50.00,50.00,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call AddSpecialEffectTargetUnitBJ("overhead",GetAttacker(),"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttacker())+(0.30*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker()))))
endfunction
function Trig_Juridical_capacity_Excellence_Sword_Real_Actions takes nothing returns nothing
set udg_reals17[1]=GetRandomReal(0,100.00)
set udg_reals17[2]=GetRandomReal(0,100.00)
set udg_reals17[3]=GetRandomReal(0,100.00)
set udg_reals17[4]=GetRandomReal(0,100.00)
set udg_reals17[5]=GetRandomReal(0,100.00)
endfunction
function Trig_Wind_up_and_gain_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00P')==true))then
return false
endif
if(not(udg_reals17[1]<=10.00))then
return false
endif
if(not(IsUnitType(GetAttackedUnitBJ(),UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function Trig_Wind_up_and_gain_Conditions takes nothing returns boolean
if(not Trig_Wind_up_and_gain_Func011C())then
return false
endif
return true
endfunction
function Trig_Wind_up_and_gain_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("|c777DDDFFFINISH !!!",GetAttackedUnitBJ(),0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call KillUnit(GetAttackedUnitBJ())
call ModifyHeroStat(bj_HEROSTAT_STR,GetAttacker(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetAttacker(),bj_MODIFYMETHOD_ADD,10)
call ModifyHeroStat(bj_HEROSTAT_INT,GetAttacker(),bj_MODIFYMETHOD_ADD,10)
call AddSpecialEffectTargetUnitBJ("overhead",GetAttackedUnitBJ(),"Objects\\Spawnmodels\\Orc\\Orcblood\\BattrollBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_Call_wave_water_Func006C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00P')==true))then
return false
endif
if(not(udg_reals17[4]<=15.00))then
return false
endif
return true
endfunction
function Trig_Call_wave_water_Conditions takes nothing returns boolean
if(not Trig_Call_wave_water_Func006C())then
return false
endif
return true
endfunction
function Trig_Call_wave_water_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetAttacker(),"Abilities\\Spells\\Other\\CrushingWave\\CrushingWaveDamage.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'e00Y',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"shockwave",GetUnitLoc(GetAttackedUnitBJ()))
endfunction
function Trig_Call_rock_Func009C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00P')==true))then
return false
endif
if(not(udg_reals17[3]<=15.00))then
return false
endif
return true
endfunction
function Trig_Call_rock_Conditions takes nothing returns boolean
if(not Trig_Call_rock_Func009C())then
return false
endif
return true
endfunction
function Trig_Call_rock_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("|cFFF00000Rock !!!",GetAttacker(),0,10,100,100,100,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),0.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call CreateNUnitsAtLoc(1,'e00X',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"blizzard",GetUnitLoc(GetAttackedUnitBJ()))
endfunction
function Trig_Strike_with_fire_Func014C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00P')==true))then
return false
endif
if(not(udg_reals17[2]<=15.00))then
return false
endif
return true
endfunction
function Trig_Strike_with_fire_Conditions takes nothing returns boolean
if(not Trig_Strike_with_fire_Func014C())then
return false
endif
return true
endfunction
function Trig_Strike_with_fire_Func013001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Strike_with_fire_Func013001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Strike_with_fire_Func013001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Strike_with_fire_Func013001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Strike_with_fire_Func013001003002001(),Trig_Strike_with_fire_Func013001003002002())
endfunction
function Trig_Strike_with_fire_Func013001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Strike_with_fire_Func013001003001(),Trig_Strike_with_fire_Func013001003002())
endfunction
function Trig_Strike_with_fire_Func013A takes nothing returns nothing
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),5000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Strike_with_fire_Actions takes nothing returns nothing
call CreateTextTagUnitBJ("|cFFF00000Fire !!!",GetAttacker(),0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetAttackedUnitBJ()),200.00,90.00),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetAttackedUnitBJ()),200.00,180.00),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetAttackedUnitBJ()),200.00,270.00),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(GetAttackedUnitBJ()),200.00,360.00),"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Strike_with_fire_Func013001003)),function Trig_Strike_with_fire_Func013A)
endfunction
function Trig_Move_slap_damage_Func008C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetAttacker(),'I00P')==true))then
return false
endif
if(not(udg_reals17[5]<=15.00))then
return false
endif
return true
endfunction
function Trig_Move_slap_damage_Conditions takes nothing returns boolean
if(not Trig_Move_slap_damage_Func008C())then
return false
endif
return true
endfunction
function Trig_Move_slap_damage_Func003002001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Move_slap_damage_Func003002001001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Move_slap_damage_Func003002001001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Move_slap_damage_Func003002001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_slap_damage_Func003002001001003002001(),Trig_Move_slap_damage_Func003002001001003002002())
endfunction
function Trig_Move_slap_damage_Func003002001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_slap_damage_Func003002001001003001(),Trig_Move_slap_damage_Func003002001001003002())
endfunction
function Trig_Move_slap_damage_Func007001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Move_slap_damage_Func007001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Move_slap_damage_Func007001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Move_slap_damage_Func007001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_slap_damage_Func007001003002001(),Trig_Move_slap_damage_Func007001003002002())
endfunction
function Trig_Move_slap_damage_Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_slap_damage_Func007001003001(),Trig_Move_slap_damage_Func007001003002())
endfunction
function Trig_Move_slap_damage_Func007A takes nothing returns nothing
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),5000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Move_slap_damage_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitPositionLoc(GetAttacker(),GetUnitLoc(GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Move_slap_damage_Func003002001001003)))))
call IssuePointOrderLocBJ(GetAttacker(),"attack",GetUnitLoc(GetAttacker()))
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttacker()),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Move_slap_damage_Func007001003)),function Trig_Move_slap_damage_Func007A)
endfunction
function Trig_Allstat_Add_Func007C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00S'))then
return false
endif
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Allstat_Add_Conditions takes nothing returns boolean
if(not Trig_Allstat_Add_Func007C())then
return false
endif
return true
endfunction
function Trig_Allstat_Add_Func004Func003C takes nothing returns boolean
if((GetUnitTypeId(GetManipulatingUnit())=='O001'))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())=='O005'))then
return true
endif
if((GetUnitTypeId(GetManipulatingUnit())=='O00M'))then
return true
endif
return false
endfunction
function Trig_Allstat_Add_Func004C takes nothing returns boolean
if(not Trig_Allstat_Add_Func004Func003C())then
return false
endif
return true
endfunction
function Trig_Allstat_Add_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,GetManipulatingUnit(),bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_STR,GetManipulatingUnit(),false)/10))
call ModifyHeroStat(bj_HEROSTAT_AGI,GetManipulatingUnit(),bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_AGI,GetManipulatingUnit(),false)/10))
call ModifyHeroStat(bj_HEROSTAT_INT,GetManipulatingUnit(),bj_MODIFYMETHOD_ADD,(GetHeroStatBJ(bj_HEROSTAT_INT,GetManipulatingUnit(),false)/10))
if(Trig_Allstat_Add_Func004C())then
call DoNothing()
else
call UnitAddAbilityBJ('ACmi',GetManipulatingUnit())
endif
call AddSpecialEffectLocBJ(GetUnitLoc(GetManipulatingUnit()),"Abilities\\Spells\\NightElf\\ThornsAura\\ThornsAura.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_Allstat_Subtrac_Func005C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00S'))then
return false
endif
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Allstat_Subtrac_Conditions takes nothing returns boolean
if(not Trig_Allstat_Subtrac_Func005C())then
return false
endif
return true
endfunction
function Trig_Allstat_Subtrac_Actions takes nothing returns nothing
call ModifyHeroStat(bj_HEROSTAT_STR,GetManipulatingUnit(),bj_MODIFYMETHOD_SUB,(GetHeroStatBJ(bj_HEROSTAT_STR,GetManipulatingUnit(),false)/10))
call ModifyHeroStat(bj_HEROSTAT_AGI,GetManipulatingUnit(),bj_MODIFYMETHOD_SUB,(GetHeroStatBJ(bj_HEROSTAT_AGI,GetManipulatingUnit(),false)/10))
call ModifyHeroStat(bj_HEROSTAT_INT,GetManipulatingUnit(),bj_MODIFYMETHOD_SUB,(GetHeroStatBJ(bj_HEROSTAT_INT,GetManipulatingUnit(),false)/10))
call UnitRemoveAbilityBJ('ACmi',GetManipulatingUnit())
endfunction
function Trig_Fire_Active_On_Boot_Func007C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00R'))then
return false
endif
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Fire_Active_On_Boot_Conditions takes nothing returns boolean
if(not Trig_Fire_Active_On_Boot_Func007C())then
return false
endif
return true
endfunction
function Trig_Fire_Active_On_Boot_Actions takes nothing returns nothing
set udg_unit50=GetManipulatingUnit()
set udg_location04=GetUnitLoc(udg_unit50)
call SetUnitMoveSpeed(GetManipulatingUnit(),522.00)
call SetUnitPathing(GetManipulatingUnit(),false)
call EnableTrigger(udg_trigger248)
call EnableTrigger(udg_trigger249)
endfunction
function Trig_Fire_Active_OFF_Func006C takes nothing returns boolean
if(not(GetItemTypeId(GetManipulatedItem())=='I00R'))then
return false
endif
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Fire_Active_OFF_Conditions takes nothing returns boolean
if(not Trig_Fire_Active_OFF_Func006C())then
return false
endif
return true
endfunction
function Trig_Fire_Active_OFF_Actions takes nothing returns nothing
set udg_unit50=null
call SetUnitMoveSpeed(GetManipulatingUnit(),GetUnitMoveSpeed(GetManipulatingUnit()))
call SetUnitPathing(GetManipulatingUnit(),true)
call DisableTrigger(udg_trigger248)
call DisableTrigger(udg_trigger249)
endfunction
function Trig_UnitReive_Func002C takes nothing returns boolean
if(not(IsUnitType(GetRevivingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetRevivingUnit(),'I00R')==true))then
return false
endif
return true
endfunction
function Trig_UnitReive_Conditions takes nothing returns boolean
if(not Trig_UnitReive_Func002C())then
return false
endif
return true
endfunction
function Trig_UnitReive_Actions takes nothing returns nothing
call SetUnitPathing(GetRevivingUnit(),false)
endfunction
function Trig_Fire_Active_On_Boot_2_Func001C takes nothing returns boolean
if(not(DistanceBetweenPoints(GetUnitLoc(udg_unit50),udg_location04)>=40.00))then
return false
endif
return true
endfunction
function Trig_Fire_Active_On_Boot_2_Actions takes nothing returns nothing
if(Trig_Fire_Active_On_Boot_2_Func001C())then
set udg_location04=GetUnitLoc(udg_unit50)
call CreateNUnitsAtLoc(1,'e010',GetOwningPlayer(udg_unit50),GetUnitLoc(udg_unit50),GetUnitFacing(udg_unit50))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
else
call DoNothing()
endif
endfunction
function Trig_Deal_Damage_on_FireBoot_Func001001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00T')==true)
endfunction
function Trig_Deal_Damage_on_FireBoot_Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit50,GetEnumUnit(),1000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Deal_Damage_on_FireBoot_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Deal_Damage_on_FireBoot_Func001001002)),function Trig_Deal_Damage_on_FireBoot_Func001A)
endfunction
function Trig_Item_1_Func015C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I00A')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I005')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I004')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I003')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I00Z')==true))then
return false
endif
if(not(GetHeroLevel(GetManipulatingUnit())>=15))then
return false
endif
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Item_1_Conditions takes nothing returns boolean
if(not Trig_Item_1_Func015C())then
return false
endif
return true
endfunction
function Trig_Item_1_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger233)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00A'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I004'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I005'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I003'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Z'))
call UnitAddItemByIdSwapped('I00K',GetManipulatingUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Avatar\\AvatarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("|c000EEE00EXCELLENCE !!!!!!!!!",GetManipulatingUnit(),0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Item_2_Func013C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I00A')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I00X')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I00Y')==true))then
return false
endif
if(not(GetHeroLevel(GetManipulatingUnit())>=15))then
return false
endif
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Item_2_Conditions takes nothing returns boolean
if(not Trig_Item_2_Func013C())then
return false
endif
return true
endfunction
function Trig_Item_2_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger237)
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00A'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00X'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I00Y'))
call UnitAddItemByIdSwapped('I00P',GetManipulatingUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Avatar\\AvatarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("|c000EEE00EXCELLENCE !!!!!!!!!",GetManipulatingUnit(),0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Item_3_Func011C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I010')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I011')==true))then
return false
endif
if(not(GetHeroLevel(GetManipulatingUnit())>=10))then
return false
endif
if(not(GetUnitAbilityLevelSwapped('A04R',GetManipulatingUnit())==5))then
return false
endif
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Item_3_Conditions takes nothing returns boolean
if(not Trig_Item_3_Func011C())then
return false
endif
return true
endfunction
function Trig_Item_3_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I011'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I010'))
call UnitAddItemByIdSwapped('I00Q',GetManipulatingUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Avatar\\AvatarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("|c000EEE00EXCELLENCE !!!!!!!!!",GetManipulatingUnit(),0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Item_4_Func013C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I014')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I013')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I016')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I015')==true))then
return false
endif
if(not(GetHeroLevel(GetManipulatingUnit())>=10))then
return false
endif
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Item_4_Conditions takes nothing returns boolean
if(not Trig_Item_4_Func013C())then
return false
endif
return true
endfunction
function Trig_Item_4_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I014'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I013'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I016'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I015'))
call UnitAddItemByIdSwapped('I00R',GetManipulatingUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Avatar\\AvatarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("|c000EEE00EXCELLENCE !!!!!!!!!",GetManipulatingUnit(),0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Item_5_Func013C takes nothing returns boolean
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I018')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I017')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I01A')==true))then
return false
endif
if(not(UnitHasItemOfTypeBJ(GetManipulatingUnit(),'I019')==true))then
return false
endif
if(not(IsUnitType(GetManipulatingUnit(),UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Item_5_Conditions takes nothing returns boolean
if(not Trig_Item_5_Func013C())then
return false
endif
return true
endfunction
function Trig_Item_5_Actions takes nothing returns nothing
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I018'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I017'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I01A'))
call RemoveItem(GetItemOfTypeFromUnitBJ(GetManipulatingUnit(),'I019'))
call UnitAddItemByIdSwapped('I00S',GetManipulatingUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetManipulatingUnit(),"Abilities\\Spells\\Human\\Avatar\\AvatarCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateTextTagUnitBJ("|c000EEE00EXCELLENCE !!!!!!!!!",GetManipulatingUnit(),0,10,100,100,100,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Fan_of_Rocket_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06L'))then
return false
endif
return true
endfunction
function Trig_Fan_of_Rocket_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fan_of_Rocket_Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fan_of_Rocket_Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit40))==true)
endfunction
function Trig_Fan_of_Rocket_Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fan_of_Rocket_Func002001003002001(),Trig_Fan_of_Rocket_Func002001003002002())
endfunction
function Trig_Fan_of_Rocket_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fan_of_Rocket_Func002001003001(),Trig_Fan_of_Rocket_Func002001003002())
endfunction
function Trig_Fan_of_Rocket_Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01U',GetOwningPlayer(udg_unit40),GetUnitLoc(udg_unit40),(GetUnitFacing(GetEnumUnit())-180.00))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_Fan_of_Rocket_Actions takes nothing returns nothing
set udg_unit40=GetSpellAbilityUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000.00,GetUnitLoc(udg_unit40),Condition(function Trig_Fan_of_Rocket_Func002001003)),function Trig_Fan_of_Rocket_Func002A)
endfunction
function Trig_Fander_Light_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06A'))then
return false
endif
return true
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func001Func001Func001Func002001003001(),Trig_Fander_Light_Func002Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003002001(),Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003002002())
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003001(),Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003002())
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit39,GetEnumUnit(),6000.00,ATTACK_TYPE_SIEGE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+3000.00))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004001003)),function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002Func004A)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06A',udg_unit39)==5))then
return false
endif
return true
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func001Func001Func002001003001(),Trig_Fander_Light_Func002Func001Func001Func001Func002001003002())
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003002001(),Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003002002())
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003001(),Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003002())
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002Func004A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit39,GetEnumUnit(),3000.00,ATTACK_TYPE_SIEGE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+1500.00))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Fander_Light_Func002Func001Func001Func001Func002Func004001003)),function Trig_Fander_Light_Func002Func001Func001Func001Func002Func004A)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06A',udg_unit39)==4))then
return false
endif
return true
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func001Func002001003001(),Trig_Fander_Light_Func002Func001Func001Func002001003002())
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002Func004001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002Func004001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002Func004001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func001Func002Func004001003002001(),Trig_Fander_Light_Func002Func001Func001Func002Func004001003002002())
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func001Func002Func004001003001(),Trig_Fander_Light_Func002Func001Func001Func002Func004001003002())
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002Func004A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit39,GetEnumUnit(),2000.00,ATTACK_TYPE_SIEGE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fander_Light_Func002Func001Func001Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+800.00))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(450.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Fander_Light_Func002Func001Func001Func002Func004001003)),function Trig_Fander_Light_Func002Func001Func001Func002Func004A)
endfunction
function Trig_Fander_Light_Func002Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06A',udg_unit39)==3))then
return false
endif
return true
endfunction
function Trig_Fander_Light_Func002Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Fander_Light_Func002Func001Func002001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func002001003001(),Trig_Fander_Light_Func002Func001Func002001003002())
endfunction
function Trig_Fander_Light_Func002Func001Func002Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fander_Light_Func002Func001Func002Func004001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fander_Light_Func002Func001Func002Func004001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func001Func002Func004001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func002Func004001003002001(),Trig_Fander_Light_Func002Func001Func002Func004001003002002())
endfunction
function Trig_Fander_Light_Func002Func001Func002Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func001Func002Func004001003001(),Trig_Fander_Light_Func002Func001Func002Func004001003002())
endfunction
function Trig_Fander_Light_Func002Func001Func002Func004A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit39,GetEnumUnit(),1000.00,ATTACK_TYPE_SIEGE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fander_Light_Func002Func001Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+400.00))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Fander_Light_Func002Func001Func002Func004001003)),function Trig_Fander_Light_Func002Func001Func002Func004A)
endfunction
function Trig_Fander_Light_Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06A',udg_unit39)==2))then
return false
endif
return true
endfunction
function Trig_Fander_Light_Func002Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Fander_Light_Func002Func002001003002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func002001003001(),Trig_Fander_Light_Func002Func002001003002())
endfunction
function Trig_Fander_Light_Func002Func002Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fander_Light_Func002Func002Func004001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fander_Light_Func002Func002Func004001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit39))==true)
endfunction
function Trig_Fander_Light_Func002Func002Func004001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func002Func004001003002001(),Trig_Fander_Light_Func002Func002Func004001003002002())
endfunction
function Trig_Fander_Light_Func002Func002Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fander_Light_Func002Func002Func004001003001(),Trig_Fander_Light_Func002Func002Func004001003002())
endfunction
function Trig_Fander_Light_Func002Func002Func004A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit39,GetEnumUnit(),500.00,ATTACK_TYPE_SIEGE,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fander_Light_Func002Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Human\\Resurrect\\ResurrectTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+200.00))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Fander_Light_Func002Func002Func004001003)),function Trig_Fander_Light_Func002Func002Func004A)
endfunction
function Trig_Fander_Light_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06A',udg_unit39)==1))then
return false
endif
return true
endfunction
function Trig_Fander_Light_Actions takes nothing returns nothing
set udg_unit39=GetSpellAbilityUnit()
if(Trig_Fander_Light_Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000000000.00,GetUnitLoc(udg_unit39),Condition(function Trig_Fander_Light_Func002Func002001003)),function Trig_Fander_Light_Func002Func002A)
else
if(Trig_Fander_Light_Func002Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000000000.00,GetUnitLoc(udg_unit39),Condition(function Trig_Fander_Light_Func002Func001Func002001003)),function Trig_Fander_Light_Func002Func001Func002A)
else
if(Trig_Fander_Light_Func002Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000000000.00,GetUnitLoc(udg_unit39),Condition(function Trig_Fander_Light_Func002Func001Func001Func002001003)),function Trig_Fander_Light_Func002Func001Func001Func002A)
else
if(Trig_Fander_Light_Func002Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000000000.00,GetUnitLoc(udg_unit39),Condition(function Trig_Fander_Light_Func002Func001Func001Func001Func002001003)),function Trig_Fander_Light_Func002Func001Func001Func001Func002A)
else
if(Trig_Fander_Light_Func002Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000000000.00,GetUnitLoc(udg_unit39),Condition(function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002001003)),function Trig_Fander_Light_Func002Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Demon_Func008001 takes nothing returns boolean
return(GetSpellAbilityId()=='A00R')
endfunction
function Trig_Demon_Func008002 takes nothing returns boolean
return(GetUnitTypeId(GetSpellAbilityUnit())=='O00I')
endfunction
function Trig_Demon_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_Demon_Func008001(),Trig_Demon_Func008002()))then
return false
endif
return true
endfunction
function Trig_Demon_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit27=GetSpellAbilityUnit()
call UnitAddAbilityBJ('A04Y',udg_unit27)
call TriggerSleepAction(60.00)
call UnitRemoveAbilityBJ('A04Y',udg_unit27)
set udg_unit27=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Blade_storm_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01V'))then
return false
endif
return true
endfunction
function Trig_Blade_storm_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit28=GetSpellAbilityUnit()
call SetUnitPathing(udg_unit28,false)
call TriggerSleepAction(8.00)
call SetUnitPathing(udg_unit28,true)
set udg_unit28=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Lock_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A002'))then
return false
endif
return true
endfunction
function Trig_Lock_Func004Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0))==true)
endfunction
function Trig_Lock_Func004Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00B',GetOwningPlayer(udg_units05[0]),GetUnitLoc(udg_units05[0]),GetUnitFacing(GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A01W',GetLastCreatedUnit(),5)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"magicleash",GetEnumUnit())
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Lock_Func004Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A002',udg_units05[0])==5))then
return false
endif
return true
endfunction
function Trig_Lock_Func004Func001Func001Func001Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0))==true)
endfunction
function Trig_Lock_Func004Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00B',GetOwningPlayer(udg_units05[0]),GetUnitLoc(udg_units05[0]),GetUnitFacing(GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A01W',GetLastCreatedUnit(),4)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"magicleash",GetEnumUnit())
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Lock_Func004Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A002',udg_units05[0])==4))then
return false
endif
return true
endfunction
function Trig_Lock_Func004Func001Func001Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0))==true)
endfunction
function Trig_Lock_Func004Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00B',GetOwningPlayer(udg_units05[0]),GetUnitLoc(udg_units05[0]),GetUnitFacing(GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A01W',GetLastCreatedUnit(),3)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"magicleash",GetEnumUnit())
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Lock_Func004Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A002',udg_units05[0])==3))then
return false
endif
return true
endfunction
function Trig_Lock_Func004Func001Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0))==true)
endfunction
function Trig_Lock_Func004Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00B',GetOwningPlayer(udg_units05[0]),GetUnitLoc(udg_units05[0]),GetUnitFacing(GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A01W',GetLastCreatedUnit(),2)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"magicleash",GetEnumUnit())
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Lock_Func004Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A002',udg_units05[0])==2))then
return false
endif
return true
endfunction
function Trig_Lock_Func004Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),Player(0))==true)
endfunction
function Trig_Lock_Func004Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00B',GetOwningPlayer(udg_units05[0]),GetUnitLoc(udg_units05[0]),GetUnitFacing(GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A01W',GetLastCreatedUnit(),1)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"magicleash",GetEnumUnit())
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Lock_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A002',udg_units05[0])==1))then
return false
endif
return true
endfunction
function Trig_Lock_Actions takes nothing returns nothing
set udg_units05[0]=GetSpellAbilityUnit()
set udg_units05[1]=GetSpellTargetUnit()
if(Trig_Lock_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units05[1]),Condition(function Trig_Lock_Func004Func002001003)),function Trig_Lock_Func004Func002A)
else
if(Trig_Lock_Func004Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_units05[1]),Condition(function Trig_Lock_Func004Func001Func002001003)),function Trig_Lock_Func004Func001Func002A)
else
if(Trig_Lock_Func004Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units05[1]),Condition(function Trig_Lock_Func004Func001Func001Func002001003)),function Trig_Lock_Func004Func001Func001Func002A)
else
if(Trig_Lock_Func004Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units05[1]),Condition(function Trig_Lock_Func004Func001Func001Func001Func002001003)),function Trig_Lock_Func004Func001Func001Func001Func002A)
else
if(Trig_Lock_Func004Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units05[1]),Condition(function Trig_Lock_Func004Func001Func001Func001Func001Func002001003)),function Trig_Lock_Func004Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Learn_CatchSoul_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A008'))then
return false
endif
return true
endfunction
function Trig_Learn_CatchSoul_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger262)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Casting_Catch_Soul_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A008'))then
return false
endif
return true
endfunction
function Trig_Casting_Catch_Soul_Actions takes nothing returns nothing
set udg_unit08=GetSpellAbilityUnit()
call CreateNUnitsAtLoc(1,'h00E',GetOwningPlayer(udg_unit08),GetUnitLoc(udg_unit08),GetUnitFacing(udg_unit08))
call IssueTargetOrderBJ(GetLastCreatedUnit(),"unholyfrenzy",udg_unit08)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Catch_Soul_Real_Actions takes nothing returns nothing
set udg_real07=GetRandomReal(0,80.00)
endfunction
function Trig_Catch_Soul_Func001Func001Func001001 takes nothing returns boolean
return(IsUnitEnemy(GetDyingUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Catch_Soul_Func001Func001Func001002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A008',GetKillingUnitBJ())==2)
endfunction
function Trig_Catch_Soul_Func001Func001Func001002002001 takes nothing returns boolean
return(UnitHasBuffBJ(GetKillingUnitBJ(),'B000')==true)
endfunction
function Trig_Catch_Soul_Func001Func001Func001002002002 takes nothing returns boolean
return(udg_real07<=20.00)
endfunction
function Trig_Catch_Soul_Func001Func001Func001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func001002002001(),Trig_Catch_Soul_Func001Func001Func001002002002())
endfunction
function Trig_Catch_Soul_Func001Func001Func001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func001002001(),Trig_Catch_Soul_Func001Func001Func001002002())
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func001001 takes nothing returns boolean
return(IsUnitEnemy(GetDyingUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func001002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A008',GetKillingUnitBJ())==3)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func001002002001 takes nothing returns boolean
return(UnitHasBuffBJ(GetKillingUnitBJ(),'B000')==true)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func001002002002 takes nothing returns boolean
return(udg_real07<=30.00)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func002Func001002002001(),Trig_Catch_Soul_Func001Func001Func002Func001002002002())
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func002Func001002001(),Trig_Catch_Soul_Func001Func001Func002Func001002002())
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func001001 takes nothing returns boolean
return(IsUnitEnemy(GetDyingUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func001002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A008',GetKillingUnitBJ())==4)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func001002002001 takes nothing returns boolean
return(UnitHasBuffBJ(GetKillingUnitBJ(),'B000')==true)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func001002002002 takes nothing returns boolean
return(udg_real07<=40.00)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func002Func002Func001002002001(),Trig_Catch_Soul_Func001Func001Func002Func002Func001002002002())
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func002Func002Func001002001(),Trig_Catch_Soul_Func001Func001Func002Func002Func001002002())
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001001 takes nothing returns boolean
return(IsUnitEnemy(GetDyingUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A008',GetKillingUnitBJ())==5)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002002001 takes nothing returns boolean
return(UnitHasBuffBJ(GetKillingUnitBJ(),'B000')==true)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002002002 takes nothing returns boolean
return(udg_real07<=50.00)
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002002001(),Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002002002())
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002001(),Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002002())
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002Func002C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001001(),Trig_Catch_Soul_Func001Func001Func002Func002Func002Func001002()))then
return false
endif
return true
endfunction
function Trig_Catch_Soul_Func001Func001Func002Func002C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func002Func002Func001001(),Trig_Catch_Soul_Func001Func001Func002Func002Func001002()))then
return false
endif
return true
endfunction
function Trig_Catch_Soul_Func001Func001Func002C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func002Func001001(),Trig_Catch_Soul_Func001Func001Func002Func001002()))then
return false
endif
return true
endfunction
function Trig_Catch_Soul_Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Catch_Soul_Func001Func001Func001001(),Trig_Catch_Soul_Func001Func001Func001002()))then
return false
endif
return true
endfunction
function Trig_Catch_Soul_Func001Func007001 takes nothing returns boolean
return(IsUnitEnemy(GetDyingUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Catch_Soul_Func001Func007002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A008',GetKillingUnitBJ())==1)
endfunction
function Trig_Catch_Soul_Func001Func007002002001 takes nothing returns boolean
return(UnitHasBuffBJ(GetKillingUnitBJ(),'B000')==true)
endfunction
function Trig_Catch_Soul_Func001Func007002002002 takes nothing returns boolean
return(udg_real07<=10.00)
endfunction
function Trig_Catch_Soul_Func001Func007002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func007002002001(),Trig_Catch_Soul_Func001Func007002002002())
endfunction
function Trig_Catch_Soul_Func001Func007002 takes nothing returns boolean
return GetBooleanAnd(Trig_Catch_Soul_Func001Func007002001(),Trig_Catch_Soul_Func001Func007002002())
endfunction
function Trig_Catch_Soul_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Catch_Soul_Func001Func007001(),Trig_Catch_Soul_Func001Func007002()))then
return false
endif
return true
endfunction
function Trig_Catch_Soul_Actions takes nothing returns nothing
if(Trig_Catch_Soul_Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,1)
call AddSpecialEffectTargetUnitBJ("overhead",GetKillingUnitBJ(),"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(Trig_Catch_Soul_Func001Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,2)
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,1)
call AddSpecialEffectTargetUnitBJ("overhead",GetKillingUnitBJ(),"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(Trig_Catch_Soul_Func001Func001Func002C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,3)
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,2)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,1)
call AddSpecialEffectTargetUnitBJ("overhead",GetKillingUnitBJ(),"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(Trig_Catch_Soul_Func001Func001Func002Func002C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,4)
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,3)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,2)
call AddSpecialEffectTargetUnitBJ("overhead",GetKillingUnitBJ(),"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(Trig_Catch_Soul_Func001Func001Func002Func002Func002C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ModifyHeroStat(bj_HEROSTAT_INT,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,5)
call ModifyHeroStat(bj_HEROSTAT_STR,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,4)
call ModifyHeroStat(bj_HEROSTAT_AGI,GetKillingUnitBJ(),bj_MODIFYMETHOD_ADD,3)
call AddSpecialEffectTargetUnitBJ("overhead",GetKillingUnitBJ(),"Abilities\\Spells\\Undead\\CarrionSwarm\\CarrionSwarmDamage.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Phoneix_Angry_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00J'))then
return false
endif
return true
endfunction
function Trig_Phoneix_Angry_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_GROUND)==true)
endfunction
function Trig_Phoneix_Angry_Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Phoneix_Angry_Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit03))==true)
endfunction
function Trig_Phoneix_Angry_Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Phoneix_Angry_Func002001003002001(),Trig_Phoneix_Angry_Func002001003002002())
endfunction
function Trig_Phoneix_Angry_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Phoneix_Angry_Func002001003001(),Trig_Phoneix_Angry_Func002001003002())
endfunction
function Trig_Phoneix_Angry_Func002Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00J',udg_unit03)==2))then
return false
endif
return true
endfunction
function Trig_Phoneix_Angry_Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00J',udg_unit03)==1))then
return false
endif
return true
endfunction
function Trig_Phoneix_Angry_Func002A takes nothing returns nothing
if(Trig_Phoneix_Angry_Func002Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call UnitDamageTargetBJ(udg_unit03,GetEnumUnit(),2000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
else
if(Trig_Phoneix_Angry_Func002Func001Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\MarkOfChaos\\MarkOfChaosTarget.mdl")
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit03,GetEnumUnit(),5000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
endfunction
function Trig_Phoneix_Angry_Actions takes nothing returns nothing
set udg_unit03=GetSpellAbilityUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(800.00,GetUnitLoc(udg_unit03),Condition(function Trig_Phoneix_Angry_Func002001003)),function Trig_Phoneix_Angry_Func002A)
endfunction
function Trig_Dupe_Shock_Learn_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A00L'))then
return false
endif
return true
endfunction
function Trig_Dupe_Shock_Learn_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger266)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Dupe_Shock_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00K'))then
return false
endif
return true
endfunction
function Trig_Dupe_Shock_Func003002003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit07))==true)
endfunction
function Trig_Dupe_Shock_Func004Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00L',udg_unit07)==2))then
return false
endif
return true
endfunction
function Trig_Dupe_Shock_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00L',udg_unit07)==1))then
return false
endif
return true
endfunction
function Trig_Dupe_Shock_Actions takes nothing returns nothing
set udg_unit07=GetSpellAbilityUnit()
set udg_location01=GetSpellTargetLoc()
set udg_group01=GetUnitsInRangeOfLocMatching(500.00,udg_location01,Condition(function Trig_Dupe_Shock_Func003002003))
if(Trig_Dupe_Shock_Func004C())then
set udg_units06[1]=GroupPickRandomUnit(udg_group01)
call CreateNUnitsAtLoc(1,'h00C',GetOwningPlayer(udg_unit07),GetUnitLoc(udg_unit07),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"shockwave",GetUnitLoc(udg_units06[1]))
else
if(Trig_Dupe_Shock_Func004Func001C())then
set udg_units06[1]=GroupPickRandomUnit(udg_group01)
set udg_units06[2]=GroupPickRandomUnit(udg_group01)
call CreateNUnitsAtLoc(1,'h00C',GetOwningPlayer(udg_unit07),GetUnitLoc(udg_unit07),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"shockwave",GetUnitLoc(udg_units06[1]))
call CreateNUnitsAtLoc(1,'h00C',GetOwningPlayer(udg_unit07),GetUnitLoc(udg_unit07),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A00N',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"shockwave",GetUnitLoc(udg_units06[2]))
else
call DoNothing()
endif
endif
call RemoveLocation(udg_location01)
endfunction
function Trig_Wind_Slice_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00S'))then
return false
endif
return true
endfunction
function Trig_Wind_Slice_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger268)
endfunction
function Trig_Attacked_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='O006'))then
return false
endif
return true
endfunction
function Trig_Attacked_Func004Func001Func001Func001Func001Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Attacked_Func004Func001Func001Func001Func001Func004002 takes nothing returns nothing
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),(1500.00+(100.00*I2R(GetHeroLevel(GetAttacker())))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Attacked_Func004Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00S',GetAttacker())==5))then
return false
endif
return true
endfunction
function Trig_Attacked_Func004Func001Func001Func001Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Attacked_Func004Func001Func001Func001Func004002 takes nothing returns nothing
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),1500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Attacked_Func004Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00S',GetAttacker())==4))then
return false
endif
return true
endfunction
function Trig_Attacked_Func004Func001Func001Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Attacked_Func004Func001Func001Func004002 takes nothing returns nothing
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),900.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Attacked_Func004Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00S',GetAttacker())==3))then
return false
endif
return true
endfunction
function Trig_Attacked_Func004Func001Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Attacked_Func004Func001Func004002 takes nothing returns nothing
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),600.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Attacked_Func004Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00S',GetAttacker())==2))then
return false
endif
return true
endfunction
function Trig_Attacked_Func004Func004001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Attacked_Func004Func004002 takes nothing returns nothing
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),300.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Attacked_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00S',GetAttacker())==1))then
return false
endif
return true
endfunction
function Trig_Attacked_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.10)
if(Trig_Attacked_Func004C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Attacked_Func004Func004001003)),function Trig_Attacked_Func004Func004002)
call DisableTrigger(GetTriggeringTrigger())
else
if(Trig_Attacked_Func004Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Attacked_Func004Func001Func004001003)),function Trig_Attacked_Func004Func001Func004002)
call DisableTrigger(GetTriggeringTrigger())
else
if(Trig_Attacked_Func004Func001Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Attacked_Func004Func001Func001Func004001003)),function Trig_Attacked_Func004Func001Func001Func004002)
call DisableTrigger(GetTriggeringTrigger())
else
if(Trig_Attacked_Func004Func001Func001Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Attacked_Func004Func001Func001Func001Func004001003)),function Trig_Attacked_Func004Func001Func001Func001Func004002)
call DisableTrigger(GetTriggeringTrigger())
else
if(Trig_Attacked_Func004Func001Func001Func001Func001C())then
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Attacked_Func004Func001Func001Func001Func001Func004001003)),function Trig_Attacked_Func004Func001Func001Func001Func001Func004002)
call CreateTextTagUnitBJ((I2S(((100*GetHeroLevel(GetAttacker()))+2000))+" Damage"),GetAttacker(),0,10,0.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,0.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endif
endif
endif
endif
call EnableTrigger(udg_trigger267)
endfunction
function Trig_Ghost_Angry_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00Z'))then
return false
endif
return true
endfunction
function Trig_Ghost_Angry_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00Z',udg_unit04)==1))then
return false
endif
return true
endfunction
function Trig_Ghost_Angry_Func009Func025001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func025002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func026001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func026002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func027001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func027002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func028001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func028002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func029001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func029002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func030001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func030002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func031001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func031002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func032001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func032002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func033001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func033002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func034001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func034002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func035001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func035002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Func009Func036001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit04))==true)
endfunction
function Trig_Ghost_Angry_Func009Func036002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit04,GetEnumUnit(),udg_reals02[2],ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ghost_Angry_Actions takes nothing returns nothing
set udg_unit04=GetSpellAbilityUnit()
set udg_reals02[1]=100.00
if(Trig_Ghost_Angry_Func003C())then
set udg_reals02[2]=(100.00*I2R(GetHeroLevel(udg_unit04)))
else
set udg_reals02[2]=(250.00*I2R(GetHeroLevel(udg_unit04)))
endif
call CreateTextTagUnitBJ((I2S(((GetHeroLevel(udg_unit04)*100)+0))+" Damage Per Ghost..."),udg_unit04,0,10,0.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),0.00,100,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.50)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],0.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],30.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],60.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],90.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],120.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],150.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],180.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],210.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],240.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],270.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],300.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],330.00),"Objects\\Spawnmodels\\Undead\\UndeadDissipate\\UndeadDissipate.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],0),Condition(function Trig_Ghost_Angry_Func009Func025001003)),function Trig_Ghost_Angry_Func009Func025002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],30.00),Condition(function Trig_Ghost_Angry_Func009Func026001003)),function Trig_Ghost_Angry_Func009Func026002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],60.00),Condition(function Trig_Ghost_Angry_Func009Func027001003)),function Trig_Ghost_Angry_Func009Func027002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],90.00),Condition(function Trig_Ghost_Angry_Func009Func028001003)),function Trig_Ghost_Angry_Func009Func028002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],120.00),Condition(function Trig_Ghost_Angry_Func009Func029001003)),function Trig_Ghost_Angry_Func009Func029002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],150.00),Condition(function Trig_Ghost_Angry_Func009Func030001003)),function Trig_Ghost_Angry_Func009Func030002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],180.00),Condition(function Trig_Ghost_Angry_Func009Func031001003)),function Trig_Ghost_Angry_Func009Func031002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],210.00),Condition(function Trig_Ghost_Angry_Func009Func032001003)),function Trig_Ghost_Angry_Func009Func032002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],240.00),Condition(function Trig_Ghost_Angry_Func009Func033001003)),function Trig_Ghost_Angry_Func009Func033002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],270.00),Condition(function Trig_Ghost_Angry_Func009Func034001003)),function Trig_Ghost_Angry_Func009Func034002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],300.00),Condition(function Trig_Ghost_Angry_Func009Func035001003)),function Trig_Ghost_Angry_Func009Func035002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit04),udg_reals02[1],330.00),Condition(function Trig_Ghost_Angry_Func009Func036001003)),function Trig_Ghost_Angry_Func009Func036002)
call TriggerSleepAction(0.01)
set udg_reals02[1]=(udg_reals02[1]+100.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_Fury_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A012'))then
return false
endif
return true
endfunction
function Trig_Fury_Func006Func001Func001001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units03[0]))==true)
endfunction
function Trig_Fury_Func006Func001Func001002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units03[0],GetEnumUnit(),(8000.00+(2.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units03[0],false)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fury_Func006Func001Func002Func001001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units03[0]))==true)
endfunction
function Trig_Fury_Func006Func001Func002Func001002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units03[0],GetEnumUnit(),1200.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fury_Func006Func001Func002Func002Func001001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units03[0]))==true)
endfunction
function Trig_Fury_Func006Func001Func002Func002Func001002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units03[0],GetEnumUnit(),2400.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fury_Func006Func001Func002Func002Func002Func001001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units03[0]))==true)
endfunction
function Trig_Fury_Func006Func001Func002Func002Func002Func001002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units03[0],GetEnumUnit(),(2000.00+(2.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units03[0],false)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fury_Func006Func001Func002Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A012',udg_units03[0])==5))then
return false
endif
return true
endfunction
function Trig_Fury_Func006Func001Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A012',udg_units03[0])==4))then
return false
endif
return true
endfunction
function Trig_Fury_Func006Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A012',udg_units03[0])==3))then
return false
endif
return true
endfunction
function Trig_Fury_Func006Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A012',udg_units03[0])==2))then
return false
endif
return true
endfunction
function Trig_Fury_Func006Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units03[0]))==true)
endfunction
function Trig_Fury_Func006Func002002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units03[0],GetEnumUnit(),(4000.00+(2.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units03[0],false)))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Fury_Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A012',udg_units03[0])==1))then
return false
endif
return true
endfunction
function Trig_Fury_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units03[0]=GetSpellAbilityUnit()
set udg_units03[1]=GetSpellTargetUnit()
call TriggerSleepAction(0.01)
call TriggerExecute(udg_trigger271)
if(Trig_Fury_Func006C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units03[1]),Condition(function Trig_Fury_Func006Func002001003)),function Trig_Fury_Func006Func002002)
else
if(Trig_Fury_Func006Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units03[1]),Condition(function Trig_Fury_Func006Func001Func001001003)),function Trig_Fury_Func006Func001Func001002)
else
if(Trig_Fury_Func006Func001Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units03[1]),Condition(function Trig_Fury_Func006Func001Func002Func001001003)),function Trig_Fury_Func006Func001Func002Func001002)
else
if(Trig_Fury_Func006Func001Func002Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units03[1]),Condition(function Trig_Fury_Func006Func001Func002Func002Func001001003)),function Trig_Fury_Func006Func001Func002Func002Func001002)
else
if(Trig_Fury_Func006Func001Func002Func002Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units03[1]),Condition(function Trig_Fury_Func006Func001Func002Func002Func002Func001001003)),function Trig_Fury_Func006Func001Func002Func002Func002Func001002)
call CreateTextTagUnitBJ((I2S(((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units03[0],false)*2)+4800))+" Damage"),udg_units03[0],0,10,0.00,100,0.00,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),90.00,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
else
call DoNothing()
endif
endif
endif
endif
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Fury__2_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01B',GetOwningPlayer(udg_units03[0]),GetUnitLoc(udg_units03[0]),bj_UNIT_FACING)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"unholyfrenzy",udg_units03[0])
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call SetUnitPositionLocFacingLocBJ(udg_units03[0],GetUnitLoc(udg_units03[1]),GetUnitLoc(udg_units03[1]))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units03[1]),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units03[1]),"LightNova.mdx")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call PlaySoundBJ(udg_sound10)
call TerrainDeformationRippleBJ(1.00,false,GetUnitLoc(udg_units03[1]),1024,1024,90.00,1,512)
endfunction
function Trig_Holy_Light_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A016'))then
return false
endif
return true
endfunction
function Trig_Holy_Light_Func003Func001Func002Func002Func002Func003001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units04[0]))==true)
endfunction
function Trig_Holy_Light_Func003Func001Func002Func002Func002Func003002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units04[0],GetEnumUnit(),2500.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Holy_Light_Func003Func001Func002Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A016',udg_units04[0])==5))then
return false
endif
return true
endfunction
function Trig_Holy_Light_Func003Func001Func002Func002Func003001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units04[0]))==true)
endfunction
function Trig_Holy_Light_Func003Func001Func002Func002Func003002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units04[0],GetEnumUnit(),1300.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Holy_Light_Func003Func001Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A016',udg_units04[0])==4))then
return false
endif
return true
endfunction
function Trig_Holy_Light_Func003Func001Func002Func003001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units04[0]))==true)
endfunction
function Trig_Holy_Light_Func003Func001Func002Func003002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units04[0],GetEnumUnit(),900.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Holy_Light_Func003Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A016',udg_units04[0])==3))then
return false
endif
return true
endfunction
function Trig_Holy_Light_Func003Func001Func003001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units04[0]))==true)
endfunction
function Trig_Holy_Light_Func003Func001Func003002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units04[0],GetEnumUnit(),500.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Holy_Light_Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A016',udg_units04[0])==2))then
return false
endif
return true
endfunction
function Trig_Holy_Light_Func003Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units04[0]))==true)
endfunction
function Trig_Holy_Light_Func003Func002002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units04[0],GetEnumUnit(),200.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Holy_Light_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A016',udg_units04[0])==1))then
return false
endif
return true
endfunction
function Trig_Holy_Light_Actions takes nothing returns nothing
set udg_units04[0]=GetSpellAbilityUnit()
set udg_units04[1]=GetSpellTargetUnit()
if(Trig_Holy_Light_Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units04[1]),Condition(function Trig_Holy_Light_Func003Func002001003)),function Trig_Holy_Light_Func003Func002002)
else
if(Trig_Holy_Light_Func003Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units04[1]),Condition(function Trig_Holy_Light_Func003Func001Func003001003)),function Trig_Holy_Light_Func003Func001Func003002)
else
if(Trig_Holy_Light_Func003Func001Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units04[1]),Condition(function Trig_Holy_Light_Func003Func001Func002Func003001003)),function Trig_Holy_Light_Func003Func001Func002Func003002)
else
if(Trig_Holy_Light_Func003Func001Func002Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(650.00,GetUnitLoc(udg_units04[1]),Condition(function Trig_Holy_Light_Func003Func001Func002Func002Func003001003)),function Trig_Holy_Light_Func003Func001Func002Func002Func003002)
else
if(Trig_Holy_Light_Func003Func001Func002Func002Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(650.00,GetUnitLoc(udg_units04[1]),Condition(function Trig_Holy_Light_Func003Func001Func002Func002Func002Func003001003)),function Trig_Holy_Light_Func003Func001Func002Func002Func002Func003002)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Eat_Time_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01F'))then
return false
endif
return true
endfunction
function Trig_Eat_Time_Func004Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01F',udg_unit05)==6))then
return false
endif
return true
endfunction
function Trig_Eat_Time_Func004Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01F',udg_unit05)==5))then
return false
endif
return true
endfunction
function Trig_Eat_Time_Func004Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01F',udg_unit05)==4))then
return false
endif
return true
endfunction
function Trig_Eat_Time_Func004Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01F',udg_unit05)==3))then
return false
endif
return true
endfunction
function Trig_Eat_Time_Func004Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01F',udg_unit05)==2))then
return false
endif
return true
endfunction
function Trig_Eat_Time_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01F',udg_unit05)==1))then
return false
endif
return true
endfunction
function Trig_Eat_Time_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit05=GetSpellAbilityUnit()
call UnitAddAbilityBJ('A01D',udg_unit05)
if(Trig_Eat_Time_Func004C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,50)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,50)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,50)
call TriggerSleepAction(40.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,-50)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,-50)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,-50)
call UnitRemoveAbilityBJ('A01D',udg_unit05)
else
if(Trig_Eat_Time_Func004Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,100)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,100)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,100)
call TriggerSleepAction(40.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,-100)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,-100)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,-100)
call UnitRemoveAbilityBJ('A01D',udg_unit05)
else
if(Trig_Eat_Time_Func004Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,200)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,200)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,50)
call TriggerSleepAction(40.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,-200)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,-200)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,-200)
call UnitRemoveAbilityBJ('A01D',udg_unit05)
else
if(Trig_Eat_Time_Func004Func001Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,500)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,500)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,500)
call TriggerSleepAction(40.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,-500)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,-500)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,-500)
call UnitRemoveAbilityBJ('A01D',udg_unit05)
else
if(Trig_Eat_Time_Func004Func001Func001Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,1000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,1000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,1000)
call TriggerSleepAction(40.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,-1000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,-1000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,-1000)
call UnitRemoveAbilityBJ('A01D',udg_unit05)
else
if(Trig_Eat_Time_Func004Func001Func001Func001Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,5000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,5000)
call TriggerSleepAction(30.00)
call ModifyHeroStat(bj_HEROSTAT_STR,udg_unit05,bj_MODIFYMETHOD_ADD,-5000)
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit05,bj_MODIFYMETHOD_ADD,-5000)
call ModifyHeroStat(bj_HEROSTAT_INT,udg_unit05,bj_MODIFYMETHOD_ADD,-5000)
call UnitRemoveAbilityBJ('A01D',udg_unit05)
else
call DoNothing()
endif
endif
endif
endif
endif
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Fire_boilt_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01N'))then
return false
endif
return true
endfunction
function Trig_Fire_boilt_Func003Func001Func001Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fire_boilt_Func003Func001Func001Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit09))==true)
endfunction
function Trig_Fire_boilt_Func003Func001Func001Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fire_boilt_Func003Func001Func001Func006001003001(),Trig_Fire_boilt_Func003Func001Func001Func006001003002())
endfunction
function Trig_Fire_boilt_Func003Func001Func001Func006A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00F',GetOwningPlayer(udg_unit09),GetUnitLoc(udg_unit09),GetUnitFacing(GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A01M',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"firebolt",GetEnumUnit())
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func001Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func001Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit09))==true)
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func001Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fire_boilt_Func003Func001Func002Func001Func006001003001(),Trig_Fire_boilt_Func003Func001Func002Func001Func006001003002())
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func001Func006A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00F',GetOwningPlayer(udg_unit09),GetUnitLoc(udg_unit09),GetUnitFacing(GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A01M',GetLastCreatedUnit(),3)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"firebolt",GetEnumUnit())
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002Func001Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002Func001Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit09))==true)
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002Func001Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fire_boilt_Func003Func001Func002Func002Func001Func006001003001(),Trig_Fire_boilt_Func003Func001Func002Func002Func001Func006001003002())
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002Func001Func006A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00F',GetOwningPlayer(udg_unit09),GetUnitLoc(udg_unit09),GetUnitFacing(GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A01M',GetLastCreatedUnit(),4)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"firebolt",GetEnumUnit())
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002Func002Func001Func006001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002Func002Func001Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit09))==true)
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002Func002Func001Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fire_boilt_Func003Func001Func002Func002Func002Func001Func006001003001(),Trig_Fire_boilt_Func003Func001Func002Func002Func002Func001Func006001003002())
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002Func002Func001Func006A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00F',GetOwningPlayer(udg_unit09),GetUnitLoc(udg_unit09),GetUnitFacing(GetEnumUnit()))
call SetUnitAbilityLevelSwapped('A01M',GetLastCreatedUnit(),5)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"firebolt",GetEnumUnit())
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01N',udg_unit09)==5))then
return false
endif
return true
endfunction
function Trig_Fire_boilt_Func003Func001Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01N',udg_unit09)==4))then
return false
endif
return true
endfunction
function Trig_Fire_boilt_Func003Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01N',udg_unit09)==3))then
return false
endif
return true
endfunction
function Trig_Fire_boilt_Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01N',udg_unit09)==2))then
return false
endif
return true
endfunction
function Trig_Fire_boilt_Func003Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fire_boilt_Func003Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit09))==true)
endfunction
function Trig_Fire_boilt_Func003Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fire_boilt_Func003Func002001003001(),Trig_Fire_boilt_Func003Func002001003002())
endfunction
function Trig_Fire_boilt_Func003Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00F',GetOwningPlayer(udg_unit09),GetUnitLoc(udg_unit09),GetUnitFacing(GetEnumUnit()))
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"firebolt",GetEnumUnit())
endfunction
function Trig_Fire_boilt_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01N',udg_unit09)==1))then
return false
endif
return true
endfunction
function Trig_Fire_boilt_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit09=GetSpellAbilityUnit()
if(Trig_Fire_boilt_Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_unit09),Condition(function Trig_Fire_boilt_Func003Func002001003)),function Trig_Fire_boilt_Func003Func002A)
else
if(Trig_Fire_boilt_Func003Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=GetRandomInt(1,2)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("overhead",udg_unit09,"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call CreateTextTagUnitBJ("FIRE",udg_unit09,0,25.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),80.00,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_unit09),Condition(function Trig_Fire_boilt_Func003Func001Func001Func006001003)),function Trig_Fire_boilt_Func003Func001Func001Func006A)
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Fire_boilt_Func003Func001Func002C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=GetRandomInt(2,3)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("overhead",udg_unit09,"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call CreateTextTagUnitBJ("FIRE",udg_unit09,0,25.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),80.00,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_unit09),Condition(function Trig_Fire_boilt_Func003Func001Func002Func001Func006001003)),function Trig_Fire_boilt_Func003Func001Func002Func001Func006A)
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Fire_boilt_Func003Func001Func002Func002C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=GetRandomInt(2,4)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("overhead",udg_unit09,"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call CreateTextTagUnitBJ("FIRE",udg_unit09,0,25.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),80.00,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(650.00,GetUnitLoc(udg_unit09),Condition(function Trig_Fire_boilt_Func003Func001Func002Func002Func001Func006001003)),function Trig_Fire_boilt_Func003Func001Func002Func002Func001Func006A)
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Fire_boilt_Func003Func001Func002Func002Func002C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=GetRandomInt(4,5)
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectTargetUnitBJ("overhead",udg_unit09,"Abilities\\Spells\\Other\\Incinerate\\FireLordDeathExplode.mdl")
call CreateTextTagUnitBJ("FIRE",udg_unit09,0,25.00,100,0.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),80.00,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(700.00,GetUnitLoc(udg_unit09),Condition(function Trig_Fire_boilt_Func003Func001Func002Func002Func002Func001Func006001003)),function Trig_Fire_boilt_Func003Func001Func002Func002Func002Func001Func006A)
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endif
endif
endif
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Thunder_Fire_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01Q'))then
return false
endif
return true
endfunction
function Trig_Thunder_Fire_Func016Func001Func003001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit06))==true)
endfunction
function Trig_Thunder_Fire_Func016Func001Func003002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit06,GetEnumUnit(),10000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Thunder_Fire_Func016Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01Q',udg_unit06)==2))then
return false
endif
return true
endfunction
function Trig_Thunder_Fire_Func016Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit06))==true)
endfunction
function Trig_Thunder_Fire_Func016Func002002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit06,GetEnumUnit(),5000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Thunder_Fire_Func016C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01Q',udg_unit06)==1))then
return false
endif
return true
endfunction
function Trig_Thunder_Fire_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit06=GetSpellAbilityUnit()
call TriggerSleepAction(0.40)
call PauseUnitBJ(true,udg_unit06)
call SetUnitAnimation(udg_unit06,"stand ready")
call TriggerSleepAction(1.00)
call AddSpecialEffectTargetUnitBJ("weapon",udg_unit06,"Abilities\\Spells\\Other\\Doom\\DoomTarget.mdl")
set udg_effect01=GetLastCreatedEffectBJ()
call TriggerSleepAction(3.00)
call DestroyEffectBJ(udg_effect01)
call SetUnitAnimation(udg_unit06,"attack")
call TriggerSleepAction(0.01)
call AddSpecialEffectTargetUnitBJ("origin",udg_unit06,"LightNova.mdx")
call AddSpecialEffectTargetUnitBJ("origin",udg_unit06,"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Trig_Thunder_Fire_Func016C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000.00,GetUnitLoc(udg_unit06),Condition(function Trig_Thunder_Fire_Func016Func002001003)),function Trig_Thunder_Fire_Func016Func002002)
else
if(Trig_Thunder_Fire_Func016Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000.00,GetUnitLoc(udg_unit06),Condition(function Trig_Thunder_Fire_Func016Func001Func003001003)),function Trig_Thunder_Fire_Func016Func001Func003002)
else
call DoNothing()
endif
endif
call TriggerSleepAction(0.10)
call PauseUnitBJ(false,udg_unit06)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Dead_Catch_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A02H'))then
return false
endif
return true
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit10))==true)
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Dead_Catch_Func003Func001Func001Func001Func001Func002001003001(),Trig_Dead_Catch_Func003Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001Func001Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'h00J',GetOwningPlayer(udg_unit10),GetUnitLoc(GetEnumUnit()),GetUnitFacing(GetEnumUnit()))
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",udg_unit10)
call UnitDamageTargetBJ(GetLastCreatedUnit(),GetEnumUnit(),6400.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call UnitApplyTimedLifeBJ(3.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==5))then
return false
endif
return true
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit10))==true)
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Dead_Catch_Func003Func001Func001Func001Func002001003001(),Trig_Dead_Catch_Func003Func001Func001Func001Func002001003002())
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'h00J',GetOwningPlayer(udg_unit10),GetUnitLoc(GetEnumUnit()),GetUnitFacing(GetEnumUnit()))
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",udg_unit10)
call UnitDamageTargetBJ(GetLastCreatedUnit(),GetEnumUnit(),3200.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call UnitApplyTimedLifeBJ(3.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==4))then
return false
endif
return true
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit10))==true)
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Dead_Catch_Func003Func001Func001Func002001003001(),Trig_Dead_Catch_Func003Func001Func001Func002001003002())
endfunction
function Trig_Dead_Catch_Func003Func001Func001Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'h00J',GetOwningPlayer(udg_unit10),GetUnitLoc(GetEnumUnit()),GetUnitFacing(GetEnumUnit()))
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",udg_unit10)
call UnitDamageTargetBJ(GetLastCreatedUnit(),GetEnumUnit(),1600.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call UnitApplyTimedLifeBJ(3.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Dead_Catch_Func003Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==3))then
return false
endif
return true
endfunction
function Trig_Dead_Catch_Func003Func001Func002001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit10))==true)
endfunction
function Trig_Dead_Catch_Func003Func001Func002001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Dead_Catch_Func003Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Dead_Catch_Func003Func001Func002001003001(),Trig_Dead_Catch_Func003Func001Func002001003002())
endfunction
function Trig_Dead_Catch_Func003Func001Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'h00J',GetOwningPlayer(udg_unit10),GetUnitLoc(GetEnumUnit()),GetUnitFacing(GetEnumUnit()))
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",udg_unit10)
call UnitDamageTargetBJ(GetLastCreatedUnit(),GetEnumUnit(),800.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call UnitApplyTimedLifeBJ(3.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Dead_Catch_Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==2))then
return false
endif
return true
endfunction
function Trig_Dead_Catch_Func003Func002001003001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit10))==true)
endfunction
function Trig_Dead_Catch_Func003Func002001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Dead_Catch_Func003Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Dead_Catch_Func003Func002001003001(),Trig_Dead_Catch_Func003Func002001003002())
endfunction
function Trig_Dead_Catch_Func003Func002A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'h00J',GetOwningPlayer(udg_unit10),GetUnitLoc(GetEnumUnit()),GetUnitFacing(GetEnumUnit()))
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",udg_unit10)
call UnitDamageTargetBJ(GetLastCreatedUnit(),GetEnumUnit(),400.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call UnitApplyTimedLifeBJ(3.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Dead_Catch_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==1))then
return false
endif
return true
endfunction
function Trig_Dead_Catch_Actions takes nothing returns nothing
set udg_unit10=GetSpellAbilityUnit()
set udg_location02=GetSpellTargetLoc()
if(Trig_Dead_Catch_Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,udg_location02,Condition(function Trig_Dead_Catch_Func003Func002001003)),function Trig_Dead_Catch_Func003Func002A)
else
if(Trig_Dead_Catch_Func003Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,udg_location02,Condition(function Trig_Dead_Catch_Func003Func001Func002001003)),function Trig_Dead_Catch_Func003Func001Func002A)
else
if(Trig_Dead_Catch_Func003Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,udg_location02,Condition(function Trig_Dead_Catch_Func003Func001Func001Func002001003)),function Trig_Dead_Catch_Func003Func001Func001Func002A)
else
if(Trig_Dead_Catch_Func003Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_location02,Condition(function Trig_Dead_Catch_Func003Func001Func001Func001Func002001003)),function Trig_Dead_Catch_Func003Func001Func001Func001Func002A)
else
if(Trig_Dead_Catch_Func003Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_location02,Condition(function Trig_Dead_Catch_Func003Func001Func001Func001Func001Func002001003)),function Trig_Dead_Catch_Func003Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
call RemoveLocation(udg_location02)
endfunction
function Trig_Catch_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='h00J'))then
return false
endif
return true
endfunction
function Trig_Catch_Func004Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==5))then
return false
endif
return true
endfunction
function Trig_Catch_Func004Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==4))then
return false
endif
return true
endfunction
function Trig_Catch_Func004Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==3))then
return false
endif
return true
endfunction
function Trig_Catch_Func004Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==2))then
return false
endif
return true
endfunction
function Trig_Catch_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A02H',udg_unit10)==1))then
return false
endif
return true
endfunction
function Trig_Catch_Actions takes nothing returns nothing
call RemoveUnit(GetAttacker())
call AddSpecialEffectTargetUnitBJ("overhead",GetAttackedUnitBJ(),"Abilities\\Spells\\Undead\\DarkSummoning\\DarkSummonMissile.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Trig_Catch_Func004C())then
call SetUnitLifeBJ(udg_unit10,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit10)+50.00))
else
if(Trig_Catch_Func004Func001C())then
call SetUnitLifeBJ(udg_unit10,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit10)+100.00))
else
if(Trig_Catch_Func004Func001Func001C())then
call SetUnitLifeBJ(udg_unit10,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit10)+150.00))
else
if(Trig_Catch_Func004Func001Func001Func001C())then
call SetUnitLifeBJ(udg_unit10,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit10)+200.00))
else
if(Trig_Catch_Func004Func001Func001Func001Func001C())then
call SetUnitLifeBJ(udg_unit10,(GetUnitStateSwap(UNIT_STATE_LIFE,udg_unit10)+300.00))
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Lightning_Func003001 takes nothing returns boolean
return(IsUnitType(GetSpellAbilityUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Lightning_Func003002 takes nothing returns boolean
return(GetSpellAbilityId()=='A02V')
endfunction
function Trig_Lightning_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_Lightning_Func003001(),Trig_Lightning_Func003002()))then
return false
endif
return true
endfunction
function Trig_Lightning_Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit12))==true)
endfunction
function Trig_Lightning_Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00L',GetOwningPlayer(udg_unit12),GetUnitLoc(udg_unit12),GetUnitFacing(udg_unit12))
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
endfunction
function Trig_Lightning_Actions takes nothing returns nothing
set udg_unit12=GetSpellAbilityUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(700.00,GetUnitLoc(udg_unit12),Condition(function Trig_Lightning_Func002001003)),function Trig_Lightning_Func002A)
endfunction
function Trig_Learn_Mutip_shot_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A03A'))then
return false
endif
return true
endfunction
function Trig_Learn_Mutip_shot_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger280)
endfunction
function Trig_Mutip_Shot_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='O00J'))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==1)
endfunction
function Trig_Mutip_Shot_Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==2)
endfunction
function Trig_Mutip_Shot_Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==3)
endfunction
function Trig_Mutip_Shot_Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==4)
endfunction
function Trig_Mutip_Shot_Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==5)
endfunction
function Trig_Mutip_Shot_Func007001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==6)
endfunction
function Trig_Mutip_Shot_Func008001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==7)
endfunction
function Trig_Mutip_Shot_Func009001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==8)
endfunction
function Trig_Mutip_Shot_Func010001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==9)
endfunction
function Trig_Mutip_Shot_Func011001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03A',udg_unit14)==10)
endfunction
function Trig_Mutip_Shot_Func012001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Mutip_Shot_Func012001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit14))==true)
endfunction
function Trig_Mutip_Shot_Func012001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Mutip_Shot_Func012001002003001(),Trig_Mutip_Shot_Func012001002003002())
endfunction
function Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==10))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==9))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==8))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==7))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==6))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==5))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==4))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==3))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==2))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A039',udg_unit14)==1))then
return false
endif
return true
endfunction
function Trig_Mutip_Shot_Func012A takes nothing returns nothing
if(Trig_Mutip_Shot_Func012Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
if(Trig_Mutip_Shot_Func012Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call SetUnitAbilityLevelSwapped('A03B',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
if(Trig_Mutip_Shot_Func012Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call SetUnitAbilityLevelSwapped('A03B',GetLastCreatedUnit(),3)
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
if(Trig_Mutip_Shot_Func012Func001Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call SetUnitAbilityLevelSwapped('A03B',GetLastCreatedUnit(),4)
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
if(Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call SetUnitAbilityLevelSwapped('A03B',GetLastCreatedUnit(),5)
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
if(Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call SetUnitAbilityLevelSwapped('A03B',GetLastCreatedUnit(),6)
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
if(Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call SetUnitAbilityLevelSwapped('A03B',GetLastCreatedUnit(),7)
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
if(Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call SetUnitAbilityLevelSwapped('A03B',GetLastCreatedUnit(),8)
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
if(Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call SetUnitAbilityLevelSwapped('A03B',GetLastCreatedUnit(),9)
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
if(Trig_Mutip_Shot_Func012Func001Func001Func001Func001Func001Func001Func001Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00Q',GetOwningPlayer(udg_unit14),GetUnitLoc(udg_unit14),GetUnitFacing(udg_unit14))
call SetUnitAbilityLevelSwapped('A03B',GetLastCreatedUnit(),10)
call UnitApplyTimedLifeBJ(0.30,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
else
call DoNothing()
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function Trig_Mutip_Shot_Actions takes nothing returns nothing
set udg_unit14=GetAttacker()
if(Trig_Mutip_Shot_Func002001())then
set udg_integer14=1
else
call DoNothing()
endif
if(Trig_Mutip_Shot_Func003001())then
set udg_integer14=2
else
call DoNothing()
endif
if(Trig_Mutip_Shot_Func004001())then
set udg_integer14=3
else
call DoNothing()
endif
if(Trig_Mutip_Shot_Func005001())then
set udg_integer14=4
else
call DoNothing()
endif
if(Trig_Mutip_Shot_Func006001())then
set udg_integer14=5
else
call DoNothing()
endif
if(Trig_Mutip_Shot_Func007001())then
set udg_integer14=7
else
call DoNothing()
endif
if(Trig_Mutip_Shot_Func008001())then
set udg_integer14=9
else
call DoNothing()
endif
if(Trig_Mutip_Shot_Func009001())then
set udg_integer14=11
else
call DoNothing()
endif
if(Trig_Mutip_Shot_Func010001())then
set udg_integer14=15
else
call DoNothing()
endif
if(Trig_Mutip_Shot_Func011001())then
set udg_integer14=20
else
call DoNothing()
endif
call ForGroupBJ(GetRandomSubGroup(udg_integer14,GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Mutip_Shot_Func012001002003))),function Trig_Mutip_Shot_Func012A)
endfunction
function Trig_Learn_Electric_Auto_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A03D'))then
return false
endif
return true
endfunction
function Trig_Learn_Electric_Auto_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger283)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Electric_Auto_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='O00K'))then
return false
endif
return true
endfunction
function Trig_Electric_Auto_Func003Func001001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Electric_Auto_Func003Func001001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit15))==true)
endfunction
function Trig_Electric_Auto_Func003Func001001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func001001002003001(),Trig_Electric_Auto_Func003Func001001002003002())
endfunction
function Trig_Electric_Auto_Func003Func001A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(udg_unit15),GetUnitLoc(udg_unit15),GetUnitFacing(udg_unit15))
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
call UnitApplyTimedLifeBJ(0.50,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit15))==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func001Func001Func001Func002001002003001(),Trig_Electric_Auto_Func003Func002Func001Func001Func001Func002001002003002())
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(udg_unit15),GetUnitLoc(udg_unit15),GetUnitFacing(udg_unit15))
call SetUnitAbilityLevelSwapped('A03E',GetLastCreatedUnit(),5)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
call UnitApplyTimedLifeBJ(0.50,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit15,'B008')==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func003002001 takes nothing returns boolean
return(udg_real05<=30.00)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func003002002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03D',udg_unit15)==5)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func001Func001Func001Func003002001(),Trig_Electric_Auto_Func003Func002Func001Func001Func001Func003002002())
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func001Func001Func001Func003001(),Trig_Electric_Auto_Func003Func002Func001Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit15))==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func001Func001Func002001002003001(),Trig_Electric_Auto_Func003Func002Func001Func001Func002001002003002())
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(udg_unit15),GetUnitLoc(udg_unit15),GetUnitFacing(udg_unit15))
call SetUnitAbilityLevelSwapped('A03E',GetLastCreatedUnit(),4)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
call UnitApplyTimedLifeBJ(0.50,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit15,'B008')==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func003002001 takes nothing returns boolean
return(udg_real05<=20.00)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func003002002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03D',udg_unit15)==4)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001Func003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func001Func001Func003002001(),Trig_Electric_Auto_Func003Func002Func001Func001Func003002002())
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func001Func001Func003001(),Trig_Electric_Auto_Func003Func002Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit15))==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func001Func002001002003001(),Trig_Electric_Auto_Func003Func002Func001Func002001002003002())
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(udg_unit15),GetUnitLoc(udg_unit15),GetUnitFacing(udg_unit15))
call SetUnitAbilityLevelSwapped('A03E',GetLastCreatedUnit(),3)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
call UnitApplyTimedLifeBJ(0.50,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit15,'B008')==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func003002001 takes nothing returns boolean
return(udg_real05<=15.00)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func003002002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03D',udg_unit15)==3)
endfunction
function Trig_Electric_Auto_Func003Func002Func001Func003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func001Func003002001(),Trig_Electric_Auto_Func003Func002Func001Func003002002())
endfunction
function Trig_Electric_Auto_Func003Func002Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func001Func003001(),Trig_Electric_Auto_Func003Func002Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Electric_Auto_Func003Func002Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit15))==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func002001002003001(),Trig_Electric_Auto_Func003Func002Func002001002003002())
endfunction
function Trig_Electric_Auto_Func003Func002Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00R',GetOwningPlayer(udg_unit15),GetUnitLoc(udg_unit15),GetUnitFacing(udg_unit15))
call SetUnitAbilityLevelSwapped('A03E',GetLastCreatedUnit(),2)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
call UnitApplyTimedLifeBJ(0.50,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Electric_Auto_Func003Func002Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit15,'B008')==true)
endfunction
function Trig_Electric_Auto_Func003Func002Func003002001 takes nothing returns boolean
return(udg_real05<=10.00)
endfunction
function Trig_Electric_Auto_Func003Func002Func003002002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03D',udg_unit15)==2)
endfunction
function Trig_Electric_Auto_Func003Func002Func003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func003002001(),Trig_Electric_Auto_Func003Func002Func003002002())
endfunction
function Trig_Electric_Auto_Func003Func002C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Electric_Auto_Func003Func002Func003001(),Trig_Electric_Auto_Func003Func002Func003002()))then
return false
endif
return true
endfunction
function Trig_Electric_Auto_Func003Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(udg_unit15,'B008')==true)
endfunction
function Trig_Electric_Auto_Func003Func003002001 takes nothing returns boolean
return(udg_real05<=5.00)
endfunction
function Trig_Electric_Auto_Func003Func003002002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A03D',udg_unit15)==1)
endfunction
function Trig_Electric_Auto_Func003Func003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Electric_Auto_Func003Func003002001(),Trig_Electric_Auto_Func003Func003002002())
endfunction
function Trig_Electric_Auto_Func003C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Electric_Auto_Func003Func003001(),Trig_Electric_Auto_Func003Func003002()))then
return false
endif
return true
endfunction
function Trig_Electric_Auto_Actions takes nothing returns nothing
set udg_unit15=GetAttacker()
if(Trig_Electric_Auto_Func003C())then
call ForGroupBJ(GetRandomSubGroup(1,GetUnitsInRangeOfLocMatching(100.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Electric_Auto_Func003Func001001002003))),function Trig_Electric_Auto_Func003Func001A)
else
if(Trig_Electric_Auto_Func003Func002C())then
call ForGroupBJ(GetRandomSubGroup(2,GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Electric_Auto_Func003Func002Func002001002003))),function Trig_Electric_Auto_Func003Func002Func002A)
else
if(Trig_Electric_Auto_Func003Func002Func001C())then
call ForGroupBJ(GetRandomSubGroup(3,GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Electric_Auto_Func003Func002Func001Func002001002003))),function Trig_Electric_Auto_Func003Func002Func001Func002A)
else
if(Trig_Electric_Auto_Func003Func002Func001Func001C())then
call ForGroupBJ(GetRandomSubGroup(3,GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Electric_Auto_Func003Func002Func001Func001Func002001002003))),function Trig_Electric_Auto_Func003Func002Func001Func001Func002A)
else
if(Trig_Electric_Auto_Func003Func002Func001Func001Func001C())then
call ForGroupBJ(GetRandomSubGroup(4,GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func002001002003))),function Trig_Electric_Auto_Func003Func002Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Time_random_Real_4_Actions takes nothing returns nothing
set udg_real05=GetRandomReal(0,100.00)
endfunction
function Trig_Thunder_Slam_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03F'))then
return false
endif
return true
endfunction
function Trig_Thunder_Slam_Func003Func001Func001Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Thunder_Slam_Func003Func001Func001Func001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit16))==true)
endfunction
function Trig_Thunder_Slam_Func003Func001Func001Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Thunder_Slam_Func003Func001Func001Func001001003001(),Trig_Thunder_Slam_Func003Func001Func001Func001001003002())
endfunction
function Trig_Thunder_Slam_Func003Func001Func001Func001A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00T',GetOwningPlayer(udg_unit16),GetUnitLoc(udg_unit16),GetUnitFacing(udg_unit16))
call UnitApplyTimedLifeBJ(0.80,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_Thunder_Slam_Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03F',udg_unit16)==2))then
return false
endif
return true
endfunction
function Trig_Thunder_Slam_Func003Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Thunder_Slam_Func003Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit16))==true)
endfunction
function Trig_Thunder_Slam_Func003Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Thunder_Slam_Func003Func002001003001(),Trig_Thunder_Slam_Func003Func002001003002())
endfunction
function Trig_Thunder_Slam_Func003Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00S',GetOwningPlayer(udg_unit16),GetUnitLoc(udg_unit16),GetUnitFacing(udg_unit16))
call UnitApplyTimedLifeBJ(0.80,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_Thunder_Slam_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03F',udg_unit16)==1))then
return false
endif
return true
endfunction
function Trig_Thunder_Slam_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit16=GetSpellAbilityUnit()
if(Trig_Thunder_Slam_Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(800.00,GetUnitLoc(udg_unit16),Condition(function Trig_Thunder_Slam_Func003Func002001003)),function Trig_Thunder_Slam_Func003Func002A)
else
if(Trig_Thunder_Slam_Func003Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000.00,GetUnitLoc(udg_unit16),Condition(function Trig_Thunder_Slam_Func003Func001Func001Func001001003)),function Trig_Thunder_Slam_Func003Func001Func001Func001A)
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Ilusion_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='O00M'))then
return false
endif
return true
endfunction
function Trig_Ilusion_Func001Func006001 takes nothing returns boolean
return(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Ilusion_Func001Func006002 takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B009')==true)
endfunction
function Trig_Ilusion_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Ilusion_Func001Func006001(),Trig_Ilusion_Func001Func006002()))then
return false
endif
return true
endfunction
function Trig_Ilusion_Actions takes nothing returns nothing
if(Trig_Ilusion_Func001C())then
call CreateNUnitsAtLoc(1,'h00U',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),GetUnitFacing(GetAttackedUnitBJ()))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('I00I',GetLastCreatedUnit())
call UnitUseItemTarget(GetLastCreatedUnit(),GetLastCreatedItem(),GetAttacker())
else
call DoNothing()
endif
endfunction
function Trig_XTRIKE_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03L'))then
return false
endif
return true
endfunction
function Trig_XTRIKE_Func028Func001Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit17))==true)
endfunction
function Trig_XTRIKE_Func028Func001Func002002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit17,GetEnumUnit(),10000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_XTRIKE_Func028Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03L',udg_unit17)==2))then
return false
endif
return true
endfunction
function Trig_XTRIKE_Func028Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit17))==true)
endfunction
function Trig_XTRIKE_Func028Func002002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit17,GetEnumUnit(),5000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_XTRIKE_Func028C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03L',udg_unit17)==1))then
return false
endif
return true
endfunction
function Trig_XTRIKE_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(GetTriggeringTrigger())
set udg_locations02[0]=GetSpellTargetLoc()
set udg_reals03[0]=200.00
set udg_unit17=GetSpellAbilityUnit()
call PauseUnitBJ(true,udg_unit17)
call SetUnitInvulnerable(udg_unit17,true)
call SetUnitPositionLocFacingLocBJ(GetSpellAbilityUnit(),udg_locations02[0],udg_locations02[0])
call SetUnitAnimation(udg_unit17,"attack slam")
call TriggerSleepAction(0.20)
call SetUnitTimeScalePercent(udg_unit17,1.00)
call SetUnitFacingToFaceLocTimed(udg_unit17,PolarProjectionBJ(udg_locations02[0],100.00,udg_reals03[0]),5.00)
call TriggerSleepAction(0.01)
call AddSpecialEffectTargetUnitBJ("weapon",udg_unit17,"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call AddSpecialEffectTargetUnitBJ("overhead",udg_unit17,"Abilities\\Spells\\Human\\Resurrect\\ResurrectCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.10)
call AddSpecialEffectTargetUnitBJ("weapon",udg_unit17,"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call TriggerSleepAction(2.00)
call SetUnitTimeScalePercent(udg_unit17,100.00)
call TriggerSleepAction(0.10)
call AddSpecialEffectLocBJ(udg_locations02[0],"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call TerrainDeformationCraterBJ(0.50,false,udg_locations02[0],512,64)
call TerrainDeformationRippleBJ(1.00,true,udg_locations02[0],1024,1024,150.00,1,512)
call TriggerSleepAction(0.10)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations02[0],400.00,180.00),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations02[0],400.00,270.00),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations02[0],400.00,360.00),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations02[0],udg_reals03[0],45.00),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations02[0],udg_reals03[0],135.00),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations02[0],udg_reals03[0],225.00),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations02[0],udg_reals03[0],315.00),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_reals03[0]=(udg_reals03[0]+100.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(Trig_XTRIKE_Func028C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1000.00,GetUnitLoc(udg_unit17),Condition(function Trig_XTRIKE_Func028Func002001003)),function Trig_XTRIKE_Func028Func002002)
else
if(Trig_XTRIKE_Func028Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1500.00,GetUnitLoc(udg_unit17),Condition(function Trig_XTRIKE_Func028Func001Func002001003)),function Trig_XTRIKE_Func028Func001Func002002)
else
call DoNothing()
endif
endif
call PauseUnitBJ(false,udg_unit17)
call SetUnitInvulnerable(udg_unit17,false)
set udg_unit17=null
call RemoveLocation(udg_locations02[0])
endfunction
function Trig_Stom_Blast_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03U'))then
return false
endif
return true
endfunction
function Trig_Stom_Blast_Func005001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Stom_Blast_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units07[0]))==true)
endfunction
function Trig_Stom_Blast_Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Stom_Blast_Func005001003001(),Trig_Stom_Blast_Func005001003002())
endfunction
function Trig_Stom_Blast_Func005Func001Func001Func003Func003Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03U',udg_units07[0])==5))then
return false
endif
return true
endfunction
function Trig_Stom_Blast_Func005Func001Func001Func003Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03U',udg_units07[0])==4))then
return false
endif
return true
endfunction
function Trig_Stom_Blast_Func005Func001Func001Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03U',udg_units07[0])==3))then
return false
endif
return true
endfunction
function Trig_Stom_Blast_Func005Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03U',udg_units07[0])==2))then
return false
endif
return true
endfunction
function Trig_Stom_Blast_Func005Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03U',udg_units07[0])==1))then
return false
endif
return true
endfunction
function Trig_Stom_Blast_Func005A takes nothing returns nothing
if(Trig_Stom_Blast_Func005Func001C())then
call CreateNUnitsAtLoc(1,'h018',GetOwningPlayer(udg_units07[0]),GetUnitLoc(udg_units07[1]),GetUnitFacing(udg_units07[0]))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
else
if(Trig_Stom_Blast_Func005Func001Func001C())then
call CreateNUnitsAtLoc(1,'h018',GetOwningPlayer(udg_units07[0]),GetUnitLoc(udg_units07[1]),GetUnitFacing(udg_units07[0]))
call SetUnitAbilityLevelSwapped('A03T',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
else
if(Trig_Stom_Blast_Func005Func001Func001Func003C())then
call CreateNUnitsAtLoc(1,'h018',GetOwningPlayer(udg_units07[0]),GetUnitLoc(udg_units07[1]),GetUnitFacing(udg_units07[0]))
call SetUnitAbilityLevelSwapped('A03T',GetLastCreatedUnit(),3)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
else
if(Trig_Stom_Blast_Func005Func001Func001Func003Func003C())then
call CreateNUnitsAtLoc(1,'h018',GetOwningPlayer(udg_units07[0]),GetUnitLoc(udg_units07[1]),GetUnitFacing(udg_units07[0]))
call SetUnitAbilityLevelSwapped('A03T',GetLastCreatedUnit(),4)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
else
if(Trig_Stom_Blast_Func005Func001Func001Func003Func003Func003C())then
call CreateNUnitsAtLoc(1,'h018',GetOwningPlayer(udg_units07[0]),GetUnitLoc(udg_units07[1]),GetUnitFacing(udg_units07[0]))
call SetUnitAbilityLevelSwapped('A03T',GetLastCreatedUnit(),5)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Stom_Blast_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units07[0]=GetSpellAbilityUnit()
set udg_units07[1]=GetSpellTargetUnit()
call TriggerSleepAction(0.50)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units07[1]),Condition(function Trig_Stom_Blast_Func005001003)),function Trig_Stom_Blast_Func005A)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Angel_Cry_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03V'))then
return false
endif
return true
endfunction
function Trig_Angel_Cry_Actions takes nothing returns nothing
set udg_units08[0]=GetSpellAbilityUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units08[0]),"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl")
set udg_effect02=GetLastCreatedEffectBJ()
call EnableTrigger(udg_trigger289)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002Func003001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002Func003001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units08[0]))==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002Func003001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002Func003001002003001(),Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002Func003001002003002())
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00W',GetOwningPlayer(udg_units08[0]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(0.10,'BHwe',GetLastCreatedUnit())
call UnitDamageTargetBJ(udg_units08[0],GetEnumUnit(),(100.00*I2R(GetHeroLevel(udg_units08[0]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03V',udg_units08[0])==5))then
return false
endif
return true
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func003001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func003001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units08[0]))==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func003001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Angel_Cry_damage_Func001Func001Func002Func002Func003001002003001(),Trig_Angel_Cry_damage_Func001Func001Func002Func002Func003001002003002())
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00W',GetOwningPlayer(udg_units08[0]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(0.10,'BHwe',GetLastCreatedUnit())
call UnitDamageTargetBJ(udg_units08[0],GetEnumUnit(),(80.00*I2R(GetHeroLevel(udg_units08[0]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03V',udg_units08[0])==4))then
return false
endif
return true
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func003001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func003001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units08[0]))==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func003001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Angel_Cry_damage_Func001Func001Func002Func003001002003001(),Trig_Angel_Cry_damage_Func001Func001Func002Func003001002003002())
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00W',GetOwningPlayer(udg_units08[0]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(0.10,'BHwe',GetLastCreatedUnit())
call UnitDamageTargetBJ(udg_units08[0],GetEnumUnit(),(50.00*I2R(GetHeroLevel(udg_units08[0]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03V',udg_units08[0])==3))then
return false
endif
return true
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func003001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func003001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units08[0]))==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func003001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Angel_Cry_damage_Func001Func001Func003001002003001(),Trig_Angel_Cry_damage_Func001Func001Func003001002003002())
endfunction
function Trig_Angel_Cry_damage_Func001Func001Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00W',GetOwningPlayer(udg_units08[0]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(0.10,'BHwe',GetLastCreatedUnit())
call UnitDamageTargetBJ(udg_units08[0],GetEnumUnit(),(30.00*I2R(GetHeroLevel(udg_units08[0]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Angel_Cry_damage_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03V',udg_units08[0])==2))then
return false
endif
return true
endfunction
function Trig_Angel_Cry_damage_Func001Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units08[0]))==true)
endfunction
function Trig_Angel_Cry_damage_Func001Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Angel_Cry_damage_Func001Func002001002003001(),Trig_Angel_Cry_damage_Func001Func002001002003002())
endfunction
function Trig_Angel_Cry_damage_Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00W',GetOwningPlayer(udg_units08[0]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(0.10,'BHwe',GetLastCreatedUnit())
call UnitDamageTargetBJ(udg_units08[0],GetEnumUnit(),(20.00*I2R(GetHeroLevel(udg_units08[0]))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Angel_Cry_damage_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03V',udg_units08[0])==1))then
return false
endif
return true
endfunction
function Trig_Angel_Cry_damage_Actions takes nothing returns nothing
if(Trig_Angel_Cry_damage_Func001C())then
call ForGroupBJ(GetRandomSubGroup(5,GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units08[0]),Condition(function Trig_Angel_Cry_damage_Func001Func002001002003))),function Trig_Angel_Cry_damage_Func001Func002A)
else
if(Trig_Angel_Cry_damage_Func001Func001C())then
call ForGroupBJ(GetRandomSubGroup(5,GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units08[0]),Condition(function Trig_Angel_Cry_damage_Func001Func001Func003001002003))),function Trig_Angel_Cry_damage_Func001Func001Func003A)
else
if(Trig_Angel_Cry_damage_Func001Func001Func002C())then
call ForGroupBJ(GetRandomSubGroup(5,GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units08[0]),Condition(function Trig_Angel_Cry_damage_Func001Func001Func002Func003001002003))),function Trig_Angel_Cry_damage_Func001Func001Func002Func003A)
else
if(Trig_Angel_Cry_damage_Func001Func001Func002Func002C())then
call ForGroupBJ(GetRandomSubGroup(5,GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units08[0]),Condition(function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func003001002003))),function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func003A)
else
if(Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002C())then
call ForGroupBJ(GetRandomSubGroup(10,GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units08[0]),Condition(function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002Func003001002003))),function Trig_Angel_Cry_damage_Func001Func001Func002Func002Func002Func003A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Angel_Cry_Stop_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03V'))then
return false
endif
return true
endfunction
function Trig_Angel_Cry_Stop_Actions takes nothing returns nothing
call DisableTrigger(udg_trigger289)
call DestroyEffectBJ(udg_effect02)
set udg_units08[0]=null
endfunction
function Trig_Regen_Aura_Learn_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A03W'))then
return false
endif
return true
endfunction
function Trig_Regen_Aura_Learn_Actions takes nothing returns nothing
set udg_unit18=GetLearningUnit()
call EnableTrigger(udg_trigger292)
endfunction
function Trig_Regen_Aura_Func001001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00A')==true)
endfunction
function Trig_Regen_Aura_Func001A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\NightElf\\FaerieDragonInvis\\FaerieDragon_Invis.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_Regen_Aura_Func002Func001Func002Func002Func001Func003001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00A')==true)
endfunction
function Trig_Regen_Aura_Func002Func001Func002Func002Func001Func003002 takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+150.00))
endfunction
function Trig_Regen_Aura_Func002Func001Func002Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03W',udg_unit18)==5))then
return false
endif
return true
endfunction
function Trig_Regen_Aura_Func002Func001Func002Func002Func003001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00A')==true)
endfunction
function Trig_Regen_Aura_Func002Func001Func002Func002Func003002 takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+80.00))
endfunction
function Trig_Regen_Aura_Func002Func001Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03W',udg_unit18)==4))then
return false
endif
return true
endfunction
function Trig_Regen_Aura_Func002Func001Func002Func003001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00A')==true)
endfunction
function Trig_Regen_Aura_Func002Func001Func002Func003002 takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+60.00))
endfunction
function Trig_Regen_Aura_Func002Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03W',udg_unit18)==3))then
return false
endif
return true
endfunction
function Trig_Regen_Aura_Func002Func001Func003001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00A')==true)
endfunction
function Trig_Regen_Aura_Func002Func001Func003002 takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+40.00))
endfunction
function Trig_Regen_Aura_Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03W',udg_unit18)==2))then
return false
endif
return true
endfunction
function Trig_Regen_Aura_Func002Func003001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00A')==true)
endfunction
function Trig_Regen_Aura_Func002Func003002 takes nothing returns nothing
call SetUnitLifeBJ(GetEnumUnit(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())+20.00))
endfunction
function Trig_Regen_Aura_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03W',udg_unit18)==1))then
return false
endif
return true
endfunction
function Trig_Regen_Aura_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Regen_Aura_Func001001002)),function Trig_Regen_Aura_Func001A)
if(Trig_Regen_Aura_Func002C())then
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Regen_Aura_Func002Func003001002)),function Trig_Regen_Aura_Func002Func003002)
else
if(Trig_Regen_Aura_Func002Func001C())then
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Regen_Aura_Func002Func001Func003001002)),function Trig_Regen_Aura_Func002Func001Func003002)
else
if(Trig_Regen_Aura_Func002Func001Func002C())then
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Regen_Aura_Func002Func001Func002Func003001002)),function Trig_Regen_Aura_Func002Func001Func002Func003002)
else
if(Trig_Regen_Aura_Func002Func001Func002Func002C())then
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Regen_Aura_Func002Func001Func002Func002Func003001002)),function Trig_Regen_Aura_Func002Func001Func002Func002Func003002)
else
if(Trig_Regen_Aura_Func002Func001Func002Func002Func001C())then
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Regen_Aura_Func002Func001Func002Func002Func001Func003001002)),function Trig_Regen_Aura_Func002Func001Func002Func002Func001Func003002)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Learn_Skill_Impale_Return_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='AUts'))then
return false
endif
return true
endfunction
function Trig_Learn_Skill_Impale_Return_Actions takes nothing returns nothing
set udg_unit19=GetLearningUnit()
call EnableTrigger(udg_trigger295)
call EnableTrigger(udg_trigger294)
endfunction
function Trig_Impale_Return_Func001001 takes nothing returns boolean
return(GetUnitTypeId(GetAttackedUnitBJ())=='O00P')
endfunction
function Trig_Impale_Return_Func001002 takes nothing returns boolean
return(IsUnitType(GetAttacker(),UNIT_TYPE_GROUND)==true)
endfunction
function Trig_Impale_Return_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_Impale_Return_Func001001(),Trig_Impale_Return_Func001002()))then
return false
endif
return true
endfunction
function Trig_Impale_Return_Func003Func001Func001Func001Func001Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AUts',udg_unit19)==5)
endfunction
function Trig_Impale_Return_Func003Func001Func001Func001Func001Func006002 takes nothing returns boolean
return(udg_real02<=15.00)
endfunction
function Trig_Impale_Return_Func003Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Impale_Return_Func003Func001Func001Func001Func001Func006001(),Trig_Impale_Return_Func003Func001Func001Func001Func001Func006002()))then
return false
endif
return true
endfunction
function Trig_Impale_Return_Func003Func001Func001Func001Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AUts',udg_unit19)==4)
endfunction
function Trig_Impale_Return_Func003Func001Func001Func001Func006002 takes nothing returns boolean
return(udg_real02<=13.00)
endfunction
function Trig_Impale_Return_Func003Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Impale_Return_Func003Func001Func001Func001Func006001(),Trig_Impale_Return_Func003Func001Func001Func001Func006002()))then
return false
endif
return true
endfunction
function Trig_Impale_Return_Func003Func001Func001Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AUts',udg_unit19)==3)
endfunction
function Trig_Impale_Return_Func003Func001Func001Func006002 takes nothing returns boolean
return(udg_real02<=11.00)
endfunction
function Trig_Impale_Return_Func003Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Impale_Return_Func003Func001Func001Func006001(),Trig_Impale_Return_Func003Func001Func001Func006002()))then
return false
endif
return true
endfunction
function Trig_Impale_Return_Func003Func001Func006001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AUts',udg_unit19)==2)
endfunction
function Trig_Impale_Return_Func003Func001Func006002 takes nothing returns boolean
return(udg_real02<=7.00)
endfunction
function Trig_Impale_Return_Func003Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Impale_Return_Func003Func001Func006001(),Trig_Impale_Return_Func003Func001Func006002()))then
return false
endif
return true
endfunction
function Trig_Impale_Return_Func003Func005001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AUts',udg_unit19)==1)
endfunction
function Trig_Impale_Return_Func003Func005002 takes nothing returns boolean
return(udg_real02<=5.00)
endfunction
function Trig_Impale_Return_Func003C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Impale_Return_Func003Func005001(),Trig_Impale_Return_Func003Func005002()))then
return false
endif
return true
endfunction
function Trig_Impale_Return_Actions takes nothing returns nothing
if(Trig_Impale_Return_Func003C())then
call CreateNUnitsAtLoc(1,'h00X',GetOwningPlayer(udg_unit19),GetUnitLoc(udg_unit19),GetUnitFacing(udg_unit19))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",GetUnitLoc(GetAttacker()))
else
if(Trig_Impale_Return_Func003Func001C())then
call CreateNUnitsAtLoc(1,'h00X',GetOwningPlayer(udg_unit19),GetUnitLoc(udg_unit19),GetUnitFacing(udg_unit19))
call SetUnitAbilityLevelSwapped('A042',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",GetUnitLoc(GetAttacker()))
else
if(Trig_Impale_Return_Func003Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00X',GetOwningPlayer(udg_unit19),GetUnitLoc(udg_unit19),GetUnitFacing(udg_unit19))
call SetUnitAbilityLevelSwapped('A042',GetLastCreatedUnit(),3)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",GetUnitLoc(GetAttacker()))
else
if(Trig_Impale_Return_Func003Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00X',GetOwningPlayer(udg_unit19),GetUnitLoc(udg_unit19),GetUnitFacing(udg_unit19))
call SetUnitAbilityLevelSwapped('A042',GetLastCreatedUnit(),4)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",GetUnitLoc(GetAttacker()))
else
if(Trig_Impale_Return_Func003Func001Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h00X',GetOwningPlayer(udg_unit19),GetUnitLoc(udg_unit19),GetUnitFacing(udg_unit19))
call SetUnitAbilityLevelSwapped('A042',GetLastCreatedUnit(),5)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",GetUnitLoc(GetAttacker()))
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Time_random_Real_2_Actions takes nothing returns nothing
set udg_real02=GetRandomReal(0,100.00)
endfunction
function Trig_Drain_Life_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A043'))then
return false
endif
return true
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[0]))==true)
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Drain_Life_Func004Func001Func001Func001Func001Func002001003001(),Trig_Drain_Life_Func004Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_units09[0]),GetUnitLoc(udg_units09[0]),GetUnitFacing(udg_units09[0]))
call SetUnitAbilityLevelSwapped('A044',GetLastCreatedUnit(),5)
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"drain",GetEnumUnit())
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A043',udg_units09[0])==5))then
return false
endif
return true
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[0]))==true)
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Drain_Life_Func004Func001Func001Func001Func002001003001(),Trig_Drain_Life_Func004Func001Func001Func001Func002001003002())
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_units09[0]),GetUnitLoc(udg_units09[0]),GetUnitFacing(udg_units09[0]))
call SetUnitAbilityLevelSwapped('A044',GetLastCreatedUnit(),4)
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"drain",GetEnumUnit())
endfunction
function Trig_Drain_Life_Func004Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A043',udg_units09[0])==4))then
return false
endif
return true
endfunction
function Trig_Drain_Life_Func004Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Drain_Life_Func004Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[0]))==true)
endfunction
function Trig_Drain_Life_Func004Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Drain_Life_Func004Func001Func001Func002001003001(),Trig_Drain_Life_Func004Func001Func001Func002001003002())
endfunction
function Trig_Drain_Life_Func004Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_units09[0]),GetUnitLoc(udg_units09[0]),GetUnitFacing(udg_units09[0]))
call SetUnitAbilityLevelSwapped('A044',GetLastCreatedUnit(),3)
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"drain",GetEnumUnit())
endfunction
function Trig_Drain_Life_Func004Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A043',udg_units09[0])==3))then
return false
endif
return true
endfunction
function Trig_Drain_Life_Func004Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Drain_Life_Func004Func001Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[0]))==true)
endfunction
function Trig_Drain_Life_Func004Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Drain_Life_Func004Func001Func002001003001(),Trig_Drain_Life_Func004Func001Func002001003002())
endfunction
function Trig_Drain_Life_Func004Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_units09[0]),GetUnitLoc(udg_units09[0]),GetUnitFacing(udg_units09[0]))
call SetUnitAbilityLevelSwapped('A044',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"drain",GetEnumUnit())
endfunction
function Trig_Drain_Life_Func004Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A043',udg_units09[0])==2))then
return false
endif
return true
endfunction
function Trig_Drain_Life_Func004Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Drain_Life_Func004Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units09[0]))==true)
endfunction
function Trig_Drain_Life_Func004Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Drain_Life_Func004Func002001003001(),Trig_Drain_Life_Func004Func002001003002())
endfunction
function Trig_Drain_Life_Func004Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Y',GetOwningPlayer(udg_units09[0]),GetUnitLoc(udg_units09[0]),GetUnitFacing(udg_units09[0]))
call UnitApplyTimedLifeBJ(6.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"drain",GetEnumUnit())
endfunction
function Trig_Drain_Life_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A043',udg_units09[0])==1))then
return false
endif
return true
endfunction
function Trig_Drain_Life_Actions takes nothing returns nothing
set udg_units09[0]=GetSpellAbilityUnit()
set udg_units09[1]=GetSpellTargetUnit()
call EnableTrigger(udg_trigger298)
if(Trig_Drain_Life_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units09[1]),Condition(function Trig_Drain_Life_Func004Func002001003)),function Trig_Drain_Life_Func004Func002A)
else
if(Trig_Drain_Life_Func004Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units09[1]),Condition(function Trig_Drain_Life_Func004Func001Func002001003)),function Trig_Drain_Life_Func004Func001Func002A)
else
if(Trig_Drain_Life_Func004Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(700.00,GetUnitLoc(udg_units09[1]),Condition(function Trig_Drain_Life_Func004Func001Func001Func002001003)),function Trig_Drain_Life_Func004Func001Func001Func002A)
else
if(Trig_Drain_Life_Func004Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(700.00,GetUnitLoc(udg_units09[1]),Condition(function Trig_Drain_Life_Func004Func001Func001Func001Func002001003)),function Trig_Drain_Life_Func004Func001Func001Func001Func002A)
else
if(Trig_Drain_Life_Func004Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(800.00,GetUnitLoc(udg_units09[1]),Condition(function Trig_Drain_Life_Func004Func001Func001Func001Func001Func002001003)),function Trig_Drain_Life_Func004Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Drain_Life_Copy_Func005001 takes nothing returns boolean
return(GetSpellAbilityId()=='A043')
endfunction
function Trig_Drain_Life_Copy_Func005002 takes nothing returns boolean
return(IsUnitType(GetSpellAbilityUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Drain_Life_Copy_Conditions takes nothing returns boolean
if(not GetBooleanAnd(Trig_Drain_Life_Copy_Func005001(),Trig_Drain_Life_Copy_Func005002()))then
return false
endif
return true
endfunction
function Trig_Drain_Life_Copy_Func001002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Drain_Life_Copy_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsOfTypeIdAll('h00Y'),function Trig_Drain_Life_Copy_Func001002)
call DisableTrigger(udg_trigger298)
set udg_units09[0]=null
set udg_units09[1]=null
endfunction
function Trig_Life_Actions takes nothing returns nothing
call SetUnitLifeBJ(udg_units09[0],(GetUnitStateSwap(UNIT_STATE_LIFE,udg_units09[0])+30.00))
endfunction
function Trig_Learn_DarkAura_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='AEar'))then
return false
endif
return true
endfunction
function Trig_Learn_DarkAura_Actions takes nothing returns nothing
set udg_units10[0]=GetLearningUnit()
call EnableTrigger(udg_trigger300)
call EnableTrigger(udg_trigger302)
endfunction
function Trig_DarkAura_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='O00Q'))then
return false
endif
return true
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units10[0]))==true)
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DarkAura_Func001Func001Func001Func001Func001Func002001003001(),Trig_DarkAura_Func001Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Z',GetOwningPlayer(udg_units10[0]),GetUnitLoc(udg_units10[0]),GetUnitFacing(udg_units10[0]))
call UnitApplyTimedLifeBJ(0.35,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func001Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==5)
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func001Func003002 takes nothing returns boolean
return(udg_real03<=40.00)
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_DarkAura_Func001Func001Func001Func001Func001Func003001(),Trig_DarkAura_Func001Func001Func001Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units10[0]))==true)
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DarkAura_Func001Func001Func001Func001Func002001003001(),Trig_DarkAura_Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Z',GetOwningPlayer(udg_units10[0]),GetUnitLoc(udg_units10[0]),GetUnitFacing(udg_units10[0]))
call UnitApplyTimedLifeBJ(0.35,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==4)
endfunction
function Trig_DarkAura_Func001Func001Func001Func001Func003002 takes nothing returns boolean
return(udg_real03<=30.00)
endfunction
function Trig_DarkAura_Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_DarkAura_Func001Func001Func001Func001Func003001(),Trig_DarkAura_Func001Func001Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_DarkAura_Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DarkAura_Func001Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units10[0]))==true)
endfunction
function Trig_DarkAura_Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DarkAura_Func001Func001Func001Func002001003001(),Trig_DarkAura_Func001Func001Func001Func002001003002())
endfunction
function Trig_DarkAura_Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Z',GetOwningPlayer(udg_units10[0]),GetUnitLoc(udg_units10[0]),GetUnitFacing(udg_units10[0]))
call UnitApplyTimedLifeBJ(0.35,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_DarkAura_Func001Func001Func001Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==3)
endfunction
function Trig_DarkAura_Func001Func001Func001Func003002 takes nothing returns boolean
return(udg_real03<=20.00)
endfunction
function Trig_DarkAura_Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_DarkAura_Func001Func001Func001Func003001(),Trig_DarkAura_Func001Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_DarkAura_Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DarkAura_Func001Func001Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units10[0]))==true)
endfunction
function Trig_DarkAura_Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DarkAura_Func001Func001Func002001003001(),Trig_DarkAura_Func001Func001Func002001003002())
endfunction
function Trig_DarkAura_Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Z',GetOwningPlayer(udg_units10[0]),GetUnitLoc(udg_units10[0]),GetUnitFacing(udg_units10[0]))
call UnitApplyTimedLifeBJ(0.35,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_DarkAura_Func001Func001Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==2)
endfunction
function Trig_DarkAura_Func001Func001Func003002 takes nothing returns boolean
return(udg_real03<=15.00)
endfunction
function Trig_DarkAura_Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_DarkAura_Func001Func001Func003001(),Trig_DarkAura_Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_DarkAura_Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_DarkAura_Func001Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units10[0]))==true)
endfunction
function Trig_DarkAura_Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_DarkAura_Func001Func002001003001(),Trig_DarkAura_Func001Func002001003002())
endfunction
function Trig_DarkAura_Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00Z',GetOwningPlayer(udg_units10[0]),GetUnitLoc(udg_units10[0]),GetUnitFacing(udg_units10[0]))
call UnitApplyTimedLifeBJ(0.35,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_DarkAura_Func001Func003001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==1)
endfunction
function Trig_DarkAura_Func001Func003002 takes nothing returns boolean
return(udg_real03<=10.00)
endfunction
function Trig_DarkAura_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_DarkAura_Func001Func003001(),Trig_DarkAura_Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_DarkAura_Actions takes nothing returns nothing
if(Trig_DarkAura_Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_DarkAura_Func001Func002001003)),function Trig_DarkAura_Func001Func002A)
else
if(Trig_DarkAura_Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_DarkAura_Func001Func001Func002001003)),function Trig_DarkAura_Func001Func001Func002A)
else
if(Trig_DarkAura_Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_DarkAura_Func001Func001Func001Func002001003)),function Trig_DarkAura_Func001Func001Func001Func002A)
else
if(Trig_DarkAura_Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_DarkAura_Func001Func001Func001Func001Func002001003)),function Trig_DarkAura_Func001Func001Func001Func001Func002A)
else
if(Trig_DarkAura_Func001Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_DarkAura_Func001Func001Func001Func001Func001Func002001003)),function Trig_DarkAura_Func001Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Damage_Real_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='h00Z'))then
return false
endif
return true
endfunction
function Trig_Damage_Real_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==5))then
return false
endif
return true
endfunction
function Trig_Damage_Real_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==4))then
return false
endif
return true
endfunction
function Trig_Damage_Real_Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==3))then
return false
endif
return true
endfunction
function Trig_Damage_Real_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==2))then
return false
endif
return true
endfunction
function Trig_Damage_Real_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('AEar',udg_units10[0])==1))then
return false
endif
return true
endfunction
function Trig_Damage_Real_Actions takes nothing returns nothing
if(Trig_Damage_Real_Func001C())then
call UnitDamageTargetBJ(udg_units10[0],GetAttackedUnitBJ(),(1.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units10[0],true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
else
if(Trig_Damage_Real_Func001Func001C())then
call UnitDamageTargetBJ(udg_units10[0],GetAttackedUnitBJ(),(2.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units10[0],true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
else
if(Trig_Damage_Real_Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units10[0],GetAttackedUnitBJ(),(3.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units10[0],true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
else
if(Trig_Damage_Real_Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units10[0],GetAttackedUnitBJ(),(4.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units10[0],true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
else
if(Trig_Damage_Real_Func001Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units10[0],GetAttackedUnitBJ(),(5.00*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units10[0],true))),ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Time_random_Real_3_Actions takes nothing returns nothing
set udg_real03=GetRandomReal(0,80.00)
endfunction
function Trig_Learn_Skill_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A04C'))then
return false
endif
return true
endfunction
function Trig_Learn_Skill_Actions takes nothing returns nothing
set udg_unit20=GetLearningUnit()
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Mutip_strike_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='O00R'))then
return false
endif
return true
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func001Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func001Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func001Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Mutip_strike_Func001Func001Func001Func001Func001Func002001002003001(),Trig_Mutip_strike_Func001Func001Func001Func001Func001Func002001002003002())
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h010',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),(GetUnitFacing(udg_unit20)+0.00))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),200.00)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100.00,100.00,100.00,70.00)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func001Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00B')==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func001Func003002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04C',GetAttacker())==5)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Mutip_strike_Func001Func001Func001Func001Func001Func003001(),Trig_Mutip_strike_Func001Func001Func001Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Mutip_strike_Func001Func001Func001Func001Func002001002003001(),Trig_Mutip_strike_Func001Func001Func001Func001Func002001002003002())
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h010',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),(GetUnitFacing(udg_unit20)+0.00))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100.00,100.00,100.00,70.00)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100.00,100.00,100.00,50.00)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00B')==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001Func003002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04C',GetAttacker())==4)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Mutip_strike_Func001Func001Func001Func001Func003001(),Trig_Mutip_strike_Func001Func001Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Mutip_strike_Func001Func001Func001Func002001002003001(),Trig_Mutip_strike_Func001Func001Func001Func002001002003002())
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h010',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),(GetUnitFacing(udg_unit20)+0.00))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100.00,100.00,100.00,50.00)
call SetUnitTimeScalePercent(GetLastCreatedUnit(),200.00)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00B')==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func001Func003002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04C',GetAttacker())==3)
endfunction
function Trig_Mutip_strike_Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Mutip_strike_Func001Func001Func001Func003001(),Trig_Mutip_strike_Func001Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Mutip_strike_Func001Func001Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Mutip_strike_Func001Func001Func002001002003001(),Trig_Mutip_strike_Func001Func001Func002001002003002())
endfunction
function Trig_Mutip_strike_Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h010',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),(GetUnitFacing(udg_unit20)+0.00))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100.00,100.00,100.00,50.00)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100.00,100.00,100.00,70.00)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_Mutip_strike_Func001Func001Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00B')==true)
endfunction
function Trig_Mutip_strike_Func001Func001Func003002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04C',GetAttacker())==2)
endfunction
function Trig_Mutip_strike_Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Mutip_strike_Func001Func001Func003001(),Trig_Mutip_strike_Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Mutip_strike_Func001Func002001002003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Mutip_strike_Func001Func002001002003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Mutip_strike_Func001Func002001002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Mutip_strike_Func001Func002001002003001(),Trig_Mutip_strike_Func001Func002001002003002())
endfunction
function Trig_Mutip_strike_Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h010',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetAttacker()),GetUnitFacing(udg_unit20))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100.00,100.00,100.00,50.00)
call SetUnitVertexColorBJ(GetLastCreatedUnit(),100.00,100.00,100.00,70.00)
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",GetEnumUnit())
endfunction
function Trig_Mutip_strike_Func001Func003001 takes nothing returns boolean
return(UnitHasBuffBJ(GetAttacker(),'B00B')==true)
endfunction
function Trig_Mutip_strike_Func001Func003002 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04C',GetAttacker())==1)
endfunction
function Trig_Mutip_strike_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Mutip_strike_Func001Func003001(),Trig_Mutip_strike_Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Mutip_strike_Actions takes nothing returns nothing
if(Trig_Mutip_strike_Func001C())then
call ForGroupBJ(GetRandomSubGroup(2,GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Mutip_strike_Func001Func002001002003))),function Trig_Mutip_strike_Func001Func002A)
else
if(Trig_Mutip_strike_Func001Func001C())then
call ForGroupBJ(GetRandomSubGroup(3,GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Mutip_strike_Func001Func001Func002001002003))),function Trig_Mutip_strike_Func001Func001Func002A)
else
if(Trig_Mutip_strike_Func001Func001Func001C())then
call ForGroupBJ(GetRandomSubGroup(4,GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Mutip_strike_Func001Func001Func001Func002001002003))),function Trig_Mutip_strike_Func001Func001Func001Func002A)
else
if(Trig_Mutip_strike_Func001Func001Func001Func001C())then
call ForGroupBJ(GetRandomSubGroup(5,GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Mutip_strike_Func001Func001Func001Func001Func002001002003))),function Trig_Mutip_strike_Func001Func001Func001Func001Func002A)
else
if(Trig_Mutip_strike_Func001Func001Func001Func001Func001C())then
call ForGroupBJ(GetRandomSubGroup(6,GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Mutip_strike_Func001Func001Func001Func001Func001Func002001002003))),function Trig_Mutip_strike_Func001Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Remove_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='h010'))then
return false
endif
return true
endfunction
function Trig_Remove_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04C',udg_unit20)==5))then
return false
endif
return true
endfunction
function Trig_Remove_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04C',udg_unit20)==4))then
return false
endif
return true
endfunction
function Trig_Remove_Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04C',udg_unit20)==3))then
return false
endif
return true
endfunction
function Trig_Remove_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04C',udg_unit20)==2))then
return false
endif
return true
endfunction
function Trig_Remove_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04C',udg_unit20)==1))then
return false
endif
return true
endfunction
function Trig_Remove_Actions takes nothing returns nothing
if(Trig_Remove_Func001C())then
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit20,false)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
else
if(Trig_Remove_Func001Func001C())then
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit20,false)*R2I(2.00))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
else
if(Trig_Remove_Func001Func001Func001C())then
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit20,false)*3)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
else
if(Trig_Remove_Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit20,false)*4)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
else
if(Trig_Remove_Func001Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit20,false)*5)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Buff_Func001001002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'B00B')==true)
endfunction
function Trig_Buff_Func001002 takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Orc\\MirrorImage\\MirrorImageCaster.mdl")
endfunction
function Trig_Buff_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Buff_Func001001002)),function Trig_Buff_Func001002)
endfunction
function Trig_Remove_Samuro_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetDyingUnit())=='h010'))then
return false
endif
return true
endfunction
function Trig_Remove_Samuro_Actions takes nothing returns nothing
call RemoveUnit(GetDyingUnit())
endfunction
function Trig_Double_Ilusion_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04D'))then
return false
endif
return true
endfunction
function Trig_Double_Ilusion_Func002Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04D',udg_unit21)==5))then
return false
endif
return true
endfunction
function Trig_Double_Ilusion_Func002Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04D',udg_unit21)==4))then
return false
endif
return true
endfunction
function Trig_Double_Ilusion_Func002Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04D',udg_unit21)==3))then
return false
endif
return true
endfunction
function Trig_Double_Ilusion_Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04D',udg_unit21)==2))then
return false
endif
return true
endfunction
function Trig_Double_Ilusion_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04D',udg_unit21)==1))then
return false
endif
return true
endfunction
function Trig_Double_Ilusion_Actions takes nothing returns nothing
set udg_unit21=GetSpellAbilityUnit()
if(Trig_Double_Ilusion_Func002C())then
call CreateNUnitsAtLoc(1,'h011',GetOwningPlayer(udg_unit21),GetUnitLoc(udg_unit21),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('I00J',GetLastCreatedUnit())
call UnitUseItemTarget(GetLastCreatedUnit(),GetLastCreatedItem(),udg_unit21)
else
if(Trig_Double_Ilusion_Func002Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h011',GetOwningPlayer(udg_unit21),GetUnitLoc(udg_unit21),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('I00J',GetLastCreatedUnit())
call UnitUseItemTarget(GetLastCreatedUnit(),GetLastCreatedItem(),udg_unit21)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Double_Ilusion_Func002Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h011',GetOwningPlayer(udg_unit21),GetUnitLoc(udg_unit21),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('I00J',GetLastCreatedUnit())
call UnitUseItemTarget(GetLastCreatedUnit(),GetLastCreatedItem(),udg_unit21)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Double_Ilusion_Func002Func001Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h011',GetOwningPlayer(udg_unit21),GetUnitLoc(udg_unit21),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('I00J',GetLastCreatedUnit())
call UnitUseItemTarget(GetLastCreatedUnit(),GetLastCreatedItem(),udg_unit21)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if(Trig_Double_Ilusion_Func002Func001Func001Func001Func001C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h011',GetOwningPlayer(udg_unit21),GetUnitLoc(udg_unit21),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BTLF',GetLastCreatedUnit())
call UnitAddItemByIdSwapped('I00J',GetLastCreatedUnit())
call UnitUseItemTarget(GetLastCreatedUnit(),GetLastCreatedItem(),udg_unit21)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Blade_Storm_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A003'))then
return false
endif
return true
endfunction
function Trig_Blade_Storm_Func019001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit22))==true)
endfunction
function Trig_Blade_Storm_Func019002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit22,GetEnumUnit(),(I2R(GetHeroLevel(udg_unit22))*100.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Blade_Storm_Func020001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Blade_Storm_Func020001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit22))==true)
endfunction
function Trig_Blade_Storm_Func020001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Blade_Storm_Func020001003001(),Trig_Blade_Storm_Func020001003002())
endfunction
function Trig_Blade_Storm_Func020A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h012',GetOwningPlayer(udg_unit22),GetUnitLoc(udg_unit22),GetUnitFacing(udg_unit22))
call UnitApplyTimedLifeBJ(0.50,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
endfunction
function Trig_Blade_Storm_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit22=GetSpellAbilityUnit()
call TriggerSleepAction(2.80)
call ClearSelectionForPlayer(GetOwningPlayer(udg_unit22))
call TriggerSleepAction(0.10)
call PauseUnitBJ(true,udg_unit22)
call SetUnitAnimation(udg_unit22,"attack slam")
call TriggerSleepAction(0.15)
call SetUnitTimeScalePercent(udg_unit22,10.00)
call AddSpecialEffectTargetUnitBJ("weapon",udg_unit22,"Abilities\\Spells\\Orc\\AncestralSpirit\\AncestralSpiritCaster.mdl")
call TriggerSleepAction(1.00)
call SetUnitTimeScalePercent(udg_unit22,200.00)
call TriggerSleepAction(0.01)
call TerrainDeformationRippleBJ(1.00,false,GetUnitLoc(udg_unit22),1024,1024,64,1,512)
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_unit22),100.00,GetUnitFacing(udg_unit22)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectTargetUnitBJ("weapon",udg_unit22,"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_unit22),Condition(function Trig_Blade_Storm_Func019001003)),function Trig_Blade_Storm_Func019002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_unit22),Condition(function Trig_Blade_Storm_Func020001003)),function Trig_Blade_Storm_Func020A)
call CreateTextTagUnitBJ((I2S((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit22,true)*2))+" Damage"),udg_unit22,0,10,0.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),50.00,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,0.00,100.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.50)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call TriggerSleepAction(0.01)
call SetUnitTimeScalePercent(udg_unit22,100.00)
call PauseUnitBJ(false,udg_unit22)
call SelectUnitForPlayerSingle(udg_unit22,GetOwningPlayer(udg_unit22))
set udg_unit22=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Chain_Litghtning_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04F'))then
return false
endif
return true
endfunction
function Trig_Chain_Litghtning_Actions takes nothing returns nothing
set udg_units11[0]=GetSpellAbilityUnit()
set udg_units11[1]=GetSpellTargetUnit()
call TriggerExecute(udg_trigger311)
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units11[0]))==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001Func003001003001(),Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001Func003001003002())
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h013',GetOwningPlayer(udg_units11[0]),GetUnitLoc(udg_units11[1]),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A04G',GetLastCreatedUnit(),5)
call UnitApplyTimedLifeBJ(1.50,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04F',udg_units11[0])==5))then
return false
endif
return true
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units11[0]))==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Lightning_Other_Func003Func002Func001Func001Func001Func003001003001(),Trig_Lightning_Other_Func003Func002Func001Func001Func001Func003001003002())
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h013',GetOwningPlayer(udg_units11[0]),GetUnitLoc(udg_units11[1]),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A04G',GetLastCreatedUnit(),4)
call UnitApplyTimedLifeBJ(1.50,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04F',udg_units11[0])==4))then
return false
endif
return true
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units11[0]))==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Lightning_Other_Func003Func002Func001Func001Func003001003001(),Trig_Lightning_Other_Func003Func002Func001Func001Func003001003002())
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h013',GetOwningPlayer(udg_units11[0]),GetUnitLoc(udg_units11[1]),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A04G',GetLastCreatedUnit(),3)
call UnitApplyTimedLifeBJ(1.50,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04F',udg_units11[0])==3))then
return false
endif
return true
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units11[0]))==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Lightning_Other_Func003Func002Func001Func003001003001(),Trig_Lightning_Other_Func003Func002Func001Func003001003002())
endfunction
function Trig_Lightning_Other_Func003Func002Func001Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h013',GetOwningPlayer(udg_units11[0]),GetUnitLoc(udg_units11[1]),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A04G',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(1.50,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
endfunction
function Trig_Lightning_Other_Func003Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04F',udg_units11[0])==2))then
return false
endif
return true
endfunction
function Trig_Lightning_Other_Func003Func002Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units11[0]))==true)
endfunction
function Trig_Lightning_Other_Func003Func002Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Lightning_Other_Func003Func002Func003001003001(),Trig_Lightning_Other_Func003Func002Func003001003002())
endfunction
function Trig_Lightning_Other_Func003Func002Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h013',GetOwningPlayer(udg_units11[0]),GetUnitLoc(udg_units11[1]),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.50,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"chainlightning",GetEnumUnit())
endfunction
function Trig_Lightning_Other_Func003Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04F',udg_units11[0])==1))then
return false
endif
return true
endfunction
function Trig_Lightning_Other_Func003C takes nothing returns boolean
if(not(IsUnitDeadBJ(udg_units11[1])==true))then
return false
endif
return true
endfunction
function Trig_Lightning_Other_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(0.50)
if(Trig_Lightning_Other_Func003C())then
if(Trig_Lightning_Other_Func003Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units11[1]),Condition(function Trig_Lightning_Other_Func003Func002Func003001003)),function Trig_Lightning_Other_Func003Func002Func003A)
else
if(Trig_Lightning_Other_Func003Func002Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units11[1]),Condition(function Trig_Lightning_Other_Func003Func002Func001Func003001003)),function Trig_Lightning_Other_Func003Func002Func001Func003A)
else
if(Trig_Lightning_Other_Func003Func002Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units11[1]),Condition(function Trig_Lightning_Other_Func003Func002Func001Func001Func003001003)),function Trig_Lightning_Other_Func003Func002Func001Func001Func003A)
else
if(Trig_Lightning_Other_Func003Func002Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units11[1]),Condition(function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func003001003)),function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func003A)
else
if(Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units11[1]),Condition(function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001Func003001003)),function Trig_Lightning_Other_Func003Func002Func001Func001Func001Func001Func003A)
else
call DoNothing()
endif
endif
endif
endif
endif
else
call DoNothing()
endif
set udg_units11[0]=null
set udg_units11[1]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Dead_Lake_Cast_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04P'))then
return false
endif
return true
endfunction
function Trig_Dead_Lake_Cast_Func008C takes nothing returns boolean
if(not(IsUnitAliveBJ(udg_unit23)==true))then
return false
endif
return true
endfunction
function Trig_Dead_Lake_Cast_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit23=GetSpellAbilityUnit()
set udg_locations03[0]=GetSpellTargetLoc()
set udg_reals04[0]=0.00
set udg_reals04[1]=180.00
call CreateFogModifierRectBJ(true,GetOwningPlayer(udg_unit23),FOG_OF_WAR_VISIBLE,RectFromCenterSizeBJ(udg_locations03[0],900.00,900.00))
if(Trig_Dead_Lake_Cast_Func008C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=24
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations03[0],500.00,udg_reals04[0]),"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
set udg_reals04[0]=(udg_reals04[0]+15.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.50)
call TerrainDeformationCraterBJ(2.00,true,udg_locations03[0],500.00,400.00)
call TriggerSleepAction(1.50)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=24
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h016',GetOwningPlayer(udg_unit23),PolarProjectionBJ(udg_locations03[0],500.00,udg_reals04[0]),udg_reals04[1])
call UnitApplyTimedLifeBJ(10.00,'BHwe',GetLastCreatedUnit())
set udg_reals04[0]=(udg_reals04[0]+15.00)
set udg_reals04[1]=(udg_reals04[1]+15.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(1.00)
call AddWeatherEffectSaveLast(RectFromCenterSizeBJ(udg_locations03[0],500.00,500.00),'RAhr')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
call EnableTrigger(udg_trigger313)
call EnableTrigger(udg_trigger315)
call EnableTrigger(udg_trigger314)
call TriggerSleepAction(10.00)
call DisableTrigger(udg_trigger315)
call DisableTrigger(udg_trigger314)
call DisableTrigger(udg_trigger313)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=24
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(udg_locations03[0],500.00,udg_reals04[0]),"Abilities\\Spells\\Undead\\DeathPact\\DeathPactTarget.mdl")
set udg_reals04[0]=(udg_reals04[0]+15.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TerrainDeformationCraterBJ(2.00,true,udg_locations03[0],500.00,-400.00)
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),false)
else
call DoNothing()
endif
call RemoveLocation(udg_locations03[0])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Special_Func018Func001001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit23))==true)
endfunction
function Trig_Special_Func018Func001002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit23,GetEnumUnit(),(500.00+I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit23,true)*2))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Special_Func018Func002001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit23))==true)
endfunction
function Trig_Special_Func018Func002002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit23,GetEnumUnit(),(500.00+I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit23,true)*2))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Special_Func018C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04P',udg_unit23)==1))then
return false
endif
return true
endfunction
function Trig_Special_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[0],500.00,500.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[0],350.00,350.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[0],350.00,350.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[0],350.00,350.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[0],350.00,350.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[0],350.00,350.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[0],350.00,350.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetRandomLocInRect(RectFromCenterSizeBJ(udg_locations03[0],500.00,500.00)),"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Trig_Special_Func018C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_locations03[0],Condition(function Trig_Special_Func018Func002001003)),function Trig_Special_Func018Func002002)
else
call ForGroupBJ(GetUnitsInRangeOfLocMatching(1500.00,udg_locations03[0],Condition(function Trig_Special_Func018Func001001003)),function Trig_Special_Func018Func001002)
endif
endfunction
function Trig_Sound_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound24)
call SetSoundVolumeBJ(GetLastPlayedSound(),100)
endfunction
function Trig_ActiveWater_Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_ActiveWater_Func001001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_GROUND)==true)
endfunction
function Trig_ActiveWater_Func001001003002002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_ActiveWater_Func001001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit23))==true)
endfunction
function Trig_ActiveWater_Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_ActiveWater_Func001001003002002001(),Trig_ActiveWater_Func001001003002002002())
endfunction
function Trig_ActiveWater_Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_ActiveWater_Func001001003002001(),Trig_ActiveWater_Func001001003002002())
endfunction
function Trig_ActiveWater_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_ActiveWater_Func001001003001(),Trig_ActiveWater_Func001001003002())
endfunction
function Trig_ActiveWater_Func001A takes nothing returns nothing
set udg_reals04[2]=AngleBetweenPoints(GetUnitLoc(GetEnumUnit()),udg_locations03[0])
set udg_locations03[1]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),100.00,(udg_reals04[2]-1.00))
call SetUnitPositionLoc(GetEnumUnit(),udg_locations03[1])
endfunction
function Trig_ActiveWater_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,udg_locations03[0],Condition(function Trig_ActiveWater_Func001001003)),function Trig_ActiveWater_Func001A)
endfunction
function Trig_Roar_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04Q'))then
return false
endif
return true
endfunction
function Trig_Roar_Func013001003 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit24))==true)
endfunction
function Trig_Roar_Func013A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h019',GetOwningPlayer(udg_unit24),GetUnitLoc(udg_unit24),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call UnitDamageTargetBJ(udg_unit24,GetEnumUnit(),5000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Roar_Actions takes nothing returns nothing
set udg_unit24=GetSpellAbilityUnit()
set udg_locations04[0]=GetUnitLoc(udg_unit24)
set udg_locations04[1]=GetSpellTargetLoc()
set udg_reals05[0]=AngleBetweenPoints(udg_locations04[0],udg_locations04[1])
set udg_reals05[1]=20.00
call SetSoundVolumeBJ(GetLastPlayedSound(),100.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h017',GetOwningPlayer(udg_unit24),PolarProjectionBJ(GetUnitLoc(udg_unit24),udg_reals05[1],udg_reals05[0]),udg_reals05[0])
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
set udg_reals05[1]=(udg_reals05[1]+200.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_locations04[2]=GetRectCenter(RectFromCenterSizeBJ(PolarProjectionBJ(udg_locations04[0],50.00,udg_reals05[0]),400.00,400.00))
set udg_locations04[3]=GetRectCenter(RectFromCenterSizeBJ(PolarProjectionBJ(udg_locations04[0],250.00,udg_reals05[0]),400.00,400.00))
set udg_locations04[4]=GetRectCenter(RectFromCenterSizeBJ(PolarProjectionBJ(udg_locations04[0],800.00,udg_reals05[0]),600.00,600.00))
call TerrainDeformationWaveBJ(0.75,udg_locations04[0],udg_locations04[4],400.00,200.00,0)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(800.00,udg_locations04[3],Condition(function Trig_Roar_Func013001003)),function Trig_Roar_Func013A)
call TriggerSleepAction(1.00)
set udg_unit24=null
endfunction
function Trig_Roar_Away_Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Roar_Away_Func004001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit24))==true)
endfunction
function Trig_Roar_Away_Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Roar_Away_Func004001003001(),Trig_Roar_Away_Func004001003002())
endfunction
function Trig_Roar_Away_Func004A takes nothing returns nothing
set udg_reals05[2]=AngleBetweenPoints(udg_locations04[2],GetUnitLoc(GetEnumUnit()))
set udg_locations04[5]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),5.00,udg_reals05[2])
call SetUnitPositionLoc(GetEnumUnit(),udg_locations04[5])
endfunction
function Trig_Roar_Away_Func005001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Roar_Away_Func005001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit24))==true)
endfunction
function Trig_Roar_Away_Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Roar_Away_Func005001003001(),Trig_Roar_Away_Func005001003002())
endfunction
function Trig_Roar_Away_Func005A takes nothing returns nothing
set udg_reals05[3]=AngleBetweenPoints(udg_locations04[3],GetUnitLoc(GetEnumUnit()))
set udg_locations04[6]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),4.00,udg_reals05[3])
call SetUnitPositionLoc(GetEnumUnit(),udg_locations04[6])
endfunction
function Trig_Roar_Away_Func006001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Roar_Away_Func006001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit24))==true)
endfunction
function Trig_Roar_Away_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Roar_Away_Func006001003001(),Trig_Roar_Away_Func006001003002())
endfunction
function Trig_Roar_Away_Func006A takes nothing returns nothing
set udg_reals05[4]=AngleBetweenPoints(udg_locations04[4],GetUnitLoc(GetEnumUnit()))
set udg_locations04[7]=PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),2.00,udg_reals05[4])
call SetUnitPositionLoc(GetEnumUnit(),udg_locations04[7])
endfunction
function Trig_Roar_Away_Actions takes nothing returns nothing
set udg_locations04[2]=GetRectCenter(RectFromCenterSizeBJ(PolarProjectionBJ(udg_locations04[0],50.00,udg_reals05[0]),400.00,400.00))
set udg_locations04[3]=GetRectCenter(RectFromCenterSizeBJ(PolarProjectionBJ(udg_locations04[0],250.00,udg_reals05[0]),400.00,400.00))
set udg_locations04[4]=GetRectCenter(RectFromCenterSizeBJ(PolarProjectionBJ(udg_locations04[0],800.00,udg_reals05[0]),600.00,600.00))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations04[2],Condition(function Trig_Roar_Away_Func004001003)),function Trig_Roar_Away_Func004A)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations04[3],Condition(function Trig_Roar_Away_Func005001003)),function Trig_Roar_Away_Func005A)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,udg_locations04[4],Condition(function Trig_Roar_Away_Func006001003)),function Trig_Roar_Away_Func006A)
endfunction
function Trig_Blade_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00D'))then
return false
endif
return true
endfunction
function Trig_Blade_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit25=GetSpellAbilityUnit()
set udg_locations05[0]=GetUnitLoc(udg_unit25)
set udg_locations05[1]=GetSpellTargetLoc()
set udg_reals06[0]=AngleBetweenPoints(udg_locations05[0],udg_locations05[1])
set udg_reals06[1]=5.00
call SetUnitPathing(udg_unit25,false)
call SetUnitAnimation(udg_unit25,"attack walk stand spin")
call EnableTrigger(udg_trigger319)
call EnableTrigger(udg_trigger321)
call TriggerSleepAction((DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])/500.00))
call GroupClear(udg_group02)
call DisableTrigger(udg_trigger319)
set udg_reals06[2]=AngleBetweenPoints(udg_locations05[1],udg_locations05[0])
call EnableTrigger(udg_trigger320)
call TriggerSleepAction((DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])/500.00))
call DisableTrigger(udg_trigger320)
call ResetUnitAnimation(udg_unit25)
call GroupClear(udg_group02)
call DisableTrigger(udg_trigger321)
call SetUnitPathing(udg_unit25,true)
call EnableTrigger(GetTriggeringTrigger())
call RemoveLocation(udg_locations05[0])
call RemoveLocation(udg_locations05[1])
endfunction
function Trig_MoveSlice_Func001Func001Func001C takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])>=700.00))then
return false
endif
return true
endfunction
function Trig_MoveSlice_Func001Func001Func003001 takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])>=300.00)
endfunction
function Trig_MoveSlice_Func001Func001Func003002 takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])<=700.00)
endfunction
function Trig_MoveSlice_Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_MoveSlice_Func001Func001Func003001(),Trig_MoveSlice_Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_MoveSlice_Func001C takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])<=300.00))then
return false
endif
return true
endfunction
function Trig_MoveSlice_Actions takes nothing returns nothing
if(Trig_MoveSlice_Func001C())then
set udg_reals06[1]=3.00
else
if(Trig_MoveSlice_Func001Func001C())then
set udg_reals06[1]=4.00
else
if(Trig_MoveSlice_Func001Func001Func001C())then
set udg_reals06[1]=4.50
else
endif
endif
endif
set udg_locations05[2]=PolarProjectionBJ(GetUnitLoc(udg_unit25),udg_reals06[1],udg_reals06[0])
call SetUnitPositionLoc(udg_unit25,udg_locations05[2])
endfunction
function Trig_MoveSlice_2_Func001Func001Func001C takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])>=700.00))then
return false
endif
return true
endfunction
function Trig_MoveSlice_2_Func001Func001Func003001 takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])>=300.00)
endfunction
function Trig_MoveSlice_2_Func001Func001Func003002 takes nothing returns boolean
return(DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])<=700.00)
endfunction
function Trig_MoveSlice_2_Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_MoveSlice_2_Func001Func001Func003001(),Trig_MoveSlice_2_Func001Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_MoveSlice_2_Func001C takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_locations05[0],udg_locations05[1])<=300.00))then
return false
endif
return true
endfunction
function Trig_MoveSlice_2_Actions takes nothing returns nothing
if(Trig_MoveSlice_2_Func001C())then
set udg_reals06[1]=3.00
else
if(Trig_MoveSlice_2_Func001Func001C())then
set udg_reals06[1]=4.00
else
if(Trig_MoveSlice_2_Func001Func001Func001C())then
set udg_reals06[1]=4.50
else
endif
endif
endif
set udg_locations05[2]=PolarProjectionBJ(GetUnitLoc(udg_unit25),udg_reals06[1],udg_reals06[2])
call SetUnitPositionLoc(udg_unit25,udg_locations05[2])
endfunction
function Trig_Damage_Func001Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Damage_Func001Func001Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Damage_Func001Func001Func001Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit25))==true)
endfunction
function Trig_Damage_Func001Func001Func001Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group02)==false)
endfunction
function Trig_Damage_Func001Func001Func001Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func001Func001Func001Func002001003002002001(),Trig_Damage_Func001Func001Func001Func001Func001Func002001003002002002())
endfunction
function Trig_Damage_Func001Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func001Func001Func001Func002001003002001(),Trig_Damage_Func001Func001Func001Func001Func001Func002001003002002())
endfunction
function Trig_Damage_Func001Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func001Func001Func001Func002001003001(),Trig_Damage_Func001Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Damage_Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateTextTagUnitBJ((I2S(((R2I(6.00)*GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,true))+0))+""),GetEnumUnit(),0,10,100.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,0.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call PlaySoundOnUnitBJ(udg_sound28,100,GetEnumUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit25,GetEnumUnit(),I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,false)*R2I(6.00))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_group02)
endfunction
function Trig_Damage_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00D',udg_unit25)==5))then
return false
endif
return true
endfunction
function Trig_Damage_Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Damage_Func001Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Damage_Func001Func001Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit25))==true)
endfunction
function Trig_Damage_Func001Func001Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group02)==false)
endfunction
function Trig_Damage_Func001Func001Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func001Func001Func002001003002002001(),Trig_Damage_Func001Func001Func001Func001Func002001003002002002())
endfunction
function Trig_Damage_Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func001Func001Func002001003002001(),Trig_Damage_Func001Func001Func001Func001Func002001003002002())
endfunction
function Trig_Damage_Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func001Func001Func002001003001(),Trig_Damage_Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Damage_Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateTextTagUnitBJ((I2S(((R2I(5.00)*GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,true))+0))+""),GetEnumUnit(),0,10,100.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,0.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call PlaySoundOnUnitBJ(udg_sound28,100,GetEnumUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit25,GetEnumUnit(),I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,false)*R2I(5.00))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_group02)
endfunction
function Trig_Damage_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00D',udg_unit25)==4))then
return false
endif
return true
endfunction
function Trig_Damage_Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Damage_Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Damage_Func001Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit25))==true)
endfunction
function Trig_Damage_Func001Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group02)==false)
endfunction
function Trig_Damage_Func001Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func001Func002001003002002001(),Trig_Damage_Func001Func001Func001Func002001003002002002())
endfunction
function Trig_Damage_Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func001Func002001003002001(),Trig_Damage_Func001Func001Func001Func002001003002002())
endfunction
function Trig_Damage_Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func001Func002001003001(),Trig_Damage_Func001Func001Func001Func002001003002())
endfunction
function Trig_Damage_Func001Func001Func001Func002A takes nothing returns nothing
call CreateTextTagUnitBJ((I2S(((R2I(4.00)*GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,true))+0))+""),GetEnumUnit(),0,10,100.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,0.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call PlaySoundOnUnitBJ(udg_sound28,100,GetEnumUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit25,GetEnumUnit(),I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,false)*R2I(4.00))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_group02)
endfunction
function Trig_Damage_Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00D',udg_unit25)==3))then
return false
endif
return true
endfunction
function Trig_Damage_Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Damage_Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Damage_Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit25))==true)
endfunction
function Trig_Damage_Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group02)==false)
endfunction
function Trig_Damage_Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func002001003002002001(),Trig_Damage_Func001Func001Func002001003002002002())
endfunction
function Trig_Damage_Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func002001003002001(),Trig_Damage_Func001Func001Func002001003002002())
endfunction
function Trig_Damage_Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func001Func002001003001(),Trig_Damage_Func001Func001Func002001003002())
endfunction
function Trig_Damage_Func001Func001Func002A takes nothing returns nothing
call CreateTextTagUnitBJ((I2S(((R2I(3.00)*GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,true))+0))+""),GetEnumUnit(),0,10,100.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,0.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call PlaySoundOnUnitBJ(udg_sound28,100,GetEnumUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit25,GetEnumUnit(),I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,true)*R2I(3.00))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_group02)
endfunction
function Trig_Damage_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00D',udg_unit25)==2))then
return false
endif
return true
endfunction
function Trig_Damage_Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Damage_Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Damage_Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit25))==true)
endfunction
function Trig_Damage_Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group02)==false)
endfunction
function Trig_Damage_Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func002001003002002001(),Trig_Damage_Func001Func002001003002002002())
endfunction
function Trig_Damage_Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func002001003002001(),Trig_Damage_Func001Func002001003002002())
endfunction
function Trig_Damage_Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Damage_Func001Func002001003001(),Trig_Damage_Func001Func002001003002())
endfunction
function Trig_Damage_Func001Func002A takes nothing returns nothing
call CreateTextTagUnitBJ((I2S(((2*GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,true))+0))+""),GetEnumUnit(),0,10,100.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,0.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call PlaySoundOnUnitBJ(udg_sound28,100,GetEnumUnit())
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_unit25,GetEnumUnit(),I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit25,true)*2)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_group02)
endfunction
function Trig_Damage_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00D',udg_unit25)==1))then
return false
endif
return true
endfunction
function Trig_Damage_Actions takes nothing returns nothing
if(Trig_Damage_Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_unit25),Condition(function Trig_Damage_Func001Func002001003)),function Trig_Damage_Func001Func002A)
else
if(Trig_Damage_Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(325.00,GetUnitLoc(udg_unit25),Condition(function Trig_Damage_Func001Func001Func002001003)),function Trig_Damage_Func001Func001Func002A)
else
if(Trig_Damage_Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_unit25),Condition(function Trig_Damage_Func001Func001Func001Func002001003)),function Trig_Damage_Func001Func001Func001Func002A)
else
if(Trig_Damage_Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_unit25),Condition(function Trig_Damage_Func001Func001Func001Func001Func002001003)),function Trig_Damage_Func001Func001Func001Func001Func002A)
else
if(Trig_Damage_Func001Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(375.00,GetUnitLoc(udg_unit25),Condition(function Trig_Damage_Func001Func001Func001Func001Func001Func002001003)),function Trig_Damage_Func001Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Kame_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04R'))then
return false
endif
return true
endfunction
function Trig_Kame_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units12[0]=GetSpellAbilityUnit()
set udg_locations06[0]=GetUnitLoc(udg_units12[0])
set udg_locations06[1]=GetSpellTargetLoc()
set udg_reals07[0]=AngleBetweenPoints(udg_locations06[0],udg_locations06[1])
call SetUnitTimeScalePercent(udg_units12[0],10.00)
call TriggerSleepAction(1.00)
call PlaySoundBJ(udg_sound26)
call SetSoundVolumeBJ(GetLastPlayedSound(),100)
call CreateNUnitsAtLoc(1,'h015',GetOwningPlayer(udg_units12[0]),GetUnitLoc(udg_units12[0]),(udg_reals07[0]-180.00))
set udg_units12[1]=GetLastCreatedUnit()
call SetUnitTimeScalePercent(udg_units12[1],80.00)
call TriggerSleepAction(0.50)
call AddSpecialEffectTargetUnitBJ("origin",udg_units12[0],"Abilities\\Spells\\NightElf\\BattleRoar\\RoarCaster.mdl")
call CameraSetEQNoiseForPlayer(Player(0),10.00)
call SetUnitTimeScalePercent(udg_units12[0],100.00)
call EnableTrigger(udg_trigger323)
call TriggerSleepAction(3.00)
call DisableTrigger(udg_trigger323)
call RemoveUnit(udg_units12[1])
call CameraClearNoiseForPlayer(Player(0))
call RemoveLocation(udg_locations06[0])
call RemoveLocation(udg_locations06[1])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_KameMove_Func001Func001Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func001Func001001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func001Func001001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func001Func001001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func001Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func001001003002002001(),Trig_KameMove_Func001Func001Func001001003002002002())
endfunction
function Trig_KameMove_Func001Func001Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func001001003002001(),Trig_KameMove_Func001Func001Func001001003002002())
endfunction
function Trig_KameMove_Func001Func001Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func001001003001(),Trig_KameMove_Func001Func001Func001001003002())
endfunction
function Trig_KameMove_Func001Func001Func001002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units12[0],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[0],true))*4.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_KameMove_Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func002001003002002001(),Trig_KameMove_Func001Func001Func002001003002002002())
endfunction
function Trig_KameMove_Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func002001003002001(),Trig_KameMove_Func001Func001Func002001003002002())
endfunction
function Trig_KameMove_Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func002001003001(),Trig_KameMove_Func001Func001Func002001003002())
endfunction
function Trig_KameMove_Func001Func001Func002002 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group03)
endfunction
function Trig_KameMove_Func001Func001Func003Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func001001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func001001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func001001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func001001003002002001(),Trig_KameMove_Func001Func001Func003Func001001003002002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func001001003002001(),Trig_KameMove_Func001Func001Func003Func001001003002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func001001003001(),Trig_KameMove_Func001Func001Func003Func001001003002())
endfunction
function Trig_KameMove_Func001Func001Func003Func001002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units12[0],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[0],true))*6.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_KameMove_Func001Func001Func003Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func002001003002002001(),Trig_KameMove_Func001Func001Func003Func002001003002002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func002001003002001(),Trig_KameMove_Func001Func001Func003Func002001003002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func002001003001(),Trig_KameMove_Func001Func001Func003Func002001003002())
endfunction
function Trig_KameMove_Func001Func001Func003Func002002 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group03)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func001001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func001001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func001001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func001001003002002001(),Trig_KameMove_Func001Func001Func003Func003Func001001003002002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func001001003002001(),Trig_KameMove_Func001Func001Func003Func003Func001001003002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func001001003001(),Trig_KameMove_Func001Func001Func003Func003Func001001003002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func001002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units12[0],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[0],true))*8.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func002001003002002001(),Trig_KameMove_Func001Func001Func003Func003Func002001003002002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func002001003002001(),Trig_KameMove_Func001Func001Func003Func003Func002001003002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func002001003001(),Trig_KameMove_Func001Func001Func003Func003Func002001003002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func002002 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group03)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002002001(),Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002001(),Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func003Func003001003001(),Trig_KameMove_Func001Func001Func003Func003Func003Func003001003002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func003002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units12[0],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[0],true))*10.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002002001(),Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002001(),Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func001Func003Func003Func003Func004001003001(),Trig_KameMove_Func001Func001Func003Func003Func003Func004001003002())
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003Func004002 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group03)
endfunction
function Trig_KameMove_Func001Func001Func003Func003Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04R',udg_units12[0])==5))then
return false
endif
return true
endfunction
function Trig_KameMove_Func001Func001Func003Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04R',udg_units12[0])==4))then
return false
endif
return true
endfunction
function Trig_KameMove_Func001Func001Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04R',udg_units12[0])==3))then
return false
endif
return true
endfunction
function Trig_KameMove_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04R',udg_units12[0])==2))then
return false
endif
return true
endfunction
function Trig_KameMove_Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func002001003002002001(),Trig_KameMove_Func001Func002001003002002002())
endfunction
function Trig_KameMove_Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func002001003002001(),Trig_KameMove_Func001Func002001003002002())
endfunction
function Trig_KameMove_Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func002001003001(),Trig_KameMove_Func001Func002001003002())
endfunction
function Trig_KameMove_Func001Func002002 takes nothing returns nothing
call UnitDamageTargetBJ(udg_units12[0],GetEnumUnit(),(I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units12[0],true))*2.00),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_KameMove_Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_KameMove_Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_KameMove_Func001Func003001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units12[0]))==true)
endfunction
function Trig_KameMove_Func001Func003001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group03)==false)
endfunction
function Trig_KameMove_Func001Func003001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func003001003002002001(),Trig_KameMove_Func001Func003001003002002002())
endfunction
function Trig_KameMove_Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func003001003002001(),Trig_KameMove_Func001Func003001003002002())
endfunction
function Trig_KameMove_Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_KameMove_Func001Func003001003001(),Trig_KameMove_Func001Func003001003002())
endfunction
function Trig_KameMove_Func001Func003002 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group03)
endfunction
function Trig_KameMove_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04R',udg_units12[0])==1))then
return false
endif
return true
endfunction
function Trig_KameMove_Actions takes nothing returns nothing
if(Trig_KameMove_Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func002001003)),function Trig_KameMove_Func001Func002002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func003001003)),function Trig_KameMove_Func001Func003002)
else
if(Trig_KameMove_Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func001Func001001003)),function Trig_KameMove_Func001Func001Func001002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func001Func002001003)),function Trig_KameMove_Func001Func001Func002002)
else
if(Trig_KameMove_Func001Func001Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func001Func003Func001001003)),function Trig_KameMove_Func001Func001Func003Func001002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func001Func003Func002001003)),function Trig_KameMove_Func001Func001Func003Func002002)
else
if(Trig_KameMove_Func001Func001Func003Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(450.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func001Func003Func003Func001001003)),function Trig_KameMove_Func001Func001Func003Func003Func001002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(450.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func001Func003Func003Func002001003)),function Trig_KameMove_Func001Func001Func003Func003Func002002)
else
if(Trig_KameMove_Func001Func001Func003Func003Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func001Func003Func003Func003Func003001003)),function Trig_KameMove_Func001Func001Func003Func003Func003Func003002)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_units12[1]),Condition(function Trig_KameMove_Func001Func001Func003Func003Func003Func004001003)),function Trig_KameMove_Func001Func001Func003Func003Func003Func004002)
else
call DoNothing()
endif
endif
endif
endif
endif
set udg_locations06[2]=PolarProjectionBJ(GetUnitLoc(udg_units12[1]),6.00,udg_reals07[0])
call SetUnitPositionLocFacingBJ(udg_units12[1],udg_locations06[2],(udg_reals07[0]-180.00))
endfunction
function Trig_Learn_Skill_Earth_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A00L'))then
return false
endif
return true
endfunction
function Trig_Learn_Skill_Earth_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger325)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_EarthWave_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04T'))then
return false
endif
return true
endfunction
function Trig_EarthWave_Func002Func001Func003001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_EarthWave_Func002Func001Func003001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit26))==true)
endfunction
function Trig_EarthWave_Func002Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_EarthWave_Func002Func001Func003001003001(),Trig_EarthWave_Func002Func001Func003001003002())
endfunction
function Trig_EarthWave_Func002Func001Func003A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00V',GetOwningPlayer(udg_unit26),GetUnitLoc(udg_unit26),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A04S',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"shockwave",GetUnitLoc(GetEnumUnit()))
endfunction
function Trig_EarthWave_Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00L',udg_unit26)==2))then
return false
endif
return true
endfunction
function Trig_EarthWave_Func002Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_EarthWave_Func002Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit26))==true)
endfunction
function Trig_EarthWave_Func002Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_EarthWave_Func002Func002001003001(),Trig_EarthWave_Func002Func002001003002())
endfunction
function Trig_EarthWave_Func002Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h00V',GetOwningPlayer(udg_unit26),GetUnitLoc(udg_unit26),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"shockwave",GetUnitLoc(GetEnumUnit()))
endfunction
function Trig_EarthWave_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00L',udg_unit26)==1))then
return false
endif
return true
endfunction
function Trig_EarthWave_Actions takes nothing returns nothing
set udg_unit26=GetSpellAbilityUnit()
if(Trig_EarthWave_Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_unit26),Condition(function Trig_EarthWave_Func002Func002001003)),function Trig_EarthWave_Func002Func002A)
else
if(Trig_EarthWave_Func002Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(udg_unit26),Condition(function Trig_EarthWave_Func002Func001Func003001003)),function Trig_EarthWave_Func002Func001Func003A)
else
call DoNothing()
endif
endif
endfunction
function Trig_Bash_gold_learn_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A056'))then
return false
endif
return true
endfunction
function Trig_Bash_gold_learn_Actions takes nothing returns nothing
set udg_unit29=GetLearningUnit()
call EnableTrigger(udg_trigger327)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Bash_gold_after_kill_Conditions takes nothing returns boolean
if(not(GetKillingUnitBJ()==udg_unit29))then
return false
endif
return true
endfunction
function Trig_Bash_gold_after_kill_Func002Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A056',udg_unit29)==4))then
return false
endif
return true
endfunction
function Trig_Bash_gold_after_kill_Func002Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A056',udg_unit29)==3))then
return false
endif
return true
endfunction
function Trig_Bash_gold_after_kill_Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A056',udg_unit29)==2))then
return false
endif
return true
endfunction
function Trig_Bash_gold_after_kill_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A056',udg_unit29)==1))then
return false
endif
return true
endfunction
function Trig_Bash_gold_after_kill_Actions takes nothing returns nothing
call PlaySoundBJ(udg_sound27)
if(Trig_Bash_gold_after_kill_Func002C())then
set udg_real06=GetRandomReal(10.00,50.00)
call CreateTextTagUnitBJ((I2S((0+R2I(udg_real06)))+" +"),GetDyingUnit(),0,10,0.00,100,0.00,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),90.00,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call AdjustPlayerStateBJ(R2I(udg_real06),GetOwningPlayer(udg_unit29),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Bash_gold_after_kill_Func002Func001C())then
set udg_real06=GetRandomReal(50.00,100.00)
call CreateTextTagUnitBJ((I2S((0+R2I(udg_real06)))+" +"),GetDyingUnit(),0,10,100.00,100,0.00,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),90.00,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call AdjustPlayerStateBJ(R2I(udg_real06),GetOwningPlayer(udg_unit29),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Bash_gold_after_kill_Func002Func001Func001C())then
set udg_real06=GetRandomReal(100.00,200.00)
call CreateTextTagUnitBJ((I2S((0+R2I(udg_real06)))+" +"),GetDyingUnit(),0,10,100.00,100,0.00,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),90.00,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call AdjustPlayerStateBJ(R2I(udg_real06),GetOwningPlayer(udg_unit29),PLAYER_STATE_RESOURCE_GOLD)
else
if(Trig_Bash_gold_after_kill_Func002Func001Func001Func001C())then
set udg_real06=GetRandomReal(200.00,400.00)
call CreateTextTagUnitBJ((I2S((0+R2I(udg_real06)))+" +"),GetDyingUnit(),0,10,0.00,100,100.00,0)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),90.00,90)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),2.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call AdjustPlayerStateBJ(R2I(udg_real06),GetOwningPlayer(udg_unit29),PLAYER_STATE_RESOURCE_GOLD)
else
call DoNothing()
endif
endif
endif
endif
endfunction
function Trig_Cloud_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A055'))then
return false
endif
return true
endfunction
function Trig_Cloud_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units13[0]=GetSpellAbilityUnit()
call CreateNUnitsAtLoc(1,'h01D',GetOwningPlayer(udg_units13[0]),GetSpellTargetLoc(),bj_UNIT_FACING)
set udg_units13[1]=GetLastCreatedUnit()
call EnableTrigger(udg_trigger329)
call TriggerSleepAction(15.00)
call DisableTrigger(udg_trigger329)
call KillUnit(udg_units13[1])
set udg_units13[0]=null
set udg_units13[1]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units13[0]))==true)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003002001(),Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003002002())
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003001(),Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units13[0],GetEnumUnit(),I2R((GetHeroLevel(udg_units13[0])*30)),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A055',udg_units13[0])==5))then
return false
endif
return true
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units13[0]))==true)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003002001(),Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003002002())
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003001(),Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units13[0],GetEnumUnit(),300.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A055',udg_units13[0])==4))then
return false
endif
return true
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units13[0]))==true)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func001Func001Func002001003002001(),Trig_Cloud_Damage_Func001Func001Func001Func002001003002002())
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func001Func001Func002001003001(),Trig_Cloud_Damage_Func001Func001Func001Func002001003002())
endfunction
function Trig_Cloud_Damage_Func001Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units13[0],GetEnumUnit(),250.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
endfunction
function Trig_Cloud_Damage_Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A055',udg_units13[0])==3))then
return false
endif
return true
endfunction
function Trig_Cloud_Damage_Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Cloud_Damage_Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Cloud_Damage_Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units13[0]))==true)
endfunction
function Trig_Cloud_Damage_Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func001Func002001003002001(),Trig_Cloud_Damage_Func001Func001Func002001003002002())
endfunction
function Trig_Cloud_Damage_Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func001Func002001003001(),Trig_Cloud_Damage_Func001Func001Func002001003002())
endfunction
function Trig_Cloud_Damage_Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units13[0],GetEnumUnit(),150.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
endfunction
function Trig_Cloud_Damage_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A055',udg_units13[0])==2))then
return false
endif
return true
endfunction
function Trig_Cloud_Damage_Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Cloud_Damage_Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Cloud_Damage_Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units13[0]))==true)
endfunction
function Trig_Cloud_Damage_Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func002001003002001(),Trig_Cloud_Damage_Func001Func002001003002002())
endfunction
function Trig_Cloud_Damage_Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Cloud_Damage_Func001Func002001003001(),Trig_Cloud_Damage_Func001Func002001003002())
endfunction
function Trig_Cloud_Damage_Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units13[0],GetEnumUnit(),100.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
endfunction
function Trig_Cloud_Damage_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A055',udg_units13[0])==1))then
return false
endif
return true
endfunction
function Trig_Cloud_Damage_Actions takes nothing returns nothing
if(Trig_Cloud_Damage_Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units13[1]),Condition(function Trig_Cloud_Damage_Func001Func002001003)),function Trig_Cloud_Damage_Func001Func002A)
else
if(Trig_Cloud_Damage_Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(700.00,GetUnitLoc(udg_units13[1]),Condition(function Trig_Cloud_Damage_Func001Func001Func002001003)),function Trig_Cloud_Damage_Func001Func001Func002A)
else
if(Trig_Cloud_Damage_Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(800.00,GetUnitLoc(udg_units13[1]),Condition(function Trig_Cloud_Damage_Func001Func001Func001Func002001003)),function Trig_Cloud_Damage_Func001Func001Func001Func002A)
else
if(Trig_Cloud_Damage_Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(800.00,GetUnitLoc(udg_units13[1]),Condition(function Trig_Cloud_Damage_Func001Func001Func001Func001Func002001003)),function Trig_Cloud_Damage_Func001Func001Func001Func001Func002A)
else
if(Trig_Cloud_Damage_Func001Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(800.00,GetUnitLoc(udg_units13[1]),Condition(function Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002001003)),function Trig_Cloud_Damage_Func001Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Fost_Slice_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05A'))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Func010Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01G',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A059',GetLastCreatedUnit(),5)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"frostnova",GetEnumUnit())
endfunction
function Trig_Fost_Slice_Func010Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==5))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Func010Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01G',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A059',GetLastCreatedUnit(),4)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"frostnova",GetEnumUnit())
endfunction
function Trig_Fost_Slice_Func010Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==4))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Func010Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01G',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A059',GetLastCreatedUnit(),3)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"frostnova",GetEnumUnit())
endfunction
function Trig_Fost_Slice_Func010Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==3))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Func010Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01G',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A059',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"frostnova",GetEnumUnit())
endfunction
function Trig_Fost_Slice_Func010Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==2))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Func010Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01G',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"frostnova",GetEnumUnit())
endfunction
function Trig_Fost_Slice_Func010C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==1))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Func012A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Fost_Slice_Func013A takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
endfunction
function Trig_Fost_Slice_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit30=GetSpellAbilityUnit()
set udg_locations07[0]=GetUnitLoc(udg_unit30)
set udg_locations07[1]=GetSpellTargetLoc()
set udg_reals08[0]=AngleBetweenPoints(udg_locations07[0],udg_locations07[1])
set udg_reals08[1]=30.00
call EnableTrigger(udg_trigger331)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger331)
if(Trig_Fost_Slice_Func010C())then
call ForGroupBJ(udg_group04,function Trig_Fost_Slice_Func010Func002A)
else
if(Trig_Fost_Slice_Func010Func001C())then
call ForGroupBJ(udg_group04,function Trig_Fost_Slice_Func010Func001Func002A)
else
if(Trig_Fost_Slice_Func010Func001Func001C())then
call ForGroupBJ(udg_group04,function Trig_Fost_Slice_Func010Func001Func001Func002A)
else
if(Trig_Fost_Slice_Func010Func001Func001Func001C())then
call ForGroupBJ(udg_group04,function Trig_Fost_Slice_Func010Func001Func001Func001Func002A)
else
if(Trig_Fost_Slice_Func010Func001Func001Func001Func001C())then
call ForGroupBJ(udg_group04,function Trig_Fost_Slice_Func010Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
call TriggerSleepAction(0.50)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(udg_unit30),'h01E'),function Trig_Fost_Slice_Func012A)
call ForGroupBJ(udg_group04,function Trig_Fost_Slice_Func013A)
call GroupClear(udg_group04)
call RemoveLocation(udg_locations07[0])
call RemoveLocation(udg_locations07[1])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit30))==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group04)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002002001(),Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002001(),Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003001(),Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01E',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call PauseUnitBJ(true,GetEnumUnit())
call GroupAddUnitSimple(GetEnumUnit(),udg_group04)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==5))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit30))==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group04)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002002001(),Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002001(),Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003001(),Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01E',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call PauseUnitBJ(true,GetEnumUnit())
call GroupAddUnitSimple(GetEnumUnit(),udg_group04)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==4))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit30))==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group04)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002002001(),Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002001(),Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func001Func002001003001(),Trig_Fost_Slice_Move_Func004Func001Func001Func002001003002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01E',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call PauseUnitBJ(true,GetEnumUnit())
call GroupAddUnitSimple(GetEnumUnit(),udg_group04)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==3))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func002001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit30))==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group04)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func002001003002002001(),Trig_Fost_Slice_Move_Func004Func001Func002001003002002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func002001003002001(),Trig_Fost_Slice_Move_Func004Func001Func002001003002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func001Func002001003001(),Trig_Fost_Slice_Move_Func004Func001Func002001003002())
endfunction
function Trig_Fost_Slice_Move_Func004Func001Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01E',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call PauseUnitBJ(true,GetEnumUnit())
call GroupAddUnitSimple(GetEnumUnit(),udg_group04)
endfunction
function Trig_Fost_Slice_Move_Func004Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==2))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Move_Func004Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func002001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit30))==true)
endfunction
function Trig_Fost_Slice_Move_Func004Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group04)==false)
endfunction
function Trig_Fost_Slice_Move_Func004Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func002001003002002001(),Trig_Fost_Slice_Move_Func004Func002001003002002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func002001003002001(),Trig_Fost_Slice_Move_Func004Func002001003002002())
endfunction
function Trig_Fost_Slice_Move_Func004Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Fost_Slice_Move_Func004Func002001003001(),Trig_Fost_Slice_Move_Func004Func002001003002())
endfunction
function Trig_Fost_Slice_Move_Func004Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01E',GetOwningPlayer(udg_unit30),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call PauseUnitBJ(true,GetEnumUnit())
call GroupAddUnitSimple(GetEnumUnit(),udg_group04)
endfunction
function Trig_Fost_Slice_Move_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05A',udg_unit30)==1))then
return false
endif
return true
endfunction
function Trig_Fost_Slice_Move_Actions takes nothing returns nothing
set udg_reals08[1]=(udg_reals08[1]+30.00)
call CreateNUnitsAtLoc(1,'h01I',GetOwningPlayer(udg_unit30),PolarProjectionBJ(GetUnitLoc(udg_unit30),udg_reals08[1],udg_reals08[0]),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
if(Trig_Fost_Slice_Move_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,PolarProjectionBJ(GetUnitLoc(udg_unit30),udg_reals08[1],udg_reals08[0]),Condition(function Trig_Fost_Slice_Move_Func004Func002001003)),function Trig_Fost_Slice_Move_Func004Func002A)
else
if(Trig_Fost_Slice_Move_Func004Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,PolarProjectionBJ(GetUnitLoc(udg_unit30),udg_reals08[1],udg_reals08[0]),Condition(function Trig_Fost_Slice_Move_Func004Func001Func002001003)),function Trig_Fost_Slice_Move_Func004Func001Func002A)
else
if(Trig_Fost_Slice_Move_Func004Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,PolarProjectionBJ(GetUnitLoc(udg_unit30),udg_reals08[1],udg_reals08[0]),Condition(function Trig_Fost_Slice_Move_Func004Func001Func001Func002001003)),function Trig_Fost_Slice_Move_Func004Func001Func001Func002A)
else
if(Trig_Fost_Slice_Move_Func004Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,PolarProjectionBJ(GetUnitLoc(udg_unit30),udg_reals08[1],udg_reals08[0]),Condition(function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002001003)),function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func002A)
else
if(Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,PolarProjectionBJ(GetUnitLoc(udg_unit30),udg_reals08[1],udg_reals08[0]),Condition(function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002001003)),function Trig_Fost_Slice_Move_Func004Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Fost_Slap_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05B'))then
return false
endif
return true
endfunction
function Trig_Fost_Slap_Func010Func001Func001Func001Func001Func003A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Fost_Slap_Func010Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==5))then
return false
endif
return true
endfunction
function Trig_Fost_Slap_Func010Func001Func001Func001Func003A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Fost_Slap_Func010Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==4))then
return false
endif
return true
endfunction
function Trig_Fost_Slap_Func010Func001Func001Func003A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Fost_Slap_Func010Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==3))then
return false
endif
return true
endfunction
function Trig_Fost_Slap_Func010Func001Func003A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Fost_Slap_Func010Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==2))then
return false
endif
return true
endfunction
function Trig_Fost_Slap_Func010Func003A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Fost_Slap_Func010C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==1))then
return false
endif
return true
endfunction
function Trig_Fost_Slap_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units14[0]=GetSpellAbilityUnit()
set udg_units14[1]=GetSpellTargetUnit()
set udg_locations08[0]=GetUnitLoc(udg_units14[0])
set udg_locations08[1]=GetUnitLoc(udg_units14[1])
set udg_reals09[0]=AngleBetweenPoints(udg_locations08[0],udg_locations08[1])
call CreateNUnitsAtLoc(1,'h01F',GetOwningPlayer(udg_units14[0]),PolarProjectionBJ(udg_locations08[0],80.00,udg_reals09[0]),udg_reals09[0])
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",udg_units14[1])
call EnableTrigger(udg_trigger333)
if(Trig_Fost_Slap_Func010C())then
call TriggerSleepAction(5.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('h01F'),function Trig_Fost_Slap_Func010Func003A)
call DisableTrigger(udg_trigger333)
else
if(Trig_Fost_Slap_Func010Func001C())then
call TriggerSleepAction(7.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('h01F'),function Trig_Fost_Slap_Func010Func001Func003A)
call DisableTrigger(udg_trigger333)
else
if(Trig_Fost_Slap_Func010Func001Func001C())then
call TriggerSleepAction(9.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('h01F'),function Trig_Fost_Slap_Func010Func001Func001Func003A)
call DisableTrigger(udg_trigger333)
else
if(Trig_Fost_Slap_Func010Func001Func001Func001C())then
call TriggerSleepAction(11.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('h01F'),function Trig_Fost_Slap_Func010Func001Func001Func001Func003A)
call DisableTrigger(udg_trigger333)
else
if(Trig_Fost_Slap_Func010Func001Func001Func001Func001C())then
call TriggerSleepAction(13.00)
call ForGroupBJ(GetUnitsOfTypeIdAll('h01F'),function Trig_Fost_Slap_Func010Func001Func001Func001Func001Func003A)
call DisableTrigger(udg_trigger333)
else
call DoNothing()
endif
endif
endif
endif
endif
call RemoveLocation(udg_locations08[0])
call RemoveLocation(udg_locations08[1])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_SlapDamage_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='h01F'))then
return false
endif
return true
endfunction
function Trig_SlapDamage_Func001002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SlapDamage_Func001002001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_SlapDamage_Func001002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[0]))==true)
endfunction
function Trig_SlapDamage_Func001002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func001002001003002001(),Trig_SlapDamage_Func001002001003002002())
endfunction
function Trig_SlapDamage_Func001002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func001002001003001(),Trig_SlapDamage_Func001002001003002())
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[0]))==true)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003002001(),Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003002002())
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003001(),Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003002())
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func001Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units14[0],GetEnumUnit(),2500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==5))then
return false
endif
return true
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[0]))==true)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func001Func001Func001Func003001003002001(),Trig_SlapDamage_Func007Func001Func001Func001Func003001003002002())
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func001Func001Func001Func003001003001(),Trig_SlapDamage_Func007Func001Func001Func001Func003001003002())
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units14[0],GetEnumUnit(),1500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==4))then
return false
endif
return true
endfunction
function Trig_SlapDamage_Func007Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[0]))==true)
endfunction
function Trig_SlapDamage_Func007Func001Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func001Func001Func003001003002001(),Trig_SlapDamage_Func007Func001Func001Func003001003002002())
endfunction
function Trig_SlapDamage_Func007Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func001Func001Func003001003001(),Trig_SlapDamage_Func007Func001Func001Func003001003002())
endfunction
function Trig_SlapDamage_Func007Func001Func001Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units14[0],GetEnumUnit(),1000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_SlapDamage_Func007Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==3))then
return false
endif
return true
endfunction
function Trig_SlapDamage_Func007Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_SlapDamage_Func007Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SlapDamage_Func007Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[0]))==true)
endfunction
function Trig_SlapDamage_Func007Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func001Func003001003002001(),Trig_SlapDamage_Func007Func001Func003001003002002())
endfunction
function Trig_SlapDamage_Func007Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func001Func003001003001(),Trig_SlapDamage_Func007Func001Func003001003002())
endfunction
function Trig_SlapDamage_Func007Func001Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units14[0],GetEnumUnit(),500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_SlapDamage_Func007Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==2))then
return false
endif
return true
endfunction
function Trig_SlapDamage_Func007Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_SlapDamage_Func007Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SlapDamage_Func007Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[0]))==true)
endfunction
function Trig_SlapDamage_Func007Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func003001003002001(),Trig_SlapDamage_Func007Func003001003002002())
endfunction
function Trig_SlapDamage_Func007Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func007Func003001003001(),Trig_SlapDamage_Func007Func003001003002())
endfunction
function Trig_SlapDamage_Func007Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units14[0],GetEnumUnit(),250.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_SlapDamage_Func007C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05B',udg_units14[0])==1))then
return false
endif
return true
endfunction
function Trig_SlapDamage_Func009Func006001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_SlapDamage_Func009Func006001001003002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_SlapDamage_Func009Func006001001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units14[0]))==true)
endfunction
function Trig_SlapDamage_Func009Func006001001003002002002 takes nothing returns boolean
return(GetFilterUnit()!=GetAttackedUnitBJ())
endfunction
function Trig_SlapDamage_Func009Func006001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func009Func006001001003002002001(),Trig_SlapDamage_Func009Func006001001003002002002())
endfunction
function Trig_SlapDamage_Func009Func006001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func009Func006001001003002001(),Trig_SlapDamage_Func009Func006001001003002002())
endfunction
function Trig_SlapDamage_Func009Func006001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_SlapDamage_Func009Func006001001003001(),Trig_SlapDamage_Func009Func006001001003002())
endfunction
function Trig_SlapDamage_Func009C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SlapDamage_Func009Func006001001003)))>=1))then
return false
endif
return true
endfunction
function Trig_SlapDamage_Actions takes nothing returns nothing
set udg_units14[2]=GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SlapDamage_Func001002001003)))
set udg_locations08[2]=GetUnitLoc(GetAttackedUnitBJ())
set udg_locations08[3]=GetUnitLoc(udg_units14[2])
set udg_reals09[1]=AngleBetweenPoints(udg_locations08[2],udg_locations08[3])
call AddSpecialEffectLocBJ(GetUnitLoc(GetAttackedUnitBJ()),"Abilities\\Spells\\Undead\\FrostNova\\FrostNovaTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Trig_SlapDamage_Func007C())then
call UnitDamageTargetBJ(udg_units14[0],GetAttackedUnitBJ(),500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_COLD)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SlapDamage_Func007Func003001003)),function Trig_SlapDamage_Func007Func003A)
else
if(Trig_SlapDamage_Func007Func001C())then
call UnitDamageTargetBJ(udg_units14[0],GetAttackedUnitBJ(),1000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_COLD)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SlapDamage_Func007Func001Func003001003)),function Trig_SlapDamage_Func007Func001Func003A)
else
if(Trig_SlapDamage_Func007Func001Func001C())then
call UnitDamageTargetBJ(udg_units14[0],GetAttackedUnitBJ(),2000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_COLD)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SlapDamage_Func007Func001Func001Func003001003)),function Trig_SlapDamage_Func007Func001Func001Func003A)
else
if(Trig_SlapDamage_Func007Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units14[0],GetAttackedUnitBJ(),3000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_COLD)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SlapDamage_Func007Func001Func001Func001Func003001003)),function Trig_SlapDamage_Func007Func001Func001Func001Func003A)
else
if(Trig_SlapDamage_Func007Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units14[0],GetAttackedUnitBJ(),5000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_COLD)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_SlapDamage_Func007Func001Func001Func001Func001Func003001003)),function Trig_SlapDamage_Func007Func001Func001Func001Func001Func003A)
else
call DoNothing()
endif
endif
endif
endif
endif
call KillUnit(GetAttacker())
if(Trig_SlapDamage_Func009C())then
call CreateNUnitsAtLoc(1,'h01F',GetOwningPlayer(udg_units14[0]),PolarProjectionBJ(GetUnitLoc(GetAttackedUnitBJ()),80.00,udg_reals09[1]),udg_reals09[1])
call IssueTargetOrderBJ(GetLastCreatedUnit(),"attack",udg_units14[2])
else
set udg_units14[1]=null
set udg_units14[2]=null
set udg_units14[0]=null
endif
endfunction
function Trig_SnowFall_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05C'))then
return false
endif
return true
endfunction
function Trig_SnowFall_Func008Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05C',udg_units15[0])==2))then
return false
endif
return true
endfunction
function Trig_SnowFall_Func008C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05C',udg_units15[0])==1))then
return false
endif
return true
endfunction
function Trig_SnowFall_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units15[0]=GetSpellAbilityUnit()
set udg_locations09[0]=GetSpellTargetLoc()
call AddWeatherEffectSaveLast(RectFromCenterSizeBJ(udg_locations09[0],600.00,600.00),'SNhs')
call EnableWeatherEffect(GetLastCreatedWeatherEffect(),true)
set udg_weathereffects01[0]=GetLastCreatedWeatherEffect()
call TriggerSleepAction(2.00)
if(Trig_SnowFall_Func008C())then
call CreateNUnitsAtLoc(1,'h01H',GetOwningPlayer(udg_units15[0]),udg_locations09[0],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(15.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"starfall")
call TriggerSleepAction(20.00)
call EnableWeatherEffect(udg_weathereffects01[0],false)
else
if(Trig_SnowFall_Func008Func001C())then
call CreateNUnitsAtLoc(1,'h01H',GetOwningPlayer(udg_units15[0]),udg_locations09[0],bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A05D',GetLastCreatedUnit(),2)
call UnitApplyTimedLifeBJ(15.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"starfall")
call TriggerSleepAction(20.00)
call EnableWeatherEffect(udg_weathereffects01[0],false)
else
call DoNothing()
endif
endif
call RemoveLocation(udg_locations09[0])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Xich_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05K'))then
return false
endif
return true
endfunction
function Trig_Xich_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit31=GetSpellAbilityUnit()
set udg_locations10[0]=GetUnitLoc(udg_unit31)
set udg_locations10[1]=GetSpellTargetLoc()
set udg_reals10[0]=AngleBetweenPoints(udg_locations10[0],udg_locations10[1])
set udg_reals10[1]=1.00
set udg_integer15=0
call EnableTrigger(udg_trigger336)
call EnableTrigger(udg_trigger337)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups01[1])==false)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002002001(),Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002002002())
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002001(),Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002002())
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003001(),Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002A takes nothing returns nothing
call PlaySoundBJ(udg_sound30)
call SetSoundVolumeBJ(GetLastPlayedSound(),100)
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Objects\\Spawnmodels\\Orc\\Orcblood\\HeroShadowHunterBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call GroupAddUnitSimple(GetEnumUnit(),udg_groups01[1])
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==5))then
return false
endif
return true
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups01[1])==false)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func001Func001Func002001003002002001(),Trig_Xich_Move_Func004Func001Func001Func001Func002001003002002002())
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func001Func001Func002001003002001(),Trig_Xich_Move_Func004Func001Func001Func001Func002001003002002())
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func001Func001Func002001003001(),Trig_Xich_Move_Func004Func001Func001Func001Func002001003002())
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001Func002A takes nothing returns nothing
call PlaySoundBJ(udg_sound30)
call SetSoundVolumeBJ(GetLastPlayedSound(),100)
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Objects\\Spawnmodels\\Orc\\Orcblood\\HeroShadowHunterBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call GroupAddUnitSimple(GetEnumUnit(),udg_groups01[1])
endfunction
function Trig_Xich_Move_Func004Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==4))then
return false
endif
return true
endfunction
function Trig_Xich_Move_Func004Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups01[1])==false)
endfunction
function Trig_Xich_Move_Func004Func001Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func001Func002001003002002001(),Trig_Xich_Move_Func004Func001Func001Func002001003002002002())
endfunction
function Trig_Xich_Move_Func004Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func001Func002001003002001(),Trig_Xich_Move_Func004Func001Func001Func002001003002002())
endfunction
function Trig_Xich_Move_Func004Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func001Func002001003001(),Trig_Xich_Move_Func004Func001Func001Func002001003002())
endfunction
function Trig_Xich_Move_Func004Func001Func001Func002A takes nothing returns nothing
call PlaySoundBJ(udg_sound30)
call SetSoundVolumeBJ(GetLastPlayedSound(),100)
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Objects\\Spawnmodels\\Orc\\Orcblood\\HeroShadowHunterBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call GroupAddUnitSimple(GetEnumUnit(),udg_groups01[1])
endfunction
function Trig_Xich_Move_Func004Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==3))then
return false
endif
return true
endfunction
function Trig_Xich_Move_Func004Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Move_Func004Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Move_Func004Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Move_Func004Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups01[1])==false)
endfunction
function Trig_Xich_Move_Func004Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func002001003002002001(),Trig_Xich_Move_Func004Func001Func002001003002002002())
endfunction
function Trig_Xich_Move_Func004Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func002001003002001(),Trig_Xich_Move_Func004Func001Func002001003002002())
endfunction
function Trig_Xich_Move_Func004Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func001Func002001003001(),Trig_Xich_Move_Func004Func001Func002001003002())
endfunction
function Trig_Xich_Move_Func004Func001Func002A takes nothing returns nothing
call PlaySoundBJ(udg_sound30)
call SetSoundVolumeBJ(GetLastPlayedSound(),100)
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Objects\\Spawnmodels\\Orc\\Orcblood\\HeroShadowHunterBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call GroupAddUnitSimple(GetEnumUnit(),udg_groups01[1])
endfunction
function Trig_Xich_Move_Func004Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==2))then
return false
endif
return true
endfunction
function Trig_Xich_Move_Func004Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Move_Func004Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Move_Func004Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Move_Func004Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups01[1])==false)
endfunction
function Trig_Xich_Move_Func004Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func002001003002002001(),Trig_Xich_Move_Func004Func002001003002002002())
endfunction
function Trig_Xich_Move_Func004Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func002001003002001(),Trig_Xich_Move_Func004Func002001003002002())
endfunction
function Trig_Xich_Move_Func004Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Move_Func004Func002001003001(),Trig_Xich_Move_Func004Func002001003002())
endfunction
function Trig_Xich_Move_Func004Func002A takes nothing returns nothing
call PlaySoundBJ(udg_sound30)
call SetSoundVolumeBJ(GetLastPlayedSound(),100)
call AddSpecialEffectTargetUnitBJ("chest",GetEnumUnit(),"Objects\\Spawnmodels\\Orc\\Orcblood\\HeroShadowHunterBlood.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call GroupAddUnitSimple(GetEnumUnit(),udg_groups01[1])
endfunction
function Trig_Xich_Move_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==1))then
return false
endif
return true
endfunction
function Trig_Xich_Move_Actions takes nothing returns nothing
set udg_reals10[1]=(udg_reals10[1]+20.00)
set udg_locations10[2]=PolarProjectionBJ(udg_locations10[0],udg_reals10[1],udg_reals10[0])
call CreateNUnitsAtLoc(1,'h01J',GetOwningPlayer(udg_unit31),udg_locations10[2],udg_reals10[0])
if(Trig_Xich_Move_Func004C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_Xich_Move_Func004Func002001003)),function Trig_Xich_Move_Func004Func002A)
else
if(Trig_Xich_Move_Func004Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(125.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_Xich_Move_Func004Func001Func002001003)),function Trig_Xich_Move_Func004Func001Func002A)
else
if(Trig_Xich_Move_Func004Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(150.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_Xich_Move_Func004Func001Func001Func002001003)),function Trig_Xich_Move_Func004Func001Func001Func002A)
else
if(Trig_Xich_Move_Func004Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(175.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_Xich_Move_Func004Func001Func001Func001Func002001003)),function Trig_Xich_Move_Func004Func001Func001Func001Func002A)
else
if(Trig_Xich_Move_Func004Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(200.00,GetUnitLoc(GetLastCreatedUnit()),Condition(function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002001003)),function Trig_Xich_Move_Func004Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
set udg_integer15=(udg_integer15+1)
call RemoveLocation(udg_locations10[2])
set udg_units16[udg_integer15]=GetLastCreatedUnit()
endfunction
function Trig_Test_1_Copy_Func001C takes nothing returns boolean
if(not(DistanceBetweenPoints(GetUnitLoc(udg_units16[udg_integer15]),udg_locations10[1])<=20.00))then
return false
endif
return true
endfunction
function Trig_Test_1_Copy_Actions takes nothing returns nothing
if(Trig_Test_1_Copy_Func001C())then
call TriggerExecute(udg_trigger338)
call DisableTrigger(udg_trigger336)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Xich_Continue_1_Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Continue_1_Func001001003002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Continue_1_Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func001001003001(),Trig_Xich_Continue_1_Func001001003002())
endfunction
function Trig_Xich_Continue_1_Func001002 takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups01[0])
endfunction
function Trig_Xich_Continue_1_Func010C takes nothing returns boolean
if(not(DistanceBetweenPoints(udg_locations10[0],udg_locations10[1])<=500.00))then
return false
endif
return true
endfunction
function Trig_Xich_Continue_1_Func012002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Xich_Continue_1_Func014Func013001 takes nothing returns boolean
return(GetUnitDefaultFlyHeight(udg_unit32)<=30.00)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003002001(),Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003002002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003001(),Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit31,GetEnumUnit(),12000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==5))then
return false
endif
return true
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003002001(),Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003002002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003001(),Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit31,GetEnumUnit(),6000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==4))then
return false
endif
return true
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003002001(),Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003002002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003001(),Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit31,GetEnumUnit(),3000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==3))then
return false
endif
return true
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func001Func002001003002001(),Trig_Xich_Continue_1_Func014Func022Func001Func002001003002002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func001Func002001003001(),Trig_Xich_Continue_1_Func014Func022Func001Func002001003002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit31,GetEnumUnit(),1500.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==2))then
return false
endif
return true
endfunction
function Trig_Xich_Continue_1_Func014Func022Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit31))==true)
endfunction
function Trig_Xich_Continue_1_Func014Func022Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func002001003002001(),Trig_Xich_Continue_1_Func014Func022Func002001003002002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Xich_Continue_1_Func014Func022Func002001003001(),Trig_Xich_Continue_1_Func014Func022Func002001003002())
endfunction
function Trig_Xich_Continue_1_Func014Func022Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit31,GetEnumUnit(),500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Xich_Continue_1_Func014Func022C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05K',udg_unit31)==1))then
return false
endif
return true
endfunction
function Trig_Xich_Continue_1_Func014Func023001 takes nothing returns boolean
return(DistanceBetweenPoints(GetUnitLoc(udg_unit32),udg_locations10[3])>=600.00)
endfunction
function Trig_Xich_Continue_1_Func014Func023002 takes nothing returns boolean
return(IsUnitType(udg_unit32,UNIT_TYPE_FLYING)==false)
endfunction
function Trig_Xich_Continue_1_Func014C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Xich_Continue_1_Func014Func023001(),Trig_Xich_Continue_1_Func014Func023002()))then
return false
endif
return true
endfunction
function Trig_Xich_Continue_1_Func015002 takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Xich_Continue_1_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(100.00,GetUnitLoc(udg_units16[udg_integer15]),Condition(function Trig_Xich_Continue_1_Func001001003)),function Trig_Xich_Continue_1_Func001002)
set udg_unit32=GroupPickRandomUnit(udg_groups01[0])
call SetUnitInvulnerable(udg_unit32,true)
set udg_locations10[3]=GetUnitLoc(udg_unit32)
set udg_reals10[2]=AngleBetweenPoints(udg_locations10[0],udg_locations10[3])
call SetUnitPathing(udg_unit32,false)
call EnableTrigger(udg_trigger340)
call DisableTrigger(udg_trigger336)
call EnableTrigger(udg_trigger339)
if(Trig_Xich_Continue_1_Func010C())then
call TriggerSleepAction((DistanceBetweenPoints(udg_locations10[0],udg_locations10[1])/4500.00))
else
call TriggerSleepAction((DistanceBetweenPoints(udg_locations10[0],udg_locations10[1])/2600.00))
endif
call DisableTrigger(udg_trigger339)
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(udg_unit31),'h01J'),function Trig_Xich_Continue_1_Func012002)
call DisableTrigger(udg_trigger340)
if(Trig_Xich_Continue_1_Func014C())then
call SelectUnitRemoveForPlayer(udg_unit32,GetOwningPlayer(udg_unit32))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit32),"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call EnableTrigger(udg_trigger341)
call UnitAddAbilityBJ('Amrf',udg_unit32)
call SetUnitFlyHeightBJ(udg_unit32,5000.00,2000.00)
call TriggerSleepAction(((DistanceBetweenPoints(udg_locations10[0],udg_locations10[1])/1500.00)/2.00))
call SetUnitFlyHeightBJ(udg_unit32,0.00,2500.00)
call TriggerSleepAction(((DistanceBetweenPoints(udg_locations10[0],udg_locations10[1])/1500.00)/2.00))
call DisableTrigger(udg_trigger341)
loop
exitwhen(Trig_Xich_Continue_1_Func014Func013001())
call TriggerSleepAction(RMaxBJ(bj_WAIT_FOR_COND_MIN_INTERVAL,0.10))
endloop
call TerrainDeformationRippleBJ(1.00,false,GetUnitLoc(udg_unit32),1024,1024,64,1,512)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit32),"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_unit32),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitInvulnerable(udg_unit32,false)
call UnitRemoveAbilityBJ('Amrf',udg_unit32)
call SelectUnitForPlayerSingle(udg_unit32,GetOwningPlayer(udg_unit32))
if(Trig_Xich_Continue_1_Func014Func022C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_unit32),Condition(function Trig_Xich_Continue_1_Func014Func022Func002001003)),function Trig_Xich_Continue_1_Func014Func022Func002A)
else
if(Trig_Xich_Continue_1_Func014Func022Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_unit32),Condition(function Trig_Xich_Continue_1_Func014Func022Func001Func002001003)),function Trig_Xich_Continue_1_Func014Func022Func001Func002A)
else
if(Trig_Xich_Continue_1_Func014Func022Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_unit32),Condition(function Trig_Xich_Continue_1_Func014Func022Func001Func001Func002001003)),function Trig_Xich_Continue_1_Func014Func022Func001Func001Func002A)
else
if(Trig_Xich_Continue_1_Func014Func022Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_unit32),Condition(function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002001003)),function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func002A)
else
if(Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(700.00,GetUnitLoc(udg_unit32),Condition(function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002001003)),function Trig_Xich_Continue_1_Func014Func022Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
else
call SetUnitInvulnerable(udg_unit32,false)
call DoNothing()
endif
call ForGroupBJ(GetUnitsOfPlayerAndTypeId(GetOwningPlayer(udg_unit31),'h005'),function Trig_Xich_Continue_1_Func015002)
call TriggerSleepAction(0.01)
call GroupClear(udg_groups01[0])
call GroupClear(udg_groups01[1])
call SetUnitPathing(udg_unit32,true)
call RemoveLocation(udg_locations10[0])
call RemoveLocation(udg_locations10[1])
call RemoveLocation(udg_locations10[3])
call EnableTrigger(udg_trigger335)
endfunction
function Trig_Xich_ReMove_Actions takes nothing returns nothing
call RemoveUnit(udg_units16[udg_integer15])
set udg_integer15=(udg_integer15-1)
endfunction
function Trig_XuchUint_Actions takes nothing returns nothing
set udg_locations10[4]=PolarProjectionBJ(GetUnitLoc(udg_unit32),20.00,(udg_reals10[2]-180.00))
call SetUnitPositionLoc(udg_unit32,udg_locations10[4])
call RemoveLocation(udg_locations10[4])
endfunction
function Trig_XuchUint_Out_Actions takes nothing returns nothing
set udg_locations10[4]=PolarProjectionBJ(GetUnitLoc(udg_unit32),10.00,(udg_reals10[2]-0.00))
call SetUnitPositionLoc(udg_unit32,udg_locations10[4])
call RemoveLocation(udg_locations10[4])
endfunction
function Trig_Rock_Shot_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05I'))then
return false
endif
return true
endfunction
function Trig_Rock_Shot_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit33=GetSpellAbilityUnit()
call TriggerSleepAction(0.15)
call ConditionalTriggerExecute(udg_trigger343)
endfunction
function Trig_Rock_Fire_Func007C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05I',udg_unit33)<=5))then
return false
endif
return true
endfunction
function Trig_Rock_Fire_Func008A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01N',GetOwningPlayer(udg_unit33),GetUnitLoc(GetEnumUnit()),GetRandomDirectionDeg())
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group05)
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func001Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit33))==true)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group06)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002002001(),Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002001(),Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func001Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func001Func001001003001(),Trig_Rock_Fire_Func009Func001Func001Func001Func001001003002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func001Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit33,GetEnumUnit(),2000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)
call GroupAddUnitSimple(GetEnumUnit(),udg_group06)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05I',udg_unit33)==3))then
return false
endif
return true
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func002Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit33))==true)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group06)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002002001(),Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002001(),Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func002Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func002Func001001003001(),Trig_Rock_Fire_Func009Func001Func001Func002Func001001003002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func002Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit33,GetEnumUnit(),3500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)
call GroupAddUnitSimple(GetEnumUnit(),udg_group06)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05I',udg_unit33)==4))then
return false
endif
return true
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func003Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit33))==true)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group06)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002002001(),Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002001(),Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func003Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func003Func001001003001(),Trig_Rock_Fire_Func009Func001Func001Func003Func001001003002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func003Func001A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit33,GetEnumUnit(),7000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)
call GroupAddUnitSimple(GetEnumUnit(),udg_group06)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05I',udg_unit33)==5))then
return false
endif
return true
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func004001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func004001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit33))==true)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func004001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group06)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func004001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func004001003002002001(),Trig_Rock_Fire_Func009Func001Func001Func004001003002002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func004001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func004001003002001(),Trig_Rock_Fire_Func009Func001Func001Func004001003002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func001Func004001003001(),Trig_Rock_Fire_Func009Func001Func001Func004001003002())
endfunction
function Trig_Rock_Fire_Func009Func001Func001Func004A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit33,GetEnumUnit(),1000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)
call GroupAddUnitSimple(GetEnumUnit(),udg_group06)
endfunction
function Trig_Rock_Fire_Func009Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05I',udg_unit33)==2))then
return false
endif
return true
endfunction
function Trig_Rock_Fire_Func009Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func002001003002001 takes nothing returns boolean
return(IsUnitDeadBJ(GetFilterUnit())==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit33))==true)
endfunction
function Trig_Rock_Fire_Func009Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group06)==false)
endfunction
function Trig_Rock_Fire_Func009Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func002001003002002001(),Trig_Rock_Fire_Func009Func001Func002001003002002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func002001003002001(),Trig_Rock_Fire_Func009Func001Func002001003002002())
endfunction
function Trig_Rock_Fire_Func009Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Rock_Fire_Func009Func001Func002001003001(),Trig_Rock_Fire_Func009Func001Func002001003002())
endfunction
function Trig_Rock_Fire_Func009Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_unit33,GetEnumUnit(),500.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_FIRE)
call GroupAddUnitSimple(GetEnumUnit(),udg_group06)
endfunction
function Trig_Rock_Fire_Func009Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05I',udg_unit33)==1))then
return false
endif
return true
endfunction
function Trig_Rock_Fire_Func009A takes nothing returns nothing
if(Trig_Rock_Fire_Func009Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Rock_Fire_Func009Func001Func002001003)),function Trig_Rock_Fire_Func009Func001Func002A)
else
if(Trig_Rock_Fire_Func009Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Rock_Fire_Func009Func001Func001Func004001003)),function Trig_Rock_Fire_Func009Func001Func001Func004A)
else
if(Trig_Rock_Fire_Func009Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Rock_Fire_Func009Func001Func001Func001Func001001003)),function Trig_Rock_Fire_Func009Func001Func001Func001Func001A)
else
endif
if(Trig_Rock_Fire_Func009Func001Func001Func002C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Rock_Fire_Func009Func001Func001Func002Func001001003)),function Trig_Rock_Fire_Func009Func001Func001Func002Func001A)
else
endif
if(Trig_Rock_Fire_Func009Func001Func001Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Rock_Fire_Func009Func001Func001Func003Func001001003)),function Trig_Rock_Fire_Func009Func001Func001Func003Func001A)
else
endif
endif
endif
endfunction
function Trig_Rock_Fire_Func011A takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),true)
endfunction
function Trig_Rock_Fire_Func013A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h01O',GetOwningPlayer(udg_unit33),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group05)
endfunction
function Trig_Rock_Fire_Func015A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Rock_Fire_Actions takes nothing returns nothing
set udg_reals11[0]=0.00
set udg_reals11[1]=45.00
set udg_reals11[2]=60.00
set udg_reals11[3]=125.00
call TriggerSleepAction(0.10)
call CameraSetEQNoiseForPlayer(Player(0),20.00)
if(Trig_Rock_Fire_Func007C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=8
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h01M',GetOwningPlayer(udg_unit33),PolarProjectionBJ(GetUnitLoc(udg_unit33),300.00,udg_reals11[0]),GetRandomDirectionDeg())
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group05)
call CreateNUnitsAtLoc(1,'h01M',GetOwningPlayer(udg_unit33),PolarProjectionBJ(GetUnitLoc(udg_unit33),500.00,udg_reals11[1]),GetRandomDirectionDeg())
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group05)
set udg_reals11[0]=(udg_reals11[0]+45.00)
set udg_reals11[1]=(udg_reals11[1]+45.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call DoNothing()
endif
call ForGroupBJ(udg_group05,function Trig_Rock_Fire_Func008A)
call ForGroupBJ(udg_group05,function Trig_Rock_Fire_Func009A)
call TriggerSleepAction(0.50)
call ForGroupBJ(udg_group05,function Trig_Rock_Fire_Func011A)
call CameraClearNoiseForPlayer(Player(0))
call ForGroupBJ(udg_group05,function Trig_Rock_Fire_Func013A)
call TriggerSleepAction(6.00)
call ForGroupBJ(udg_group05,function Trig_Rock_Fire_Func015A)
call GroupClear(udg_group05)
call GroupClear(udg_group06)
call EnableTrigger(udg_trigger342)
endfunction
function Trig_Remove_Select_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetTriggerUnit())=='h01M'))then
return false
endif
return true
endfunction
function Trig_Remove_Select_Actions takes nothing returns nothing
call SelectUnitRemoveForPlayer(GetTriggerUnit(),GetTriggerPlayer())
endfunction
function Trig_Compo_2_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05R'))then
return false
endif
return true
endfunction
function Trig_Compo_2_Func007Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05R',udg_unit34)==5))then
return false
endif
return true
endfunction
function Trig_Compo_2_Func007Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05R',udg_unit34)==4))then
return false
endif
return true
endfunction
function Trig_Compo_2_Func007Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05R',udg_unit34)==3))then
return false
endif
return true
endfunction
function Trig_Compo_2_Func007Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05R',udg_unit34)==2))then
return false
endif
return true
endfunction
function Trig_Compo_2_Func007Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05R',udg_unit34)==1))then
return false
endif
return true
endfunction
function Trig_Compo_2_Func007A takes nothing returns nothing
if(Trig_Compo_2_Func007Func001C())then
call SetUnitAbilityLevelSwapped('A05J',GetEnumUnit(),1)
call IssuePointOrderLocBJ(GetEnumUnit(),"shockwave",PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),256,GetUnitFacing(GetEnumUnit())))
else
if(Trig_Compo_2_Func007Func001Func001C())then
call SetUnitAbilityLevelSwapped('A05J',GetEnumUnit(),2)
call IssuePointOrderLocBJ(GetEnumUnit(),"shockwave",PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),256,GetUnitFacing(GetEnumUnit())))
else
if(Trig_Compo_2_Func007Func001Func001Func001C())then
call SetUnitAbilityLevelSwapped('A05J',GetEnumUnit(),3)
call IssuePointOrderLocBJ(GetEnumUnit(),"shockwave",PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),256,GetUnitFacing(GetEnumUnit())))
else
if(Trig_Compo_2_Func007Func001Func001Func001Func001C())then
call SetUnitAbilityLevelSwapped('A05J',GetEnumUnit(),4)
call IssuePointOrderLocBJ(GetEnumUnit(),"shockwave",PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),256,GetUnitFacing(GetEnumUnit())))
else
if(Trig_Compo_2_Func007Func001Func001Func001Func001Func001C())then
call SetUnitAbilityLevelSwapped('A05J',GetEnumUnit(),5)
call IssuePointOrderLocBJ(GetEnumUnit(),"shockwave",PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),256,GetUnitFacing(GetEnumUnit())))
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Compo_2_Func009A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Compo_2_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit34=GetSpellAbilityUnit()
set udg_locations11[0]=GetUnitLoc(udg_unit34)
set udg_reals12[0]=0.00
set udg_reals12[1]=0.00
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=30
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h01P',GetOwningPlayer(udg_unit34),PolarProjectionBJ(udg_locations11[0],20.00,udg_reals12[1]),udg_reals12[1])
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups02[1])
set udg_reals12[1]=(udg_reals12[1]+12.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(udg_groups02[1],function Trig_Compo_2_Func007A)
call TriggerSleepAction(1.00)
call ForGroupBJ(udg_groups02[1],function Trig_Compo_2_Func009A)
call RemoveLocation(udg_locations11[0])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Learn_Wa_Tinh_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A05S'))then
return false
endif
return true
endfunction
function Trig_Learn_Wa_Tinh_Actions takes nothing returns nothing
set udg_unit35=GetLearningUnit()
call CreateNUnitsAtLoc(1,'h01Q',GetOwningPlayer(udg_unit35),GetUnitLoc(udg_unit35),bj_UNIT_FACING)
set udg_unit36=GetLastCreatedUnit()
call EnableTrigger(udg_trigger347)
call EnableTrigger(udg_trigger349)
call EnableTrigger(udg_trigger348)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Call_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05S'))then
return false
endif
return true
endfunction
function Trig_Call_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",udg_unit36,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.mdl")
call SetUnitPositionLoc(udg_unit36,GetUnitLoc(udg_unit35))
call PauseUnitBJ(false,udg_unit36)
endfunction
function Trig_Impro_Wa_Tinh_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A05S'))then
return false
endif
return true
endfunction
function Trig_Impro_Wa_Tinh_Func001Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05S',udg_unit35)==3))then
return false
endif
return true
endfunction
function Trig_Impro_Wa_Tinh_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05S',udg_unit35)==2))then
return false
endif
return true
endfunction
function Trig_Impro_Wa_Tinh_Actions takes nothing returns nothing
if(Trig_Impro_Wa_Tinh_Func001C())then
call UnitAddAbilityBJ('A05T',udg_unit36)
call UnitAddAbilityBJ('A05V',udg_unit36)
call SetUnitScalePercent(udg_unit36,110.00,110.00,110.00)
else
if(Trig_Impro_Wa_Tinh_Func001Func003C())then
call UnitAddAbilityBJ('A05U',udg_unit36)
call SetUnitAbilityLevelSwapped('A05V',udg_unit36,2)
call SetUnitScalePercent(udg_unit36,160.00,160.00,160.00)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endif
endfunction
function Trig_Wa_Move_Func001Func006001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Wa_Move_Func001Func006001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit36))==true)
endfunction
function Trig_Wa_Move_Func001Func006001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Wa_Move_Func001Func006001001003001(),Trig_Wa_Move_Func001Func006001001003002())
endfunction
function Trig_Wa_Move_Func001C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_unit36),Condition(function Trig_Wa_Move_Func001Func006001001003)))>=1))then
return false
endif
return true
endfunction
function Trig_Wa_Move_Actions takes nothing returns nothing
if(Trig_Wa_Move_Func001C())then
call EnableTrigger(udg_trigger351)
call EnableTrigger(udg_trigger352)
call TriggerExecute(udg_trigger350)
call DisableTrigger(GetTriggeringTrigger())
else
call IssuePointOrderLocBJ(udg_unit36,"move",GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_unit35),400.00,400.00)))
endif
endfunction
function Trig_Attack_Actions takes nothing returns nothing
call IssuePointOrderLocBJ(udg_unit36,"attack",GetUnitLoc(udg_unit35))
endfunction
function Trig_Test_Distance_Func001C takes nothing returns boolean
if(not(DistanceBetweenPoints(GetUnitLoc(udg_unit35),GetUnitLoc(udg_unit36))<=600.00))then
return false
endif
return true
endfunction
function Trig_Test_Distance_Actions takes nothing returns nothing
if(Trig_Test_Distance_Func001C())then
call TriggerExecute(udg_trigger350)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Wa_attack_Func002Func006001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Wa_attack_Func002Func006001001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit36))==true)
endfunction
function Trig_Wa_attack_Func002Func006001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Wa_attack_Func002Func006001001003001(),Trig_Wa_attack_Func002Func006001001003002())
endfunction
function Trig_Wa_attack_Func002C takes nothing returns boolean
if(not(CountUnitsInGroup(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_unit35),Condition(function Trig_Wa_attack_Func002Func006001001003)))<1))then
return false
endif
return true
endfunction
function Trig_Wa_attack_Actions takes nothing returns nothing
if(Trig_Wa_attack_Func002C())then
call EnableTrigger(udg_trigger349)
call EnableTrigger(udg_trigger351)
call DisableTrigger(udg_trigger352)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Grow_Up_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A05Y'))then
return false
endif
return true
endfunction
function Trig_Grow_Up_Func003Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==5))then
return false
endif
return true
endfunction
function Trig_Grow_Up_Func003Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==4))then
return false
endif
return true
endfunction
function Trig_Grow_Up_Func003Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==3))then
return false
endif
return true
endfunction
function Trig_Grow_Up_Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==2))then
return false
endif
return true
endfunction
function Trig_Grow_Up_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==1))then
return false
endif
return true
endfunction
function Trig_Grow_Up_Actions takes nothing returns nothing
set udg_unit38=GetLearningUnit()
call EnableTrigger(udg_trigger354)
if(Trig_Grow_Up_Func003C())then
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit38,bj_MODIFYMETHOD_ADD,25)
call SetUnitScalePercent(udg_unit38,75.00,75.00,75.00)
else
if(Trig_Grow_Up_Func003Func001C())then
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit38,bj_MODIFYMETHOD_ADD,50)
call SetUnitScalePercent(udg_unit38,100.00,100.00,100.00)
else
if(Trig_Grow_Up_Func003Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit38,bj_MODIFYMETHOD_ADD,100)
call SetUnitScalePercent(udg_unit38,125.00,125.00,125.00)
else
if(Trig_Grow_Up_Func003Func001Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit38,bj_MODIFYMETHOD_ADD,200)
call SetUnitScalePercent(udg_unit38,150.00,150.00,150.00)
else
if(Trig_Grow_Up_Func003Func001Func001Func001Func001C())then
call ModifyHeroStat(bj_HEROSTAT_AGI,udg_unit38,bj_MODIFYMETHOD_ADD,(20*GetHeroLevel(udg_unit38)))
call SetUnitScalePercent(udg_unit38,180.00,180.00,180.00)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Hero_Die_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetRevivingUnit())=='O00W'))then
return false
endif
return true
endfunction
function Trig_Hero_Die_Func001Func001Func001Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==5))then
return false
endif
return true
endfunction
function Trig_Hero_Die_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==4))then
return false
endif
return true
endfunction
function Trig_Hero_Die_Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==3))then
return false
endif
return true
endfunction
function Trig_Hero_Die_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==2))then
return false
endif
return true
endfunction
function Trig_Hero_Die_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A05Y',udg_unit38)==1))then
return false
endif
return true
endfunction
function Trig_Hero_Die_Actions takes nothing returns nothing
if(Trig_Hero_Die_Func001C())then
call SetUnitScalePercent(udg_unit38,75.00,75.00,75.00)
else
if(Trig_Hero_Die_Func001Func001C())then
call SetUnitScalePercent(udg_unit38,100.00,100.00,100.00)
else
if(Trig_Hero_Die_Func001Func001Func001C())then
call SetUnitScalePercent(udg_unit38,125.00,125.00,125.00)
else
if(Trig_Hero_Die_Func001Func001Func001Func001C())then
call SetUnitScalePercent(udg_unit38,150.00,150.00,150.00)
else
if(Trig_Hero_Die_Func001Func001Func001Func001Func002C())then
call SetUnitScalePercent(udg_unit38,180.00,180.00,180.00)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Lightning_Rain_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A067'))then
return false
endif
return true
endfunction
function Trig_Lightning_Rain_Func003Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A067',udg_units17[0])==5))then
return false
endif
return true
endfunction
function Trig_Lightning_Rain_Func003Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A067',udg_units17[0])==4))then
return false
endif
return true
endfunction
function Trig_Lightning_Rain_Func003Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A067',udg_units17[0])==3))then
return false
endif
return true
endfunction
function Trig_Lightning_Rain_Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A067',udg_units17[0])==2))then
return false
endif
return true
endfunction
function Trig_Lightning_Rain_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A067',udg_units17[0])==1))then
return false
endif
return true
endfunction
function Trig_Lightning_Rain_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units17[0]=GetSpellAbilityUnit()
if(Trig_Lightning_Rain_Func003C())then
call CreateNUnitsAtLoc(1,'h01S',GetOwningPlayer(udg_units17[0]),GetUnitLoc(udg_units17[0]),bj_UNIT_FACING)
set udg_units17[1]=GetLastCreatedUnit()
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"monsoon",GetUnitLoc(GetLastCreatedUnit()))
call TriggerSleepAction(15.00)
call RemoveUnit(udg_units17[1])
else
if(Trig_Lightning_Rain_Func003Func001C())then
call CreateNUnitsAtLoc(1,'h01S',GetOwningPlayer(udg_units17[0]),GetUnitLoc(udg_units17[0]),bj_UNIT_FACING)
set udg_units17[1]=GetLastCreatedUnit()
call SetUnitAbilityLevelSwapped('A068',GetLastCreatedUnit(),2)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"monsoon",GetUnitLoc(GetLastCreatedUnit()))
call TriggerSleepAction(15.00)
call RemoveUnit(udg_units17[1])
else
if(Trig_Lightning_Rain_Func003Func001Func001C())then
call CreateNUnitsAtLoc(1,'h01S',GetOwningPlayer(udg_units17[0]),GetUnitLoc(udg_units17[0]),bj_UNIT_FACING)
set udg_units17[1]=GetLastCreatedUnit()
call SetUnitAbilityLevelSwapped('A068',GetLastCreatedUnit(),3)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"monsoon",GetUnitLoc(GetLastCreatedUnit()))
call TriggerSleepAction(15.00)
call RemoveUnit(udg_units17[1])
else
if(Trig_Lightning_Rain_Func003Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h01S',GetOwningPlayer(udg_units17[0]),GetUnitLoc(udg_units17[0]),bj_UNIT_FACING)
set udg_units17[1]=GetLastCreatedUnit()
call SetUnitAbilityLevelSwapped('A068',GetLastCreatedUnit(),4)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"monsoon",GetUnitLoc(GetLastCreatedUnit()))
call TriggerSleepAction(15.00)
call RemoveUnit(udg_units17[1])
else
if(Trig_Lightning_Rain_Func003Func001Func001Func001Func001C())then
call CreateNUnitsAtLoc(1,'h01S',GetOwningPlayer(udg_units17[0]),GetUnitLoc(udg_units17[0]),bj_UNIT_FACING)
set udg_units17[1]=GetLastCreatedUnit()
call SetUnitAbilityLevelSwapped('A068',GetLastCreatedUnit(),5)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"monsoon",GetUnitLoc(GetLastCreatedUnit()))
call TriggerSleepAction(15.00)
call RemoveUnit(udg_units17[1])
else
call DoNothing()
endif
endif
endif
endif
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Time_to_Random_Func002C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='O002'))then
return false
endif
return true
endfunction
function Trig_Time_to_Random_Actions takes nothing returns nothing
set udg_real08=GetRandomReal(0,100.00)
if(Trig_Time_to_Random_Func002C())then
call ResetUnitAnimation(GetAttacker())
else
call DoNothing()
endif
endfunction
function Trig_Crosin_Strike_Func002C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'B00H')==true))then
return false
endif
return true
endfunction
function Trig_Crosin_Strike_Conditions takes nothing returns boolean
if(not Trig_Crosin_Strike_Func002C())then
return false
endif
return true
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003002001(),Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003002002())
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003001(),Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003002())
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("head",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),(500.00+I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),true))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A000',GetAttacker())==5)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func004002 takes nothing returns boolean
return(udg_real08<=30.00)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func004001(),Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func004002()))then
return false
endif
return true
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003002001(),Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003002002())
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003001(),Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003002())
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func003A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("head",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),400.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A000',GetAttacker())==4)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001Func004002 takes nothing returns boolean
return(udg_real08<=20.00)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func001Func001Func004001(),Trig_Crosin_Strike_Func001Func001Func001Func001Func004002()))then
return false
endif
return true
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func001Func003001003002001(),Trig_Crosin_Strike_Func001Func001Func001Func003001003002002())
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func001Func003001003001(),Trig_Crosin_Strike_Func001Func001Func001Func003001003002())
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func003A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("head",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),300.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A000',GetAttacker())==3)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001Func004002 takes nothing returns boolean
return(udg_real08<=15.00)
endfunction
function Trig_Crosin_Strike_Func001Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func001Func004001(),Trig_Crosin_Strike_Func001Func001Func001Func004002()))then
return false
endif
return true
endfunction
function Trig_Crosin_Strike_Func001Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Crosin_Strike_Func001Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Crosin_Strike_Func001Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Crosin_Strike_Func001Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func003001003002001(),Trig_Crosin_Strike_Func001Func001Func003001003002002())
endfunction
function Trig_Crosin_Strike_Func001Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func003001003001(),Trig_Crosin_Strike_Func001Func001Func003001003002())
endfunction
function Trig_Crosin_Strike_Func001Func001Func003A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("head",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),200.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Crosin_Strike_Func001Func001Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A000',GetAttacker())==2)
endfunction
function Trig_Crosin_Strike_Func001Func001Func004002 takes nothing returns boolean
return(udg_real08<=10.00)
endfunction
function Trig_Crosin_Strike_Func001Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Crosin_Strike_Func001Func001Func004001(),Trig_Crosin_Strike_Func001Func001Func004002()))then
return false
endif
return true
endfunction
function Trig_Crosin_Strike_Func001Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Crosin_Strike_Func001Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Crosin_Strike_Func001Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Crosin_Strike_Func001Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func003001003002001(),Trig_Crosin_Strike_Func001Func003001003002002())
endfunction
function Trig_Crosin_Strike_Func001Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Crosin_Strike_Func001Func003001003001(),Trig_Crosin_Strike_Func001Func003001003002())
endfunction
function Trig_Crosin_Strike_Func001Func003A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("head",GetEnumUnit(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),100.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Crosin_Strike_Func001Func004001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A000',GetAttacker())==1)
endfunction
function Trig_Crosin_Strike_Func001Func004002 takes nothing returns boolean
return(udg_real08<=5.00)
endfunction
function Trig_Crosin_Strike_Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Crosin_Strike_Func001Func004001(),Trig_Crosin_Strike_Func001Func004002()))then
return false
endif
return true
endfunction
function Trig_Crosin_Strike_Actions takes nothing returns nothing
if(Trig_Crosin_Strike_Func001C())then
call SetUnitAnimation(GetAttacker(),"attack walk stand spin")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Crosin_Strike_Func001Func003001003)),function Trig_Crosin_Strike_Func001Func003A)
else
if(Trig_Crosin_Strike_Func001Func001C())then
call SetUnitAnimation(GetAttacker(),"attack walk stand spin")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Crosin_Strike_Func001Func001Func003001003)),function Trig_Crosin_Strike_Func001Func001Func003A)
else
if(Trig_Crosin_Strike_Func001Func001Func001C())then
call SetUnitAnimation(GetAttacker(),"attack walk stand spin")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Crosin_Strike_Func001Func001Func001Func003001003)),function Trig_Crosin_Strike_Func001Func001Func001Func003A)
else
if(Trig_Crosin_Strike_Func001Func001Func001Func001C())then
call SetUnitAnimation(GetAttacker(),"attack walk stand spin")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Crosin_Strike_Func001Func001Func001Func001Func003001003)),function Trig_Crosin_Strike_Func001Func001Func001Func001Func003A)
else
if(Trig_Crosin_Strike_Func001Func001Func001Func001Func001C())then
call SetUnitAnimation(GetAttacker(),"attack walk stand spin")
call ForGroupBJ(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(GetAttacker()),Condition(function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003001003)),function Trig_Crosin_Strike_Func001Func001Func001Func001Func001Func003A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Learn_Crosin_Strike_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A000'))then
return false
endif
return true
endfunction
function Trig_Learn_Crosin_Strike_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger356)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_EnterRoot_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A06Y'))then
return false
endif
return true
endfunction
function Trig_EnterRoot_Func012A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_EnterRoot_Func013A takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),true)
endfunction
function Trig_EnterRoot_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_trigger360)
set udg_units19[0]=GetSpellAbilityUnit()
set udg_reals14[0]=0.00
set udg_reals14[1]=0.00
set udg_locations13[0]=GetUnitLoc(udg_units19[0])
set udg_locations13[1]=GetSpellTargetLoc()
call PlaySoundOnUnitBJ(udg_sound33,100.00,udg_units19[0])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h024',GetOwningPlayer(udg_units19[0]),PolarProjectionBJ(udg_locations13[1],udg_reals14[0],(AngleBetweenPoints(udg_locations13[0],udg_locations13[1])-90.00)),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call GroupAddGroup(GetLastCreatedGroup(),udg_groups03[0])
call CreateNUnitsAtLoc(1,'h024',GetOwningPlayer(udg_units19[0]),PolarProjectionBJ(udg_locations13[1],udg_reals14[0],(AngleBetweenPoints(udg_locations13[0],udg_locations13[1])+90.00)),bj_UNIT_FACING)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Objects\\Spawnmodels\\NightElf\\EntBirthTarget\\EntBirthTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call GroupAddGroup(GetLastCreatedGroup(),udg_groups03[0])
call TriggerSleepAction(0.01)
set udg_reals14[0]=(udg_reals14[0]+100.00)
set udg_reals14[1]=(udg_reals14[1]+100.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(8.00)
call DisableTrigger(udg_trigger360)
call ForGroupBJ(udg_groups03[0],function Trig_EnterRoot_Func012A)
call ForGroupBJ(udg_groups03[1],function Trig_EnterRoot_Func013A)
call GroupClear(udg_groups03[0])
call GroupClear(udg_groups03[1])
call RemoveLocation(udg_locations13[1])
call RemoveLocation(udg_locations13[0])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_EnterRoot_Active_Func001001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_EnterRoot_Active_Func001001002002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_EnterRoot_Active_Func001001002002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units19[0]))==true)
endfunction
function Trig_EnterRoot_Active_Func001001002002002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups03[1])==false)
endfunction
function Trig_EnterRoot_Active_Func001001002002002002002 takes nothing returns boolean
return(UnitHasBuffBJ(GetFilterUnit(),'BHad')==true)
endfunction
function Trig_EnterRoot_Active_Func001001002002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_EnterRoot_Active_Func001001002002002002001(),Trig_EnterRoot_Active_Func001001002002002002002())
endfunction
function Trig_EnterRoot_Active_Func001001002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_EnterRoot_Active_Func001001002002002001(),Trig_EnterRoot_Active_Func001001002002002002())
endfunction
function Trig_EnterRoot_Active_Func001001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_EnterRoot_Active_Func001001002002001(),Trig_EnterRoot_Active_Func001001002002002())
endfunction
function Trig_EnterRoot_Active_Func001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_EnterRoot_Active_Func001001002001(),Trig_EnterRoot_Active_Func001001002002())
endfunction
function Trig_EnterRoot_Active_Func001Func003Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06Y',udg_units19[0])==5))then
return false
endif
return true
endfunction
function Trig_EnterRoot_Active_Func001Func003Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06Y',udg_units19[0])==4))then
return false
endif
return true
endfunction
function Trig_EnterRoot_Active_Func001Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06Y',udg_units19[0])==3))then
return false
endif
return true
endfunction
function Trig_EnterRoot_Active_Func001Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06Y',udg_units19[0])==2))then
return false
endif
return true
endfunction
function Trig_EnterRoot_Active_Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups03[1])
call CreateNUnitsAtLoc(1,'h023',GetOwningPlayer(udg_units19[0]),GetUnitLoc(udg_units19[0]),bj_UNIT_FACING)
if(Trig_EnterRoot_Active_Func001Func003C())then
call SetUnitAbilityLevelSwapped('A06Z',GetLastCreatedUnit(),2)
else
if(Trig_EnterRoot_Active_Func001Func003Func001C())then
call SetUnitAbilityLevelSwapped('A06Z',GetLastCreatedUnit(),3)
else
if(Trig_EnterRoot_Active_Func001Func003Func001Func001C())then
call SetUnitAbilityLevelSwapped('A06Z',GetLastCreatedUnit(),4)
else
if(Trig_EnterRoot_Active_Func001Func003Func001Func001Func001C())then
call SetUnitAbilityLevelSwapped('A06Z',GetLastCreatedUnit(),5)
else
call DoNothing()
endif
endif
endif
endif
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"entanglingroots",GetEnumUnit())
call SetUnitPathing(GetEnumUnit(),false)
endfunction
function Trig_EnterRoot_Active_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_EnterRoot_Active_Func001001002)),function Trig_EnterRoot_Active_Func001A)
endfunction
function Trig_CarrineRoot_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A070'))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Func011Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==5))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Func011Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==4))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Func011Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==3))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Func011C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==2))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Func016A takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),true)
endfunction
function Trig_CarrineRoot_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call EnableTrigger(udg_trigger363)
set udg_units20[0]=GetSpellAbilityUnit()
set udg_locations14[0]=GetUnitLoc(udg_units20[0])
set udg_locations14[1]=GetSpellTargetLoc()
set udg_reals15[0]=AngleBetweenPoints(udg_locations14[0],udg_locations14[1])
set udg_reals15[1]=50.00
set udg_reals15[2]=500.00
set udg_reals15[4]=500.00
if(Trig_CarrineRoot_Func011C())then
set udg_reals15[3]=1000.00
else
if(Trig_CarrineRoot_Func011Func001C())then
set udg_reals15[3]=1500.00
else
if(Trig_CarrineRoot_Func011Func001Func001C())then
set udg_reals15[3]=2000.00
else
if(Trig_CarrineRoot_Func011Func001Func001Func001C())then
set udg_reals15[3]=4000.00
else
set udg_reals15[3]=500.00
endif
endif
endif
endif
call EnableTrigger(udg_trigger362)
call TriggerSleepAction(0.20)
call DisableTrigger(udg_trigger363)
call DisableTrigger(udg_trigger362)
call ForGroupBJ(udg_group08,function Trig_CarrineRoot_Func016A)
call GroupClear(udg_group09)
call GroupClear(udg_group08)
call RemoveLocation(udg_locations14[1])
call RemoveLocation(udg_locations14[0])
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_CarrineRoot_Set_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'h025',GetOwningPlayer(udg_units20[0]),PolarProjectionBJ(udg_locations14[0],udg_reals15[1],udg_reals15[0]),udg_reals15[0])
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group09)
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Undead\\RaiseSkeletonWarrior\\RaiseSkeleton.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
set udg_reals15[1]=(udg_reals15[1]+50.00)
endfunction
function Trig_CarrineRoot_Active_Func001Func001001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_CarrineRoot_Active_Func001Func001001003002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group08)==false)
endfunction
function Trig_CarrineRoot_Active_Func001Func001001003002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups03[1])==true)
endfunction
function Trig_CarrineRoot_Active_Func001Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_CarrineRoot_Active_Func001Func001001003002001(),Trig_CarrineRoot_Active_Func001Func001001003002002())
endfunction
function Trig_CarrineRoot_Active_Func001Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_CarrineRoot_Active_Func001Func001001003001(),Trig_CarrineRoot_Active_Func001Func001001003002())
endfunction
function Trig_CarrineRoot_Active_Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==5))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Active_Func001Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==4))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Active_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==3))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Active_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==2))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Active_Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==1))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Active_Func001Func001A takes nothing returns nothing
if(Trig_CarrineRoot_Active_Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units20[0],GetEnumUnit(),500.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
if(Trig_CarrineRoot_Active_Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units20[0],GetEnumUnit(),1000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
if(Trig_CarrineRoot_Active_Func001Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units20[0],GetEnumUnit(),1500.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
if(Trig_CarrineRoot_Active_Func001Func001Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units20[0],GetEnumUnit(),2000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
if(Trig_CarrineRoot_Active_Func001Func001Func001Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_units20[0],GetEnumUnit(),4000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endif
endif
endif
endif
call AddSpecialEffectTargetUnitBJ("overhead",GetEnumUnit(),"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call GroupAddUnitSimple(GetEnumUnit(),udg_group08)
endfunction
function Trig_CarrineRoot_Active_Func001Func002001003001001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_CarrineRoot_Active_Func001Func002001003001002 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_CarrineRoot_Active_Func001Func002001003001 takes nothing returns boolean
return GetBooleanAnd(Trig_CarrineRoot_Active_Func001Func002001003001001(),Trig_CarrineRoot_Active_Func001Func002001003001002())
endfunction
function Trig_CarrineRoot_Active_Func001Func002001003002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups03[1])==false)
endfunction
function Trig_CarrineRoot_Active_Func001Func002001003002002001 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group08)==false)
endfunction
function Trig_CarrineRoot_Active_Func001Func002001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units20[0]))==true)
endfunction
function Trig_CarrineRoot_Active_Func001Func002001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_CarrineRoot_Active_Func001Func002001003002002001(),Trig_CarrineRoot_Active_Func001Func002001003002002002())
endfunction
function Trig_CarrineRoot_Active_Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_CarrineRoot_Active_Func001Func002001003002001(),Trig_CarrineRoot_Active_Func001Func002001003002002())
endfunction
function Trig_CarrineRoot_Active_Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_CarrineRoot_Active_Func001Func002001003001(),Trig_CarrineRoot_Active_Func001Func002001003002())
endfunction
function Trig_CarrineRoot_Active_Func001Func002Func003Func001Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==5))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Active_Func001Func002Func003Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==4))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Active_Func001Func002Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==3))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Active_Func001Func002Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A070',udg_units20[0])==2))then
return false
endif
return true
endfunction
function Trig_CarrineRoot_Active_Func001Func002A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group08)
call CreateNUnitsAtLoc(1,'h026',GetOwningPlayer(udg_units20[0]),GetUnitLoc(udg_units20[0]),bj_UNIT_FACING)
if(Trig_CarrineRoot_Active_Func001Func002Func003C())then
call SetUnitAbilityLevelSwapped('A071',GetLastCreatedUnit(),2)
else
if(Trig_CarrineRoot_Active_Func001Func002Func003Func001C())then
call SetUnitAbilityLevelSwapped('A071',GetLastCreatedUnit(),3)
else
if(Trig_CarrineRoot_Active_Func001Func002Func003Func001Func002C())then
call SetUnitAbilityLevelSwapped('A071',GetLastCreatedUnit(),4)
else
if(Trig_CarrineRoot_Active_Func001Func002Func003Func001Func002Func002C())then
call SetUnitAbilityLevelSwapped('A071',GetLastCreatedUnit(),5)
else
call SetUnitAbilityLevelSwapped('A071',GetLastCreatedUnit(),1)
endif
endif
endif
endif
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"entanglingroots",GetEnumUnit())
call SetUnitPathing(GetEnumUnit(),false)
endfunction
function Trig_CarrineRoot_Active_Func001A takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(udg_reals15[2],GetUnitLoc(GetEnumUnit()),Condition(function Trig_CarrineRoot_Active_Func001Func001001003)),function Trig_CarrineRoot_Active_Func001Func001A)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(udg_reals15[4],GetUnitLoc(GetEnumUnit()),Condition(function Trig_CarrineRoot_Active_Func001Func002001003)),function Trig_CarrineRoot_Active_Func001Func002A)
endfunction
function Trig_CarrineRoot_Active_Actions takes nothing returns nothing
call ForGroupBJ(udg_group09,function Trig_CarrineRoot_Active_Func001A)
endfunction
function Trig_Thorns_Aura_Learn_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A073'))then
return false
endif
return true
endfunction
function Trig_Thorns_Aura_Learn_Actions takes nothing returns nothing
set udg_unit41=GetLearningUnit()
call EnableTrigger(udg_trigger365)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Thorns_Aura_Func001C takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttackedUnitBJ(),'B00Q')==true))then
return false
endif
if(not(IsUnitEnemy(GetAttacker(),GetOwningPlayer(udg_unit41))==true))then
return false
endif
return true
endfunction
function Trig_Thorns_Aura_Conditions takes nothing returns boolean
if(not Trig_Thorns_Aura_Func001C())then
return false
endif
return true
endfunction
function Trig_Thorns_Aura_Func002Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A073',udg_unit41)==5))then
return false
endif
return true
endfunction
function Trig_Thorns_Aura_Func002Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A073',udg_unit41)==4))then
return false
endif
return true
endfunction
function Trig_Thorns_Aura_Func002Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A073',udg_unit41)==3))then
return false
endif
return true
endfunction
function Trig_Thorns_Aura_Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A073',udg_unit41)==2))then
return false
endif
return true
endfunction
function Trig_Thorns_Aura_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A073',udg_unit41)==1))then
return false
endif
return true
endfunction
function Trig_Thorns_Aura_Actions takes nothing returns nothing
if(Trig_Thorns_Aura_Func002C())then
set udg_real09=50.00
else
if(Trig_Thorns_Aura_Func002Func001C())then
set udg_real09=150.00
else
if(Trig_Thorns_Aura_Func002Func001Func001C())then
set udg_real09=300.00
else
if(Trig_Thorns_Aura_Func002Func001Func001Func001C())then
set udg_real09=500.00
else
if(Trig_Thorns_Aura_Func002Func001Func001Func001Func001C())then
set udg_real09=(500.00+I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_unit41,false)))
else
call DoNothing()
endif
endif
endif
endif
endif
call UnitDamageTargetBJ(udg_unit41,GetAttacker(),udg_real09,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("overhead",GetAttacker(),"Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_PastBall_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08V'))then
return false
endif
return true
endfunction
function Trig_PastBall_Func003Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08V',udg_unit42)==4))then
return false
endif
return true
endfunction
function Trig_PastBall_Func003Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08V',udg_unit42)==3))then
return false
endif
return true
endfunction
function Trig_PastBall_Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08V',udg_unit42)==2))then
return false
endif
return true
endfunction
function Trig_PastBall_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08V',udg_unit42)==1))then
return false
endif
return true
endfunction
function Trig_PastBall_Actions takes nothing returns nothing
set udg_unit42=GetSpellAbilityUnit()
set udg_integer19=0
if(Trig_PastBall_Func003C())then
set udg_integer19=3
else
if(Trig_PastBall_Func003Func001C())then
set udg_integer19=5
else
if(Trig_PastBall_Func003Func001Func001C())then
set udg_integer19=7
else
if(Trig_PastBall_Func003Func001Func001Func001C())then
set udg_integer19=9
else
set udg_integer19=15
endif
endif
endif
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_integer19
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h029',GetOwningPlayer(udg_unit42),GetUnitLoc(udg_unit42),GetRandomDirectionDeg())
call UnitApplyTimedLifeBJ(5.00,'BHwe',GetLastCreatedUnit())
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group10)
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_unit42),600.00,600.00)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_PastBall_Active_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='h029'))then
return false
endif
return true
endfunction
function Trig_PastBall_Active_Actions takes nothing returns nothing
call KillUnit(GetAttacker())
call CreateNUnitsAtLoc(1,'e00I',GetOwningPlayer(udg_unit42),GetUnitLoc(GetAttackedUnitBJ()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(4.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"thunderclap")
endfunction
function Trig_Learn_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A08W'))then
return false
endif
return true
endfunction
function Trig_Learn_Actions takes nothing returns nothing
call UnitAddAbilityBJ('A08Z',GetLearningUnit())
endfunction
function Trig_HonorFire_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08W'))then
return false
endif
return true
endfunction
function Trig_HonorFire_Func002C takes nothing returns boolean
if(not(udg_integer20<=5))then
return false
endif
return true
endfunction
function Trig_HonorFire_Actions takes nothing returns nothing
set udg_unit43=GetSpellAbilityUnit()
if(Trig_HonorFire_Func002C())then
set udg_integer20=(udg_integer20+1)
call CreateNUnitsAtLoc(1,'e00L',GetOwningPlayer(udg_unit43),GetUnitLoc(udg_unit43),GetRandomDirectionDeg())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"move",GetRandomLocInRect(RectFromCenterSizeBJ(GetUnitLoc(udg_unit43),500.00,500.00)))
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group11)
else
call DoNothing()
endif
endfunction
function Trig_HonorFire_Ended_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08Z'))then
return false
endif
return true
endfunction
function Trig_HonorFire_Ended_Func002Func002Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08W',udg_unit43)==5))then
return false
endif
return true
endfunction
function Trig_HonorFire_Ended_Func002Func002Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08W',udg_unit43)==4))then
return false
endif
return true
endfunction
function Trig_HonorFire_Ended_Func002Func002Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08W',udg_unit43)==3))then
return false
endif
return true
endfunction
function Trig_HonorFire_Ended_Func002Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08W',udg_unit43)==2))then
return false
endif
return true
endfunction
function Trig_HonorFire_Ended_Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08W',udg_unit43)==1))then
return false
endif
return true
endfunction
function Trig_HonorFire_Ended_Func002A takes nothing returns nothing
call UnitRemoveAbilityBJ('Atwa',GetEnumUnit())
if(Trig_HonorFire_Ended_Func002Func002C())then
call IssuePointOrderLocBJ(GetEnumUnit(),"flamestrike",GetUnitLoc(GetEnumUnit()))
else
if(Trig_HonorFire_Ended_Func002Func002Func001C())then
call SetUnitAbilityLevelSwapped('A08U',GetEnumUnit(),2)
call IssuePointOrderLocBJ(GetEnumUnit(),"flamestrike",GetUnitLoc(GetEnumUnit()))
else
if(Trig_HonorFire_Ended_Func002Func002Func001Func001C())then
call SetUnitAbilityLevelSwapped('A08U',GetEnumUnit(),3)
call IssuePointOrderLocBJ(GetEnumUnit(),"flamestrike",GetUnitLoc(GetEnumUnit()))
else
if(Trig_HonorFire_Ended_Func002Func002Func001Func001Func001C())then
call SetUnitAbilityLevelSwapped('A08U',GetEnumUnit(),4)
call IssuePointOrderLocBJ(GetEnumUnit(),"flamestrike",GetUnitLoc(GetEnumUnit()))
else
if(Trig_HonorFire_Ended_Func002Func002Func001Func001Func001Func001C())then
call SetUnitAbilityLevelSwapped('A08U',GetEnumUnit(),5)
call IssuePointOrderLocBJ(GetEnumUnit(),"flamestrike",GetUnitLoc(GetEnumUnit()))
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_HonorFire_Ended_Actions takes nothing returns nothing
set udg_integer20=0
call ForGroupBJ(udg_group11,function Trig_HonorFire_Ended_Func002A)
endfunction
function Trig_Ended_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08U'))then
return false
endif
return true
endfunction
function Trig_Ended_Actions takes nothing returns nothing
call KillUnit(GetSpellAbilityUnit())
endfunction
function Trig_FreeClap_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08Y'))then
return false
endif
return true
endfunction
function Trig_FreeClap_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08Y',udg_unit44)==1))then
return false
endif
return true
endfunction
function Trig_FreeClap_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit44=GetSpellAbilityUnit()
if(Trig_FreeClap_Func003C())then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00J',GetOwningPlayer(udg_unit44),GetUnitLoc(udg_unit44),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"thunderclap")
call TriggerSleepAction(0.40)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e00J',GetOwningPlayer(udg_unit44),GetUnitLoc(udg_unit44),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"thunderclap")
call TriggerSleepAction(0.40)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_FootClap_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A090'))then
return false
endif
return true
endfunction
function Trig_FootClap_Func006Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A090',udg_unit45)==5))then
return false
endif
return true
endfunction
function Trig_FootClap_Func006Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A090',udg_unit45)==4))then
return false
endif
return true
endfunction
function Trig_FootClap_Func006Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A090',udg_unit45)==3))then
return false
endif
return true
endfunction
function Trig_FootClap_Func006Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A090',udg_unit45)==2))then
return false
endif
return true
endfunction
function Trig_FootClap_Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A090',udg_unit45)==1))then
return false
endif
return true
endfunction
function Trig_FootClap_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit45=GetSpellAbilityUnit()
set udg_location03=GetUnitLoc(udg_unit45)
call SetUnitPathing(udg_unit45,false)
call SetUnitVertexColorBJ(udg_unit45,100.00,100.00,100,75.00)
if(Trig_FootClap_Func006C())then
set udg_real10=250.00
else
if(Trig_FootClap_Func006Func001C())then
set udg_real10=200.00
else
if(Trig_FootClap_Func006Func001Func001C())then
set udg_real10=150.00
else
if(Trig_FootClap_Func006Func001Func001Func001C())then
set udg_real10=100.00
else
if(Trig_FootClap_Func006Func001Func001Func001Func001C())then
set udg_real10=50.00
else
call DoNothing()
endif
endif
endif
endif
endif
call EnableTrigger(udg_trigger374)
call TriggerSleepAction(20.00)
call SetUnitVertexColorBJ(udg_unit45,100.00,100.00,100,0.00)
call SetUnitPathing(udg_unit45,true)
call RemoveLocation(udg_location03)
call DisableTrigger(udg_trigger374)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_FootClap_Active_Func002C takes nothing returns boolean
if(not(DistanceBetweenPoints(GetUnitLoc(udg_unit45),udg_location03)>=udg_real10))then
return false
endif
return true
endfunction
function Trig_FootClap_Active_Actions takes nothing returns nothing
if(Trig_FootClap_Active_Func002C())then
set udg_location03=GetUnitLoc(udg_unit45)
call CreateNUnitsAtLoc(1,'e00K',GetOwningPlayer(udg_unit45),GetUnitLoc(udg_unit45),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"thunderclap")
else
call DoNothing()
endif
endfunction
function Trig_Knockout_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A091'))then
return false
endif
return true
endfunction
function Trig_Knockout_Func007Func001Func002Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A091',udg_units21[1])==5))then
return false
endif
return true
endfunction
function Trig_Knockout_Func007Func001Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A091',udg_units21[1])==4))then
return false
endif
return true
endfunction
function Trig_Knockout_Func007Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A091',udg_units21[1])==3))then
return false
endif
return true
endfunction
function Trig_Knockout_Func007Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A091',udg_units21[1])==2))then
return false
endif
return true
endfunction
function Trig_Knockout_Func007C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A091',udg_units21[1])==1))then
return false
endif
return true
endfunction
function Trig_Knockout_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call GroupClear(udg_group12)
set udg_units21[1]=GetSpellAbilityUnit()
set udg_units21[2]=GetSpellTargetUnit()
set udg_reals18[1]=AngleBetweenPoints(GetUnitLoc(udg_units21[1]),GetUnitLoc(udg_units21[2]))
set udg_reals18[2]=8.00
if(Trig_Knockout_Func007C())then
set udg_reals18[3]=200.00
else
if(Trig_Knockout_Func007Func001C())then
set udg_reals18[3]=400.00
else
if(Trig_Knockout_Func007Func001Func002C())then
set udg_reals18[3]=800.00
else
if(Trig_Knockout_Func007Func001Func002Func002C())then
set udg_reals18[3]=1600.00
else
if(Trig_Knockout_Func007Func001Func002Func002Func002C())then
set udg_reals18[3]=3200.00
else
call DoNothing()
endif
endif
endif
endif
endif
call SetUnitPathing(udg_units21[2],false)
call AddSpecialEffectTargetUnitBJ("weapon",udg_units21[1],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call EnableTrigger(udg_trigger376)
call TriggerSleepAction(0.70)
call SetUnitPathing(udg_units21[2],true)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units21[2]),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call DisableTrigger(udg_trigger376)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Knockout_Active_Func006001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Knockout_Active_Func006001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Knockout_Active_Func006001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units21[1]))==true)
endfunction
function Trig_Knockout_Active_Func006001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group12)==false)
endfunction
function Trig_Knockout_Active_Func006001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Knockout_Active_Func006001003002002001(),Trig_Knockout_Active_Func006001003002002002())
endfunction
function Trig_Knockout_Active_Func006001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Knockout_Active_Func006001003002001(),Trig_Knockout_Active_Func006001003002002())
endfunction
function Trig_Knockout_Active_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Knockout_Active_Func006001003001(),Trig_Knockout_Active_Func006001003002())
endfunction
function Trig_Knockout_Active_Func006A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units21[1],GetEnumUnit(),udg_reals18[3],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call GroupAddUnitSimple(GetEnumUnit(),udg_group12)
endfunction
function Trig_Knockout_Active_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units21[2],PolarProjectionBJ(GetUnitLoc(udg_units21[2]),udg_reals18[2],udg_reals18[1]))
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units21[2]),"Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_reals18[2]=(udg_reals18[2]-0.10)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(250.00,GetUnitLoc(udg_units21[2]),Condition(function Trig_Knockout_Active_Func006001003)),function Trig_Knockout_Active_Func006A)
endfunction
function Trig_StormLand_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A013'))then
return false
endif
return true
endfunction
function Trig_StormLand_Func004002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_StormLand_Func004002001003002001 takes nothing returns boolean
return(GetUnitStateSwap(UNIT_STATE_LIFE,GetFilterUnit())>0.00)
endfunction
function Trig_StormLand_Func004002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units22[0]))==true)
endfunction
function Trig_StormLand_Func004002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func004002001003002001(),Trig_StormLand_Func004002001003002002())
endfunction
function Trig_StormLand_Func004002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func004002001003001(),Trig_StormLand_Func004002001003002())
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units22[0]))==true)
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func001Func001Func001Func001Func002001003002001(),Trig_StormLand_Func027Func001Func001Func001Func001Func002001003002002())
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func001Func001Func001Func001Func002001003001(),Trig_StormLand_Func027Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units22[0],GetEnumUnit(),3200.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A013',udg_units22[0])==5))then
return false
endif
return true
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units22[0]))==true)
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func001Func001Func001Func002001003002001(),Trig_StormLand_Func027Func001Func001Func001Func002001003002002())
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func001Func001Func001Func002001003001(),Trig_StormLand_Func027Func001Func001Func001Func002001003002())
endfunction
function Trig_StormLand_Func027Func001Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units22[0],GetEnumUnit(),1600.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_StormLand_Func027Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A013',udg_units22[0])==4))then
return false
endif
return true
endfunction
function Trig_StormLand_Func027Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_StormLand_Func027Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_StormLand_Func027Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units22[0]))==true)
endfunction
function Trig_StormLand_Func027Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func001Func001Func002001003002001(),Trig_StormLand_Func027Func001Func001Func002001003002002())
endfunction
function Trig_StormLand_Func027Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func001Func001Func002001003001(),Trig_StormLand_Func027Func001Func001Func002001003002())
endfunction
function Trig_StormLand_Func027Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units22[0],GetEnumUnit(),800.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_StormLand_Func027Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A013',udg_units22[0])==3))then
return false
endif
return true
endfunction
function Trig_StormLand_Func027Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_StormLand_Func027Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_StormLand_Func027Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units22[0]))==true)
endfunction
function Trig_StormLand_Func027Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func001Func002001003002001(),Trig_StormLand_Func027Func001Func002001003002002())
endfunction
function Trig_StormLand_Func027Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func001Func002001003001(),Trig_StormLand_Func027Func001Func002001003002())
endfunction
function Trig_StormLand_Func027Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units22[0],GetEnumUnit(),400.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_StormLand_Func027Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A013',udg_units22[0])==2))then
return false
endif
return true
endfunction
function Trig_StormLand_Func027Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_StormLand_Func027Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_StormLand_Func027Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units22[0]))==true)
endfunction
function Trig_StormLand_Func027Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func002001003002001(),Trig_StormLand_Func027Func002001003002002())
endfunction
function Trig_StormLand_Func027Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_Func027Func002001003001(),Trig_StormLand_Func027Func002001003002())
endfunction
function Trig_StormLand_Func027Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units22[0],GetEnumUnit(),200.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_StormLand_Func027C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A013',udg_units22[0])==1))then
return false
endif
return true
endfunction
function Trig_StormLand_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units22[0]=GetSpellAbilityUnit()
set udg_units22[1]=GroupPickRandomUnit(GetUnitsInRangeOfLocMatching(300.00,GetUnitLoc(udg_units22[0]),Condition(function Trig_StormLand_Func004002001003)))
set udg_reals19[0]=3500.00
set udg_reals19[1]=AngleBetweenPoints(GetUnitLoc(udg_units22[1]),GetUnitLoc(udg_units22[0]))
call SetUnitPathing(udg_units22[1],false)
call UnitAddAbilityBJ('Amrf',udg_units22[1])
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units22[1]),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call EnableTrigger(udg_trigger379)
call EnableTrigger(udg_trigger378)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger379)
set udg_reals19[0]=50.00
call EnableTrigger(udg_trigger380)
call TriggerSleepAction(0.30)
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units22[1]),"Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(udg_units22[1]),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'e00K',GetOwningPlayer(udg_units22[0]),GetUnitLoc(udg_units22[1]),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"thunderclap")
call TriggerSleepAction(0.10)
if(Trig_StormLand_Func027C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units22[1]),Condition(function Trig_StormLand_Func027Func002001003)),function Trig_StormLand_Func027Func002A)
else
if(Trig_StormLand_Func027Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units22[1]),Condition(function Trig_StormLand_Func027Func001Func002001003)),function Trig_StormLand_Func027Func001Func002A)
else
if(Trig_StormLand_Func027Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units22[1]),Condition(function Trig_StormLand_Func027Func001Func001Func002001003)),function Trig_StormLand_Func027Func001Func001Func002A)
else
if(Trig_StormLand_Func027Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units22[1]),Condition(function Trig_StormLand_Func027Func001Func001Func001Func002001003)),function Trig_StormLand_Func027Func001Func001Func001Func002A)
else
if(Trig_StormLand_Func027Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units22[1]),Condition(function Trig_StormLand_Func027Func001Func001Func001Func001Func002001003)),function Trig_StormLand_Func027Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
call DisableTrigger(udg_trigger378)
call DisableTrigger(udg_trigger380)
call UnitRemoveAbilityBJ('Amrf',udg_units22[1])
call TriggerSleepAction(0.50)
call SetUnitPathing(udg_units22[1],true)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Fly_and_Move_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units22[1],PolarProjectionBJ(GetUnitLoc(udg_units22[1]),3.00,udg_reals19[1]))
endfunction
function Trig_Fly_up_Func002C takes nothing returns boolean
if(not(udg_reals19[0]<=150.00))then
return false
endif
return true
endfunction
function Trig_Fly_up_Actions takes nothing returns nothing
call SetUnitFlyHeightBJ(udg_units22[1],1300.00,udg_reals19[0])
if(Trig_Fly_up_Func002C())then
call DoNothing()
else
set udg_reals19[0]=(udg_reals19[0]-70.00)
endif
endfunction
function Trig_Fly_down_Actions takes nothing returns nothing
call SetUnitFlyHeightBJ(udg_units22[1],0.00,udg_reals19[0])
set udg_reals19[0]=(udg_reals19[0]+110.00)
endfunction
function Trig_Axe_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04Q'))then
return false
endif
return true
endfunction
function Trig_Axe_Func005Func001Func005001 takes nothing returns boolean
return(udg_reals20[3]>=500.00)
endfunction
function Trig_Axe_Func005Func001Func005002 takes nothing returns boolean
return(udg_reals20[3]<=1000.00)
endfunction
function Trig_Axe_Func005Func001C takes nothing returns boolean
if(not GetBooleanAnd(Trig_Axe_Func005Func001Func005001(),Trig_Axe_Func005Func001Func005002()))then
return false
endif
return true
endfunction
function Trig_Axe_Func005C takes nothing returns boolean
if(not(udg_reals20[3]<=500.00))then
return false
endif
return true
endfunction
function Trig_Axe_Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04Q',udg_units23[0])==1))then
return false
endif
return true
endfunction
function Trig_Axe_Func014Func001Func003001 takes nothing returns boolean
return(udg_reals20[3]>=800.00)
endfunction
function Trig_Axe_Func014Func001Func003002 takes nothing returns boolean
return(udg_reals20[3]<=1500.00)
endfunction
function Trig_Axe_Func014Func001C takes nothing returns boolean
if(not GetBooleanOr(Trig_Axe_Func014Func001Func003001(),Trig_Axe_Func014Func001Func003002()))then
return false
endif
return true
endfunction
function Trig_Axe_Func014C takes nothing returns boolean
if(not(udg_reals20[3]<=800.00))then
return false
endif
return true
endfunction
function Trig_Axe_Func018C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04Q',udg_units23[0])==1))then
return false
endif
return true
endfunction
function Trig_Axe_Func019Func003001 takes nothing returns boolean
return(udg_reals20[3]>=800.00)
endfunction
function Trig_Axe_Func019Func003002 takes nothing returns boolean
return(udg_reals20[3]<=1500.00)
endfunction
function Trig_Axe_Func019C takes nothing returns boolean
if(not GetBooleanOr(Trig_Axe_Func019Func003001(),Trig_Axe_Func019Func003002()))then
return false
endif
return true
endfunction
function Trig_Axe_Func025A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_Axe_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units23[0]=GetSpellAbilityUnit()
set udg_reals20[0]=AngleBetweenPoints(GetUnitLoc(udg_units23[0]),GetSpellTargetLoc())
set udg_reals20[3]=DistanceBetweenPoints(GetUnitLoc(udg_units23[0]),GetSpellTargetLoc())
if(Trig_Axe_Func005C())then
set udg_reals20[1]=-2.00
set udg_reals20[4]=20.00
else
if(Trig_Axe_Func005Func001C())then
set udg_reals20[1]=-1.00
set udg_reals20[4]=10.00
else
set udg_reals20[1]=2.00
set udg_reals20[4]=3.00
endif
endif
if(Trig_Axe_Func006C())then
set udg_reals20[2]=I2R((GetHeroStatBJ(bj_HEROSTAT_STR,udg_units23[0],false)*10))
else
set udg_reals20[2]=I2R((GetHeroStatBJ(bj_HEROSTAT_STR,udg_units23[0],false)*15))
endif
call CreateNUnitsAtLoc(1,'h027',GetOwningPlayer(udg_units23[0]),PolarProjectionBJ(GetUnitLoc(udg_units23[0]),100.00,(udg_reals20[0]-45.00)),udg_reals20[0])
set udg_units23[1]=GetLastCreatedUnit()
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups04[0])
call CreateNUnitsAtLoc(1,'h028',GetOwningPlayer(udg_units23[0]),PolarProjectionBJ(GetUnitLoc(udg_units23[0]),100.00,(udg_reals20[0]+45.00)),udg_reals20[0])
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_groups04[0])
set udg_units23[2]=GetLastCreatedUnit()
call EnableTrigger(udg_trigger382)
if(Trig_Axe_Func014C())then
call TriggerSleepAction(((udg_reals20[3]*0.01)/7.00))
else
if(Trig_Axe_Func014Func001C())then
call TriggerSleepAction(((udg_reals20[3]*0.01)/13.00))
else
call TriggerSleepAction(((udg_reals20[3]*0.01)/18.00))
endif
endif
set udg_reals20[1]=(0.00-udg_reals20[1])
call DisableTrigger(udg_trigger382)
call EnableTrigger(udg_trigger383)
if(Trig_Axe_Func018C())then
call DoNothing()
else
call GroupClear(udg_groups04[1])
endif
if(Trig_Axe_Func019C())then
call TriggerSleepAction(((udg_reals20[3]*0.01)/13.00))
else
call TriggerSleepAction(((udg_reals20[3]*0.01)/16.50))
endif
call DisableTrigger(udg_trigger383)
call GroupClear(udg_groups04[1])
call IssueTargetOrderBJ(udg_units23[1],"attack",udg_units23[0])
call IssueTargetOrderBJ(udg_units23[2],"attack",udg_units23[0])
call TriggerSleepAction(1.00)
call ForGroupBJ(udg_groups04[0],function Trig_Axe_Func025A)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Move_up_Func004Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Move_up_Func004Func001001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Move_up_Func004Func001001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units23[0]))==true)
endfunction
function Trig_Move_up_Func004Func001001003002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups04[1])==false)
endfunction
function Trig_Move_up_Func004Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_up_Func004Func001001003002002001(),Trig_Move_up_Func004Func001001003002002002())
endfunction
function Trig_Move_up_Func004Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_up_Func004Func001001003002001(),Trig_Move_up_Func004Func001001003002002())
endfunction
function Trig_Move_up_Func004Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_up_Func004Func001001003001(),Trig_Move_up_Func004Func001001003002())
endfunction
function Trig_Move_up_Func004Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups04[1])
call PlaySoundOnUnitBJ(udg_sound29,100.00,GetEnumUnit())
call AddSpecialEffectTargetUnitBJ("head",GetEnumUnit(),"Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodSorceress.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units23[0],GetEnumUnit(),udg_reals20[2],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Move_up_Func004A takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Move_up_Func004Func001001003)),function Trig_Move_up_Func004Func001A)
endfunction
function Trig_Move_up_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units23[1],PolarProjectionBJ(GetUnitLoc(udg_units23[1]),udg_reals20[1],(udg_reals20[0]+udg_reals20[4])))
call SetUnitPositionLoc(udg_units23[2],PolarProjectionBJ(GetUnitLoc(udg_units23[2]),udg_reals20[1],(udg_reals20[0]-udg_reals20[4])))
set udg_reals20[1]=(udg_reals20[1]+0.20)
call ForGroupBJ(udg_groups04[0],function Trig_Move_up_Func004A)
endfunction
function Trig_Move_down_Func004Func001001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Move_down_Func004Func001001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Move_down_Func004Func001001003002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units23[0]))==true)
endfunction
function Trig_Move_down_Func004Func001001003002002002001 takes nothing returns boolean
return(GetUnitAbilityLevelSwapped('A04Q',udg_units23[0])==2)
endfunction
function Trig_Move_down_Func004Func001001003002002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_groups04[1])==false)
endfunction
function Trig_Move_down_Func004Func001001003002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_down_Func004Func001001003002002002001(),Trig_Move_down_Func004Func001001003002002002002())
endfunction
function Trig_Move_down_Func004Func001001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_down_Func004Func001001003002002001(),Trig_Move_down_Func004Func001001003002002002())
endfunction
function Trig_Move_down_Func004Func001001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_down_Func004Func001001003002001(),Trig_Move_down_Func004Func001001003002002())
endfunction
function Trig_Move_down_Func004Func001001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Move_down_Func004Func001001003001(),Trig_Move_down_Func004Func001001003002())
endfunction
function Trig_Move_down_Func004Func001A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_groups04[1])
call PlaySoundOnUnitBJ(udg_sound29,100.00,GetEnumUnit())
call AddSpecialEffectTargetUnitBJ("head",GetEnumUnit(),"Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodSorceress.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call UnitDamageTargetBJ(udg_units23[0],GetEnumUnit(),udg_reals20[2],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Move_down_Func004A takes nothing returns nothing
call ForGroupBJ(GetUnitsInRangeOfLocMatching(350.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_Move_down_Func004Func001001003)),function Trig_Move_down_Func004Func001A)
endfunction
function Trig_Move_down_Actions takes nothing returns nothing
call SetUnitPositionLoc(udg_units23[1],PolarProjectionBJ(GetUnitLoc(udg_units23[1]),udg_reals20[1],(udg_reals20[0]+3.00)))
call SetUnitPositionLoc(udg_units23[2],PolarProjectionBJ(GetUnitLoc(udg_units23[2]),udg_reals20[1],(udg_reals20[0]-3.00)))
set udg_reals20[1]=(udg_reals20[1]+0.20)
call ForGroupBJ(udg_groups04[0],function Trig_Move_down_Func004A)
endfunction
function Trig_Remove_Axe_Func001C takes nothing returns boolean
if((GetUnitTypeId(GetAttacker())=='h027'))then
return true
endif
if((GetUnitTypeId(GetAttacker())=='h028'))then
return true
endif
return false
endfunction
function Trig_Remove_Axe_Conditions takes nothing returns boolean
if(not Trig_Remove_Axe_Func001C())then
return false
endif
return true
endfunction
function Trig_Remove_Axe_Actions takes nothing returns nothing
call RemoveUnit(GetAttacker())
endfunction
function Trig_Pause_Skill_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A04M'))then
return false
endif
return true
endfunction
function Trig_Pause_Skill_Func005Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04M',udg_units24[0])==5))then
return false
endif
return true
endfunction
function Trig_Pause_Skill_Func005Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04M',udg_units24[0])==4))then
return false
endif
return true
endfunction
function Trig_Pause_Skill_Func005Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04M',udg_units24[0])==3))then
return false
endif
return true
endfunction
function Trig_Pause_Skill_Func005Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04M',udg_units24[0])==2))then
return false
endif
return true
endfunction
function Trig_Pause_Skill_Func005C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A04M',udg_units24[0])==1))then
return false
endif
return true
endfunction
function Trig_Pause_Skill_Func010001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Pause_Skill_Func010001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Pause_Skill_Func010001003002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Trig_Pause_Skill_Func010001003002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units24[0]))==true)
endfunction
function Trig_Pause_Skill_Func010001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pause_Skill_Func010001003002002001(),Trig_Pause_Skill_Func010001003002002002())
endfunction
function Trig_Pause_Skill_Func010001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Pause_Skill_Func010001003002001(),Trig_Pause_Skill_Func010001003002002())
endfunction
function Trig_Pause_Skill_Func010001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Pause_Skill_Func010001003001(),Trig_Pause_Skill_Func010001003002())
endfunction
function Trig_Pause_Skill_Func010A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group20)
call PauseUnitBJ(true,GetEnumUnit())
call SetUnitTimeScalePercent(GetEnumUnit(),0.00)
endfunction
function Trig_Pause_Skill_Func015A takes nothing returns nothing
call PauseUnitBJ(false,GetEnumUnit())
call SetUnitTimeScalePercent(GetEnumUnit(),100.00)
endfunction
function Trig_Pause_Skill_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundOnUnitBJ(udg_sound37,100,GetSpellAbilityUnit())
set udg_units24[0]=GetSpellAbilityUnit()
call CreateNUnitsAtLoc(1,'e00M',GetOwningPlayer(udg_units24[0]),GetSpellTargetLoc(),bj_UNIT_FACING)
if(Trig_Pause_Skill_Func005C())then
call SetUnitAbilityLevelSwapped('A08R',GetLastCreatedUnit(),1)
else
if(Trig_Pause_Skill_Func005Func001C())then
call SetUnitAbilityLevelSwapped('A08R',GetLastCreatedUnit(),2)
else
if(Trig_Pause_Skill_Func005Func001Func001C())then
call SetUnitAbilityLevelSwapped('A08R',GetLastCreatedUnit(),3)
else
if(Trig_Pause_Skill_Func005Func001Func001Func001C())then
call SetUnitAbilityLevelSwapped('A08R',GetLastCreatedUnit(),4)
else
if(Trig_Pause_Skill_Func005Func001Func001Func001Func001C())then
call SetUnitAbilityLevelSwapped('A08R',GetLastCreatedUnit(),5)
else
call DoNothing()
endif
endif
endif
endif
endif
set udg_units24[1]=GetLastCreatedUnit()
call TriggerRegisterUnitInRangeSimple(udg_trigger386,380.00,udg_units24[1])
call TriggerSleepAction(0.25)
call SetUnitTimeScalePercent(udg_units24[1],0.00)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(udg_units24[1]),Condition(function Trig_Pause_Skill_Func010001003)),function Trig_Pause_Skill_Func010A)
call EnableTrigger(udg_trigger386)
call TriggerSleepAction(10.00)
call KillUnit(udg_units24[1])
call SetUnitTimeScalePercent(udg_units24[1],100)
call ForGroupBJ(udg_group20,function Trig_Pause_Skill_Func015A)
call DisableTrigger(udg_trigger386)
call GroupClear(udg_group20)
set udg_units24[1]=null
set udg_units24[0]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Pause_Active_Func006C takes nothing returns boolean
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false))then
return false
endif
if(not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_HERO)==false))then
return false
endif
if(not(IsUnitInGroup(GetTriggerUnit(),udg_group20)==false))then
return false
endif
if(not(IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(udg_units24[0]))==true))then
return false
endif
if(not(IsUnitAliveBJ(GetTriggerUnit())==true))then
return false
endif
return true
endfunction
function Trig_Pause_Active_Conditions takes nothing returns boolean
if(not Trig_Pause_Active_Func006C())then
return false
endif
return true
endfunction
function Trig_Pause_Active_Actions takes nothing returns nothing
call GroupAddUnitSimple(GetTriggerUnit(),udg_group20)
call AddSpecialEffectLocBJ(GetUnitLoc(GetTriggerUnit()),"Abilities\\Spells\\Items\\SpellShieldAmulet\\SpellShieldCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitTimeScalePercent(GetTriggerUnit(),0.00)
call PauseUnitBJ(true,GetTriggerUnit())
endfunction
function Trig_Learn_Super_Bash_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A06R'))then
return false
endif
return true
endfunction
function Trig_Learn_Super_Bash_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger389)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Bash_Area_Func003C takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='O019'))then
return false
endif
if(not(UnitHasBuffBJ(GetAttacker(),'B00R')==true))then
return false
endif
return true
endfunction
function Trig_Bash_Area_Conditions takes nothing returns boolean
if(not Trig_Bash_Area_Func003C())then
return false
endif
return true
endfunction
function Trig_Bash_Area_Func001Func002Func002Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06R',GetAttacker())==5))then
return false
endif
return true
endfunction
function Trig_Bash_Area_Func001Func002Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06R',GetAttacker())==4))then
return false
endif
return true
endfunction
function Trig_Bash_Area_Func001Func002Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06R',GetAttacker())==3))then
return false
endif
return true
endfunction
function Trig_Bash_Area_Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06R',GetAttacker())==2))then
return false
endif
return true
endfunction
function Trig_Bash_Area_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06R',GetAttacker())==1))then
return false
endif
return true
endfunction
function Trig_Bash_Area_Func002Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Bash_Area_Func002Func004001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Bash_Area_Func002Func004001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetAttacker()))==true)
endfunction
function Trig_Bash_Area_Func002Func004001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Bash_Area_Func002Func004001003002001(),Trig_Bash_Area_Func002Func004001003002002())
endfunction
function Trig_Bash_Area_Func002Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Bash_Area_Func002Func004001003001(),Trig_Bash_Area_Func002Func004001003002())
endfunction
function Trig_Bash_Area_Func002Func004A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00N',GetOwningPlayer(GetAttacker()),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A093',GetLastCreatedUnit(),udg_integer21)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
call UnitDamageTargetBJ(GetAttacker(),GetEnumUnit(),udg_reals21[2],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Bash_Area_Func002C takes nothing returns boolean
if(not(udg_reals21[0]<=udg_reals21[1]))then
return false
endif
return true
endfunction
function Trig_Bash_Area_Actions takes nothing returns nothing
if(Trig_Bash_Area_Func001C())then
set udg_reals21[1]=5.00
set udg_reals21[2]=200.00
set udg_reals21[3]=200.00
set udg_integer21=1
else
if(Trig_Bash_Area_Func001Func002C())then
set udg_reals21[1]=8.00
set udg_reals21[2]=400.00
set udg_reals21[3]=250.00
set udg_integer21=2
else
if(Trig_Bash_Area_Func001Func002Func002C())then
set udg_reals21[1]=10.00
set udg_reals21[2]=600.00
set udg_reals21[3]=300.00
set udg_integer21=3
else
if(Trig_Bash_Area_Func001Func002Func002Func002C())then
set udg_reals21[1]=12.00
set udg_reals21[2]=800.00
set udg_reals21[3]=350.00
set udg_integer21=4
else
if(Trig_Bash_Area_Func001Func002Func002Func002Func002C())then
set udg_reals21[1]=14.00
set udg_reals21[2]=(1000.00+(0.50*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,GetAttacker(),false))))
set udg_reals21[3]=400.00
set udg_integer21=5
else
call DoNothing()
endif
endif
endif
endif
endif
if(Trig_Bash_Area_Func002C())then
call AddSpecialEffectTargetUnitBJ("overhead",GetAttacker(),"Abilities\\Spells\\Other\\CrushingWave\\CrushingWaveDamage.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(udg_reals21[3],GetUnitLoc(GetAttackedUnitBJ()),Condition(function Trig_Bash_Area_Func002Func004001003)),function Trig_Bash_Area_Func002Func004A)
else
call DoNothing()
endif
endfunction
function Trig_Bash_Real_Actions takes nothing returns nothing
set udg_reals21[0]=GetRandomReal(0,100.00)
endfunction
function Trig_Learn_Life_Steal_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A06U'))then
return false
endif
return true
endfunction
function Trig_Learn_Life_Steal_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger391)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_LifeSteal_Func009C takes nothing returns boolean
if(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())=='O019'))then
return false
endif
if(not(UnitHasBuffBJ(GetAttacker(),'BUav')==true))then
return false
endif
return true
endfunction
function Trig_LifeSteal_Conditions takes nothing returns boolean
if(not Trig_LifeSteal_Func009C())then
return false
endif
return true
endfunction
function Trig_LifeSteal_Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06U',GetAttacker())==5))then
return false
endif
return true
endfunction
function Trig_LifeSteal_Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06U',GetAttacker())==4))then
return false
endif
return true
endfunction
function Trig_LifeSteal_Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06U',GetAttacker())==3))then
return false
endif
return true
endfunction
function Trig_LifeSteal_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06U',GetAttacker())==2))then
return false
endif
return true
endfunction
function Trig_LifeSteal_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A06U',GetAttacker())==1))then
return false
endif
return true
endfunction
function Trig_LifeSteal_Actions takes nothing returns nothing
if(Trig_LifeSteal_Func001C())then
set udg_real15=(0.01*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker()))
else
if(Trig_LifeSteal_Func001Func001C())then
set udg_real15=(0.02*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker()))
else
if(Trig_LifeSteal_Func001Func001Func001C())then
set udg_real15=(0.03*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker()))
else
if(Trig_LifeSteal_Func001Func001Func001Func001C())then
set udg_real15=(0.04*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker()))
else
if(Trig_LifeSteal_Func001Func001Func001Func001Func001C())then
set udg_real15=(0.05*GetUnitStateSwap(UNIT_STATE_MAX_LIFE,GetAttacker()))
else
call DoNothing()
endif
endif
endif
endif
endif
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),udg_real15,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
call SetUnitLifeBJ(GetAttacker(),(GetUnitStateSwap(UNIT_STATE_LIFE,GetAttacker())+udg_real15))
call CreateTextTagUnitBJ((I2S(R2I(udg_real15))+" Dmg"),GetAttackedUnitBJ(),0,10,0.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100,100.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),1.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
endfunction
function Trig_Light_Strike_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00I'))then
return false
endif
return true
endfunction
function Trig_Light_Strike_Func006Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00I',udg_units25[0])==5))then
return false
endif
return true
endfunction
function Trig_Light_Strike_Func006Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00I',udg_units25[0])==4))then
return false
endif
return true
endfunction
function Trig_Light_Strike_Func006Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00I',udg_units25[0])==3))then
return false
endif
return true
endfunction
function Trig_Light_Strike_Func006Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00I',udg_units25[0])==2))then
return false
endif
return true
endfunction
function Trig_Light_Strike_Func006C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A00I',udg_units25[0])==1))then
return false
endif
return true
endfunction
function Trig_Light_Strike_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units25[0]=GetSpellAbilityUnit()
set udg_reals22[0]=AngleBetweenPoints(GetUnitLoc(udg_units25[0]),GetSpellTargetLoc())
set udg_reals22[1]=100.00
set udg_locations15[0]=GetSpellTargetLoc()
if(Trig_Light_Strike_Func006C())then
set udg_reals22[2]=500.00
set udg_reals22[3]=500.00
set udg_reals22[4]=500.00
else
if(Trig_Light_Strike_Func006Func001C())then
set udg_reals22[2]=1500.00
set udg_reals22[3]=1500.00
set udg_reals22[4]=1500.00
else
if(Trig_Light_Strike_Func006Func001Func001C())then
set udg_reals22[2]=3000.00
set udg_reals22[3]=3000.00
set udg_reals22[4]=3000.00
else
if(Trig_Light_Strike_Func006Func001Func001Func001C())then
set udg_reals22[2]=6000.00
set udg_reals22[3]=6000.00
set udg_reals22[4]=6000.00
else
if(Trig_Light_Strike_Func006Func001Func001Func001Func001C())then
set udg_reals22[2]=(6400.00+(0.50*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units25[0],false))))
set udg_reals22[3]=(6400.00+(0.40*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units25[0],false))))
set udg_reals22[4]=(6400.00+(0.30*I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units25[0],false))))
else
call DoNothing()
endif
endif
endif
endif
endif
call PauseUnitBJ(true,udg_units25[0])
call SetUnitAnimation(udg_units25[0],"attack walk stand spin")
call TriggerSleepAction(0.50)
call SetUnitAnimation(udg_units25[0],"attack slam")
call SetUnitPositionLocFacingBJ(udg_units25[0],udg_locations15[0],udg_reals22[0])
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("head",udg_units25[0],"Abilities\\Spells\\Items\\AIda\\AIdaCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitTimeScalePercent(udg_units25[0],5.00)
call TriggerSleepAction(1.00)
call PlaySoundOnUnitBJ(udg_sound38,100,udg_units25[0])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetEQNoiseForPlayer(ConvertedPlayer(GetForLoopIndexA()),15.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units25[0],100.00)
call CreateNUnitsAtLoc(1,'e00O',GetOwningPlayer(udg_units25[0]),PolarProjectionBJ(GetUnitLoc(udg_units25[0]),100.00,udg_reals22[0]),udg_reals22[0])
set udg_units25[1]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(5.00,'BHwe',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),800.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units25[0]),udg_reals22[1],udg_reals22[0]),"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_reals22[1]=(udg_reals22[1]+400.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(0.01)
call TriggerExecute(udg_trigger393)
call SetUnitTimeScalePercent(udg_units25[1],30.00)
call TriggerSleepAction(0.15)
call SetUnitTimeScalePercent(udg_units25[0],0.00)
call TriggerSleepAction(1.00)
call TerrainDeformationWaveBJ(0.50,PolarProjectionBJ(GetUnitLoc(udg_units25[0]),100.00,udg_reals22[0]),PolarProjectionBJ(GetUnitLoc(udg_units25[0]),800.00,udg_reals22[0]),250.00,-20.00,0.50)
call SetUnitTimeScalePercent(udg_units25[0],100.00)
call SetUnitTimeScalePercent(udg_units25[1],100.00)
call PauseUnitBJ(false,udg_units25[0])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraClearNoiseForPlayer(ConvertedPlayer(GetForLoopIndexA()))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_units25[0]=null
set udg_units25[1]=null
set udg_units25[2]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Dmg_Func006001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function Trig_Dmg_Func006001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Dmg_Func006001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units25[0]))==true)
endfunction
function Trig_Dmg_Func006001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Dmg_Func006001003002001(),Trig_Dmg_Func006001003002002())
endfunction
function Trig_Dmg_Func006001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Dmg_Func006001003001(),Trig_Dmg_Func006001003002())
endfunction
function Trig_Dmg_Func006A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00P',GetOwningPlayer(udg_units25[0]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
call UnitDamageTargetBJ(udg_units25[0],GetEnumUnit(),udg_reals22[2],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Dmg_Func007001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function Trig_Dmg_Func007001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Dmg_Func007001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units25[0]))==true)
endfunction
function Trig_Dmg_Func007001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Dmg_Func007001003002001(),Trig_Dmg_Func007001003002002())
endfunction
function Trig_Dmg_Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Dmg_Func007001003001(),Trig_Dmg_Func007001003002())
endfunction
function Trig_Dmg_Func007A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00P',GetOwningPlayer(udg_units25[0]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
call UnitDamageTargetBJ(udg_units25[0],GetEnumUnit(),udg_reals22[3],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Dmg_Func008001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_FLYING)==false)
endfunction
function Trig_Dmg_Func008001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Dmg_Func008001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units25[0]))==true)
endfunction
function Trig_Dmg_Func008001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Dmg_Func008001003002001(),Trig_Dmg_Func008001003002002())
endfunction
function Trig_Dmg_Func008001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Dmg_Func008001003001(),Trig_Dmg_Func008001003002())
endfunction
function Trig_Dmg_Func008A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00P',GetOwningPlayer(udg_units25[0]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"thunderbolt",GetEnumUnit())
call UnitDamageTargetBJ(udg_units25[0],GetEnumUnit(),udg_reals22[4],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Dmg_Actions takes nothing returns nothing
call CreateTextTagUnitBJ((I2S(R2I(udg_reals22[2]))+" Dmg"),udg_units25[0],0,10,0.00,100,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),0.00,100.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(450.00,udg_locations15[0],Condition(function Trig_Dmg_Func006001003)),function Trig_Dmg_Func006A)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,PolarProjectionBJ(udg_locations15[0],600.00,udg_reals22[0]),Condition(function Trig_Dmg_Func007001003)),function Trig_Dmg_Func007A)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(375.00,PolarProjectionBJ(udg_locations15[0],1000.00,udg_reals22[0]),Condition(function Trig_Dmg_Func008001003)),function Trig_Dmg_Func008A)
endfunction
function Trig_Dragon_Earthquake_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03G'))then
return false
endif
return true
endfunction
function Trig_Dragon_Earthquake_Func007001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Dragon_Earthquake_Func007001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Dragon_Earthquake_Func007001003002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_GROUND)==true)
endfunction
function Trig_Dragon_Earthquake_Func007001003002002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Trig_Dragon_Earthquake_Func007001003002002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units25[0]))==true)
endfunction
function Trig_Dragon_Earthquake_Func007001003002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Dragon_Earthquake_Func007001003002002002001(),Trig_Dragon_Earthquake_Func007001003002002002002())
endfunction
function Trig_Dragon_Earthquake_Func007001003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Dragon_Earthquake_Func007001003002002001(),Trig_Dragon_Earthquake_Func007001003002002002())
endfunction
function Trig_Dragon_Earthquake_Func007001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Dragon_Earthquake_Func007001003002001(),Trig_Dragon_Earthquake_Func007001003002002())
endfunction
function Trig_Dragon_Earthquake_Func007001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Dragon_Earthquake_Func007001003001(),Trig_Dragon_Earthquake_Func007001003002())
endfunction
function Trig_Dragon_Earthquake_Func007A takes nothing returns nothing
call GroupAddUnitSimple(GetEnumUnit(),udg_group21)
endfunction
function Trig_Dragon_Earthquake_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units25[0]=GetSpellAbilityUnit()
set udg_reals22[0]=AngleBetweenPoints(GetUnitLoc(udg_units25[0]),GetSpellTargetLoc())
set udg_reals22[1]=100.00
set udg_locations15[0]=GetSpellTargetLoc()
set udg_reals23[0]=3500.00
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetSpellTargetLoc(),Condition(function Trig_Dragon_Earthquake_Func007001003)),function Trig_Dragon_Earthquake_Func007A)
call PauseUnitBJ(true,udg_units25[0])
call SetUnitAnimation(udg_units25[0],"attack walk stand spin")
call TriggerSleepAction(0.50)
call PlaySoundOnUnitBJ(udg_sound39,100,udg_units25[0])
call SetUnitAnimation(udg_units25[0],"attack slam")
call SetUnitPositionLocFacingBJ(udg_units25[0],udg_locations15[0],udg_reals22[0])
call TriggerSleepAction(0.20)
call AddSpecialEffectTargetUnitBJ("head",udg_units25[0],"Abilities\\Spells\\Items\\AIda\\AIdaCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitTimeScalePercent(udg_units25[0],5.00)
call TriggerSleepAction(1.00)
call PlaySoundOnUnitBJ(udg_sound40,100,udg_units25[0])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraSetEQNoiseForPlayer(ConvertedPlayer(GetForLoopIndexA()),10.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitTimeScalePercent(udg_units25[0],100.00)
call CreateNUnitsAtLoc(1,'e00S',GetOwningPlayer(udg_units25[0]),PolarProjectionBJ(GetUnitLoc(udg_units25[0]),100.00,udg_reals22[0]),udg_reals22[0])
call UnitApplyTimedLifeBJ(4.00,'BHwe',GetLastCreatedUnit())
call CreateNUnitsAtLoc(1,'e00R',GetOwningPlayer(udg_units25[0]),PolarProjectionBJ(GetUnitLoc(udg_units25[0]),100.00,udg_reals22[0]),udg_reals22[0])
set udg_units25[1]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(5.00,'BHwe',GetLastCreatedUnit())
call SetUnitTimeScalePercent(GetLastCreatedUnit(),800.00)
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units25[0]),udg_reals22[1],udg_reals22[0]),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(PolarProjectionBJ(GetUnitLoc(udg_units25[0]),udg_reals22[1],udg_reals22[0]),"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
call TriggerExecute(udg_trigger395)
call TriggerSleepAction(0.01)
call CreateNUnitsAtLoc(1,'e00Q',GetOwningPlayer(udg_units25[0]),PolarProjectionBJ(GetUnitLoc(udg_units25[0]),100.00,udg_reals22[0]),udg_reals22[0])
set udg_units25[2]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(5.00,'BHwe',GetLastCreatedUnit())
call SetUnitFlyHeightBJ(udg_units25[2],2000.00,800.00)
call SetUnitTimeScalePercent(udg_units25[1],30.00)
call TriggerSleepAction(0.15)
call SetUnitTimeScalePercent(udg_units25[0],0.00)
call TriggerSleepAction(1.00)
call SetUnitTimeScalePercent(udg_units25[0],100.00)
call SetUnitTimeScalePercent(udg_units25[1],100.00)
call PauseUnitBJ(false,udg_units25[0])
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CameraClearNoiseForPlayer(ConvertedPlayer(GetForLoopIndexA()))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function Trig_StormLand_2_Func001Func001Func002Func003Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03G',udg_units25[0])==5))then
return false
endif
return true
endfunction
function Trig_StormLand_2_Func001Func001Func002Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03G',udg_units25[0])==4))then
return false
endif
return true
endfunction
function Trig_StormLand_2_Func001Func001Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03G',udg_units25[0])==3))then
return false
endif
return true
endfunction
function Trig_StormLand_2_Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03G',udg_units25[0])==2))then
return false
endif
return true
endfunction
function Trig_StormLand_2_Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03G',udg_units25[0])==1))then
return false
endif
return true
endfunction
function Trig_StormLand_2_Func002A takes nothing returns nothing
call PauseUnitBJ(true,GetEnumUnit())
call SetUnitPathing(GetEnumUnit(),false)
call UnitAddAbilityBJ('Amrf',GetEnumUnit())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_StormLand_2_Func010A takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call AddSpecialEffectLocBJ(GetUnitLoc(GetEnumUnit()),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_StormLand_2_Func011A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e00T',GetOwningPlayer(udg_units25[0]),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"thunderclap")
endfunction
function Trig_StormLand_2_Func021Func002001003001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_StormLand_2_Func021Func002001003002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units25[0]))==true)
endfunction
function Trig_StormLand_2_Func021Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_StormLand_2_Func021Func002001003001(),Trig_StormLand_2_Func021Func002001003002())
endfunction
function Trig_StormLand_2_Func021Func002A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units25[0],GetEnumUnit(),udg_reals23[1],ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_StormLand_2_Func021A takes nothing returns nothing
call UnitRemoveAbilityBJ('Amrf',GetEnumUnit())
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(GetEnumUnit()),Condition(function Trig_StormLand_2_Func021Func002001003)),function Trig_StormLand_2_Func021Func002A)
endfunction
function Trig_StormLand_2_Func022A takes nothing returns nothing
call SetUnitPathing(GetEnumUnit(),true)
call PauseUnitBJ(false,GetEnumUnit())
endfunction
function Trig_StormLand_2_Actions takes nothing returns nothing
if(Trig_StormLand_2_Func001C())then
set udg_reals23[1]=200.00
else
if(Trig_StormLand_2_Func001Func001C())then
set udg_reals23[1]=400.00
else
if(Trig_StormLand_2_Func001Func001Func002C())then
set udg_reals23[1]=300.00
else
if(Trig_StormLand_2_Func001Func001Func002Func003C())then
set udg_reals23[1]=600.00
else
if(Trig_StormLand_2_Func001Func001Func002Func003Func002C())then
set udg_reals23[1]=(800.00+(0.50*I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units25[0],false))))
else
call DoNothing()
endif
endif
endif
endif
endif
call ForGroupBJ(udg_group21,function Trig_StormLand_2_Func002A)
call EnableTrigger(udg_trigger397)
call EnableTrigger(udg_trigger396)
call TriggerSleepAction(0.50)
call DisableTrigger(udg_trigger397)
set udg_reals23[0]=50.00
call EnableTrigger(udg_trigger398)
call TriggerSleepAction(0.10)
call ForGroupBJ(udg_group21,function Trig_StormLand_2_Func010A)
call ForGroupBJ(udg_group21,function Trig_StormLand_2_Func011A)
call DisableTrigger(udg_trigger396)
call DisableTrigger(udg_trigger398)
call TriggerSleepAction(0.50)
call CreateTextTagUnitBJ((I2S(R2I(udg_reals23[1]))+" Dmg"),udg_units25[0],0,10,0.00,100.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100.00,0.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call ForGroupBJ(udg_group21,function Trig_StormLand_2_Func021A)
call ForGroupBJ(udg_group21,function Trig_StormLand_2_Func022A)
call GroupClear(udg_group21)
call EnableTrigger(udg_trigger394)
endfunction
function Trig_Fly_and_Move_2_Func001A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),4.00,(GetUnitFacing(GetEnumUnit())-180.00)))
endfunction
function Trig_Fly_and_Move_2_Actions takes nothing returns nothing
call ForGroupBJ(udg_group21,function Trig_Fly_and_Move_2_Func001A)
endfunction
function Trig_Fly_up_2_Func001A takes nothing returns nothing
call SetUnitFlyHeightBJ(GetEnumUnit(),1300.00,udg_reals23[0])
endfunction
function Trig_Fly_up_2_Func002C takes nothing returns boolean
if(not(udg_reals23[0]<=150.00))then
return false
endif
return true
endfunction
function Trig_Fly_up_2_Actions takes nothing returns nothing
call ForGroupBJ(udg_group21,function Trig_Fly_up_2_Func001A)
if(Trig_Fly_up_2_Func002C())then
call DoNothing()
else
set udg_reals23[0]=(udg_reals23[0]-70.00)
endif
endfunction
function Trig_Fly_down_2_Func001A takes nothing returns nothing
call SetUnitFlyHeightBJ(GetEnumUnit(),0.00,udg_reals23[0])
set udg_reals23[0]=(udg_reals23[0]+60.00)
endfunction
function Trig_Fly_down_2_Actions takes nothing returns nothing
call ForGroupBJ(udg_group21,function Trig_Fly_down_2_Func001A)
endfunction
function Trig_Ended_Strike_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A040'))then
return false
endif
return true
endfunction
function Trig_Ended_Strike_Func052C takes nothing returns boolean
if(not(IsUnitType(udg_units26[1],UNIT_TYPE_HERO)==true))then
return false
endif
return true
endfunction
function Trig_Ended_Strike_Func053Func003001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Ended_Strike_Func053Func003001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Ended_Strike_Func053Func003001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units26[0]))==true)
endfunction
function Trig_Ended_Strike_Func053Func003001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Ended_Strike_Func053Func003001003002001(),Trig_Ended_Strike_Func053Func003001003002002())
endfunction
function Trig_Ended_Strike_Func053Func003001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Ended_Strike_Func053Func003001003001(),Trig_Ended_Strike_Func053Func003001003002())
endfunction
function Trig_Ended_Strike_Func053Func003A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units26[0],GetEnumUnit(),(5000.00+(0.50*(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units26[0],false))+(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,udg_units26[0],false))+I2R(GetHeroStatBJ(bj_HEROSTAT_INT,udg_units26[0],false)))))),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ended_Strike_Func053Func004001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Ended_Strike_Func053Func004001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Ended_Strike_Func053Func004001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_units26[0]))==true)
endfunction
function Trig_Ended_Strike_Func053Func004001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Ended_Strike_Func053Func004001003002001(),Trig_Ended_Strike_Func053Func004001003002002())
endfunction
function Trig_Ended_Strike_Func053Func004001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Ended_Strike_Func053Func004001003001(),Trig_Ended_Strike_Func053Func004001003002())
endfunction
function Trig_Ended_Strike_Func053Func004A takes nothing returns nothing
call UnitDamageTargetBJ(udg_units26[0],GetEnumUnit(),5000.00,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
endfunction
function Trig_Ended_Strike_Func053C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A040',udg_units26[0])==1))then
return false
endif
return true
endfunction
function Trig_Ended_Strike_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units26[0]=GetSpellAbilityUnit()
set udg_units26[1]=GetSpellTargetUnit()
set udg_locations16[0]=GetUnitLoc(udg_units26[1])
set udg_locations16[1]=GetUnitLoc(udg_units26[0])
call SetUnitInvulnerable(udg_units26[0],true)
call SetUnitPathing(udg_units26[0],false)
call SetUnitPathing(udg_units26[1],false)
call PauseUnitBJ(true,udg_units26[0])
call PauseUnitBJ(true,udg_units26[1])
call UnitAddAbilityBJ('A096',udg_units26[0])
call UnitAddAbilityBJ('Amrf',udg_units26[0])
call UnitAddAbilityBJ('Amrf',udg_units26[1])
call SetUnitAnimation(udg_units26[0],"attack walk stand spin")
call TriggerSleepAction(0.50)
call SetUnitPositionLoc(udg_units26[0],udg_locations16[0])
call SetUnitFacingToFaceUnitTimed(udg_units26[0],udg_units26[1],0)
call SetUnitFacingToFaceUnitTimed(udg_units26[1],udg_units26[0],0)
call SetUnitAnimation(udg_units26[0],"attack walk stand spin")
call SetUnitTimeScalePercent(udg_units26[1],100.00)
call CreateNUnitsAtLoc(1,'e00U',GetOwningPlayer(udg_units26[0]),udg_locations16[0],bj_UNIT_FACING)
set udg_units26[2]=GetLastCreatedUnit()
call SetUnitFlyHeightBJ(udg_units26[0],1000.00,200.00)
call SetUnitFlyHeightBJ(udg_units26[1],1000.00,200.00)
call EnableTrigger(udg_trigger400)
call TriggerSleepAction(3.00)
call DisableTrigger(udg_trigger400)
call KillUnit(udg_units26[2])
call ResetUnitAnimation(udg_units26[0])
call SetUnitFacingToFaceUnitTimed(udg_units26[0],udg_units26[1],0)
call SetUnitAnimation(udg_units26[0],"attack slam")
call TriggerSleepAction(0.65)
call AddSpecialEffectTargetUnitBJ("origin",udg_units26[1],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call TriggerSleepAction(0.01)
call SetUnitFlyHeightBJ(udg_units26[0],0.00,100000000.00)
call SetUnitPositionLoc(udg_units26[0],udg_locations16[1])
call SetUnitFlyHeightBJ(udg_units26[1],0.00,900.00)
call TriggerSleepAction(0.10)
call PlaySoundOnUnitBJ(udg_sound40,100,udg_units26[0])
call AddSpecialEffectLocBJ(udg_locations16[0],"Abilities\\Spells\\Human\\FlameStrike\\FlameStrike1.mdl")
call AddSpecialEffectLocBJ(udg_locations16[0],"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call CreateNUnitsAtLoc(1,'e00V',GetOwningPlayer(udg_units26[0]),udg_locations16[0],GetRandomDirectionDeg())
set udg_units26[3]=GetLastCreatedUnit()
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call SetUnitFlyHeightBJ(udg_units26[3],0.00,800.00)
call PauseUnitBJ(false,udg_units26[0])
call TriggerSleepAction(1.00)
if(Trig_Ended_Strike_Func052C())then
call ResetUnitAnimation(udg_units26[1])
else
call ExplodeUnitBJ(udg_units26[1])
endif
if(Trig_Ended_Strike_Func053C())then
set udg_real16=5000.00
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_units26[1]),Condition(function Trig_Ended_Strike_Func053Func004001003)),function Trig_Ended_Strike_Func053Func004A)
else
set udg_real16=(5000.00+(0.50*(I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units26[0],false))+I2R((GetHeroStatBJ(bj_HEROSTAT_AGI,udg_units26[0],false)+GetHeroStatBJ(bj_HEROSTAT_INT,udg_units26[0],false))))))
call ForGroupBJ(GetUnitsInRangeOfLocMatching(800.00,GetUnitLoc(udg_units26[1]),Condition(function Trig_Ended_Strike_Func053Func003001003)),function Trig_Ended_Strike_Func053Func003A)
endif
call CreateTextTagUnitBJ((I2S(R2I(udg_real16))+" Dmg"),udg_units26[1],0,10,0.00,100.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100.00,0.00,100.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call SetUnitPathing(udg_units26[0],true)
call SetUnitPathing(udg_units26[1],true)
call SetUnitInvulnerable(udg_units26[0],false)
call UnitRemoveAbilityBJ('Amrf',udg_units26[0])
call UnitRemoveAbilityBJ('Amrf',udg_units26[1])
call UnitRemoveAbilityBJ('A096',udg_units26[0])
set udg_units26[0]=null
set udg_units26[1]=null
set udg_units26[2]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Effect_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("head",udg_units26[1],"Objects\\Spawnmodels\\Human\\HumanBlood\\HumanBloodPeasant.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
call SetUnitFacingTimed(udg_units26[1],GetRandomDirectionDeg(),1.00)
call SetUnitAnimation(udg_units26[1],"death")
call PlaySoundOnUnitBJ(udg_sound28,100,udg_units26[1])
endfunction
function Trig_Death_Prevent_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A088'))then
return false
endif
return true
endfunction
function Trig_Death_Prevent_Func002Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A088',GetSpellAbilityUnit())==5))then
return false
endif
return true
endfunction
function Trig_Death_Prevent_Func002Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A088',GetSpellAbilityUnit())==4))then
return false
endif
return true
endfunction
function Trig_Death_Prevent_Func002Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A088',GetSpellAbilityUnit())==3))then
return false
endif
return true
endfunction
function Trig_Death_Prevent_Func002Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A088',GetSpellAbilityUnit())==2))then
return false
endif
return true
endfunction
function Trig_Death_Prevent_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A088',GetSpellAbilityUnit())==1))then
return false
endif
return true
endfunction
function Trig_Death_Prevent_Func007001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Death_Prevent_Func007001002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==true)
endfunction
function Trig_Death_Prevent_Func007001002002002 takes nothing returns boolean
return(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetSpellAbilityUnit()))==true)
endfunction
function Trig_Death_Prevent_Func007001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Death_Prevent_Func007001002002001(),Trig_Death_Prevent_Func007001002002002())
endfunction
function Trig_Death_Prevent_Func007001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Death_Prevent_Func007001002001(),Trig_Death_Prevent_Func007001002002())
endfunction
function Trig_Death_Prevent_Func007A takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ("origin",GetEnumUnit(),"Abilities\\Spells\\Items\\AIre\\AIreTarget.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_Death_Prevent_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if(Trig_Death_Prevent_Func002C())then
set udg_real17=5.00
else
if(Trig_Death_Prevent_Func002Func001C())then
set udg_real17=10.00
else
if(Trig_Death_Prevent_Func002Func001Func001C())then
set udg_real17=15.00
else
if(Trig_Death_Prevent_Func002Func001Func001Func001C())then
set udg_real17=20.00
else
if(Trig_Death_Prevent_Func002Func001Func001Func001Func001C())then
set udg_real17=25.00
else
call DoNothing()
endif
endif
endif
endif
endif
call PlaySoundBJ(udg_sound41)
call SetSoundVolumeBJ(GetLastPlayedSound(),100.00)
call CreateNUnitsAtLoc(1,'e00W',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(2.00,'BHwe',GetLastCreatedUnit())
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Death_Prevent_Func007001002)),function Trig_Death_Prevent_Func007A)
call EnableTrigger(udg_trigger402)
call TriggerSleepAction(udg_real17)
call DisableTrigger(udg_trigger402)
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Active_Prevent_Func001C takes nothing returns boolean
if(not(GetOwningPlayer(GetAttacker())==Player(11)))then
return false
endif
if(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==false))then
return false
endif
return true
endfunction
function Trig_Active_Prevent_Conditions takes nothing returns boolean
if(not Trig_Active_Prevent_Func001C())then
return false
endif
return true
endfunction
function Trig_Active_Prevent_Actions takes nothing returns nothing
call IssueImmediateOrderBJ(GetAttacker(),"stop")
endfunction
function Trig_Finish_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A08D'))then
return false
endif
return true
endfunction
function Trig_Finish_Func004Func002001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Finish_Func004Func002001002002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Finish_Func004Func002001002002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_Finish_Func004Func002001002002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit47))==true)
endfunction
function Trig_Finish_Func004Func002001002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Finish_Func004Func002001002002002001(),Trig_Finish_Func004Func002001002002002002())
endfunction
function Trig_Finish_Func004Func002001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Finish_Func004Func002001002002001(),Trig_Finish_Func004Func002001002002002())
endfunction
function Trig_Finish_Func004Func002001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Finish_Func004Func002001002001(),Trig_Finish_Func004Func002001002002())
endfunction
function Trig_Finish_Func004Func002Func001Func001001002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Finish_Func004Func002Func001Func001001002002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Finish_Func004Func002Func001Func001001002002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO)==false)
endfunction
function Trig_Finish_Func004Func002Func001Func001001002002002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit47))==true)
endfunction
function Trig_Finish_Func004Func002Func001Func001001002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Finish_Func004Func002Func001Func001001002002002001(),Trig_Finish_Func004Func002Func001Func001001002002002002())
endfunction
function Trig_Finish_Func004Func002Func001Func001001002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Finish_Func004Func002Func001Func001001002002001(),Trig_Finish_Func004Func002Func001Func001001002002002())
endfunction
function Trig_Finish_Func004Func002Func001Func001001002 takes nothing returns boolean
return GetBooleanAnd(Trig_Finish_Func004Func002Func001Func001001002001(),Trig_Finish_Func004Func002Func001Func001001002002())
endfunction
function Trig_Finish_Func004Func002Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=4000.00))then
return false
endif
return true
endfunction
function Trig_Finish_Func004Func002Func001Func001A takes nothing returns nothing
if(Trig_Finish_Func004Func002Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_unit47,GetEnumUnit(),9999999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call DoNothing()
endif
endfunction
function Trig_Finish_Func004Func002Func001C takes nothing returns boolean
if(not(GetUnitStateSwap(UNIT_STATE_LIFE,GetEnumUnit())<=2000.00))then
return false
endif
return true
endfunction
function Trig_Finish_Func004Func002A takes nothing returns nothing
if(Trig_Finish_Func004Func002Func001C())then
call UnitDamageTargetBJ(udg_unit47,GetEnumUnit(),9999999.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
else
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Finish_Func004Func002Func001Func001001002)),function Trig_Finish_Func004Func002Func001Func001A)
endif
endfunction
function Trig_Finish_Func004C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A08D',udg_unit47)==1))then
return false
endif
return true
endfunction
function Trig_Finish_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit47=GetSpellAbilityUnit()
call TriggerSleepAction(1.00)
if(Trig_Finish_Func004C())then
call ForGroupBJ(GetUnitsInRectMatching(GetPlayableMapRect(),Condition(function Trig_Finish_Func004Func002001002)),function Trig_Finish_Func004Func002A)
else
call DoNothing()
endif
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_WindWalk_Start_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A03H'))then
return false
endif
return true
endfunction
function Trig_WindWalk_Start_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger405)
endfunction
function Trig_Wind_Walk_Func003C takes nothing returns boolean
if(not(IsUnitType(GetAttacker(),UNIT_TYPE_HERO)==true))then
return false
endif
if(not(GetUnitTypeId(GetAttacker())=='O018'))then
return false
endif
return true
endfunction
function Trig_Wind_Walk_Conditions takes nothing returns boolean
if(not Trig_Wind_Walk_Func003C())then
return false
endif
return true
endfunction
function Trig_Wind_Walk_Func002C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A03H',GetAttacker())==5))then
return false
endif
return true
endfunction
function Trig_Wind_Walk_Actions takes nothing returns nothing
set udg_real18=(I2R(GetHeroStatBJ(bj_HEROSTAT_STR,GetAttacker(),false))/2.00)
if(Trig_Wind_Walk_Func002C())then
call CreateTextTagUnitBJ((I2S(R2I(udg_real18))+" Dmg more"),GetAttacker(),0.00,10,0.00,100.00,0.00,0)
call SetTextTagVelocityBJ(GetLastCreatedTextTag(),64,90)
call SetTextTagColorBJ(GetLastCreatedTextTag(),100.00,0.00,0.00,0)
call SetTextTagLifespanBJ(GetLastCreatedTextTag(),3.00)
call SetTextTagPermanentBJ(GetLastCreatedTextTag(),false)
call UnitDamageTargetBJ(GetAttacker(),GetAttackedUnitBJ(),udg_real18,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_NORMAL)
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endfunction
function Trig_Enemy_Actions takes nothing returns nothing
call SetForceAllianceStateBJ(udg_force01,udg_force01,bj_ALLIANCE_UNALLIED)
endfunction
function Trig_Alice_Actions takes nothing returns nothing
call SetForceAllianceStateBJ(udg_force01,udg_force01,bj_ALLIANCE_ALLIED_VISION)
endfunction
function Trig_Kodo_Beast_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AV'))then
return false
endif
return true
endfunction
function Trig_Kodo_Beast_Actions takes nothing returns nothing
call KillUnit(udg_unit51)
call CreateNUnitsAtLoc(1,'o01F',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
set udg_unit51=GetLastCreatedUnit()
call SetUnitAbilityLevelSwapped('A0AS',udg_unit51,GetUnitAbilityLevelSwapped('A0AV',GetSpellAbilityUnit()))
call SetUnitAbilityLevelSwapped('S002',udg_unit51,GetUnitAbilityLevelSwapped('A0AV',GetSpellAbilityUnit()))
call SetUnitAbilityLevelSwapped('A0AU',udg_unit51,GetUnitAbilityLevelSwapped('A0AV',GetSpellAbilityUnit()))
call SetUnitAbilityLevelSwapped('A0AT',udg_unit51,GetUnitAbilityLevelSwapped('A0AV',GetSpellAbilityUnit()))
endfunction
function Trig_Zeg_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A05X'))then
return false
endif
return true
endfunction
function Trig_Zeg_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetSpellAbilityUnit()),"Abilities\\Spells\\Items\\TomeOfRetraining\\TomeOfRetrainingCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
endfunction
function Trig_Shock_Rock_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0A7'))then
return false
endif
return true
endfunction
function Trig_Shock_Rock_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_units27[0]=GetSpellAbilityUnit()
set udg_reals24[0]=AngleBetweenPoints(GetUnitLoc(udg_units27[0]),GetSpellTargetLoc())
set udg_reals24[1]=100.00
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateDestructableLoc('YTpb',PolarProjectionBJ(GetUnitLoc(udg_units27[0]),udg_reals24[1],udg_reals24[0]),udg_reals24[1],0.00,0)
set udg_destructables01[GetForLoopIndexA()]=GetLastCreatedDestructable()
call CreateNUnitsAtLoc(1,'h00G',GetOwningPlayer(udg_units27[0]),PolarProjectionBJ(GetUnitLoc(udg_units27[0]),udg_reals24[1],udg_reals24[0]),GetRandomDirectionDeg())
set udg_units27[GetForLoopIndexA()]=GetLastCreatedUnit()
call AddSpecialEffectLocBJ(GetUnitLoc(GetLastCreatedUnit()),"Abilities\\Spells\\Other\\Volcano\\VolcanoDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_reals24[1]=(udg_reals24[1]+70.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(8.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=20
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables01[GetForLoopIndexA()])
call RemoveUnit(udg_units27[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_units27[0]=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Attacked_Entotem_Conditions takes nothing returns boolean
if(not(UnitHasBuffBJ(GetAttacker(),'B00U')==true))then
return false
endif
return true
endfunction
function Trig_Attacked_Entotem_Actions takes nothing returns nothing
set udg_units28[0]=GetAttacker()
set udg_units28[1]=GetAttackedUnitBJ()
call TriggerRegisterUnitEvent(udg_trigger412,udg_units28[1],EVENT_UNIT_DAMAGED)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_DealDamage_Conditions takes nothing returns boolean
if(not(UnitHasBuffBJ(GetEventDamageSource(),'B00U')==true))then
return false
endif
return true
endfunction
function Trig_DealDamage_Actions takes nothing returns nothing
call UnitRemoveBuffBJ('B00U',udg_units28[0])
set udg_units28[0]=null
set udg_units28[1]=null
call EnableTrigger(udg_trigger411)
endfunction
function Trig_Learn_Allstun_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A00M'))then
return false
endif
return true
endfunction
function Trig_Learn_Allstun_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger414)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_AllStun_Func001Func002C takes nothing returns boolean
if((GetSpellAbilityId()=='A0A7'))then
return true
endif
if((GetSpellAbilityId()=='A0AA'))then
return true
endif
if((GetSpellAbilityId()=='A0A8'))then
return true
endif
return false
endfunction
function Trig_AllStun_Func001C takes nothing returns boolean
if(not(GetUnitTypeId(GetSpellAbilityUnit())=='O00C'))then
return false
endif
if(not Trig_AllStun_Func001Func002C())then
return false
endif
return true
endfunction
function Trig_AllStun_Conditions takes nothing returns boolean
if(not Trig_AllStun_Func001C())then
return false
endif
return true
endfunction
function Trig_AllStun_Actions takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e012',GetOwningPlayer(GetSpellAbilityUnit()),GetUnitLoc(GetSpellAbilityUnit()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A0A9',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A00M',GetSpellAbilityUnit()))
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"stomp")
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
endfunction
function Trig_Echo_Slam_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AA'))then
return false
endif
return true
endfunction
function Trig_Echo_Slam_Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Echo_Slam_Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Echo_Slam_Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit52))==true)
endfunction
function Trig_Echo_Slam_Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Echo_Slam_Func002001003002001(),Trig_Echo_Slam_Func002001003002002())
endfunction
function Trig_Echo_Slam_Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Echo_Slam_Func002001003001(),Trig_Echo_Slam_Func002001003002())
endfunction
function Trig_Echo_Slam_Func002A takes nothing returns nothing
call CreateNUnitsAtLoc(1,'e012',GetOwningPlayer(udg_unit52),GetUnitLoc(GetEnumUnit()),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A0AB',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A0AA',udg_unit52))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"fanofknives")
endfunction
function Trig_Echo_Slam_Actions takes nothing returns nothing
set udg_unit52=GetSpellAbilityUnit()
call ForGroupBJ(GetUnitsInRangeOfLocMatching(600.00,GetUnitLoc(udg_unit52),Condition(function Trig_Echo_Slam_Func002001003)),function Trig_Echo_Slam_Func002A)
set udg_unit52=null
endfunction
function Trig_Confine_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0BB'))then
return false
endif
return true
endfunction
function Trig_Confine_Func005001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_GROUND)==true)
endfunction
function Trig_Confine_Func005001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Confine_Func005001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit53))==true)
endfunction
function Trig_Confine_Func005001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Confine_Func005001003002001(),Trig_Confine_Func005001003002002())
endfunction
function Trig_Confine_Func005001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Confine_Func005001003001(),Trig_Confine_Func005001003002())
endfunction
function Trig_Confine_Func005A takes nothing returns nothing
call SetUnitPositionLoc(GetEnumUnit(),GetUnitLoc(udg_unit53))
endfunction
function Trig_Confine_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit53=GetSpellAbilityUnit()
set udg_real20=0.00
call SetUnitPathing(udg_unit53,false)
call ForGroupBJ(GetUnitsInRangeOfLocMatching(500.00,GetUnitLoc(udg_unit53),Condition(function Trig_Confine_Func005001003)),function Trig_Confine_Func005A)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=45
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'h00H',GetOwningPlayer(udg_unit53),PolarProjectionBJ(GetUnitLoc(udg_unit53),350.00,udg_real20),AngleBetweenPoints(GetUnitLoc(udg_unit53),GetUnitLoc(GetLastCreatedUnit())))
call UnitApplyTimedLifeBJ(8.00,'BHwe',GetLastCreatedUnit())
call CreateDestructableLoc('YTpb',PolarProjectionBJ(GetUnitLoc(udg_unit53),350.00,udg_real20),GetRandomDirectionDeg(),0.00,0)
set udg_destructables02[GetForLoopIndexA()]=GetLastCreatedDestructable()
set udg_real20=(udg_real20+8.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(8.00)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=90
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call RemoveDestructable(udg_destructables02[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPathing(udg_unit53,true)
set udg_unit53=null
call EnableTrigger(GetTriggeringTrigger())
endfunction
function Trig_FireSlice_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A01S'))then
return false
endif
return true
endfunction
function Trig_FireSlice_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit37=GetSpellAbilityUnit()
call ShowUnitHide(udg_unit37)
set udg_locations12[0]=GetUnitLoc(udg_unit37)
set udg_locations12[1]=GetSpellTargetLoc()
set udg_reals13[0]=DistanceBetweenPoints(udg_locations12[0],udg_locations12[1])
set udg_reals13[1]=AngleBetweenPoints(udg_locations12[0],udg_locations12[1])
set udg_integers03[0]=(R2I(udg_reals13[0])/200)
set udg_integers03[1]=0
call EnableTrigger(udg_trigger418)
endfunction
function Trig_FireSliceMove_Func004002003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_FireSliceMove_Func004002003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_FireSliceMove_Func004002003002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Trig_FireSliceMove_Func004002003002002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit37))==true)
endfunction
function Trig_FireSliceMove_Func004002003002002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group29)==false)
endfunction
function Trig_FireSliceMove_Func004002003002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_FireSliceMove_Func004002003002002002001(),Trig_FireSliceMove_Func004002003002002002002())
endfunction
function Trig_FireSliceMove_Func004002003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_FireSliceMove_Func004002003002002001(),Trig_FireSliceMove_Func004002003002002002())
endfunction
function Trig_FireSliceMove_Func004002003002 takes nothing returns boolean
return GetBooleanAnd(Trig_FireSliceMove_Func004002003002001(),Trig_FireSliceMove_Func004002003002002())
endfunction
function Trig_FireSliceMove_Func004002003 takes nothing returns boolean
return GetBooleanAnd(Trig_FireSliceMove_Func004002003001(),Trig_FireSliceMove_Func004002003002())
endfunction
function Trig_FireSliceMove_Func005Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01S',udg_unit37)==5))then
return false
endif
return true
endfunction
function Trig_FireSliceMove_Func005Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01S',udg_unit37)==4))then
return false
endif
return true
endfunction
function Trig_FireSliceMove_Func005Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01S',udg_unit37)==3))then
return false
endif
return true
endfunction
function Trig_FireSliceMove_Func005Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01S',udg_unit37)==2))then
return false
endif
return true
endfunction
function Trig_FireSliceMove_Func005Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A01S',udg_unit37)==1))then
return false
endif
return true
endfunction
function Trig_FireSliceMove_Func005A takes nothing returns nothing
if(Trig_FireSliceMove_Func005Func001C())then
call UnitDamageTargetBJ(udg_unit37,GetEnumUnit(),400.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FIRE)
else
if(Trig_FireSliceMove_Func005Func001Func001C())then
call UnitDamageTargetBJ(udg_unit37,GetEnumUnit(),800.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FIRE)
else
if(Trig_FireSliceMove_Func005Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_unit37,GetEnumUnit(),1600.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FIRE)
else
if(Trig_FireSliceMove_Func005Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_unit37,GetEnumUnit(),3200.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FIRE)
else
if(Trig_FireSliceMove_Func005Func001Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_unit37,GetEnumUnit(),6400.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_FIRE)
else
call DoNothing()
endif
endif
endif
endif
endif
call GroupAddUnitSimple(GetEnumUnit(),udg_group29)
endfunction
function Trig_FireSliceMove_Func010C takes nothing returns boolean
if(not(udg_integers03[1]>=udg_integers03[0]))then
return false
endif
return true
endfunction
function Trig_FireSliceMove_Actions takes nothing returns nothing
set udg_locations12[2]=PolarProjectionBJ(udg_locations12[0],(200.00*I2R(udg_integers03[1])),udg_reals13[1])
call AddSpecialEffectLocBJ(udg_locations12[2],"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_group07=GetUnitsInRangeOfLocMatching(450.00,udg_locations12[2],Condition(function Trig_FireSliceMove_Func004002003))
call ForGroupBJ(udg_group07,function Trig_FireSliceMove_Func005A)
call DestroyGroup(udg_group07)
call CreateNUnitsAtLoc(1,'h01R',GetOwningPlayer(udg_unit37),udg_locations12[2],bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(5.00,'BHwe',GetLastCreatedUnit())
call RemoveLocation(udg_locations12[2])
if(Trig_FireSliceMove_Func010C())then
call SetUnitPositionLocFacingBJ(udg_unit37,udg_locations12[1],udg_reals13[1])
call ShowUnitShow(udg_unit37)
call GroupClear(udg_group29)
call SelectUnitForPlayerSingle(udg_unit37,GetOwningPlayer(udg_unit37))
call RemoveLocation(udg_locations12[0])
call RemoveLocation(udg_locations12[1])
call RemoveLocation(udg_locations12[2])
set udg_unit37=null
call EnableTrigger(udg_trigger417)
call DisableTrigger(GetTriggeringTrigger())
else
set udg_integers03[1]=(udg_integers03[1]+1)
endif
endfunction
function Trig_Wave_Form_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0BD'))then
return false
endif
return true
endfunction
function Trig_Wave_Form_Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_unit54=GetSpellAbilityUnit()
call ShowUnitHide(udg_unit54)
set udg_locations17[0]=GetUnitLoc(udg_unit54)
set udg_locations17[1]=GetSpellTargetLoc()
set udg_reals25[0]=DistanceBetweenPoints(udg_locations17[0],udg_locations17[1])
set udg_reals25[1]=AngleBetweenPoints(udg_locations17[0],udg_locations17[1])
set udg_integers04[0]=(R2I(udg_reals25[0])/20)
set udg_integers04[1]=0
call EnableTrigger(udg_trigger420)
endfunction
function Trig_Wave_Form_Move_Func004002003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Wave_Form_Move_Func004002003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Wave_Form_Move_Func004002003002002001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_MAGIC_IMMUNE)==false)
endfunction
function Trig_Wave_Form_Move_Func004002003002002002001 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(udg_unit54))==true)
endfunction
function Trig_Wave_Form_Move_Func004002003002002002002 takes nothing returns boolean
return(IsUnitInGroup(GetFilterUnit(),udg_group28)==false)
endfunction
function Trig_Wave_Form_Move_Func004002003002002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Wave_Form_Move_Func004002003002002002001(),Trig_Wave_Form_Move_Func004002003002002002002())
endfunction
function Trig_Wave_Form_Move_Func004002003002002 takes nothing returns boolean
return GetBooleanAnd(Trig_Wave_Form_Move_Func004002003002002001(),Trig_Wave_Form_Move_Func004002003002002002())
endfunction
function Trig_Wave_Form_Move_Func004002003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Wave_Form_Move_Func004002003002001(),Trig_Wave_Form_Move_Func004002003002002())
endfunction
function Trig_Wave_Form_Move_Func004002003 takes nothing returns boolean
return GetBooleanAnd(Trig_Wave_Form_Move_Func004002003001(),Trig_Wave_Form_Move_Func004002003002())
endfunction
function Trig_Wave_Form_Move_Func006Func001Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0BD',udg_unit54)==5))then
return false
endif
return true
endfunction
function Trig_Wave_Form_Move_Func006Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0BD',udg_unit54)==4))then
return false
endif
return true
endfunction
function Trig_Wave_Form_Move_Func006Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0BD',udg_unit54)==3))then
return false
endif
return true
endfunction
function Trig_Wave_Form_Move_Func006Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0BD',udg_unit54)==2))then
return false
endif
return true
endfunction
function Trig_Wave_Form_Move_Func006Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0BD',udg_unit54)==1))then
return false
endif
return true
endfunction
function Trig_Wave_Form_Move_Func006A takes nothing returns nothing
if(Trig_Wave_Form_Move_Func006Func001C())then
call UnitDamageTargetBJ(udg_unit54,GetEnumUnit(),500.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
else
if(Trig_Wave_Form_Move_Func006Func001Func001C())then
call UnitDamageTargetBJ(udg_unit54,GetEnumUnit(),1000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
else
if(Trig_Wave_Form_Move_Func006Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_unit54,GetEnumUnit(),2000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
else
if(Trig_Wave_Form_Move_Func006Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_unit54,GetEnumUnit(),3000.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
else
if(Trig_Wave_Form_Move_Func006Func001Func001Func001Func001Func001C())then
call UnitDamageTargetBJ(udg_unit54,GetEnumUnit(),(6000.00+I2R(GetHeroStatBJ(bj_HEROSTAT_AGI,udg_unit54,false))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_COLD)
else
call DoNothing()
endif
endif
endif
endif
endif
call GroupAddUnitSimple(GetEnumUnit(),udg_group28)
endfunction
function Trig_Wave_Form_Move_Func008C takes nothing returns boolean
if(not(udg_integers04[1]>=udg_integers04[0]))then
return false
endif
return true
endfunction
function Trig_Wave_Form_Move_Actions takes nothing returns nothing
set udg_locations17[2]=PolarProjectionBJ(udg_locations17[0],(20.00*I2R(udg_integers04[1])),udg_reals25[1])
call AddSpecialEffectLocBJ(udg_locations17[2],"Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set udg_group24=GetUnitsInRangeOfLocMatching(450.00,udg_locations17[2],Condition(function Trig_Wave_Form_Move_Func004002003))
call RemoveLocation(udg_locations17[2])
call ForGroupBJ(udg_group24,function Trig_Wave_Form_Move_Func006A)
call DestroyGroup(udg_group24)
if(Trig_Wave_Form_Move_Func008C())then
call SetUnitPositionLocFacingBJ(udg_unit54,udg_locations17[1],udg_reals25[1])
call ShowUnitShow(udg_unit54)
call GroupClear(udg_group28)
call SelectUnitForPlayerSingle(udg_unit54,GetOwningPlayer(udg_unit54))
call RemoveLocation(udg_locations17[0])
call RemoveLocation(udg_locations17[1])
call RemoveLocation(udg_locations17[2])
set udg_unit54=null
call EnableTrigger(udg_trigger419)
call DisableTrigger(GetTriggeringTrigger())
else
set udg_integers04[1]=(udg_integers04[1]+1)
endif
endfunction
function Trig_Skill_learn_Func001Func001Func001Func001Func003C takes nothing returns boolean
if(not(udg_boolean06==true))then
return false
endif
if(not(udg_boolean05==true))then
return false
endif
if(not(udg_boolean04==true))then
return false
endif
return true
endfunction
function Trig_Skill_learn_Func001Func001Func001Func001C takes nothing returns boolean
if(not Trig_Skill_learn_Func001Func001Func001Func001Func003C())then
return false
endif
return true
endfunction
function Trig_Skill_learn_Func001Func001Func001Func003C takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A0B4'))then
return false
endif
if(not(udg_boolean06==false))then
return false
endif
return true
endfunction
function Trig_Skill_learn_Func001Func001Func001C takes nothing returns boolean
if(not Trig_Skill_learn_Func001Func001Func001Func003C())then
return false
endif
return true
endfunction
function Trig_Skill_learn_Func001Func001Func003C takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A0B3'))then
return false
endif
if(not(udg_boolean05==false))then
return false
endif
return true
endfunction
function Trig_Skill_learn_Func001Func001C takes nothing returns boolean
if(not Trig_Skill_learn_Func001Func001Func003C())then
return false
endif
return true
endfunction
function Trig_Skill_learn_Func001Func003C takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A0B2'))then
return false
endif
if(not(udg_boolean04==false))then
return false
endif
return true
endfunction
function Trig_Skill_learn_Func001C takes nothing returns boolean
if(not Trig_Skill_learn_Func001Func003C())then
return false
endif
return true
endfunction
function Trig_Skill_learn_Actions takes nothing returns nothing
if(Trig_Skill_learn_Func001C())then
set udg_boolean04=true
else
if(Trig_Skill_learn_Func001Func001C())then
set udg_boolean05=true
else
if(Trig_Skill_learn_Func001Func001Func001C())then
set udg_boolean06=true
else
if(Trig_Skill_learn_Func001Func001Func001Func001C())then
call DisableTrigger(GetTriggeringTrigger())
else
call DoNothing()
endif
endif
endif
endif
endfunction
function Trig_CoverAttack_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetAttacker())=='O01G'))then
return false
endif
return true
endfunction
function Trig_CoverAttack_Func006C takes nothing returns boolean
if(not(IsUnitInGroup(udg_units29[1],udg_group25)==true))then
return false
endif
return true
endfunction
function Trig_CoverAttack_Actions takes nothing returns nothing
set udg_units29[0]=GetAttacker()
set udg_units29[1]=GetAttackedUnitBJ()
set udg_integers05[0]=3
set udg_integers05[2]=5
set udg_integers05[4]=7
if(Trig_CoverAttack_Func006C())then
call DoNothing()
else
call TriggerRegisterUnitEvent(udg_trigger423,udg_units29[1],EVENT_UNIT_DAMAGED)
call GroupAddUnitSimple(udg_units29[1],udg_group25)
endif
endfunction
function Trig_CoverAttackTakeDamage_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetEventDamageSource())=='O01G'))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Func001Func002C takes nothing returns boolean
if(not(udg_integers05[1]==(udg_integers05[0]-1)))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Func001Func003C takes nothing returns boolean
if(not(udg_integers05[1]==udg_integers05[0]))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Func001C takes nothing returns boolean
if(not(udg_boolean04==true))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Func003Func001C takes nothing returns boolean
if(not(udg_integers05[3]==(udg_integers05[2]-1)))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Func003Func002C takes nothing returns boolean
if(not(udg_integers05[3]==udg_integers05[2]))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Func003C takes nothing returns boolean
if(not(udg_boolean05==true))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Func005Func002C takes nothing returns boolean
if(not(udg_integers05[5]==(udg_integers05[4]-1)))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Func005Func003C takes nothing returns boolean
if(not(udg_integers05[5]==udg_integers05[4]))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Func005C takes nothing returns boolean
if(not(udg_boolean06==true))then
return false
endif
return true
endfunction
function Trig_CoverAttackTakeDamage_Actions takes nothing returns nothing
if(Trig_CoverAttackTakeDamage_Func001C())then
if(Trig_CoverAttackTakeDamage_Func001Func002C())then
call AddSpecialEffectTargetUnitBJ("hand left",udg_units29[0],"Abilities\\Weapons\\WitchDoctorMissile\\WitchDoctorMissile.mdl")
set udg_effects01[1]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand right",udg_units29[0],"Abilities\\Weapons\\WitchDoctorMissile\\WitchDoctorMissile.mdl")
set udg_effects01[2]=GetLastCreatedEffectBJ()
else
call DoNothing()
endif
if(Trig_CoverAttackTakeDamage_Func001Func003C())then
call CreateNUnitsAtLoc(1,'e013',GetOwningPlayer(udg_units29[0]),GetUnitLoc(udg_units29[1]),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A0B5',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A0B2',udg_units29[0]))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"thunderclap")
call AddSpecialEffectTargetUnitBJ("origin",udg_units29[1],"Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=2
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffectBJ(udg_effects01[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers05[1]=0
else
set udg_integers05[1]=(udg_integers05[1]+1)
endif
else
call DoNothing()
endif
if(Trig_CoverAttackTakeDamage_Func003C())then
if(Trig_CoverAttackTakeDamage_Func003Func001C())then
call AddSpecialEffectTargetUnitBJ("hand left",udg_units29[0],"Abilities\\Weapons\\VengeanceMissile\\VengeanceMissile.mdl")
set udg_effects01[3]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand right",udg_units29[0],"Abilities\\Weapons\\VengeanceMissile\\VengeanceMissile.mdl")
set udg_effects01[4]=GetLastCreatedEffectBJ()
else
call DoNothing()
endif
if(Trig_CoverAttackTakeDamage_Func003Func002C())then
call CreateNUnitsAtLoc(1,'e015',GetOwningPlayer(udg_units29[0]),GetUnitLoc(udg_units29[1]),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A0B6',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A0B3',udg_units29[0]))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueImmediateOrderBJ(GetLastCreatedUnit(),"stomp")
call AddSpecialEffectTargetUnitBJ("origin",udg_units29[1],"Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
set bj_forLoopAIndex=3
set bj_forLoopAIndexEnd=4
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffectBJ(udg_effects01[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers05[3]=0
else
set udg_integers05[3]=(udg_integers05[3]+1)
endif
else
endif
if(Trig_CoverAttackTakeDamage_Func005C())then
if(Trig_CoverAttackTakeDamage_Func005Func002C())then
call AddSpecialEffectTargetUnitBJ("hand left",udg_units29[0],"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
set udg_effects01[5]=GetLastCreatedEffectBJ()
call AddSpecialEffectTargetUnitBJ("hand right",udg_units29[0],"Abilities\\Weapons\\FarseerMissile\\FarseerMissile.mdl")
set udg_effects01[6]=GetLastCreatedEffectBJ()
else
call DoNothing()
endif
if(Trig_CoverAttackTakeDamage_Func005Func003C())then
call CreateNUnitsAtLoc(1,'e016',GetOwningPlayer(udg_units29[0]),GetUnitLoc(udg_units29[0]),bj_UNIT_FACING)
call SetUnitAbilityLevelSwapped('A0B7',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A0B4',udg_units29[0]))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssueTargetOrderBJ(GetLastCreatedUnit(),"forkedlightning",udg_units29[1])
set bj_forLoopAIndex=5
set bj_forLoopAIndexEnd=6
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DestroyEffectBJ(udg_effects01[GetForLoopIndexA()])
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_integers05[5]=0
else
set udg_integers05[5]=(udg_integers05[5]+1)
endif
else
call DoNothing()
endif
endfunction
function Trig_Impale_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0AX'))then
return false
endif
return true
endfunction
function Trig_Impale_Actions takes nothing returns nothing
set udg_unit55=GetSpellAbilityUnit()
set udg_location05=GetSpellTargetLoc()
set udg_real21=AngleBetweenPoints(GetUnitLoc(udg_unit55),udg_location05)
set udg_reals26[0]=DistanceBetweenPoints(GetUnitLoc(udg_unit55),udg_location05)
set udg_reals26[1]=(udg_reals26[0]/100.00)
set udg_reals26[2]=0.00
call PauseUnitBJ(true,GetSpellAbilityUnit())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=R2I(udg_reals26[1])
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e014',GetOwningPlayer(udg_unit55),PolarProjectionBJ(GetUnitLoc(udg_unit55),(udg_reals26[2]*100.00),udg_real21),udg_real21)
call SetUnitAbilityLevelSwapped('A0AY',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A0AX',udg_unit55))
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetLastCreatedUnit())
call IssuePointOrderLocBJ(GetLastCreatedUnit(),"impale",GetUnitLoc(GetLastCreatedUnit()))
set udg_reals26[2]=(udg_reals26[2]+1.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetUnitPositionLocFacingBJ(udg_unit55,udg_location05,udg_real21)
call SetUnitAnimation(udg_unit55,"morph ALTERNATE")
call TriggerSleepAction(0.50)
call PauseUnitBJ(false,udg_unit55)
set udg_unit55=null
set udg_real21=0.00
set udg_reals26[0]=0.00
set udg_reals26[1]=0.00
set udg_reals26[2]=0.00
call RemoveLocation(udg_location05)
endfunction
function Trig_SuperImpale_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A0B1'))then
return false
endif
return true
endfunction
function Trig_SuperImpale_Func004A takes nothing returns nothing
call UnitApplyTimedLifeBJ(1.00,'BHwe',GetEnumUnit())
call IssuePointOrderLocBJ(GetEnumUnit(),"impale",PolarProjectionBJ(GetUnitLoc(GetEnumUnit()),10.00,GetUnitFacing(GetEnumUnit())))
endfunction
function Trig_SuperImpale_Actions takes nothing returns nothing
set udg_unit55=GetSpellAbilityUnit()
set udg_real22=0.00
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=15
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call CreateNUnitsAtLoc(1,'e014',GetOwningPlayer(udg_unit55),GetUnitLoc(udg_unit55),udg_real22)
call UnitRemoveAbilityBJ('A0AY',GetLastCreatedUnit())
call UnitAddAbilityBJ('A0BA',GetLastCreatedUnit())
call SetUnitAbilityLevelSwapped('A0BA',GetLastCreatedUnit(),GetUnitAbilityLevelSwapped('A0B1',udg_unit55))
call GroupAddUnitSimple(GetLastCreatedUnit(),udg_group26)
set udg_real22=(udg_real22+24.00)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ForGroupBJ(udg_group26,function Trig_SuperImpale_Func004A)
call GroupClear(udg_group26)
set udg_unit55=null
endfunction
function Trig_Learn_Poision_Conditions takes nothing returns boolean
if(not(GetLearnedSkillBJ()=='A0AZ'))then
return false
endif
return true
endfunction
function Trig_Learn_Poision_Actions takes nothing returns nothing
call EnableTrigger(udg_trigger427)
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_Poision_String_Conditions takes nothing returns boolean
if(not(GetUnitTypeId(GetKillingUnitBJ())=='O01D'))then
return false
endif
return true
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003002001(),Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003002002())
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003001(),Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003002())
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetKillingUnitBJ(),GetEnumUnit(),(500.00+I2R((GetHeroStatBJ(bj_HEROSTAT_STR,GetKillingUnitBJ(),true)/2))),ATTACK_TYPE_CHAOS,DAMAGE_TYPE_POISON)
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0AZ',GetKillingUnitBJ())==5))then
return false
endif
return true
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func001Func001Func001Func002001003002001(),Trig_Poision_String_Func003Func001Func001Func001Func002001003002002())
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func001Func001Func001Func002001003001(),Trig_Poision_String_Func003Func001Func001Func001Func002001003002())
endfunction
function Trig_Poision_String_Func003Func001Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetKillingUnitBJ(),GetEnumUnit(),400.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_POISON)
endfunction
function Trig_Poision_String_Func003Func001Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0AZ',GetKillingUnitBJ())==4))then
return false
endif
return true
endfunction
function Trig_Poision_String_Func003Func001Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Poision_String_Func003Func001Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Poision_String_Func003Func001Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Poision_String_Func003Func001Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func001Func001Func002001003002001(),Trig_Poision_String_Func003Func001Func001Func002001003002002())
endfunction
function Trig_Poision_String_Func003Func001Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func001Func001Func002001003001(),Trig_Poision_String_Func003Func001Func001Func002001003002())
endfunction
function Trig_Poision_String_Func003Func001Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetKillingUnitBJ(),GetEnumUnit(),300.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_POISON)
endfunction
function Trig_Poision_String_Func003Func001Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0AZ',GetKillingUnitBJ())==3))then
return false
endif
return true
endfunction
function Trig_Poision_String_Func003Func001Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Poision_String_Func003Func001Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Poision_String_Func003Func001Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Poision_String_Func003Func001Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func001Func002001003002001(),Trig_Poision_String_Func003Func001Func002001003002002())
endfunction
function Trig_Poision_String_Func003Func001Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func001Func002001003001(),Trig_Poision_String_Func003Func001Func002001003002())
endfunction
function Trig_Poision_String_Func003Func001Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetKillingUnitBJ(),GetEnumUnit(),200.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_POISON)
endfunction
function Trig_Poision_String_Func003Func001C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0AZ',GetKillingUnitBJ())==2))then
return false
endif
return true
endfunction
function Trig_Poision_String_Func003Func002001003001 takes nothing returns boolean
return(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false)
endfunction
function Trig_Poision_String_Func003Func002001003002001 takes nothing returns boolean
return(IsUnitAliveBJ(GetFilterUnit())==true)
endfunction
function Trig_Poision_String_Func003Func002001003002002 takes nothing returns boolean
return(IsUnitEnemy(GetFilterUnit(),GetOwningPlayer(GetKillingUnitBJ()))==true)
endfunction
function Trig_Poision_String_Func003Func002001003002 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func002001003002001(),Trig_Poision_String_Func003Func002001003002002())
endfunction
function Trig_Poision_String_Func003Func002001003 takes nothing returns boolean
return GetBooleanAnd(Trig_Poision_String_Func003Func002001003001(),Trig_Poision_String_Func003Func002001003002())
endfunction
function Trig_Poision_String_Func003Func002A takes nothing returns nothing
call UnitDamageTargetBJ(GetKillingUnitBJ(),GetEnumUnit(),100.00,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_POISON)
endfunction
function Trig_Poision_String_Func003C takes nothing returns boolean
if(not(GetUnitAbilityLevelSwapped('A0AZ',GetKillingUnitBJ())==1))then
return false
endif
return true
endfunction
function Trig_Poision_String_Actions takes nothing returns nothing
call AddSpecialEffectLocBJ(GetUnitLoc(GetDyingUnit()),"Objects\\Spawnmodels\\Undead\\ImpaleTargetDust\\ImpaleTargetDust.mdl")
call DestroyEffectBJ(GetLastCreatedEffectBJ())
if(Trig_Poision_String_Func003C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetDyingUnit()),Condition(function Trig_Poision_String_Func003Func002001003)),function Trig_Poision_String_Func003Func002A)
else
if(Trig_Poision_String_Func003Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetDyingUnit()),Condition(function Trig_Poision_String_Func003Func001Func002001003)),function Trig_Poision_String_Func003Func001Func002A)
else
if(Trig_Poision_String_Func003Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetDyingUnit()),Condition(function Trig_Poision_String_Func003Func001Func001Func002001003)),function Trig_Poision_String_Func003Func001Func001Func002A)
else
if(Trig_Poision_String_Func003Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetDyingUnit()),Condition(function Trig_Poision_String_Func003Func001Func001Func001Func002001003)),function Trig_Poision_String_Func003Func001Func001Func001Func002A)
else
if(Trig_Poision_String_Func003Func001Func001Func001Func001C())then
call ForGroupBJ(GetUnitsInRangeOfLocMatching(400.00,GetUnitLoc(GetDyingUnit()),Condition(function Trig_Poision_String_Func003Func001Func001Func001Func001Func002001003)),function Trig_Poision_String_Func003Func001Func001Func001Func001Func002A)
else
call DoNothing()
endif
endif
endif
endif
endif
endfunction
function Trig_Building_Pause_Actions takes nothing returns nothing
call PauseUnitBJ(true,GetAttacker())
endfunction
function main2 takes nothing returns nothing
call SetCameraBounds(-6784.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-13824.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),5504.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),13312.0-GetCameraMargin(CAMERA_MARGIN_TOP),-6784.0+GetCameraMargin(CAMERA_MARGIN_LEFT),13312.0-GetCameraMargin(CAMERA_MARGIN_TOP),5504.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-13824.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM))
call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl")
call NewSoundEnvironment("Default")
call SetAmbientDaySound("SunkenRuinsDay")
call SetAmbientNightSound("SunkenRuinsNight")
call SetMapMusic("Music",true,0)
set udg_sound03=CreateSound("Sound\\Ambient\\DoodadEffects\\TheHornOfCenarius.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound03,"HornOfCenariusSound")
call SetSoundDuration(udg_sound03,12121)
set udg_sound04=CreateSound("Sound\\Ambient\\DoodadEffects\\SargerasLaugh.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound04,"SargerasLaugh")
call SetSoundDuration(udg_sound04,3326)
set udg_sound05=CreateSound("Sound\\Ambient\\DoodadEffects\\SargerasRoar.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound05,"SargerasRoar")
call SetSoundDuration(udg_sound05,4481)
set udg_sound06=CreateSound("Sound\\Interface\\CreepAggroWhat1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound06,"CreepAggro")
call SetSoundDuration(udg_sound06,1236)
set udg_sound07=CreateSound("Sound\\Music\\mp3Music\\Credits.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound07,"CreditsMusic")
call SetSoundDuration(udg_sound07,83017)
set udg_sound08=CreateSound("Sound\\Music\\mp3Music\\OrcTheme.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound08,112499)
call SetSoundChannel(udg_sound08,0)
call SetSoundVolume(udg_sound08,127)
call SetSoundPitch(udg_sound08,1.0)
set udg_sound09=CreateSound("Sound\\Music\\mp3Music\\PH1.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound09,"PHMusic")
call SetSoundDuration(udg_sound09,281582)
set udg_sound10=CreateSound("Abilities\\Spells\\Other\\HowlOfTerror\\HowlOfTerror.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound10,"HowlOfTerror")
call SetSoundDuration(udg_sound10,3065)
set udg_sound11=CreateSound("Sound\\Music\\mp3Music\\War2IntroMusic.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound11,"War2Intro")
call SetSoundDuration(udg_sound11,81136)
set udg_sound12=CreateSound("Sound\\Music\\mp3Music\\HeroicVictory.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound12,53456)
call SetSoundChannel(udg_sound12,0)
call SetSoundVolume(udg_sound12,127)
call SetSoundPitch(udg_sound12,1.0)
set udg_sound13=CreateSound("Sound\\Music\\mp3Music\\LichKingTheme.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound13,79193)
call SetSoundChannel(udg_sound13,0)
call SetSoundVolume(udg_sound13,127)
call SetSoundPitch(udg_sound13,1.0)
set udg_sound14=CreateSound("Buildings\\Undead\\Ziggurat\\ZigguratWhat.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound14,"ZigguratWhat")
call SetSoundDuration(udg_sound14,4457)
set udg_sound15=CreateSound("Buildings\\Undead\\Ziggurat\\FrostTowerWhat1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound15,"FrostTowerWhat")
call SetSoundDuration(udg_sound15,4203)
set udg_sound16=CreateSound("Units\\Undead\\Varimathras\\VarimathrasYes2.wav",false,false,false,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound16,"VarimathrasYes")
call SetSoundDuration(udg_sound16,2023)
set udg_sound17=CreateSound("Sound\\Music\\mp3Music\\Doom.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound17,66125)
call SetSoundChannel(udg_sound17,0)
call SetSoundVolume(udg_sound17,127)
call SetSoundPitch(udg_sound17,1.0)
set udg_sound18=CreateSound("Units\\Human\\Muradin\\MuradinPissed7.wav",false,false,false,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound18,"MuradinPissed")
call SetSoundDuration(udg_sound18,2543)
set udg_sound19=CreateSound("Units\\Human\\Muradin\\MuradinPissed4.wav",false,false,false,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound19,"MuradinPissed")
call SetSoundDuration(udg_sound19,2606)
set udg_sound20=CreateSound("Sound\\Music\\mp3Music\\IllidansTheme.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound20,108006)
call SetSoundChannel(udg_sound20,0)
call SetSoundVolume(udg_sound20,127)
call SetSoundPitch(udg_sound20,1.0)
set udg_sound21=CreateSound("Abilities\\Spells\\Orc\\LightningShield\\LightningShieldTarget.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound21,"LightningShield")
call SetSoundDuration(udg_sound21,3878)
set udg_sound22=CreateSound("Units\\Demon\\HeroPitLord\\HPitLordYesAttack3.wav",false,false,false,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound22,"HeroPitLordYesAttack")
call SetSoundDuration(udg_sound22,2215)
set udg_sound23=CreateSound("Sound\\Music\\mp3Music\\OrcX1.mp3",false,false,false,10,10,"")
call SetSoundDuration(udg_sound23,324953)
call SetSoundChannel(udg_sound23,0)
call SetSoundVolume(udg_sound23,127)
call SetSoundPitch(udg_sound23,1.0)
set udg_sound24=CreateSound("Sound\\Ambient\\DoodadEffects\\RollingThunder1.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound24,"RollingThunderSound")
call SetSoundDuration(udg_sound24,3831)
set udg_sound25=CreateSound("Abilities\\Spells\\NightElf\\BattleRoar\\BattleRoar.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound25,"BattleRoar")
call SetSoundDuration(udg_sound25,1991)
set udg_sound26=CreateSound("Sound\\Ambient\\DoodadEffects\\ShimmeringPortalDeath.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound26,"ShimmeringPortalDeath")
call SetSoundDuration(udg_sound26,4783)
set udg_sound27=CreateSound("Abilities\\Spells\\Items\\ResourceItems\\ReceiveGold.wav",false,false,false,100,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound27,"ReceiveGold")
call SetSoundDuration(udg_sound27,589)
set udg_sound28=CreateSound("Sound\\Units\\Combat\\MetalHeavySliceMetal3.wav",false,true,true,100,10,"CombatSoundsEAX")
call SetSoundParamsFromLabel(udg_sound28,"MetalHeavySliceMetal")
call SetSoundDuration(udg_sound28,933)
set udg_sound29=CreateSound("Sound\\Units\\Combat\\MetalHeavySliceFlesh1.wav",false,true,true,100,10,"CombatSoundsEAX")
call SetSoundParamsFromLabel(udg_sound29,"MetalHeavySliceFlesh")
call SetSoundDuration(udg_sound29,1104)
set udg_sound30=CreateSound("Units\\Undead\\Abomination\\AbominationPissed2.wav",false,false,false,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound30,"AbominationPissed")
call SetSoundDuration(udg_sound30,1869)
set udg_sound31=CreateSound("Abilities\\Spells\\Human\\ManaFlare\\ManaFlareLoop.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound31,"ManaFlareLoop")
call SetSoundDuration(udg_sound31,2771)
set udg_sound32=CreateSound("Abilities\\Spells\\Human\\ManaFlare\\ManaFlareStrike.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound32,"ManaFlareMissile")
call SetSoundDuration(udg_sound32,791)
set udg_sound33=CreateSound("Abilities\\Spells\\NightElf\\Root\\Root.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound33,"Root")
call SetSoundDuration(udg_sound33,2113)
set udg_sound34=CreateSound("Sound\\Music\\mp3Music\\DarkVictory.mp3",false,false,false,10,10,"DefaultEAXON")
call SetSoundDuration(udg_sound34,75111)
call SetSoundChannel(udg_sound34,0)
call SetSoundVolume(udg_sound34,127)
call SetSoundPitch(udg_sound34,1.0)
set udg_sound35=CreateSound("Units\\Orc\\HeroBladeMaster\\HeroBladeMasterWarcry1.wav",false,false,false,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound35,"HeroBladeMasterWarcry")
call SetSoundDuration(udg_sound35,2136)
set udg_sound36=CreateSound("Units\\Orc\\HeroBladeMaster\\HeroBladeMasterYes4.wav",false,false,false,10,10,"HeroAcksEAX")
call SetSoundParamsFromLabel(udg_sound36,"HeroBladeMasterYes")
call SetSoundDuration(udg_sound36,1175)
set udg_sound37=CreateSound("Abilities\\Spells\\Undead\\Possession\\PossessionMissileHit1.wav",false,true,true,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound37,"PossessionMissileHit")
call SetSoundDuration(udg_sound37,1170)
set udg_sound38=CreateSound("Sound\\Buildings\\Death\\BuildingDeathLargeHuman.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound38,"DeathHumanLargeBuilding")
call SetSoundDuration(udg_sound38,3460)
set udg_sound39=CreateSound("Units\\Creeps\\AzureDragon\\DragonPissed1.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound39,"AzureDragonPissed")
call SetSoundDuration(udg_sound39,2432)
set udg_sound40=CreateSound("Units\\Creeps\\AzureDragon\\DragonYes2.wav",false,true,true,10,10,"DefaultEAXON")
call SetSoundParamsFromLabel(udg_sound40,"AzureDragonYes")
call SetSoundDuration(udg_sound40,1527)
set udg_sound41=CreateSound("Abilities\\Spells\\NightElf\\ReviveNightElf\\ReviveNightElf.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound41,"ReviveNightElf")
call SetSoundDuration(udg_sound41,3268)
set udg_sound42=CreateSound("Abilities\\Spells\\Human\\Avatar\\Avatar.wav",false,false,false,10,10,"SpellsEAX")
call SetSoundParamsFromLabel(udg_sound42,"Avatar")
call SetSoundDuration(udg_sound42,3199)
call CreateRegions2()
set udg_camerasetup01=CreateCameraSetup()
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,304.0,0.0)
call CameraSetupSetField(udg_camerasetup01,CAMERA_FIELD_TARGET_DISTANCE,3200.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,5.3,-8464.0,0.0)
set udg_camerasetup02=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_ANGLE_OF_ATTACK,330.0,0.0)
call CameraSetupSetField(udg_camerasetup02,CAMERA_FIELD_TARGET_DISTANCE,800.0,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,-5941.3,-11049.3,0.0)
set udg_camerasetup03=CreateCameraSetup()
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,300.0,0.0)
call CameraSetupSetField(udg_camerasetup03,CAMERA_FIELD_TARGET_DISTANCE,2000.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,-5945.9,6142.7,0.0)
set udg_camerasetup04=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_ANGLE_OF_ATTACK,330.0,0.0)
call CameraSetupSetField(udg_camerasetup04,CAMERA_FIELD_TARGET_DISTANCE,1000.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,-5935.1,-4631.4,0.0)
set udg_camerasetup05=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_TARGET_DISTANCE,800.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup05,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup05,-5942.0,7572.3,0.0)
set udg_camerasetup06=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_TARGET_DISTANCE,1800.0,0.0)
call CameraSetupSetField(udg_camerasetup06,CAMERA_FIELD_ROLL,0.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,-5927.3,7567.5,0.0)
set udg_camerasetup07=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_TARGET_DISTANCE,1000.0,0.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup07,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup07,14.4,1227.2,0.0)
set udg_camerasetup08=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_ANGLE_OF_ATTACK,304.0,0.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_TARGET_DISTANCE,2000.0,0.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup08,CAMERA_FIELD_FARZ,5000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup08,18.4,5593.1,0.0)
set udg_camerasetup09=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_ROTATION,180.0,0.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_ANGLE_OF_ATTACK,310.0,0.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_TARGET_DISTANCE,1000.0,0.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup09,CAMERA_FIELD_FARZ,10000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup09,-1894.2,-8468.5,0.0)
set udg_camerasetup10=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_ROTATION,180.0,0.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_ANGLE_OF_ATTACK,300.0,0.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_TARGET_DISTANCE,1200.0,0.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup10,CAMERA_FIELD_FARZ,10000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup10,-751.0,-8469.6,0.0)
set udg_camerasetup11=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_ANGLE_OF_ATTACK,310.0,0.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_TARGET_DISTANCE,1000.0,0.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup11,CAMERA_FIELD_FARZ,10000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup11,-6.4,-6300.9,0.0)
set udg_camerasetup12=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_ROTATION,90.0,0.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_ANGLE_OF_ATTACK,310.0,0.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_TARGET_DISTANCE,1200.0,0.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup12,CAMERA_FIELD_FARZ,10000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup12,-3.9,-7810.8,0.0)
set udg_camerasetup13=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_ROTATION,0.0,0.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_ANGLE_OF_ATTACK,310.0,0.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_TARGET_DISTANCE,1000.0,0.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup13,CAMERA_FIELD_FARZ,10000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup13,1855.0,-8444.2,0.0)
set udg_camerasetup14=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_ROTATION,0.0,0.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_ANGLE_OF_ATTACK,310.0,0.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_TARGET_DISTANCE,1200.0,0.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup14,CAMERA_FIELD_FARZ,10000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup14,763.1,-8451.2,0.0)
set udg_camerasetup15=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_ROTATION,270.0,0.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_ANGLE_OF_ATTACK,310.0,0.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_TARGET_DISTANCE,1000.0,0.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup15,CAMERA_FIELD_FARZ,10000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup15,-5.4,-10602.9,0.0)
set udg_camerasetup16=CreateCameraSetup()
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_ZOFFSET,0.0,0.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_ROTATION,270.0,0.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_ANGLE_OF_ATTACK,310.0,0.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_TARGET_DISTANCE,1200.0,0.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_ROLL,0.0,0.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_FIELD_OF_VIEW,70.0,0.0)
call CameraSetupSetField(udg_camerasetup16,CAMERA_FIELD_FARZ,10000.0,0.0)
call CameraSetupSetDestPosition(udg_camerasetup16,-3.7,-9088.6,0.0)
call CreateAllDestructables()
call CreateAllItems()
call CreateNeutralPassiveBuildings2()
call CreateBuildingsForPlayer0()
call CreateBuildingsForPlayer1()
call CreateBuildingsForPlayer2()
call CreateBuildingsForPlayer3()
call CreateBuildingsForPlayer4()
call CreateBuildingsForPlayer5()
call CreateBuildingsForPlayer6()
call CreateBuildingsForPlayer7()
call CreateBuildingsForPlayer10()
call CreateBuildingsForPlayer11()
call CreateUnitsForPlayer10()
call CreateUnitsForPlayer11()
call InitGlobals2()
set udg_trigger01=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger01,Player(0),"-hp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger01,Player(1),"-hp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger01,Player(2),"-hp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger01,Player(3),"-hp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger01,Player(4),"-hp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger01,Player(5),"-hp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger01,Player(6),"-hp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger01,Player(7),"-hp",true)
call TriggerAddAction(udg_trigger01,function Trig_Xem_HP_Actions)
set udg_trigger02=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger02,Player(0),"-mp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger02,Player(1),"-mp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger02,Player(2),"-mp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger02,Player(3),"-mp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger02,Player(4),"-mp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger02,Player(5),"-mp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger02,Player(6),"-mp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger02,Player(7),"-mp",true)
call TriggerAddAction(udg_trigger02,function Trig_Xem_MP_Actions)
set udg_trigger03=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger03,Player(0),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_trigger03,Player(1),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_trigger03,Player(2),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_trigger03,Player(3),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_trigger03,Player(4),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_trigger03,Player(5),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_trigger03,Player(6),"-ms",true)
call TriggerRegisterPlayerChatEvent(udg_trigger03,Player(7),"-ms",true)
call TriggerAddAction(udg_trigger03,function Trig_Xem_MS_Actions)
set udg_trigger04=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger04,Player(0),"-sp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger04,Player(1),"-sp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger04,Player(2),"-sp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger04,Player(3),"-sp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger04,Player(4),"-sp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger04,Player(5),"-sp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger04,Player(6),"-sp",true)
call TriggerRegisterPlayerChatEvent(udg_trigger04,Player(7),"-sp",true)
call TriggerAddAction(udg_trigger04,function Trig_Fun_Spell_Actions)
set udg_trigger05=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(0),"-al",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(1),"-al",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(2),"-al",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(3),"-al",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(4),"-al",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(5),"-al",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(6),"-al",true)
call TriggerRegisterPlayerChatEvent(udg_trigger05,Player(7),"-al",true)
call TriggerAddAction(udg_trigger05,function Trig_Fun_Attack_Actions)
set udg_trigger06=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger06,Player(0),"-dt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger06,Player(1),"-dt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger06,Player(2),"-dt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger06,Player(3),"-dt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger06,Player(4),"-dt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger06,Player(5),"-dt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger06,Player(6),"-dt",true)
call TriggerRegisterPlayerChatEvent(udg_trigger06,Player(7),"-dt",true)
call TriggerAddAction(udg_trigger06,function Trig_Fun_Death_Actions)
set udg_trigger07=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger07,Player(0),"-os",true)
call TriggerRegisterPlayerChatEvent(udg_trigger07,Player(1),"-os",true)
call TriggerRegisterPlayerChatEvent(udg_trigger07,Player(2),"-os",true)
call TriggerRegisterPlayerChatEvent(udg_trigger07,Player(3),"-os",true)
call TriggerRegisterPlayerChatEvent(udg_trigger07,Player(4),"-os",true)
call TriggerRegisterPlayerChatEvent(udg_trigger07,Player(5),"-os",true)
call TriggerRegisterPlayerChatEvent(udg_trigger07,Player(6),"-os",true)
call TriggerRegisterPlayerChatEvent(udg_trigger07,Player(7),"-os",true)
call TriggerAddAction(udg_trigger07,function Trig_Fun_OhShit_Actions)
set udg_trigger08=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger08,Player(0),"-dm",true)
call TriggerRegisterPlayerChatEvent(udg_trigger08,Player(1),"-dm",true)
call TriggerRegisterPlayerChatEvent(udg_trigger08,Player(2),"-dm",true)
call TriggerRegisterPlayerChatEvent(udg_trigger08,Player(3),"-dm",true)
call TriggerRegisterPlayerChatEvent(udg_trigger08,Player(4),"-dm",true)
call TriggerRegisterPlayerChatEvent(udg_trigger08,Player(5),"-dm",true)
call TriggerRegisterPlayerChatEvent(udg_trigger08,Player(6),"-dm",true)
call TriggerRegisterPlayerChatEvent(udg_trigger08,Player(7),"-dm",true)
call TriggerAddAction(udg_trigger08,function Trig_Fun_Damn_Actions)
set udg_trigger09=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger09,Player(0),"-mg",true)
call TriggerRegisterPlayerChatEvent(udg_trigger09,Player(1),"-mg",true)
call TriggerRegisterPlayerChatEvent(udg_trigger09,Player(2),"-mg",true)
call TriggerRegisterPlayerChatEvent(udg_trigger09,Player(3),"-mg",true)
call TriggerRegisterPlayerChatEvent(udg_trigger09,Player(4),"-mg",true)
call TriggerRegisterPlayerChatEvent(udg_trigger09,Player(5),"-mg",true)
call TriggerRegisterPlayerChatEvent(udg_trigger09,Player(6),"-mg",true)
call TriggerRegisterPlayerChatEvent(udg_trigger09,Player(7),"-mg",true)
call TriggerAddAction(udg_trigger09,function Trig_Fun_MyGod_Actions)
set udg_trigger10=CreateTrigger()
call DisableTrigger(udg_trigger10)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(0),"-as",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(1),"-as",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(2),"-as",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(3),"-as",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(4),"-as",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(5),"-as",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(6),"-as",true)
call TriggerRegisterPlayerChatEvent(udg_trigger10,Player(7),"-as",true)
call TriggerAddAction(udg_trigger10,function Trig_Call_Assistant_Actions)
set udg_trigger11=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger11,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger11,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger11,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger11,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger11,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger11,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger11,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger11,Player(7),true)
call TriggerAddCondition(udg_trigger11,Condition(function Trig_PickHero_Conditions))
call TriggerAddAction(udg_trigger11,function Trig_PickHero_Actions)
set udg_trigger12=CreateTrigger()
call DisableTrigger(udg_trigger12)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger12,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger12,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger12,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger12,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger12,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger12,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger12,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger12,Player(7),true)
call TriggerAddCondition(udg_trigger12,Condition(function Trig_Double_Conditions))
call TriggerAddAction(udg_trigger12,function Trig_Double_Actions)
set udg_trigger13=CreateTrigger()
call DisableTrigger(udg_trigger13)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger13,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger13,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger13,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger13,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger13,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger13,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger13,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger13,Player(7),true)
call TriggerAddCondition(udg_trigger13,Condition(function Trig_Triple_Conditions))
call TriggerAddAction(udg_trigger13,function Trig_Triple_Actions)
set udg_trigger14=CreateTrigger()
call DisableTrigger(udg_trigger14)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger14,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger14,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger14,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger14,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger14,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger14,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger14,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger14,Player(7),true)
call TriggerAddCondition(udg_trigger14,Condition(function Trig_Assistant_Conditions))
call TriggerAddAction(udg_trigger14,function Trig_Assistant_Actions)
set udg_trigger15=CreateTrigger()
call DisableTrigger(udg_trigger15)
call TriggerRegisterPlayerEventEndCinematic(udg_trigger15,Player(0))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger15,Player(1))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger15,Player(2))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger15,Player(3))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger15,Player(4))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger15,Player(5))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger15,Player(6))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger15,Player(7))
call TriggerAddCondition(udg_trigger15,Condition(function Trig_Change_Hero_1_Conditions))
call TriggerAddAction(udg_trigger15,function Trig_Change_Hero_1_Actions)
set udg_trigger16=CreateTrigger()
call DisableTrigger(udg_trigger16)
call TriggerRegisterPlayerEventEndCinematic(udg_trigger16,Player(0))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger16,Player(1))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger16,Player(2))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger16,Player(3))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger16,Player(4))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger16,Player(5))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger16,Player(6))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger16,Player(7))
call TriggerAddAction(udg_trigger16,function Trig_Change_Hero_2_Actions)
set udg_trigger17=CreateTrigger()
call DisableTrigger(udg_trigger17)
call TriggerRegisterPlayerEventEndCinematic(udg_trigger17,Player(0))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger17,Player(1))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger17,Player(2))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger17,Player(3))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger17,Player(4))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger17,Player(5))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger17,Player(6))
call TriggerRegisterPlayerEventEndCinematic(udg_trigger17,Player(7))
call TriggerAddAction(udg_trigger17,function Trig_Change_Hero_3_Actions)
set udg_trigger18=CreateTrigger()
call TriggerAddAction(udg_trigger18,function Trig_System_Mode_Hero_Actions)
set udg_trigger19=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger19,udg_dialog05)
call TriggerAddAction(udg_trigger19,function Trig_Mode_Choice_Actions)
set udg_trigger20=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger20,udg_dialog05)
call TriggerAddAction(udg_trigger20,function Trig_Clear_for_Mode_Actions)
set udg_trigger21=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger21,Player(0),"t1",true)
call TriggerAddAction(udg_trigger21,function Trig_Untitled_Trigger_002_Actions)
set udg_trigger22=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger22,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger22,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger22,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger22,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger22,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger22,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger22,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger22,Player(7),true)
call TriggerAddCondition(udg_trigger22,Condition(function Trig_Upgrade_Select_Conditions))
call TriggerAddAction(udg_trigger22,function Trig_Upgrade_Select_Actions)
set udg_trigger23=CreateTrigger()
call DisableTrigger(udg_trigger23)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger23,Player(0),false)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger23,Player(1),false)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger23,Player(2),false)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger23,Player(3),false)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger23,Player(4),false)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger23,Player(5),false)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger23,Player(6),false)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger23,Player(7),false)
call TriggerAddCondition(udg_trigger23,Condition(function Trig_Upgrade_DeSelect_Conditions))
call TriggerAddAction(udg_trigger23,function Trig_Upgrade_DeSelect_Actions)
set udg_trigger24=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger24,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger24,Condition(function Trig_UnitDying_Conditions))
call TriggerAddAction(udg_trigger24,function Trig_UnitDying_Actions)
set udg_trigger25=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger25,5.00)
call TriggerAddAction(udg_trigger25,function Trig_RemoveDying_Actions)
set udg_trigger26=CreateTrigger()
call DisableTrigger(udg_trigger26)
call TriggerRegisterAnyUnitEventBJ(udg_trigger26,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger26,Condition(function Trig_Hero_dying_for_gain_2_Conditions))
call TriggerAddAction(udg_trigger26,function Trig_Hero_dying_for_gain_2_Actions)
set udg_trigger27=CreateTrigger()
call DisableTrigger(udg_trigger27)
call TriggerRegisterAnyUnitEventBJ(udg_trigger27,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger27,Condition(function Trig_Hero_dying_for_gain_4_Conditions))
call TriggerAddAction(udg_trigger27,function Trig_Hero_dying_for_gain_4_Actions)
set udg_trigger28=CreateTrigger()
call TriggerAddAction(udg_trigger28,function Trig_Player_Group_Actions)
set udg_trigger29=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger29,3600.00)
call TriggerAddAction(udg_trigger29,function Trig_Life_destroy_Actions)
set udg_trigger30=CreateTrigger()
call TriggerAddAction(udg_trigger30,function Trig_Sytem_OW_CW_Actions)
set udg_trigger31=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger31,Player(0),"-ow",true)
call TriggerAddAction(udg_trigger31,function Trig_Cheat_ow_Actions)
set udg_trigger32=CreateTrigger()
call TriggerRegisterPlayerChatEvent(udg_trigger32,Player(0),"-cw",true)
call TriggerAddAction(udg_trigger32,function Trig_Cheat_cw_Actions)
set udg_trigger33=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger33,udg_rect108)
call TriggerAddCondition(udg_trigger33,Condition(function Trig_Revving_FN_Conditions))
call TriggerAddAction(udg_trigger33,function Trig_Revving_FN_Actions)
set udg_trigger34=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger34,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger34,Condition(function Trig_Item_Rescuse_Conditions))
call TriggerAddAction(udg_trigger34,function Trig_Item_Rescuse_Actions)
set udg_trigger35=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger35,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger35,Condition(function Trig_Item_Erro_Conditions))
call TriggerAddAction(udg_trigger35,function Trig_Item_Erro_Actions)
set udg_trigger36=CreateTrigger()
call DisableTrigger(udg_trigger36)
call TriggerRegisterEnterRectSimple(udg_trigger36,udg_rect107)
call TriggerAddCondition(udg_trigger36,Condition(function Trig_Prevent_Enter_Conditions))
call TriggerAddAction(udg_trigger36,function Trig_Prevent_Enter_Actions)
set udg_trigger38=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger38,5.00)
call TriggerAddAction(udg_trigger38,function Trig_ATTACJ_AUTO_Actions)
set udg_trigger39=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger39,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger39,Condition(function Trig_Great_house_attacked_Conditions))
call TriggerAddAction(udg_trigger39,function Trig_Great_house_attacked_Actions)
set udg_trigger40=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger40,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger40,Condition(function Trig_Warrior_Conditions))
call TriggerAddAction(udg_trigger40,function Trig_Warrior_Actions)
set udg_trigger41=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger41,EVENT_PLAYER_UNIT_USE_ITEM)
call TriggerAddCondition(udg_trigger41,Condition(function Trig_Tiny_Conditions))
call TriggerAddAction(udg_trigger41,function Trig_Tiny_Actions)
set udg_trigger42=CreateTrigger()
call TriggerAddAction(udg_trigger42,function Trig_EXP_Actions)
set udg_trigger43=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger43,0.10)
call TriggerAddAction(udg_trigger43,function Trig_Light_Actions)
set udg_trigger44=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger44,1.00)
call TriggerAddAction(udg_trigger44,function Trig_Door_of_Keeper_Actions)
set udg_trigger45=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger45,0.01)
call TriggerAddAction(udg_trigger45,function Trig_Time_Actions)
set udg_trigger46=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger46,0.01)
call TriggerAddAction(udg_trigger46,function Trig_Float_Text_Actions)
set udg_trigger47=CreateTrigger()
call TriggerAddAction(udg_trigger47,function Trig_SetGame_Actions)
set udg_trigger48=CreateTrigger()
call TriggerAddAction(udg_trigger48,function Trig_Level_Ability_and_Atribute_Actions)
set udg_trigger49=CreateTrigger()
call TriggerAddAction(udg_trigger49,function Trig_Region_XuatLinh_Actions)
set udg_trigger50=CreateTrigger()
call TriggerAddAction(udg_trigger50,function Trig_Unit_XuatLinh_Actions)
set udg_trigger51=CreateTrigger()
call TriggerAddAction(udg_trigger51,function Trig_Gold_Actions)
set udg_trigger52=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect32)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect35)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect36)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect34)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect33)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect37)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect39)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect38)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect42)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect50)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect40)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect41)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect51)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect43)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect44)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect46)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect49)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect45)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect47)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect53)
call TriggerRegisterEnterRectSimple(udg_trigger52,udg_rect52)
call TriggerAddAction(udg_trigger52,function Trig_Gai_Actions)
set udg_trigger53=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect55)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect56)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect57)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect58)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect59)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect64)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect63)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect62)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect61)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect60)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect65)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect66)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect67)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect68)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect69)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect74)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect73)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect72)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect71)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect70)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect76)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect75)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect77)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect78)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect79)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect124)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect125)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect126)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect127)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect128)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect129)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect130)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect131)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect132)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect134)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect135)
call TriggerRegisterEnterRectSimple(udg_trigger53,udg_rect133)
call TriggerAddAction(udg_trigger53,function Trig_Gai_and_kill_boss_Actions)
set udg_trigger54=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect01)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect02)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect03)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect04)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect05)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect06)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect07)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect08)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect08)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect81)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect83)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect84)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect82)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect98)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect97)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect100)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect99)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect25)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect26)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect27)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect28)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect22)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect21)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect23)
call TriggerRegisterEnterRectSimple(udg_trigger54,udg_rect24)
call TriggerRegisterLeaveRectSimple(udg_trigger54,udg_rect101)
call TriggerAddCondition(udg_trigger54,Condition(function Trig_Sytem_region_XL_Conditions))
call TriggerAddAction(udg_trigger54,function Trig_Sytem_region_XL_Actions)
set udg_trigger55=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger55,udg_rect108)
call TriggerAddAction(udg_trigger55,function Trig_Hero_Revive_Actions)
set udg_trigger56=CreateTrigger()
call DisableTrigger(udg_trigger56)
call TriggerRegisterEnterRectSimple(udg_trigger56,udg_rect108)
call TriggerAddAction(udg_trigger56,function Trig_Hero_Revive_2_Actions)
set udg_trigger57=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger57,0.01)
call TriggerAddAction(udg_trigger57,function Trig_Setup_Actions)
set udg_trigger58=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger58,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger58,Condition(function Trig_Unit_die_Conditions))
call TriggerAddAction(udg_trigger58,function Trig_Unit_die_Actions)
set udg_trigger59=CreateTrigger()
call TriggerAddAction(udg_trigger59,function Trig_Chance_value_Actions)
set udg_trigger60=CreateTrigger()
call TriggerRegisterPlayerEventLeave(udg_trigger60,Player(0))
call TriggerRegisterPlayerEventLeave(udg_trigger60,Player(1))
call TriggerRegisterPlayerEventLeave(udg_trigger60,Player(2))
call TriggerRegisterPlayerEventLeave(udg_trigger60,Player(3))
call TriggerRegisterPlayerEventLeave(udg_trigger60,Player(4))
call TriggerRegisterPlayerEventLeave(udg_trigger60,Player(5))
call TriggerRegisterPlayerEventLeave(udg_trigger60,Player(6))
call TriggerRegisterPlayerEventLeave(udg_trigger60,Player(7))
call TriggerAddAction(udg_trigger60,function Trig_Has_left_the_game_Actions)
set udg_trigger61=CreateTrigger()
call TriggerRegisterUnitEvent(udg_trigger61,udg_unit80,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger61,function Trig_Gane_over_Actions)
set udg_trigger62=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger62,600.00)
call TriggerAddAction(udg_trigger62,function Trig_Run_Bounty_Actions)
set udg_trigger63=CreateTrigger()
call TriggerAddAction(udg_trigger63,function Trig_HP_Actions)
set udg_trigger64=CreateTrigger()
call DisableTrigger(udg_trigger64)
call TriggerRegisterPlayerUnitEventSimple(udg_trigger64,Player(11),EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger64,function Trig_Add_50_gold_Actions)
set udg_trigger65=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger65,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger65,Condition(function Trig_Stop_Attack_Conditions))
call TriggerAddAction(udg_trigger65,function Trig_Stop_Attack_Actions)
set udg_trigger66=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger66,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger66,Condition(function Trig_Tower_Conditions))
call TriggerAddAction(udg_trigger66,function Trig_Tower_Actions)
set udg_trigger67=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger67,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger67,Condition(function Trig_Tower_9_Conditions))
call TriggerAddAction(udg_trigger67,function Trig_Tower_9_Actions)
set udg_trigger68=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger68,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger68,Condition(function Trig_Tower_Dead_Conditions))
call TriggerAddAction(udg_trigger68,function Trig_Tower_Dead_Actions)
set udg_trigger69=CreateTrigger()
call TriggerAddAction(udg_trigger69,function Trig_Gioi_thieu_Actions)
set udg_trigger70=CreateTrigger()
call TriggerAddAction(udg_trigger70,function Trig_Door_Actions)
set udg_trigger71=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger71,udg_dialog01)
call TriggerAddAction(udg_trigger71,function Trig_Door_choose_Actions)
set udg_trigger72=CreateTrigger()
call TriggerAddAction(udg_trigger72,function Trig_Difficult_Actions)
set udg_trigger73=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger73,udg_dialog02)
call TriggerAddAction(udg_trigger73,function Trig_Difficult_choose_Actions)
set udg_trigger74=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger74,udg_rect89)
call TriggerAddCondition(udg_trigger74,Condition(function Trig_Arena_Conditions))
call TriggerAddAction(udg_trigger74,function Trig_Arena_Actions)
set udg_trigger75=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger75,udg_dialog03)
call TriggerAddCondition(udg_trigger75,Condition(function Trig_Arena_1_choice_Conditions))
call TriggerAddAction(udg_trigger75,function Trig_Arena_1_choice_Actions)
set udg_trigger76=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger76,udg_dialog03)
call TriggerAddCondition(udg_trigger76,Condition(function Trig_Arena_2_choice_Conditions))
call TriggerAddAction(udg_trigger76,function Trig_Arena_2_choice_Actions)
set udg_trigger77=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger77,udg_dialog03)
call TriggerAddCondition(udg_trigger77,Condition(function Trig_Arena_3_choice_Conditions))
call TriggerAddAction(udg_trigger77,function Trig_Arena_3_choice_Actions)
set udg_trigger78=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger78,udg_dialog03)
call TriggerAddCondition(udg_trigger78,Condition(function Trig_Arena_4_choice_Conditions))
call TriggerAddAction(udg_trigger78,function Trig_Arena_4_choice_Actions)
set udg_trigger79=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger79,udg_dialog03)
call TriggerAddCondition(udg_trigger79,Condition(function Trig_Cancel_choice_Conditions))
call TriggerAddAction(udg_trigger79,function Trig_Cancel_choice_Actions)
set udg_trigger80=CreateTrigger()
call TriggerAddAction(udg_trigger80,function Trig_Set_PlayerTomeOn_Actions)
set udg_trigger81=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger81,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger81,Condition(function Trig_Set_PlayerTomeOff_Conditions))
call TriggerAddAction(udg_trigger81,function Trig_Set_PlayerTomeOff_Actions)
set udg_trigger82=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger82,udg_rect92)
call TriggerAddCondition(udg_trigger82,Condition(function Trig_Test_Conditions))
call TriggerAddAction(udg_trigger82,function Trig_Test_Actions)
set udg_trigger83=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger83,udg_dialog04)
call TriggerAddCondition(udg_trigger83,Condition(function Trig_ALL_100_choice_Conditions))
call TriggerAddAction(udg_trigger83,function Trig_ALL_100_choice_Actions)
set udg_trigger84=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger84,udg_dialog04)
call TriggerAddCondition(udg_trigger84,Condition(function Trig_ALL_200_choice_Conditions))
call TriggerAddAction(udg_trigger84,function Trig_ALL_200_choice_Actions)
set udg_trigger85=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger85,udg_dialog04)
call TriggerAddCondition(udg_trigger85,Condition(function Trig_Lightning_Monter_choice_Conditions))
call TriggerAddAction(udg_trigger85,function Trig_Lightning_Monter_choice_Actions)
set udg_trigger86=CreateTrigger()
call DisableTrigger(udg_trigger86)
call TriggerRegisterDialogEventBJ(udg_trigger86,udg_dialog04)
call TriggerAddCondition(udg_trigger86,Condition(function Trig_Lightning_Monter_choice_Ready_Conditions))
call TriggerAddAction(udg_trigger86,function Trig_Lightning_Monter_choice_Ready_Actions)
set udg_trigger87=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger87,udg_dialog04)
call TriggerAddCondition(udg_trigger87,Condition(function Trig_Fire_Monter_choice_Conditions))
call TriggerAddAction(udg_trigger87,function Trig_Fire_Monter_choice_Actions)
set udg_trigger88=CreateTrigger()
call DisableTrigger(udg_trigger88)
call TriggerRegisterDialogEventBJ(udg_trigger88,udg_dialog04)
call TriggerAddCondition(udg_trigger88,Condition(function Trig_Fire_choice_ready_Conditions))
call TriggerAddAction(udg_trigger88,function Trig_Fire_choice_ready_Actions)
set udg_trigger89=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger89,udg_dialog04)
call TriggerAddCondition(udg_trigger89,Condition(function Trig_Fost_monter_choice_Conditions))
call TriggerAddAction(udg_trigger89,function Trig_Fost_monter_choice_Actions)
set udg_trigger90=CreateTrigger()
call DisableTrigger(udg_trigger90)
call TriggerRegisterDialogEventBJ(udg_trigger90,udg_dialog04)
call TriggerAddCondition(udg_trigger90,Condition(function Trig_Fost_choice_ready_Conditions))
call TriggerAddAction(udg_trigger90,function Trig_Fost_choice_ready_Actions)
set udg_trigger91=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger91,udg_dialog04)
call TriggerAddCondition(udg_trigger91,Condition(function Trig_Osin_choice_Conditions))
call TriggerAddAction(udg_trigger91,function Trig_Osin_choice_Actions)
set udg_trigger92=CreateTrigger()
call DisableTrigger(udg_trigger92)
call TriggerRegisterDialogEventBJ(udg_trigger92,udg_dialog04)
call TriggerAddCondition(udg_trigger92,Condition(function Trig_Osin_choi_ready_Conditions))
call TriggerAddAction(udg_trigger92,function Trig_Osin_choi_ready_Actions)
set udg_trigger93=CreateTrigger()
call TriggerRegisterDialogEventBJ(udg_trigger93,udg_dialog04)
call TriggerAddCondition(udg_trigger93,Condition(function Trig_Exit_choice_Conditions))
call TriggerAddAction(udg_trigger93,function Trig_Exit_choice_Actions)
set udg_trigger94=CreateTrigger()
call TriggerAddAction(udg_trigger94,function Trig_Test_1_Actions)
set udg_trigger95=CreateTrigger()
call TriggerAddAction(udg_trigger95,function Trig_Test_2_Actions)
set udg_trigger96=CreateTrigger()
call DisableTrigger(udg_trigger96)
call TriggerRegisterTimerEventPeriodic(udg_trigger96,5.50)
call TriggerAddAction(udg_trigger96,function Trig_Monter_killed_Actions)
set udg_trigger97=CreateTrigger()
call DisableTrigger(udg_trigger97)
call TriggerRegisterAnyUnitEventBJ(udg_trigger97,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger97,Condition(function Trig_Hero_Die_in_LM_Conditions))
call TriggerAddAction(udg_trigger97,function Trig_Hero_Die_in_LM_Actions)
set udg_trigger98=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger98,udg_rect136)
call TriggerAddCondition(udg_trigger98,Condition(function Trig_Leave_1_Conditions))
call TriggerAddAction(udg_trigger98,function Trig_Leave_1_Actions)
set udg_trigger99=CreateTrigger()
call DisableTrigger(udg_trigger99)
call TriggerRegisterTimerEventPeriodic(udg_trigger99,5.50)
call TriggerAddAction(udg_trigger99,function Trig_Monter_killed_2_Actions)
set udg_trigger100=CreateTrigger()
call DisableTrigger(udg_trigger100)
call TriggerRegisterAnyUnitEventBJ(udg_trigger100,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger100,Condition(function Trig_Hero_Die_in_LM_2_Conditions))
call TriggerAddAction(udg_trigger100,function Trig_Hero_Die_in_LM_2_Actions)
set udg_trigger101=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger101,udg_rect137)
call TriggerAddCondition(udg_trigger101,Condition(function Trig_Leave_2_Conditions))
call TriggerAddAction(udg_trigger101,function Trig_Leave_2_Actions)
set udg_trigger102=CreateTrigger()
call DisableTrigger(udg_trigger102)
call TriggerRegisterTimerEventPeriodic(udg_trigger102,5.50)
call TriggerAddAction(udg_trigger102,function Trig_Monter_killed_3_Actions)
set udg_trigger103=CreateTrigger()
call DisableTrigger(udg_trigger103)
call TriggerRegisterAnyUnitEventBJ(udg_trigger103,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger103,Condition(function Trig_Hero_Die_in_LM_3_Conditions))
call TriggerAddAction(udg_trigger103,function Trig_Hero_Die_in_LM_3_Actions)
set udg_trigger104=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger104,udg_rect139)
call TriggerAddCondition(udg_trigger104,Condition(function Trig_Leave_3_Conditions))
call TriggerAddAction(udg_trigger104,function Trig_Leave_3_Actions)
set udg_trigger105=CreateTrigger()
call DisableTrigger(udg_trigger105)
call TriggerRegisterTimerEventPeriodic(udg_trigger105,5.50)
call TriggerAddAction(udg_trigger105,function Trig_Monter_killed_4_Actions)
set udg_trigger106=CreateTrigger()
call DisableTrigger(udg_trigger106)
call TriggerRegisterAnyUnitEventBJ(udg_trigger106,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger106,Condition(function Trig_Hero_Die_in_LM_4_Conditions))
call TriggerAddAction(udg_trigger106,function Trig_Hero_Die_in_LM_4_Actions)
set udg_trigger107=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger107,udg_rect138)
call TriggerAddCondition(udg_trigger107,Condition(function Trig_Leave_4_Conditions))
call TriggerAddAction(udg_trigger107,function Trig_Leave_4_Actions)
set udg_trigger108=CreateTrigger()
call TriggerAddAction(udg_trigger108,function Trig_Human_attack_Actions)
set udg_trigger109=CreateTrigger()
call TriggerAddAction(udg_trigger109,function Trig_Orc_attack_Actions)
set udg_trigger110=CreateTrigger()
call TriggerAddAction(udg_trigger110,function Trig_Undead_attack_Actions)
set udg_trigger111=CreateTrigger()
call TriggerAddAction(udg_trigger111,function Trig_Night_attack_Actions)
set udg_trigger112=CreateTrigger()
call TriggerAddAction(udg_trigger112,function Trig_Human_attack_Hero_Actions)
set udg_trigger113=CreateTrigger()
call TriggerAddAction(udg_trigger113,function Trig_Human_attack_Hero_2_Actions)
set udg_trigger114=CreateTrigger()
call TriggerAddAction(udg_trigger114,function Trig_Orb_attack_Hero_Actions)
set udg_trigger115=CreateTrigger()
call TriggerAddAction(udg_trigger115,function Trig_Orb_attack_Hero_2_Actions)
set udg_trigger116=CreateTrigger()
call TriggerAddAction(udg_trigger116,function Trig_Night_attack_Hero_Actions)
set udg_trigger117=CreateTrigger()
call TriggerAddAction(udg_trigger117,function Trig_Night_attack_Hero_2_Actions)
set udg_trigger118=CreateTrigger()
call TriggerAddAction(udg_trigger118,function Trig_Undead_attack_Hero_Actions)
set udg_trigger119=CreateTrigger()
call TriggerAddAction(udg_trigger119,function Trig_Undead_attack_Hero_2_Actions)
set udg_trigger120=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger120,GetPlayableMapRect())
call TriggerAddCondition(udg_trigger120,Condition(function Trig_Atribute_Conditions))
call TriggerAddAction(udg_trigger120,function Trig_Atribute_Actions)
set udg_trigger121=CreateTrigger()
call TriggerRegisterEnterRectSimple(udg_trigger121,GetPlayableMapRect())
call TriggerAddCondition(udg_trigger121,Condition(function Trig_Level_Ability_Conditions))
call TriggerAddAction(udg_trigger121,function Trig_Level_Ability_Actions)
set udg_trigger122=CreateTrigger()
call TriggerAddAction(udg_trigger122,function Trig_Time_Next_Wave_Actions)
set udg_trigger123=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_trigger123,udg_timer04)
call TriggerAddAction(udg_trigger123,function Trig_TimeNW_Ex_Actions)
set udg_trigger124=CreateTrigger()
call TriggerAddAction(udg_trigger124,function Trig_Dragon_Wave_Time_Actions)
set udg_trigger125=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_trigger125,udg_timer05)
call TriggerAddAction(udg_trigger125,function Trig_Dragon_Wave_Time_Ex_Actions)
set udg_trigger126=CreateTrigger()
call TriggerAddAction(udg_trigger126,function Trig_Bua_lun_Actions)
set udg_trigger127=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_trigger127,udg_timer03)
call TriggerAddAction(udg_trigger127,function Trig_Bua_lun_Ex_Actions)
set udg_trigger128=CreateTrigger()
call DisableTrigger(udg_trigger128)
call TriggerRegisterTimerExpireEventBJ(udg_trigger128,udg_timer03)
call TriggerAddAction(udg_trigger128,function Trig_Time_Ex_Actions)
set udg_trigger129=CreateTrigger()
call TriggerRegisterTimerEventSingle(udg_trigger129,0.01)
call TriggerAddAction(udg_trigger129,function Trig_Pause_Bua_lun_Actions)
set udg_trigger130=CreateTrigger()
call DisableTrigger(udg_trigger130)
call TriggerRegisterTimerEventPeriodic(udg_trigger130,5.00)
call TriggerAddAction(udg_trigger130,function Trig_Bua_lun_move_Actions)
set udg_trigger131=CreateTrigger()
call DisableTrigger(udg_trigger131)
call TriggerRegisterTimerEventPeriodic(udg_trigger131,20.00)
call TriggerAddAction(udg_trigger131,function Trig_Bua_lun_Thunder_Actions)
set udg_trigger132=CreateTrigger()
call DisableTrigger(udg_trigger132)
call TriggerRegisterLeaveRectSimple(udg_trigger132,udg_rect96)
call TriggerAddCondition(udg_trigger132,Condition(function Trig_Leave_Region_Conditions))
call TriggerAddAction(udg_trigger132,function Trig_Leave_Region_Actions)
set udg_trigger133=CreateTrigger()
call DisableTrigger(udg_trigger133)
call TriggerRegisterTimerEventPeriodic(udg_trigger133,5.00)
call TriggerAddAction(udg_trigger133,function Trig_All_lose_Actions)
set udg_trigger134=CreateTrigger()
call TriggerAddAction(udg_trigger134,function Trig_Bua_lun_2_Actions)
set udg_trigger135=CreateTrigger()
call DisableTrigger(udg_trigger135)
call TriggerRegisterTimerExpireEventBJ(udg_trigger135,udg_timer03)
call TriggerAddAction(udg_trigger135,function Trig_Bua_lun_Ex_2_Actions)
set udg_trigger136=CreateTrigger()
call DisableTrigger(udg_trigger136)
call TriggerRegisterTimerExpireEventBJ(udg_trigger136,udg_timer03)
call TriggerAddAction(udg_trigger136,function Trig_Time_Ex_2_Actions)
set udg_trigger137=CreateTrigger()
call DisableTrigger(udg_trigger137)
call TriggerRegisterTimerEventPeriodic(udg_trigger137,5.00)
call TriggerAddAction(udg_trigger137,function Trig_Bua_lun_move_2_Actions)
set udg_trigger138=CreateTrigger()
call DisableTrigger(udg_trigger138)
call TriggerRegisterTimerEventPeriodic(udg_trigger138,20.00)
call TriggerAddAction(udg_trigger138,function Trig_Bua_lun_Thunder_2_Actions)
set udg_trigger139=CreateTrigger()
call DisableTrigger(udg_trigger139)
call TriggerRegisterLeaveRectSimple(udg_trigger139,udg_rect96)
call TriggerAddCondition(udg_trigger139,Condition(function Trig_Leave_Region_2_Conditions))
call TriggerAddAction(udg_trigger139,function Trig_Leave_Region_2_Actions)
set udg_trigger140=CreateTrigger()
call DisableTrigger(udg_trigger140)
call TriggerRegisterTimerEventPeriodic(udg_trigger140,5.00)
call TriggerAddAction(udg_trigger140,function Trig_All_lose_2_Actions)
set udg_trigger141=CreateTrigger()
call TriggerAddAction(udg_trigger141,function Trig_Bua_lun_3_Actions)
set udg_trigger142=CreateTrigger()
call DisableTrigger(udg_trigger142)
call TriggerRegisterTimerExpireEventBJ(udg_trigger142,udg_timer03)
call TriggerAddAction(udg_trigger142,function Trig_Bua_lun_Ex_3_Actions)
set udg_trigger143=CreateTrigger()
call DisableTrigger(udg_trigger143)
call TriggerRegisterTimerExpireEventBJ(udg_trigger143,udg_timer03)
call TriggerAddAction(udg_trigger143,function Trig_Time_Ex_3_Actions)
set udg_trigger144=CreateTrigger()
call DisableTrigger(udg_trigger144)
call TriggerRegisterTimerEventPeriodic(udg_trigger144,3.00)
call TriggerAddAction(udg_trigger144,function Trig_Bua_lun_move_3_Actions)
set udg_trigger145=CreateTrigger()
call DisableTrigger(udg_trigger145)
call TriggerRegisterTimerEventPeriodic(udg_trigger145,10.00)
call TriggerAddAction(udg_trigger145,function Trig_Wind_Walk_God_Actions)
set udg_trigger146=CreateTrigger()
call DisableTrigger(udg_trigger146)
call TriggerRegisterAnyUnitEventBJ(udg_trigger146,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger146,Condition(function Trig_BladeStorm_Conditions))
call TriggerAddAction(udg_trigger146,function Trig_BladeStorm_Actions)
set udg_trigger147=CreateTrigger()
call DisableTrigger(udg_trigger147)
call TriggerRegisterLeaveRectSimple(udg_trigger147,udg_rect96)
call TriggerAddCondition(udg_trigger147,Condition(function Trig_Leave_Region_3_Conditions))
call TriggerAddAction(udg_trigger147,function Trig_Leave_Region_3_Actions)
set udg_trigger148=CreateTrigger()
call DisableTrigger(udg_trigger148)
call TriggerRegisterTimerEventPeriodic(udg_trigger148,5.00)
call TriggerAddAction(udg_trigger148,function Trig_All_lose_3_Actions)
set udg_trigger149=CreateTrigger()
call TriggerAddAction(udg_trigger149,function Trig_ItemEventTime_Actions)
set udg_trigger150=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_trigger150,udg_timer06)
call TriggerAddAction(udg_trigger150,function Trig_ItemEventTime_Ex_Actions)
set udg_trigger151=CreateTrigger()
call DisableTrigger(udg_trigger151)
call TriggerRegisterTimerEventPeriodic(udg_trigger151,5.00)
call TriggerAddAction(udg_trigger151,function Trig_Test_unit_in_ItemEventHero_2_Actions)
set udg_trigger152=CreateTrigger()
call TriggerAddAction(udg_trigger152,function Trig_Winer_Actions)
set udg_trigger153=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger153,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger153,Condition(function Trig_TakeItem_Conditions))
call TriggerAddAction(udg_trigger153,function Trig_TakeItem_Actions)
set udg_trigger154=CreateTrigger()
call TriggerAddAction(udg_trigger154,function Trig_Back_Actions)
set udg_trigger155=CreateTrigger()
call DisableTrigger(udg_trigger155)
call TriggerRegisterLeaveRectSimple(udg_trigger155,udg_rect154)
call TriggerAddAction(udg_trigger155,function Trig_Leave_Region_Item_Actions)
set udg_trigger156=CreateTrigger()
call DisableTrigger(udg_trigger156)
call TriggerRegisterAnyUnitEventBJ(udg_trigger156,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger156,Condition(function Trig_Remove_From_Hero2_Conditions))
call TriggerAddAction(udg_trigger156,function Trig_Remove_From_Hero2_Actions)
set udg_trigger157=CreateTrigger()
call DisableTrigger(udg_trigger157)
call TriggerRegisterTimerEventPeriodic(udg_trigger157,20.00)
call TriggerAddAction(udg_trigger157,function Trig_Create_item_Actions)
set udg_trigger158=CreateTrigger()
call TriggerAddAction(udg_trigger158,function Trig_Arena_1_Actions)
set udg_trigger159=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger159,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger159,function Trig_Monter_1_Actions)
set udg_trigger160=CreateTrigger()
call TriggerRegisterTimerExpireEventBJ(udg_trigger160,udg_timer02)
call TriggerAddAction(udg_trigger160,function Trig_TimeArena1_Ex_Actions)
set udg_trigger161=CreateTrigger()
call TriggerAddAction(udg_trigger161,function Trig_Arena_1_End_Actions)
set udg_trigger162=CreateTrigger()
call TriggerAddAction(udg_trigger162,function Trig_Arena_2_Actions)
set udg_trigger163=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger163,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger163,function Trig_Monter_2_Actions)
set udg_trigger164=CreateTrigger()
call DisableTrigger(udg_trigger164)
call TriggerRegisterTimerExpireEventBJ(udg_trigger164,udg_timer02)
call TriggerAddAction(udg_trigger164,function Trig_TimeArena2_Ex_Actions)
set udg_trigger165=CreateTrigger()
call TriggerAddAction(udg_trigger165,function Trig_Arena_2_End_Actions)
set udg_trigger166=CreateTrigger()
call TriggerAddAction(udg_trigger166,function Trig_Arena_3_Actions)
set udg_trigger167=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger167,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger167,function Trig_Monter_3_Actions)
set udg_trigger168=CreateTrigger()
call DisableTrigger(udg_trigger168)
call TriggerRegisterTimerExpireEventBJ(udg_trigger168,udg_timer02)
call TriggerAddAction(udg_trigger168,function Trig_TimeArena3_Ex_Actions)
set udg_trigger169=CreateTrigger()
call TriggerAddAction(udg_trigger169,function Trig_Arena_3_End_Actions)
set udg_trigger170=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger170,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger170,Condition(function Trig_Item_arena_3_Conditions))
call TriggerAddAction(udg_trigger170,function Trig_Item_arena_3_Actions)
set udg_trigger171=CreateTrigger()
call TriggerAddAction(udg_trigger171,function Trig_Arena_4_Actions)
set udg_trigger172=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger172,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger172,function Trig_Monter_4_Actions)
set udg_trigger173=CreateTrigger()
call DisableTrigger(udg_trigger173)
call TriggerRegisterTimerExpireEventBJ(udg_trigger173,udg_timer02)
call TriggerAddAction(udg_trigger173,function Trig_TimeArena4_Ex_Actions)
set udg_trigger174=CreateTrigger()
call TriggerAddAction(udg_trigger174,function Trig_Arena_4_End_Actions)
set udg_trigger175=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger175,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger175,Condition(function Trig_Item_arena_4_Conditions))
call TriggerAddAction(udg_trigger175,function Trig_Item_arena_4_Actions)
set udg_trigger176=CreateTrigger()
call TriggerAddAction(udg_trigger176,function Trig_Lose_Actions)
set udg_trigger177=CreateTrigger()
call DisableTrigger(udg_trigger177)
call TriggerRegisterTimerEventPeriodic(udg_trigger177,5.00)
call TriggerAddAction(udg_trigger177,function Trig_Lose_arena_Actions)
set udg_trigger178=CreateTrigger()
call DisableTrigger(udg_trigger178)
call TriggerAddAction(udg_trigger178,function Trig_Posittion_Actions)
set udg_trigger179=CreateTrigger()
call TriggerAddAction(udg_trigger179,function Trig_STOP_All_time_Actions)
set udg_trigger180=CreateTrigger()
call TriggerAddAction(udg_trigger180,function Trig_Run_all_time_Actions)
set udg_trigger181=CreateTrigger()
call DisableTrigger(udg_trigger181)
call TriggerRegisterAnyUnitEventBJ(udg_trigger181,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger181,Condition(function Trig_Die_Conditions))
call TriggerAddAction(udg_trigger181,function Trig_Die_Actions)
set udg_trigger182=CreateTrigger()
call TriggerAddAction(udg_trigger182,function Trig_Pause_Actions)
set udg_trigger183=CreateTrigger()
call DisableTrigger(udg_trigger183)
call TriggerRegisterAnyUnitEventBJ(udg_trigger183,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger183,Condition(function Trig_Die_2_Conditions))
call TriggerAddAction(udg_trigger183,function Trig_Die_2_Actions)
set udg_trigger184=CreateTrigger()
call TriggerAddAction(udg_trigger184,function Trig_Pick_in_Group_Actions)
set udg_trigger185=CreateTrigger()
call DisableTrigger(udg_trigger185)
call TriggerRegisterTimerEventPeriodic(udg_trigger185,1.00)
call TriggerAddAction(udg_trigger185,function Trig_If_number_2_Actions)
set udg_trigger186=CreateTrigger()
call DisableTrigger(udg_trigger186)
call TriggerRegisterTimerEventPeriodic(udg_trigger186,1.00)
call TriggerAddAction(udg_trigger186,function Trig_If_number_4_Actions)
set udg_trigger187=CreateTrigger()
call DisableTrigger(udg_trigger187)
call TriggerRegisterTimerEventPeriodic(udg_trigger187,1.00)
call TriggerAddAction(udg_trigger187,function Trig_If_number_6_Actions)
set udg_trigger188=CreateTrigger()
call DisableTrigger(udg_trigger188)
call TriggerRegisterTimerEventPeriodic(udg_trigger188,1.00)
call TriggerAddAction(udg_trigger188,function Trig_If_number_8_Actions)
set udg_trigger189=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger189,1.00)
call TriggerAddAction(udg_trigger189,function Trig_Tes_Final_Actions)
set udg_trigger190=CreateTrigger()
call TriggerAddAction(udg_trigger190,function Trig_Final_Actions)
set udg_trigger191=CreateTrigger()
call DisableTrigger(udg_trigger191)
call TriggerRegisterTimerExpireEventBJ(udg_trigger191,udg_timer01)
call TriggerAddAction(udg_trigger191,function Trig_Final_Ex_Actions)
set udg_trigger192=CreateTrigger()
call DisableTrigger(udg_trigger192)
call TriggerRegisterTimerEventPeriodic(udg_trigger192,3.00)
call TriggerAddAction(udg_trigger192,function Trig_Weather_Actions)
set udg_trigger193=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger193,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger193,function Trig_Unit_in_Final_Die_Actions)
set udg_trigger194=CreateTrigger()
call DisableTrigger(udg_trigger194)
call TriggerRegisterTimerEventPeriodic(udg_trigger194,5.00)
call TriggerAddAction(udg_trigger194,function Trig_Number_unit_0_Actions)
set udg_trigger195=CreateTrigger()
call DisableTrigger(udg_trigger195)
call TriggerRegisterTimerEventPeriodic(udg_trigger195,5.00)
call TriggerAddAction(udg_trigger195,function Trig_FinalAttack_1_end_Actions)
set udg_trigger196=CreateTrigger()
call DisableTrigger(udg_trigger196)
call TriggerRegisterTimerEventPeriodic(udg_trigger196,5.00)
call TriggerAddAction(udg_trigger196,function Trig_FinalAttack_2_end_Actions)
set udg_trigger197=CreateTrigger()
call DisableTrigger(udg_trigger197)
call TriggerRegisterTimerEventPeriodic(udg_trigger197,5.00)
call TriggerAddAction(udg_trigger197,function Trig_FinalAttack_3_end_Actions)
set udg_trigger198=CreateTrigger()
call TriggerAddAction(udg_trigger198,function Trig_Hero_Final_Actions)
set udg_trigger199=CreateTrigger()
call TriggerAddAction(udg_trigger199,function Trig_Finsih_wave_1_Actions)
set udg_trigger200=CreateTrigger()
call TriggerAddAction(udg_trigger200,function Trig_Finsih_wave_2_Actions)
set udg_trigger201=CreateTrigger()
call TriggerAddAction(udg_trigger201,function Trig_End_Actions)
set udg_trigger202=CreateTrigger()
call DisableTrigger(udg_trigger202)
call TriggerAddAction(udg_trigger202,function Trig_Blood_Actions)
set udg_trigger203=CreateTrigger()
call DisableTrigger(udg_trigger203)
call TriggerRegisterTimerExpireEventBJ(udg_trigger203,udg_timer01)
call TriggerAddAction(udg_trigger203,function Trig_Blood_Ex_Actions)
set udg_trigger204=CreateTrigger()
call TriggerAddAction(udg_trigger204,function Trig_Blood_1_Actions)
set udg_trigger205=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger205,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger205,Condition(function Trig_Blood_1_die_Conditions))
call TriggerAddAction(udg_trigger205,function Trig_Blood_1_die_Actions)
set udg_trigger206=CreateTrigger()
call DisableTrigger(udg_trigger206)
call TriggerRegisterUnitEvent(udg_trigger206,udg_unit74,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger206,function Trig_Blood_1_End_Actions)
set udg_trigger207=CreateTrigger()
call TriggerAddAction(udg_trigger207,function Trig_Blood_2_Actions)
set udg_trigger208=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger208,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger208,Condition(function Trig_Blood_2_die_Conditions))
call TriggerAddAction(udg_trigger208,function Trig_Blood_2_die_Actions)
set udg_trigger209=CreateTrigger()
call DisableTrigger(udg_trigger209)
call TriggerRegisterUnitEvent(udg_trigger209,udg_unit56,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger209,function Trig_Blood_2_End_Actions)
set udg_trigger210=CreateTrigger()
call TriggerAddAction(udg_trigger210,function Trig_Blood_3_Actions)
set udg_trigger211=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger211,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger211,Condition(function Trig_Blood_3_die_Conditions))
call TriggerAddAction(udg_trigger211,function Trig_Blood_3_die_Actions)
set udg_trigger212=CreateTrigger()
call DisableTrigger(udg_trigger212)
call TriggerRegisterUnitEvent(udg_trigger212,udg_unit75,EVENT_UNIT_DEATH)
call TriggerAddAction(udg_trigger212,function Trig_Blood_3_End_Actions)
set udg_trigger213=CreateTrigger()
call DisableTrigger(udg_trigger213)
call TriggerRegisterAnyUnitEventBJ(udg_trigger213,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger213,Condition(function Trig_Lose_Mission_Conditions))
call TriggerAddAction(udg_trigger213,function Trig_Lose_Mission_Actions)
set udg_trigger214=CreateTrigger()
call TriggerAddAction(udg_trigger214,function Trig_Kepper_of_the_Door_Actions)
set udg_trigger215=CreateTrigger()
call DisableTrigger(udg_trigger215)
call TriggerRegisterTimerEventPeriodic(udg_trigger215,5.00)
call TriggerAddAction(udg_trigger215,function Trig_Keeper_Die_Actions)
set udg_trigger216=CreateTrigger()
call TriggerAddAction(udg_trigger216,function Trig_Victory_Actions)
set udg_trigger217=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger217,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger217,Condition(function Trig_Banish_Conditions))
call TriggerAddAction(udg_trigger217,function Trig_Banish_Actions)
set udg_trigger218=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger218,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger218,Condition(function Trig_Life_Drain_Conditions))
call TriggerAddAction(udg_trigger218,function Trig_Life_Drain_Actions)
set udg_trigger219=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger219,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger219,Condition(function Trig_Mana_Burn_Conditions))
call TriggerAddAction(udg_trigger219,function Trig_Mana_Burn_Actions)
set udg_trigger220=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger220,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger220,Condition(function Trig_Sleep_Conditions))
call TriggerAddAction(udg_trigger220,function Trig_Sleep_Actions)
set udg_trigger221=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger221,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger221,Condition(function Trig_Cylone_Conditions))
call TriggerAddAction(udg_trigger221,function Trig_Cylone_Actions)
set udg_trigger222=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger222,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger222,Condition(function Trig_Healing_Wave_Conditions))
call TriggerAddAction(udg_trigger222,function Trig_Healing_Wave_Actions)
set udg_trigger223=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger223,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger223,Condition(function Trig_Purge_Conditions))
call TriggerAddAction(udg_trigger223,function Trig_Purge_Actions)
set udg_trigger224=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger224,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger224,Condition(function Trig_Hex_Conditions))
call TriggerAddAction(udg_trigger224,function Trig_Hex_Actions)
set udg_trigger225=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger225,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger225,Condition(function Trig_Faerie_Fire_Conditions))
call TriggerAddAction(udg_trigger225,function Trig_Faerie_Fire_Actions)
set udg_trigger226=CreateTrigger()
call DisableTrigger(udg_trigger226)
call TriggerRegisterAnyUnitEventBJ(udg_trigger226,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger226,Condition(function Trig_Deal_1k_life_Conditions))
call TriggerAddAction(udg_trigger226,function Trig_Deal_1k_life_Actions)
set udg_trigger227=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger227,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger227,Condition(function Trig_Remove_Ilusion_Conditions))
call TriggerAddAction(udg_trigger227,function Trig_Remove_Ilusion_Actions)
set udg_trigger228=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger228,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger228,Condition(function Trig_Skill_1_Conditions))
call TriggerAddAction(udg_trigger228,function Trig_Skill_1_Actions)
set udg_trigger229=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger229,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger229,Condition(function Trig_Skill_2_Conditions))
call TriggerAddAction(udg_trigger229,function Trig_Skill_2_Actions)
set udg_trigger230=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger230,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger230,Condition(function Trig_Skill_3_Conditions))
call TriggerAddAction(udg_trigger230,function Trig_Skill_3_Actions)
set udg_trigger231=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger231,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger231,Condition(function Trig_Skill_5_Conditions))
call TriggerAddAction(udg_trigger231,function Trig_Skill_5_Actions)
set udg_trigger232=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger232,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger232,Condition(function Trig_Skill_6_Conditions))
call TriggerAddAction(udg_trigger232,function Trig_Skill_6_Actions)
set udg_trigger233=CreateTrigger()
call DisableTrigger(udg_trigger233)
call TriggerRegisterTimerEventPeriodic(udg_trigger233,0.01)
call TriggerAddAction(udg_trigger233,function Trig_Kylin_Excellence_Sword_Real_Actions)
set udg_trigger234=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger234,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger234,Condition(function Trig_Gain_allstat_Conditions))
call TriggerAddAction(udg_trigger234,function Trig_Gain_allstat_Actions)
set udg_trigger235=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger235,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger235,Condition(function Trig_Damage_to_radius_Conditions))
call TriggerAddAction(udg_trigger235,function Trig_Damage_to_radius_Actions)
set udg_trigger236=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger236,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger236,Condition(function Trig_Heal_your_self_Conditions))
call TriggerAddAction(udg_trigger236,function Trig_Heal_your_self_Actions)
set udg_trigger237=CreateTrigger()
call DisableTrigger(udg_trigger237)
call TriggerRegisterTimerEventPeriodic(udg_trigger237,0.01)
call TriggerAddAction(udg_trigger237,function Trig_Juridical_capacity_Excellence_Sword_Real_Actions)
set udg_trigger238=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger238,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger238,Condition(function Trig_Wind_up_and_gain_Conditions))
call TriggerAddAction(udg_trigger238,function Trig_Wind_up_and_gain_Actions)
set udg_trigger239=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger239,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger239,Condition(function Trig_Call_wave_water_Conditions))
call TriggerAddAction(udg_trigger239,function Trig_Call_wave_water_Actions)
set udg_trigger240=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger240,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger240,Condition(function Trig_Call_rock_Conditions))
call TriggerAddAction(udg_trigger240,function Trig_Call_rock_Actions)
set udg_trigger241=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger241,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger241,Condition(function Trig_Strike_with_fire_Conditions))
call TriggerAddAction(udg_trigger241,function Trig_Strike_with_fire_Actions)
set udg_trigger242=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger242,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger242,Condition(function Trig_Move_slap_damage_Conditions))
call TriggerAddAction(udg_trigger242,function Trig_Move_slap_damage_Actions)
set udg_trigger243=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger243,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger243,Condition(function Trig_Allstat_Add_Conditions))
call TriggerAddAction(udg_trigger243,function Trig_Allstat_Add_Actions)
set udg_trigger244=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger244,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(udg_trigger244,Condition(function Trig_Allstat_Subtrac_Conditions))
call TriggerAddAction(udg_trigger244,function Trig_Allstat_Subtrac_Actions)
set udg_trigger245=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger245,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger245,Condition(function Trig_Fire_Active_On_Boot_Conditions))
call TriggerAddAction(udg_trigger245,function Trig_Fire_Active_On_Boot_Actions)
set udg_trigger246=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger246,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(udg_trigger246,Condition(function Trig_Fire_Active_OFF_Conditions))
call TriggerAddAction(udg_trigger246,function Trig_Fire_Active_OFF_Actions)
set udg_trigger247=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger247,EVENT_PLAYER_HERO_REVIVE_FINISH)
call TriggerAddCondition(udg_trigger247,Condition(function Trig_UnitReive_Conditions))
call TriggerAddAction(udg_trigger247,function Trig_UnitReive_Actions)
set udg_trigger248=CreateTrigger()
call DisableTrigger(udg_trigger248)
call TriggerRegisterTimerEventPeriodic(udg_trigger248,0.01)
call TriggerAddAction(udg_trigger248,function Trig_Fire_Active_On_Boot_2_Actions)
set udg_trigger249=CreateTrigger()
call DisableTrigger(udg_trigger249)
call TriggerRegisterTimerEventPeriodic(udg_trigger249,1.00)
call TriggerAddAction(udg_trigger249,function Trig_Deal_Damage_on_FireBoot_Actions)
set udg_trigger250=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger250,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger250,Condition(function Trig_Item_1_Conditions))
call TriggerAddAction(udg_trigger250,function Trig_Item_1_Actions)
set udg_trigger251=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger251,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger251,Condition(function Trig_Item_2_Conditions))
call TriggerAddAction(udg_trigger251,function Trig_Item_2_Actions)
set udg_trigger252=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger252,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger252,Condition(function Trig_Item_3_Conditions))
call TriggerAddAction(udg_trigger252,function Trig_Item_3_Actions)
set udg_trigger253=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger253,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger253,Condition(function Trig_Item_4_Conditions))
call TriggerAddAction(udg_trigger253,function Trig_Item_4_Actions)
set udg_trigger254=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger254,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(udg_trigger254,Condition(function Trig_Item_5_Conditions))
call TriggerAddAction(udg_trigger254,function Trig_Item_5_Actions)
set udg_trigger255=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger255,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger255,Condition(function Trig_Fan_of_Rocket_Conditions))
call TriggerAddAction(udg_trigger255,function Trig_Fan_of_Rocket_Actions)
set udg_trigger256=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger256,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger256,Condition(function Trig_Fander_Light_Conditions))
call TriggerAddAction(udg_trigger256,function Trig_Fander_Light_Actions)
set udg_trigger257=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger257,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger257,Condition(function Trig_Demon_Conditions))
call TriggerAddAction(udg_trigger257,function Trig_Demon_Actions)
set udg_trigger258=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger258,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger258,Condition(function Trig_Blade_storm_Conditions))
call TriggerAddAction(udg_trigger258,function Trig_Blade_storm_Actions)
set udg_trigger259=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger259,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger259,Condition(function Trig_Lock_Conditions))
call TriggerAddAction(udg_trigger259,function Trig_Lock_Actions)
set udg_trigger260=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger260,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger260,Condition(function Trig_Learn_CatchSoul_Conditions))
call TriggerAddAction(udg_trigger260,function Trig_Learn_CatchSoul_Actions)
set udg_trigger261=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger261,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger261,Condition(function Trig_Casting_Catch_Soul_Conditions))
call TriggerAddAction(udg_trigger261,function Trig_Casting_Catch_Soul_Actions)
set udg_trigger262=CreateTrigger()
call DisableTrigger(udg_trigger262)
call TriggerRegisterTimerEventPeriodic(udg_trigger262,0.01)
call TriggerAddAction(udg_trigger262,function Trig_Catch_Soul_Real_Actions)
set udg_trigger263=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger263,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(udg_trigger263,function Trig_Catch_Soul_Actions)
set udg_trigger264=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger264,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger264,Condition(function Trig_Phoneix_Angry_Conditions))
call TriggerAddAction(udg_trigger264,function Trig_Phoneix_Angry_Actions)
set udg_trigger265=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger265,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger265,Condition(function Trig_Dupe_Shock_Learn_Conditions))
call TriggerAddAction(udg_trigger265,function Trig_Dupe_Shock_Learn_Actions)
set udg_trigger266=CreateTrigger()
call DisableTrigger(udg_trigger266)
call TriggerRegisterAnyUnitEventBJ(udg_trigger266,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger266,Condition(function Trig_Dupe_Shock_Conditions))
call TriggerAddAction(udg_trigger266,function Trig_Dupe_Shock_Actions)
set udg_trigger267=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger267,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger267,Condition(function Trig_Wind_Slice_Conditions))
call TriggerAddAction(udg_trigger267,function Trig_Wind_Slice_Actions)
set udg_trigger268=CreateTrigger()
call DisableTrigger(udg_trigger268)
call TriggerRegisterAnyUnitEventBJ(udg_trigger268,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger268,Condition(function Trig_Attacked_Conditions))
call TriggerAddAction(udg_trigger268,function Trig_Attacked_Actions)
set udg_trigger269=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger269,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger269,Condition(function Trig_Ghost_Angry_Conditions))
call TriggerAddAction(udg_trigger269,function Trig_Ghost_Angry_Actions)
set udg_trigger270=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger270,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger270,Condition(function Trig_Fury_Conditions))
call TriggerAddAction(udg_trigger270,function Trig_Fury_Actions)
set udg_trigger271=CreateTrigger()
call TriggerAddAction(udg_trigger271,function Trig_Fury__2_Actions)
set udg_trigger272=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger272,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger272,Condition(function Trig_Holy_Light_Conditions))
call TriggerAddAction(udg_trigger272,function Trig_Holy_Light_Actions)
set udg_trigger273=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger273,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger273,Condition(function Trig_Eat_Time_Conditions))
call TriggerAddAction(udg_trigger273,function Trig_Eat_Time_Actions)
set udg_trigger274=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger274,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger274,Condition(function Trig_Fire_boilt_Conditions))
call TriggerAddAction(udg_trigger274,function Trig_Fire_boilt_Actions)
set udg_trigger275=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger275,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger275,Condition(function Trig_Thunder_Fire_Conditions))
call TriggerAddAction(udg_trigger275,function Trig_Thunder_Fire_Actions)
set udg_trigger276=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger276,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger276,Condition(function Trig_Dead_Catch_Conditions))
call TriggerAddAction(udg_trigger276,function Trig_Dead_Catch_Actions)
set udg_trigger277=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger277,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger277,Condition(function Trig_Catch_Conditions))
call TriggerAddAction(udg_trigger277,function Trig_Catch_Actions)
set udg_trigger278=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger278,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger278,Condition(function Trig_Lightning_Conditions))
call TriggerAddAction(udg_trigger278,function Trig_Lightning_Actions)
set udg_trigger279=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger279,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger279,Condition(function Trig_Learn_Mutip_shot_Conditions))
call TriggerAddAction(udg_trigger279,function Trig_Learn_Mutip_shot_Actions)
set udg_trigger280=CreateTrigger()
call DisableTrigger(udg_trigger280)
call TriggerRegisterAnyUnitEventBJ(udg_trigger280,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger280,Condition(function Trig_Mutip_Shot_Conditions))
call TriggerAddAction(udg_trigger280,function Trig_Mutip_Shot_Actions)
set udg_trigger281=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger281,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger281,Condition(function Trig_Learn_Electric_Auto_Conditions))
call TriggerAddAction(udg_trigger281,function Trig_Learn_Electric_Auto_Actions)
set udg_trigger282=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger282,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger282,Condition(function Trig_Electric_Auto_Conditions))
call TriggerAddAction(udg_trigger282,function Trig_Electric_Auto_Actions)
set udg_trigger283=CreateTrigger()
call DisableTrigger(udg_trigger283)
call TriggerRegisterTimerEventPeriodic(udg_trigger283,0.50)
call TriggerAddAction(udg_trigger283,function Trig_Time_random_Real_4_Actions)
set udg_trigger284=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger284,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger284,Condition(function Trig_Thunder_Slam_Conditions))
call TriggerAddAction(udg_trigger284,function Trig_Thunder_Slam_Actions)
set udg_trigger285=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger285,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger285,Condition(function Trig_Ilusion_Conditions))
call TriggerAddAction(udg_trigger285,function Trig_Ilusion_Actions)
set udg_trigger286=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger286,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger286,Condition(function Trig_XTRIKE_Conditions))
call TriggerAddAction(udg_trigger286,function Trig_XTRIKE_Actions)
set udg_trigger287=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger287,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger287,Condition(function Trig_Stom_Blast_Conditions))
call TriggerAddAction(udg_trigger287,function Trig_Stom_Blast_Actions)
set udg_trigger288=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger288,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger288,Condition(function Trig_Angel_Cry_Conditions))
call TriggerAddAction(udg_trigger288,function Trig_Angel_Cry_Actions)
set udg_trigger289=CreateTrigger()
call DisableTrigger(udg_trigger289)
call TriggerRegisterTimerEventPeriodic(udg_trigger289,0.50)
call TriggerAddAction(udg_trigger289,function Trig_Angel_Cry_damage_Actions)
set udg_trigger290=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger290,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger290,Condition(function Trig_Angel_Cry_Stop_Conditions))
call TriggerAddAction(udg_trigger290,function Trig_Angel_Cry_Stop_Actions)
set udg_trigger291=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger291,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger291,Condition(function Trig_Regen_Aura_Learn_Conditions))
call TriggerAddAction(udg_trigger291,function Trig_Regen_Aura_Learn_Actions)
set udg_trigger292=CreateTrigger()
call DisableTrigger(udg_trigger292)
call TriggerRegisterTimerEventPeriodic(udg_trigger292,1.00)
call TriggerAddAction(udg_trigger292,function Trig_Regen_Aura_Actions)
set udg_trigger293=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger293,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger293,Condition(function Trig_Learn_Skill_Impale_Return_Conditions))
call TriggerAddAction(udg_trigger293,function Trig_Learn_Skill_Impale_Return_Actions)
set udg_trigger294=CreateTrigger()
call DisableTrigger(udg_trigger294)
call TriggerRegisterAnyUnitEventBJ(udg_trigger294,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger294,Condition(function Trig_Impale_Return_Conditions))
call TriggerAddAction(udg_trigger294,function Trig_Impale_Return_Actions)
set udg_trigger295=CreateTrigger()
call DisableTrigger(udg_trigger295)
call TriggerRegisterTimerEventPeriodic(udg_trigger295,0.50)
call TriggerAddAction(udg_trigger295,function Trig_Time_random_Real_2_Actions)
set udg_trigger296=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger296,EVENT_PLAYER_UNIT_SPELL_CAST)
call TriggerAddCondition(udg_trigger296,Condition(function Trig_Drain_Life_Conditions))
call TriggerAddAction(udg_trigger296,function Trig_Drain_Life_Actions)
set udg_trigger297=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger297,EVENT_PLAYER_UNIT_SPELL_ENDCAST)
call TriggerAddCondition(udg_trigger297,Condition(function Trig_Drain_Life_Copy_Conditions))
call TriggerAddAction(udg_trigger297,function Trig_Drain_Life_Copy_Actions)
set udg_trigger298=CreateTrigger()
call DisableTrigger(udg_trigger298)
call TriggerRegisterTimerEventPeriodic(udg_trigger298,0.10)
call TriggerAddAction(udg_trigger298,function Trig_Life_Actions)
set udg_trigger299=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger299,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger299,Condition(function Trig_Learn_DarkAura_Conditions))
call TriggerAddAction(udg_trigger299,function Trig_Learn_DarkAura_Actions)
set udg_trigger300=CreateTrigger()
call DisableTrigger(udg_trigger300)
call TriggerRegisterAnyUnitEventBJ(udg_trigger300,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger300,Condition(function Trig_DarkAura_Conditions))
call TriggerAddAction(udg_trigger300,function Trig_DarkAura_Actions)
set udg_trigger301=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger301,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger301,Condition(function Trig_Damage_Real_Conditions))
call TriggerAddAction(udg_trigger301,function Trig_Damage_Real_Actions)
set udg_trigger302=CreateTrigger()
call DisableTrigger(udg_trigger302)
call TriggerRegisterTimerEventPeriodic(udg_trigger302,0.50)
call TriggerAddAction(udg_trigger302,function Trig_Time_random_Real_3_Actions)
set udg_trigger303=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger303,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger303,Condition(function Trig_Learn_Skill_Conditions))
call TriggerAddAction(udg_trigger303,function Trig_Learn_Skill_Actions)
set udg_trigger304=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger304,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger304,Condition(function Trig_Mutip_strike_Conditions))
call TriggerAddAction(udg_trigger304,function Trig_Mutip_strike_Actions)
set udg_trigger305=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger305,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger305,Condition(function Trig_Remove_Conditions))
call TriggerAddAction(udg_trigger305,function Trig_Remove_Actions)
set udg_trigger306=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(udg_trigger306,2.50)
call TriggerAddAction(udg_trigger306,function Trig_Buff_Actions)
set udg_trigger307=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger307,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger307,Condition(function Trig_Remove_Samuro_Conditions))
call TriggerAddAction(udg_trigger307,function Trig_Remove_Samuro_Actions)
set udg_trigger308=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger308,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger308,Condition(function Trig_Double_Ilusion_Conditions))
call TriggerAddAction(udg_trigger308,function Trig_Double_Ilusion_Actions)
set udg_trigger309=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger309,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger309,Condition(function Trig_Blade_Storm_Conditions))
call TriggerAddAction(udg_trigger309,function Trig_Blade_Storm_Actions)
set udg_trigger310=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger310,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger310,Condition(function Trig_Chain_Litghtning_Conditions))
call TriggerAddAction(udg_trigger310,function Trig_Chain_Litghtning_Actions)
set udg_trigger311=CreateTrigger()
call TriggerAddAction(udg_trigger311,function Trig_Lightning_Other_Actions)
set udg_trigger312=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger312,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger312,Condition(function Trig_Dead_Lake_Cast_Conditions))
call TriggerAddAction(udg_trigger312,function Trig_Dead_Lake_Cast_Actions)
set udg_trigger313=CreateTrigger()
call DisableTrigger(udg_trigger313)
call TriggerRegisterTimerEventPeriodic(udg_trigger313,0.50)
call TriggerAddAction(udg_trigger313,function Trig_Special_Actions)
set udg_trigger314=CreateTrigger()
call DisableTrigger(udg_trigger314)
call TriggerRegisterTimerEventPeriodic(udg_trigger314,3.00)
call TriggerAddAction(udg_trigger314,function Trig_Sound_Actions)
set udg_trigger315=CreateTrigger()
call DisableTrigger(udg_trigger315)
call TriggerRegisterTimerEventPeriodic(udg_trigger315,1.00)
call TriggerAddAction(udg_trigger315,function Trig_ActiveWater_Actions)
set udg_trigger316=CreateTrigger()
call DisableTrigger(udg_trigger316)
call TriggerRegisterAnyUnitEventBJ(udg_trigger316,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger316,Condition(function Trig_Roar_Conditions))
call TriggerAddAction(udg_trigger316,function Trig_Roar_Actions)
set udg_trigger317=CreateTrigger()
call DisableTrigger(udg_trigger317)
call TriggerRegisterTimerEventPeriodic(udg_trigger317,0.01)
call TriggerAddAction(udg_trigger317,function Trig_Roar_Away_Actions)
set udg_trigger318=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger318,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger318,Condition(function Trig_Blade_Conditions))
call TriggerAddAction(udg_trigger318,function Trig_Blade_Actions)
set udg_trigger319=CreateTrigger()
call DisableTrigger(udg_trigger319)
call TriggerRegisterTimerEventPeriodic(udg_trigger319,0.01)
call TriggerAddAction(udg_trigger319,function Trig_MoveSlice_Actions)
set udg_trigger320=CreateTrigger()
call DisableTrigger(udg_trigger320)
call TriggerRegisterTimerEventPeriodic(udg_trigger320,0.01)
call TriggerAddAction(udg_trigger320,function Trig_MoveSlice_2_Actions)
set udg_trigger321=CreateTrigger()
call DisableTrigger(udg_trigger321)
call TriggerRegisterTimerEventPeriodic(udg_trigger321,0.10)
call TriggerAddAction(udg_trigger321,function Trig_Damage_Actions)
set udg_trigger322=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger322,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger322,Condition(function Trig_Kame_Conditions))
call TriggerAddAction(udg_trigger322,function Trig_Kame_Actions)
set udg_trigger323=CreateTrigger()
call DisableTrigger(udg_trigger323)
call TriggerRegisterTimerEventPeriodic(udg_trigger323,0.01)
call TriggerAddAction(udg_trigger323,function Trig_KameMove_Actions)
set udg_trigger324=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger324,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger324,Condition(function Trig_Learn_Skill_Earth_Conditions))
call TriggerAddAction(udg_trigger324,function Trig_Learn_Skill_Earth_Actions)
set udg_trigger325=CreateTrigger()
call DisableTrigger(udg_trigger325)
call TriggerRegisterAnyUnitEventBJ(udg_trigger325,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger325,Condition(function Trig_EarthWave_Conditions))
call TriggerAddAction(udg_trigger325,function Trig_EarthWave_Actions)
set udg_trigger326=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger326,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger326,Condition(function Trig_Bash_gold_learn_Conditions))
call TriggerAddAction(udg_trigger326,function Trig_Bash_gold_learn_Actions)
set udg_trigger327=CreateTrigger()
call DisableTrigger(udg_trigger327)
call TriggerRegisterAnyUnitEventBJ(udg_trigger327,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger327,Condition(function Trig_Bash_gold_after_kill_Conditions))
call TriggerAddAction(udg_trigger327,function Trig_Bash_gold_after_kill_Actions)
set udg_trigger328=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger328,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger328,Condition(function Trig_Cloud_Conditions))
call TriggerAddAction(udg_trigger328,function Trig_Cloud_Actions)
set udg_trigger329=CreateTrigger()
call DisableTrigger(udg_trigger329)
call TriggerRegisterTimerEventPeriodic(udg_trigger329,0.95)
call TriggerAddAction(udg_trigger329,function Trig_Cloud_Damage_Actions)
set udg_trigger330=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger330,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger330,Condition(function Trig_Fost_Slice_Conditions))
call TriggerAddAction(udg_trigger330,function Trig_Fost_Slice_Actions)
set udg_trigger331=CreateTrigger()
call DisableTrigger(udg_trigger331)
call TriggerRegisterTimerEventPeriodic(udg_trigger331,0.02)
call TriggerAddAction(udg_trigger331,function Trig_Fost_Slice_Move_Actions)
set udg_trigger332=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger332,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger332,Condition(function Trig_Fost_Slap_Conditions))
call TriggerAddAction(udg_trigger332,function Trig_Fost_Slap_Actions)
set udg_trigger333=CreateTrigger()
call DisableTrigger(udg_trigger333)
call TriggerRegisterAnyUnitEventBJ(udg_trigger333,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger333,Condition(function Trig_SlapDamage_Conditions))
call TriggerAddAction(udg_trigger333,function Trig_SlapDamage_Actions)
set udg_trigger334=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger334,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger334,Condition(function Trig_SnowFall_Conditions))
call TriggerAddAction(udg_trigger334,function Trig_SnowFall_Actions)
set udg_trigger335=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger335,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger335,Condition(function Trig_Xich_Conditions))
call TriggerAddAction(udg_trigger335,function Trig_Xich_Actions)
set udg_trigger336=CreateTrigger()
call DisableTrigger(udg_trigger336)
call TriggerRegisterTimerEventPeriodic(udg_trigger336,0.01)
call TriggerAddAction(udg_trigger336,function Trig_Xich_Move_Actions)
set udg_trigger337=CreateTrigger()
call DisableTrigger(udg_trigger337)
call TriggerRegisterTimerEventPeriodic(udg_trigger337,0.01)
call TriggerAddAction(udg_trigger337,function Trig_Test_1_Copy_Actions)
set udg_trigger338=CreateTrigger()
call TriggerAddAction(udg_trigger338,function Trig_Xich_Continue_1_Actions)
set udg_trigger339=CreateTrigger()
call DisableTrigger(udg_trigger339)
call TriggerRegisterTimerEventPeriodic(udg_trigger339,0.01)
call TriggerAddAction(udg_trigger339,function Trig_Xich_ReMove_Actions)
set udg_trigger340=CreateTrigger()
call DisableTrigger(udg_trigger340)
call TriggerRegisterTimerEventPeriodic(udg_trigger340,0.01)
call TriggerAddAction(udg_trigger340,function Trig_XuchUint_Actions)
set udg_trigger341=CreateTrigger()
call DisableTrigger(udg_trigger341)
call TriggerRegisterTimerEventPeriodic(udg_trigger341,0.01)
call TriggerAddAction(udg_trigger341,function Trig_XuchUint_Out_Actions)
set udg_trigger342=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger342,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger342,Condition(function Trig_Rock_Shot_Conditions))
call TriggerAddAction(udg_trigger342,function Trig_Rock_Shot_Actions)
set udg_trigger343=CreateTrigger()
call TriggerAddAction(udg_trigger343,function Trig_Rock_Fire_Actions)
set udg_trigger344=CreateTrigger()
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger344,Player(0),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger344,Player(1),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger344,Player(2),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger344,Player(3),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger344,Player(4),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger344,Player(5),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger344,Player(6),true)
call TriggerRegisterPlayerSelectionEventBJ(udg_trigger344,Player(7),true)
call TriggerAddCondition(udg_trigger344,Condition(function Trig_Remove_Select_Conditions))
call TriggerAddAction(udg_trigger344,function Trig_Remove_Select_Actions)
set udg_trigger345=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger345,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger345,Condition(function Trig_Compo_2_Conditions))
call TriggerAddAction(udg_trigger345,function Trig_Compo_2_Actions)
set udg_trigger346=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger346,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger346,Condition(function Trig_Learn_Wa_Tinh_Conditions))
call TriggerAddAction(udg_trigger346,function Trig_Learn_Wa_Tinh_Actions)
set udg_trigger347=CreateTrigger()
call DisableTrigger(udg_trigger347)
call TriggerRegisterAnyUnitEventBJ(udg_trigger347,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger347,Condition(function Trig_Call_Conditions))
call TriggerAddAction(udg_trigger347,function Trig_Call_Actions)
set udg_trigger348=CreateTrigger()
call DisableTrigger(udg_trigger348)
call TriggerRegisterAnyUnitEventBJ(udg_trigger348,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger348,Condition(function Trig_Impro_Wa_Tinh_Conditions))
call TriggerAddAction(udg_trigger348,function Trig_Impro_Wa_Tinh_Actions)
set udg_trigger349=CreateTrigger()
call DisableTrigger(udg_trigger349)
call TriggerRegisterTimerEventPeriodic(udg_trigger349,1.00)
call TriggerAddAction(udg_trigger349,function Trig_Wa_Move_Actions)
set udg_trigger350=CreateTrigger()
call TriggerAddAction(udg_trigger350,function Trig_Attack_Actions)
set udg_trigger351=CreateTrigger()
call DisableTrigger(udg_trigger351)
call TriggerRegisterTimerEventPeriodic(udg_trigger351,0.01)
call TriggerAddAction(udg_trigger351,function Trig_Test_Distance_Actions)
set udg_trigger352=CreateTrigger()
call DisableTrigger(udg_trigger352)
call TriggerRegisterTimerEventPeriodic(udg_trigger352,0.01)
call TriggerAddAction(udg_trigger352,function Trig_Wa_attack_Actions)
set udg_trigger353=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger353,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger353,Condition(function Trig_Grow_Up_Conditions))
call TriggerAddAction(udg_trigger353,function Trig_Grow_Up_Actions)
set udg_trigger354=CreateTrigger()
call DisableTrigger(udg_trigger354)
call TriggerRegisterAnyUnitEventBJ(udg_trigger354,EVENT_PLAYER_HERO_REVIVE_FINISH)
call TriggerAddCondition(udg_trigger354,Condition(function Trig_Hero_Die_Conditions))
call TriggerAddAction(udg_trigger354,function Trig_Hero_Die_Actions)
set udg_trigger355=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger355,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger355,Condition(function Trig_Lightning_Rain_Conditions))
call TriggerAddAction(udg_trigger355,function Trig_Lightning_Rain_Actions)
set udg_trigger356=CreateTrigger()
call DisableTrigger(udg_trigger356)
call TriggerRegisterTimerEventPeriodic(udg_trigger356,0.01)
call TriggerAddAction(udg_trigger356,function Trig_Time_to_Random_Actions)
set udg_trigger357=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger357,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger357,Condition(function Trig_Crosin_Strike_Conditions))
call TriggerAddAction(udg_trigger357,function Trig_Crosin_Strike_Actions)
set udg_trigger358=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger358,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger358,Condition(function Trig_Learn_Crosin_Strike_Conditions))
call TriggerAddAction(udg_trigger358,function Trig_Learn_Crosin_Strike_Actions)
set udg_trigger359=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger359,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger359,Condition(function Trig_EnterRoot_Conditions))
call TriggerAddAction(udg_trigger359,function Trig_EnterRoot_Actions)
set udg_trigger360=CreateTrigger()
call DisableTrigger(udg_trigger360)
call TriggerRegisterTimerEventPeriodic(udg_trigger360,0.50)
call TriggerAddAction(udg_trigger360,function Trig_EnterRoot_Active_Actions)
set udg_trigger361=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger361,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger361,Condition(function Trig_CarrineRoot_Conditions))
call TriggerAddAction(udg_trigger361,function Trig_CarrineRoot_Actions)
set udg_trigger362=CreateTrigger()
call DisableTrigger(udg_trigger362)
call TriggerRegisterTimerEventPeriodic(udg_trigger362,0.05)
call TriggerAddAction(udg_trigger362,function Trig_CarrineRoot_Set_Actions)
set udg_trigger363=CreateTrigger()
call DisableTrigger(udg_trigger363)
call TriggerRegisterTimerEventPeriodic(udg_trigger363,0.10)
call TriggerAddAction(udg_trigger363,function Trig_CarrineRoot_Active_Actions)
set udg_trigger364=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger364,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger364,Condition(function Trig_Thorns_Aura_Learn_Conditions))
call TriggerAddAction(udg_trigger364,function Trig_Thorns_Aura_Learn_Actions)
set udg_trigger365=CreateTrigger()
call DisableTrigger(udg_trigger365)
call TriggerRegisterAnyUnitEventBJ(udg_trigger365,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger365,Condition(function Trig_Thorns_Aura_Conditions))
call TriggerAddAction(udg_trigger365,function Trig_Thorns_Aura_Actions)
set udg_trigger366=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger366,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger366,Condition(function Trig_PastBall_Conditions))
call TriggerAddAction(udg_trigger366,function Trig_PastBall_Actions)
set udg_trigger367=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger367,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger367,Condition(function Trig_PastBall_Active_Conditions))
call TriggerAddAction(udg_trigger367,function Trig_PastBall_Active_Actions)
set udg_trigger368=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger368,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger368,Condition(function Trig_Learn_Conditions))
call TriggerAddAction(udg_trigger368,function Trig_Learn_Actions)
set udg_trigger369=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger369,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger369,Condition(function Trig_HonorFire_Conditions))
call TriggerAddAction(udg_trigger369,function Trig_HonorFire_Actions)
set udg_trigger370=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger370,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger370,Condition(function Trig_HonorFire_Ended_Conditions))
call TriggerAddAction(udg_trigger370,function Trig_HonorFire_Ended_Actions)
set udg_trigger371=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger371,EVENT_PLAYER_UNIT_SPELL_FINISH)
call TriggerAddCondition(udg_trigger371,Condition(function Trig_Ended_Conditions))
call TriggerAddAction(udg_trigger371,function Trig_Ended_Actions)
set udg_trigger372=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger372,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger372,Condition(function Trig_FreeClap_Conditions))
call TriggerAddAction(udg_trigger372,function Trig_FreeClap_Actions)
set udg_trigger373=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger373,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger373,Condition(function Trig_FootClap_Conditions))
call TriggerAddAction(udg_trigger373,function Trig_FootClap_Actions)
set udg_trigger374=CreateTrigger()
call DisableTrigger(udg_trigger374)
call TriggerRegisterTimerEventPeriodic(udg_trigger374,0.01)
call TriggerAddAction(udg_trigger374,function Trig_FootClap_Active_Actions)
set udg_trigger375=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger375,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger375,Condition(function Trig_Knockout_Conditions))
call TriggerAddAction(udg_trigger375,function Trig_Knockout_Actions)
set udg_trigger376=CreateTrigger()
call DisableTrigger(udg_trigger376)
call TriggerRegisterTimerEventPeriodic(udg_trigger376,0.01)
call TriggerAddAction(udg_trigger376,function Trig_Knockout_Active_Actions)
set udg_trigger377=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger377,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger377,Condition(function Trig_StormLand_Conditions))
call TriggerAddAction(udg_trigger377,function Trig_StormLand_Actions)
set udg_trigger378=CreateTrigger()
call DisableTrigger(udg_trigger378)
call TriggerRegisterTimerEventPeriodic(udg_trigger378,0.01)
call TriggerAddAction(udg_trigger378,function Trig_Fly_and_Move_Actions)
set udg_trigger379=CreateTrigger()
call DisableTrigger(udg_trigger379)
call TriggerRegisterTimerEventPeriodic(udg_trigger379,0.01)
call TriggerAddAction(udg_trigger379,function Trig_Fly_up_Actions)
set udg_trigger380=CreateTrigger()
call DisableTrigger(udg_trigger380)
call TriggerRegisterTimerEventPeriodic(udg_trigger380,0.01)
call TriggerAddAction(udg_trigger380,function Trig_Fly_down_Actions)
set udg_trigger381=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger381,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger381,Condition(function Trig_Axe_Conditions))
call TriggerAddAction(udg_trigger381,function Trig_Axe_Actions)
set udg_trigger382=CreateTrigger()
call DisableTrigger(udg_trigger382)
call TriggerRegisterTimerEventPeriodic(udg_trigger382,0.01)
call TriggerAddAction(udg_trigger382,function Trig_Move_up_Actions)
set udg_trigger383=CreateTrigger()
call DisableTrigger(udg_trigger383)
call TriggerRegisterTimerEventPeriodic(udg_trigger383,0.01)
call TriggerAddAction(udg_trigger383,function Trig_Move_down_Actions)
set udg_trigger384=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger384,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger384,Condition(function Trig_Remove_Axe_Conditions))
call TriggerAddAction(udg_trigger384,function Trig_Remove_Axe_Actions)
set udg_trigger385=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger385,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger385,Condition(function Trig_Pause_Skill_Conditions))
call TriggerAddAction(udg_trigger385,function Trig_Pause_Skill_Actions)
set udg_trigger386=CreateTrigger()
call DisableTrigger(udg_trigger386)
call TriggerAddCondition(udg_trigger386,Condition(function Trig_Pause_Active_Conditions))
call TriggerAddAction(udg_trigger386,function Trig_Pause_Active_Actions)
set udg_trigger387=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger387,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger387,Condition(function Trig_Learn_Super_Bash_Conditions))
call TriggerAddAction(udg_trigger387,function Trig_Learn_Super_Bash_Actions)
set udg_trigger388=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger388,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger388,Condition(function Trig_Bash_Area_Conditions))
call TriggerAddAction(udg_trigger388,function Trig_Bash_Area_Actions)
set udg_trigger389=CreateTrigger()
call DisableTrigger(udg_trigger389)
call TriggerRegisterTimerEventPeriodic(udg_trigger389,0.01)
call TriggerAddAction(udg_trigger389,function Trig_Bash_Real_Actions)
set udg_trigger390=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger390,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger390,Condition(function Trig_Learn_Life_Steal_Conditions))
call TriggerAddAction(udg_trigger390,function Trig_Learn_Life_Steal_Actions)
set udg_trigger391=CreateTrigger()
call DisableTrigger(udg_trigger391)
call TriggerRegisterAnyUnitEventBJ(udg_trigger391,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger391,Condition(function Trig_LifeSteal_Conditions))
call TriggerAddAction(udg_trigger391,function Trig_LifeSteal_Actions)
set udg_trigger392=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger392,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger392,Condition(function Trig_Light_Strike_Conditions))
call TriggerAddAction(udg_trigger392,function Trig_Light_Strike_Actions)
set udg_trigger393=CreateTrigger()
call TriggerAddAction(udg_trigger393,function Trig_Dmg_Actions)
set udg_trigger394=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger394,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger394,Condition(function Trig_Dragon_Earthquake_Conditions))
call TriggerAddAction(udg_trigger394,function Trig_Dragon_Earthquake_Actions)
set udg_trigger395=CreateTrigger()
call TriggerAddAction(udg_trigger395,function Trig_StormLand_2_Actions)
set udg_trigger396=CreateTrigger()
call DisableTrigger(udg_trigger396)
call TriggerRegisterTimerEventPeriodic(udg_trigger396,0.01)
call TriggerAddAction(udg_trigger396,function Trig_Fly_and_Move_2_Actions)
set udg_trigger397=CreateTrigger()
call DisableTrigger(udg_trigger397)
call TriggerRegisterTimerEventPeriodic(udg_trigger397,0.01)
call TriggerAddAction(udg_trigger397,function Trig_Fly_up_2_Actions)
set udg_trigger398=CreateTrigger()
call DisableTrigger(udg_trigger398)
call TriggerRegisterTimerEventPeriodic(udg_trigger398,0.01)
call TriggerAddAction(udg_trigger398,function Trig_Fly_down_2_Actions)
set udg_trigger399=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger399,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger399,Condition(function Trig_Ended_Strike_Conditions))
call TriggerAddAction(udg_trigger399,function Trig_Ended_Strike_Actions)
set udg_trigger400=CreateTrigger()
call DisableTrigger(udg_trigger400)
call TriggerRegisterTimerEventPeriodic(udg_trigger400,0.02)
call TriggerAddAction(udg_trigger400,function Trig_Effect_Actions)
set udg_trigger401=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger401,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger401,Condition(function Trig_Death_Prevent_Conditions))
call TriggerAddAction(udg_trigger401,function Trig_Death_Prevent_Actions)
set udg_trigger402=CreateTrigger()
call DisableTrigger(udg_trigger402)
call TriggerRegisterAnyUnitEventBJ(udg_trigger402,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger402,Condition(function Trig_Active_Prevent_Conditions))
call TriggerAddAction(udg_trigger402,function Trig_Active_Prevent_Actions)
set udg_trigger403=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger403,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger403,Condition(function Trig_Finish_Conditions))
call TriggerAddAction(udg_trigger403,function Trig_Finish_Actions)
set udg_trigger404=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger404,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger404,Condition(function Trig_WindWalk_Start_Conditions))
call TriggerAddAction(udg_trigger404,function Trig_WindWalk_Start_Actions)
set udg_trigger405=CreateTrigger()
call DisableTrigger(udg_trigger405)
call TriggerRegisterAnyUnitEventBJ(udg_trigger405,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger405,Condition(function Trig_Wind_Walk_Conditions))
call TriggerAddAction(udg_trigger405,function Trig_Wind_Walk_Actions)
set udg_trigger406=CreateTrigger()
call TriggerAddAction(udg_trigger406,function Trig_Enemy_Actions)
set udg_trigger407=CreateTrigger()
call TriggerAddAction(udg_trigger407,function Trig_Alice_Actions)
set udg_trigger408=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger408,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger408,Condition(function Trig_Kodo_Beast_Conditions))
call TriggerAddAction(udg_trigger408,function Trig_Kodo_Beast_Actions)
set udg_trigger409=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger409,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger409,Condition(function Trig_Zeg_Conditions))
call TriggerAddAction(udg_trigger409,function Trig_Zeg_Actions)
set udg_trigger410=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger410,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger410,Condition(function Trig_Shock_Rock_Conditions))
call TriggerAddAction(udg_trigger410,function Trig_Shock_Rock_Actions)
set udg_trigger411=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger411,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger411,Condition(function Trig_Attacked_Entotem_Conditions))
call TriggerAddAction(udg_trigger411,function Trig_Attacked_Entotem_Actions)
set udg_trigger412=CreateTrigger()
call TriggerAddCondition(udg_trigger412,Condition(function Trig_DealDamage_Conditions))
call TriggerAddAction(udg_trigger412,function Trig_DealDamage_Actions)
set udg_trigger413=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger413,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger413,Condition(function Trig_Learn_Allstun_Conditions))
call TriggerAddAction(udg_trigger413,function Trig_Learn_Allstun_Actions)
set udg_trigger414=CreateTrigger()
call DisableTrigger(udg_trigger414)
call TriggerRegisterAnyUnitEventBJ(udg_trigger414,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger414,Condition(function Trig_AllStun_Conditions))
call TriggerAddAction(udg_trigger414,function Trig_AllStun_Actions)
set udg_trigger415=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger415,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger415,Condition(function Trig_Echo_Slam_Conditions))
call TriggerAddAction(udg_trigger415,function Trig_Echo_Slam_Actions)
set udg_trigger416=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger416,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger416,Condition(function Trig_Confine_Conditions))
call TriggerAddAction(udg_trigger416,function Trig_Confine_Actions)
set udg_trigger417=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger417,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger417,Condition(function Trig_FireSlice_Conditions))
call TriggerAddAction(udg_trigger417,function Trig_FireSlice_Actions)
set udg_trigger418=CreateTrigger()
call DisableTrigger(udg_trigger418)
call TriggerRegisterTimerEventPeriodic(udg_trigger418,0.04)
call TriggerAddAction(udg_trigger418,function Trig_FireSliceMove_Actions)
set udg_trigger419=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger419,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger419,Condition(function Trig_Wave_Form_Conditions))
call TriggerAddAction(udg_trigger419,function Trig_Wave_Form_Actions)
set udg_trigger420=CreateTrigger()
call DisableTrigger(udg_trigger420)
call TriggerRegisterTimerEventPeriodic(udg_trigger420,0.01)
call TriggerAddAction(udg_trigger420,function Trig_Wave_Form_Move_Actions)
set udg_trigger421=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger421,EVENT_PLAYER_HERO_SKILL)
call TriggerAddAction(udg_trigger421,function Trig_Skill_learn_Actions)
set udg_trigger422=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger422,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(udg_trigger422,Condition(function Trig_CoverAttack_Conditions))
call TriggerAddAction(udg_trigger422,function Trig_CoverAttack_Actions)
set udg_trigger423=CreateTrigger()
call TriggerAddCondition(udg_trigger423,Condition(function Trig_CoverAttackTakeDamage_Conditions))
call TriggerAddAction(udg_trigger423,function Trig_CoverAttackTakeDamage_Actions)
set udg_trigger424=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger424,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger424,Condition(function Trig_Impale_Conditions))
call TriggerAddAction(udg_trigger424,function Trig_Impale_Actions)
set udg_trigger425=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger425,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(udg_trigger425,Condition(function Trig_SuperImpale_Conditions))
call TriggerAddAction(udg_trigger425,function Trig_SuperImpale_Actions)
set udg_trigger426=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger426,EVENT_PLAYER_HERO_SKILL)
call TriggerAddCondition(udg_trigger426,Condition(function Trig_Learn_Poision_Conditions))
call TriggerAddAction(udg_trigger426,function Trig_Learn_Poision_Actions)
set udg_trigger427=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(udg_trigger427,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(udg_trigger427,Condition(function Trig_Poision_String_Conditions))
call TriggerAddAction(udg_trigger427,function Trig_Poision_String_Actions)
set udg_trigger428=CreateTrigger()
call DisableTrigger(udg_trigger428)
call TriggerRegisterUnitEvent(udg_trigger428,udg_unit80,EVENT_UNIT_ATTACKED)
call TriggerAddAction(udg_trigger428,function Trig_Building_Pause_Actions)
call ConditionalTriggerExecute(udg_trigger28)
call ConditionalTriggerExecute(udg_trigger42)
call ConditionalTriggerExecute(udg_trigger47)
call ConditionalTriggerExecute(udg_trigger49)
call ConditionalTriggerExecute(udg_trigger50)
call ConditionalTriggerExecute(udg_trigger51)
call ConditionalTriggerExecute(udg_trigger69)
call ConditionalTriggerExecute(udg_trigger80)
call ConditionalTriggerExecute(udg_trigger184)
endfunction
function InitTrig_init takes nothing returns nothing
call ExecuteFunc("main2")
endfunction
function Trig_Game_Mode_Conditions takes nothing returns boolean
if ( not ( GetPlayerController(GetOwningPlayer(GetEnteringUnit())) != MAP_CONTROL_USER ) ) then
return false
endif
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnteringUnit()), Player(0)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Game_Mode_Func004A takes nothing returns nothing
call CreateFogModifierRectBJ( true, GetEnumPlayer(), FOG_OF_WAR_VISIBLE, gg_rct_Region_006 )
endfunction
function Trig_Game_Mode_Func005C takes nothing returns boolean
if ( not ( IsUnitType(GetEnteringUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( udg_boolean02 == true ) ) then
return false
endif
return true
endfunction
function Trig_Game_Mode_Func006C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnteringUnit()) == 'U00T' ) ) then
return false
endif
return true
endfunction
function Trig_Game_Mode_Actions takes nothing returns nothing
call UnitAddAbilityBJ( 'A0BG', GetEnteringUnit() )
call SetUnitAbilityLevelSwapped( 'A0BG', GetEnteringUnit(), udg_integer13 )
call SetUnitMoveSpeed( GetEnteringUnit(), ( GetUnitMoveSpeed(GetEnteringUnit()) + ( 15.00 * I2R(udg_integer13) ) ) )
call ForForce( GetPlayersByMapControl(MAP_CONTROL_USER), function Trig_Game_Mode_Func004A )
if ( Trig_Game_Mode_Func005C() ) then
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnteringUnit(), bj_MODIFYMETHOD_SET, R2I(( I2R(GetHeroStatBJ(bj_HEROSTAT_STR, GetEnteringUnit(), false)) * 1.50 )) )
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnteringUnit(), bj_MODIFYMETHOD_SET, R2I(( I2R(GetHeroStatBJ(bj_HEROSTAT_AGI, GetEnteringUnit(), false)) * 1.50 )) )
call ModifyHeroStat( bj_HEROSTAT_STR, GetEnteringUnit(), bj_MODIFYMETHOD_SET, R2I(( I2R(GetHeroStatBJ(bj_HEROSTAT_INT, GetEnteringUnit(), false)) * 1.50 )) )
else
endif
if ( Trig_Game_Mode_Func006C() ) then
call SetHeroLevelBJ( GetEnteringUnit(), 50, false )
call UnitAddItemByIdSwapped( 'I00E', GetEnteringUnit() )
call UnitAddItemByIdSwapped( 'I01U', GetEnteringUnit() )
call UnitAddItemByIdSwapped( 'I00H', GetEnteringUnit() )
else
endif
call TriggerSleepAction( 2.00 )
call SetCameraFieldForPlayer( Player(0), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
call SetCameraFieldForPlayer( Player(1), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
call SetCameraFieldForPlayer( Player(2), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
call SetCameraFieldForPlayer( Player(3), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
call SetCameraFieldForPlayer( Player(4), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
call SetCameraFieldForPlayer( Player(5), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
call SetCameraFieldForPlayer( Player(6), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
call SetCameraFieldForPlayer( Player(7), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
call SetCameraFieldForPlayer( Player(8), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
call SetCameraFieldForPlayer( Player(9), CAMERA_FIELD_TARGET_DISTANCE, 2300.00, 0.00 )
endfunction
//===========================================================================
function InitTrig_Game_Mode takes nothing returns nothing
set gg_trg_Game_Mode = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg_Game_Mode, GetPlayableMapRect() )
call TriggerAddCondition( gg_trg_Game_Mode, Condition( function Trig_Game_Mode_Conditions ) )
call TriggerAddAction( gg_trg_Game_Mode, function Trig_Game_Mode_Actions )
endfunction
function Trig_Deadly_Tower_Func001Func001C takes nothing returns boolean
if ( not ( GetUnitTypeId(GetEnumUnit()) == 'h022' ) ) then
return false
endif
return true
endfunction
function Trig_Deadly_Tower_Func001A takes nothing returns nothing
if ( Trig_Deadly_Tower_Func001Func001C() ) then
call IncUnitAbilityLevelSwapped( 'A0BI', GetEnumUnit() )
call IncUnitAbilityLevelSwapped( 'A0BH', GetEnumUnit() )
else
endif
endfunction
function Trig_Deadly_Tower_Actions takes nothing returns nothing
call ForGroupBJ( GetUnitsInRectAll(GetPlayableMapRect()), function Trig_Deadly_Tower_Func001A )
endfunction
//===========================================================================
function InitTrig_Deadly_Tower takes nothing returns nothing
set gg_trg_Deadly_Tower = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Deadly_Tower, 120.00 )
call TriggerAddAction( gg_trg_Deadly_Tower, function Trig_Deadly_Tower_Actions )
endfunction
function Trig_Shops_Actions takes nothing returns nothing
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Region_001 )
call CreateFogModifierRectBJ( true, Player(0), FOG_OF_WAR_VISIBLE, gg_rct_Region_002 )
call CreateNUnitsAtLoc( 1, 'hvlt', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Region_000), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h02K', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Manuals), bj_UNIT_FACING )
call CreateNUnitsAtLoc( 1, 'h02I', Player(PLAYER_NEUTRAL_PASSIVE), GetRectCenter(gg_rct_Region_003), bj_UNIT_FACING )
call AddSpecialEffectTargetUnitBJ( "origin", GetLastCreatedUnit(), "Abilities\\Spells\\Orc\\Voodoo\\VoodooAura.mdl" )
endfunction
//===========================================================================
function InitTrig_Shops takes nothing returns nothing
set gg_trg_Shops = CreateTrigger( )
call TriggerAddAction( gg_trg_Shops, function Trig_Shops_Actions )
endfunction
//===========================================================================
// Damage Engine lets you detect, amplify, block or nullify damage. It even
// lets you detect if the damage was physical or from a spell. Just reference
// DamageEventAmount/Source/Target or the boolean IsDamageSpell, to get the
// necessary damage event data.
//
// - Detect damage: use the event "DamageEvent Equal to 1.00"
// - To change damage before it's dealt: use the event "DamageModifierEvent Equal to 1.00"
// - Detect damage after it was applied, use the event "AfterDamageEvent Equal to 1.00"
// - Detect spell damage: use the condition "IsDamageSpell Equal to True"
// - Detect zero-damage: use the event "DamageEvent Equal to 2.00" (an AfterDamageEvent will not fire for this)
//
// You can specify the DamageEventType before dealing triggered damage. To prevent an already-improbable error, I recommend running the trigger "ClearDamageEvent (Checking Conditions)" after dealing triggered damage from within a damage event:
// - Set NextDamageType = DamageTypeWhatever
// - Unit - Cause...
// - Trigger - Run ClearDamageEvent (Checking Conditions)
//
// You can modify the DamageEventAmount and the DamageEventType from a "DamageModifierEvent Equal to 1.00" trigger.
// - If the amount is modified to negative, it will count as a heal.
// - If the amount is set to 0, no damage will be dealt.
//
// If you need to reference the original in-game damage, use the variable "DamageEventPrevAmt".
//
//===========================================================================
// Programming note about "integer i" and "udg_DmgEvRecursionN": integer i
// ranges from -1 upwards. "udg_DmgEvRecursionN" ranges from 0 upwards.
// "integer i" is always 1 less than "udg_DmgEvRecursionN"
//
function DmgEvResetVars takes nothing returns nothing
local integer i = udg_DmgEvRecursionN - 2
set udg_DmgEvRecursionN = i + 1
if i >= 0 then
set udg_DamageEventPrevAmt = udg_LastDmgPrevAmount[i]
set udg_DamageEventAmount = udg_LastDmgValue[i]
set udg_DamageEventSource = udg_LastDmgSource[i]
set udg_DamageEventTarget = udg_LastDmgTarget[i]
set udg_IsDamageSpell = udg_LastDmgWasSpell[i]
set udg_DamageEventType = udg_LastDmgPrevType[i]
endif
endfunction
function CheckDamagedLifeEvent takes boolean clear returns nothing
if clear then
set udg_NextDamageOverride = false
set udg_NextDamageType = 0
endif
if udg_DmgEvTrig != null then
call DestroyTrigger(udg_DmgEvTrig)
set udg_DmgEvTrig = null
if udg_IsDamageSpell then
call SetWidgetLife(udg_DamageEventTarget, RMaxBJ(udg_LastDamageHP, 0.41))
if udg_LastDamageHP <= 0.405 then
if udg_DamageEventType < 0 then
call SetUnitExploded(udg_DamageEventTarget, true)
endif
//Kill the unit
call DisableTrigger(udg_DamageEventTrigger)
call UnitDamageTarget(udg_DamageEventSource, udg_DamageEventTarget, -999, false, false, null, DAMAGE_TYPE_UNIVERSAL, null)
call EnableTrigger(udg_DamageEventTrigger)
endif
elseif GetUnitAbilityLevel(udg_DamageEventTarget, udg_DamageBlockingAbility) > 0 then
call UnitRemoveAbility(udg_DamageEventTarget, udg_DamageBlockingAbility)
call SetWidgetLife(udg_DamageEventTarget, udg_LastDamageHP)
endif
if udg_DamageEventAmount != 0.00 and not udg_HideDamageFrom[GetUnitUserData(udg_DamageEventSource)] then
set udg_AfterDamageEvent = 0.00
set udg_AfterDamageEvent = 1.00
set udg_AfterDamageEvent = 0.00
endif
call DmgEvResetVars()
endif
endfunction
function DmgEvOnAOEEnd takes nothing returns nothing
if udg_DamageEventAOE > 1 then
set udg_AOEDamageEvent = 0.00
set udg_AOEDamageEvent = 1.00
set udg_AOEDamageEvent = 0.00
set udg_DamageEventAOE = 1
endif
set udg_DamageEventLevel = 1
set udg_EnhancedDamageTarget = null
call GroupClear(udg_DamageEventAOEGroup)
endfunction
function DmgEvOnExpire takes nothing returns nothing
set udg_DmgEvStarted = false
call CheckDamagedLifeEvent(true)
//Reset things so they don't perpetuate for AoE/Level target detection
call DmgEvOnAOEEnd()
set udg_DamageEventTarget = null
set udg_DamageEventSource = null
endfunction
function PreCheckDamagedLifeEvent takes nothing returns boolean
call CheckDamagedLifeEvent(true)
return false
endfunction
function OnUnitDamage takes nothing returns boolean
local boolean override = udg_DamageEventOverride
local integer i
local integer e = udg_DamageEventLevel
local integer a = udg_DamageEventAOE
local string s
local real prevAmount
local real life
local real prevLife
local unit u
local unit f
call CheckDamagedLifeEvent(false) //in case the unit state event failed and the 0.00 second timer hasn't yet expired
set i = udg_DmgEvRecursionN - 1 //Had to be moved here due to false recursion tracking
if i < 0 then
//Added 25 July 2017 to detect AOE damage or multiple single-target damage
set u = udg_DamageEventTarget
set f = udg_DamageEventSource
elseif i < 16 then
set udg_LastDmgPrevAmount[i]= udg_DamageEventPrevAmt
set udg_LastDmgValue[i] = udg_DamageEventAmount
set udg_LastDmgSource[i] = udg_DamageEventSource
set udg_LastDmgTarget[i] = udg_DamageEventTarget
set udg_LastDmgWasSpell[i] = udg_IsDamageSpell
set udg_LastDmgPrevType[i] = udg_DamageEventType
else
set s = "WARNING: Recursion error when dealing damage! Make sure when you deal damage from within a DamageEvent trigger, do it like this:\n\n"
set s = s + "Trigger - Turn off (This Trigger)\n"
set s = s + "Unit - Cause...\n"
set s = s + "Trigger - Turn on (This Trigger)"
//Delete the next couple of lines to disable the in-game recursion crash warnings
call ClearTextMessages()
call DisplayTimedTextToPlayer(GetLocalPlayer(), 0.00, 0.00, 999.00, s)
return false
endif
set udg_DmgEvRecursionN = i + 2
set prevAmount = GetEventDamage()
set udg_DamageEventTarget = GetTriggerUnit()
set udg_DamageEventSource = GetEventDamageSource()
set udg_DamageEventAmount = prevAmount
set udg_DamageEventType = udg_NextDamageType
set udg_NextDamageType = 0
set udg_DamageEventOverride = udg_NextDamageOverride
set udg_NextDamageOverride = false
if i < 0 then
//Added 25 July 2017 to detect AOE damage or multiple single-target damage
if udg_DamageEventType == 0 then
if f == udg_DamageEventSource then
//Source has damaged more than once
if IsUnitInGroup(udg_DamageEventTarget, udg_DamageEventAOEGroup) then
//Added 5 August 2017 to improve tracking of enhanced damage against, say, Pulverize
set udg_DamageEventLevel = udg_DamageEventLevel + 1
set udg_EnhancedDamageTarget = udg_DamageEventTarget
else
//Multiple targets hit by this source - flag as AOE
set udg_DamageEventAOE = udg_DamageEventAOE + 1
endif
else
//New damage source - unflag everything
set u = udg_DamageEventSource
set udg_DamageEventSource = f
call DmgEvOnAOEEnd()
set udg_DamageEventSource = u
endif
call GroupAddUnit(udg_DamageEventAOEGroup, udg_DamageEventTarget)
endif
if not udg_DmgEvStarted then
set udg_DmgEvStarted = true
call TimerStart(udg_DmgEvTimer, 0.00, false, function DmgEvOnExpire)
endif
endif
if prevAmount == 0.00 then
if not udg_HideDamageFrom[GetUnitUserData(udg_DamageEventSource)] then
set udg_DamageEventPrevAmt = 0.00
set udg_DamageEvent = 0.00
set udg_DamageEvent = 2.00
set udg_DamageEvent = 0.00
endif
call DmgEvResetVars()
else
set u = udg_DamageEventTarget
set udg_IsDamageSpell = prevAmount < 0.00
if udg_IsDamageSpell then
set prevAmount = -udg_DamageEventAmount
set life = 1.00
if IsUnitType(u, UNIT_TYPE_ETHEREAL) and not IsUnitType(u, UNIT_TYPE_HERO) then
set life = life*udg_DAMAGE_FACTOR_ETHEREAL //1.67
endif
if GetUnitAbilityLevel(u, 'Aegr') > 0 then
set life = life*udg_DAMAGE_FACTOR_ELUNES //0.80
endif
if udg_DmgEvBracers != 0 and IsUnitType(u, UNIT_TYPE_HERO) then
//Inline of UnitHasItemOfTypeBJ without the potential handle ID leak.
set i = 6
loop
set i = i - 1
if GetItemTypeId(UnitItemInSlot(u, i)) == udg_DmgEvBracers then
set life = life*udg_DAMAGE_FACTOR_BRACERS //0.67
exitwhen true
endif
exitwhen i == 0
endloop
endif
set udg_DamageEventAmount = prevAmount*life
endif
set udg_DamageEventPrevAmt = prevAmount
set udg_DamageModifierEvent = 0.00
if not udg_DamageEventOverride then
set udg_DamageModifierEvent = 1.00
if not udg_DamageEventOverride then
set udg_DamageModifierEvent = 2.00
set udg_DamageModifierEvent = 3.00
endif
endif
set udg_DamageEventOverride = override
if udg_DamageEventAmount > 0.00 then
set udg_DamageModifierEvent = 4.00
endif
set udg_DamageModifierEvent = 0.00
if not udg_HideDamageFrom[GetUnitUserData(udg_DamageEventSource)] then
set udg_DamageEvent = 0.00
set udg_DamageEvent = 1.00
set udg_DamageEvent = 0.00
endif
call CheckDamagedLifeEvent(true) //in case the unit state event failed from a recursive damage event
//All events have run and the damage amount is finalized.
set life = GetWidgetLife(u)
set udg_DmgEvTrig = CreateTrigger()
call TriggerAddCondition(udg_DmgEvTrig, Filter(function PreCheckDamagedLifeEvent))
if not udg_IsDamageSpell then
if udg_DamageEventAmount != prevAmount then
set life = life + prevAmount - udg_DamageEventAmount
if GetUnitState(u, UNIT_STATE_MAX_LIFE) < life then
set udg_LastDamageHP = life - prevAmount
call UnitAddAbility(u, udg_DamageBlockingAbility)
endif
call SetWidgetLife(u, RMaxBJ(life, 0.42))
endif
call TriggerRegisterUnitStateEvent(udg_DmgEvTrig, u, UNIT_STATE_LIFE, LESS_THAN, RMaxBJ(0.41, life - prevAmount/2.00))
else
set udg_LastDamageHP = GetUnitState(u, UNIT_STATE_MAX_LIFE)
set prevLife = life
if life + prevAmount*0.75 > udg_LastDamageHP then
set life = RMaxBJ(udg_LastDamageHP - prevAmount/2.00, 1.00)
call SetWidgetLife(u, life)
set life = (life + udg_LastDamageHP)/2.00
else
set life = life + prevAmount*0.50
endif
set udg_LastDamageHP = prevLife - (prevAmount - (prevAmount - udg_DamageEventAmount))
call TriggerRegisterUnitStateEvent(udg_DmgEvTrig, u, UNIT_STATE_LIFE, GREATER_THAN, life)
endif
endif
set u = null
set f = null
return false
endfunction
function CreateDmgEvTrg takes nothing returns nothing
set udg_DamageEventTrigger = CreateTrigger()
call TriggerAddCondition(udg_DamageEventTrigger, Filter(function OnUnitDamage))
endfunction
function SetupDmgEv takes nothing returns boolean
local integer i = udg_UDex
local unit u
if udg_UnitIndexEvent == 1.00 then
set u = udg_UDexUnits[i]
if GetUnitAbilityLevel(u, 'Aloc') == 0 and TriggerEvaluate(gg_trg_Damage_Engine_Config) then
set udg_UnitDamageRegistered[i] = true
call TriggerRegisterUnitEvent(udg_DamageEventTrigger, u, EVENT_UNIT_DAMAGED)
call UnitAddAbility(u, udg_SpellDamageAbility)
call UnitMakeAbilityPermanent(u, true, udg_SpellDamageAbility)
endif
set u = null
else
set udg_HideDamageFrom[i] = false
if udg_UnitDamageRegistered[i] then
set udg_UnitDamageRegistered[i] = false
set udg_DamageEventsWasted = udg_DamageEventsWasted + 1
if udg_DamageEventsWasted == 32 then //After 32 registered units have been removed...
set udg_DamageEventsWasted = 0
//Rebuild the mass EVENT_UNIT_DAMAGED trigger:
call DestroyTrigger(udg_DamageEventTrigger)
call CreateDmgEvTrg()
set i = udg_UDexNext[0]
loop
exitwhen i == 0
if udg_UnitDamageRegistered[i] then
call TriggerRegisterUnitEvent(udg_DamageEventTrigger, udg_UDexUnits[i], EVENT_UNIT_DAMAGED)
endif
set i = udg_UDexNext[i]
endloop
endif
endif
endif
return false
endfunction
//===========================================================================
function InitTrig_Damage_Engine takes nothing returns nothing
local unit u = CreateUnit(Player(bj_PLAYER_NEUTRAL_EXTRA), 'uloc', 0, 0, 0)
local integer i = bj_MAX_PLAYERS //Fixed in 3.8
//Create this trigger with UnitIndexEvents in order add and remove units
//as they are created or removed.
local trigger t = CreateTrigger()
call TriggerRegisterVariableEvent(t, "udg_UnitIndexEvent", EQUAL, 1.00)
call TriggerRegisterVariableEvent(t, "udg_UnitIndexEvent", EQUAL, 2.00)
call TriggerAddCondition(t, Filter(function SetupDmgEv))
set t = null
//Run the configuration trigger to set all configurables:
if gg_trg_Damage_Engine_Config == null then
//It's possible this InitTrig_ function ran first, in which case use ExecuteFunc.
call ExecuteFunc("Trig_Damage_Engine_Config_Actions")
else
call TriggerExecute(gg_trg_Damage_Engine_Config)
endif
//Create trigger for storing all EVENT_UNIT_DAMAGED events.
call CreateDmgEvTrg()
//Create GUI-friendly trigger for cleaning up after UnitDamageTarget.
set udg_ClearDamageEvent = CreateTrigger()
call TriggerAddCondition(udg_ClearDamageEvent, Filter(function PreCheckDamagedLifeEvent))
//Disable SpellDamageAbility for every player.
loop
set i = i - 1
call SetPlayerAbilityAvailable(Player(i), udg_SpellDamageAbility, false)
exitwhen i == 0
endloop
//Preload abilities.
call UnitAddAbility(u, udg_DamageBlockingAbility)
call UnitAddAbility(u, udg_SpellDamageAbility)
call RemoveUnit(u)
set u = null
endfunction
function Trig_Attacks_Conditions takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(udg_DamageEventTarget), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
if ( not ( IsUnitAliveBJ(udg_DamageEventTarget) == true ) ) then
return false
endif
if ( not ( udg_IsDamageSpell == false ) ) then
return false
endif
if ( not ( udg_AOEDamageEvent == 0.00 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func006C takes nothing returns boolean
if ( not ( IsUnitType(udg_DamageEventSource, UNIT_TYPE_HERO) == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= ( R2I(udg_Man_Crit_Chance[GetConvertedPlayerId(GetOwningPlayer(udg_DamageEventSource))]) + 10 ) ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func008Func001Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 15 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01O') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func008Func001Func002C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 20 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01N') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func008Func001Func003C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 25 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01P') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func008Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func008C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func014Func001Func001Func003Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func014Func001Func001Func003A takes nothing returns nothing
if ( Trig_Attacks_Func014Func001Func001Func003Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), I2R(udg_Allstats), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func014Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01F') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 15 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func014Func001Func002Func003Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func014Func001Func002Func003A takes nothing returns nothing
if ( Trig_Attacks_Func014Func001Func002Func003Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), I2R(udg_Allstats), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func014Func001Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01G') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 20 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func014Func001Func003Func003Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func014Func001Func003Func003A takes nothing returns nothing
if ( Trig_Attacks_Func014Func001Func003Func003Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), I2R(udg_Allstats), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func014Func001Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01H') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 25 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func014Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func014C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func016Func001Func001Func003Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func001Func003A takes nothing returns nothing
if ( Trig_Attacks_Func016Func001Func001Func003Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), I2R(( udg_Allstats * 2 )), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func016Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01J') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 30 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func002Func007Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func002Func007A takes nothing returns nothing
if ( Trig_Attacks_Func016Func001Func002Func007Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( 10000.00 + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) * 0.01 ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func016Func001Func002Func008Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func002Func008A takes nothing returns nothing
if ( Trig_Attacks_Func016Func001Func002Func008Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( 10000.00 + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) * 0.01 ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func016Func001Func002C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01J') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 20 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func003Func003Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func003Func003A takes nothing returns nothing
if ( Trig_Attacks_Func016Func001Func003Func003Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), I2R(( udg_Allstats * 2 )), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func016Func001Func003C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01K') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 35 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func004Func007Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func004Func007A takes nothing returns nothing
if ( Trig_Attacks_Func016Func001Func004Func007Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( 10000.00 + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) * 0.01 ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func016Func001Func004Func008Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func004Func008A takes nothing returns nothing
if ( Trig_Attacks_Func016Func001Func004Func008Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( 10000.00 + ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) * 0.01 ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func016Func001Func004C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01K') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 25 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func005C takes nothing returns boolean
if ( not ( udg_IsDamageSpell == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01R') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func006C takes nothing returns boolean
if ( not ( udg_IsDamageSpell == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01J') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001Func007C takes nothing returns boolean
if ( not ( udg_IsDamageSpell == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01K') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func016Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func016C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func018Func001Func001Func001Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
if ( not ( IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == false ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func018Func001Func001Func001A takes nothing returns nothing
set udg_Attract_Life_Integer = 1
loop
exitwhen udg_Attract_Life_Integer > 5
if ( Trig_Attacks_Func018Func001Func001Func001Func001Func001C() ) then
set udg_Attract_Life_Integer = ( udg_Attract_Life_Integer + 1 )
call AddSpecialEffectTargetUnitBJ( "chest", GetEnumUnit(), "Abilities\\Spells\\Orc\\Disenchant\\DisenchantSpecialArt.mdl" )
set udg_Attract_Life_Special[udg_Attract_Life_Integer] = GetLastCreatedEffectBJ()
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), I2R(( R2I(( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) * 0.03 )) + 300 )), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
call SetUnitLifeBJ( udg_DamageEventSource, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_DamageEventSource) + ( ( GetUnitStateSwap(UNIT_STATE_LIFE, GetEnumUnit()) * 0.03 ) + 300.00 ) ) )
call GroupRemoveUnitSimple( GetEnumUnit(), GetLastCreatedGroup() )
else
endif
set udg_Attract_Life_Integer = udg_Attract_Life_Integer + 1
endloop
call TriggerSleepAction( 0.65 )
set udg_Attract_Life_Integer = 1
loop
exitwhen udg_Attract_Life_Integer > 5
call DestroyLightningBJ( LoadLightningHandleBJ(udg_Attract_Life_Integer, 1, udg_Attract_Life_Hashtable) )
call DestroyEffectBJ( udg_Attract_Life_Special[udg_Attract_Life_Integer] )
set udg_Attract_Life_Integer = udg_Attract_Life_Integer + 1
endloop
set udg_Attract_Life_Integer = 0
endfunction
function Trig_Attacks_Func018Func001Func001C takes nothing returns boolean
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01L') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 25 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func018Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func018C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func020Func001Func001Func002Func004Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func020Func001Func001Func002Func004Func001A takes nothing returns nothing
if ( Trig_Attacks_Func020Func001Func001Func002Func004Func001Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( I2R(udg_Allstats) * 0.75 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func020Func001Func001Func002Func004A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, GetUnitLoc(GetEnumUnit())), function Trig_Attacks_Func020Func001Func001Func002Func004Func001A )
endfunction
function Trig_Attacks_Func020Func001Func001Func002C takes nothing returns boolean
if ( not ( IsUnitType(udg_DamageEventSource, UNIT_TYPE_MELEE_ATTACKER) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func020Func001Func001Func003Func004Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func020Func001Func001Func003Func004Func001A takes nothing returns nothing
if ( Trig_Attacks_Func020Func001Func001Func003Func004Func001Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( I2R(udg_Allstats) * 0.50 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func020Func001Func001Func003Func004A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, GetUnitLoc(GetEnumUnit())), function Trig_Attacks_Func020Func001Func001Func003Func004Func001A )
endfunction
function Trig_Attacks_Func020Func001Func001Func003C takes nothing returns boolean
if ( not ( IsUnitType(udg_DamageEventSource, UNIT_TYPE_RANGED_ATTACKER) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func020Func001Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 25 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01T') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func020Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func020C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func021Func001Func001Func002Func004Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func021Func001Func001Func002Func004Func001A takes nothing returns nothing
if ( Trig_Attacks_Func021Func001Func001Func002Func004Func001Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( I2R(udg_Allstats) * 0.85 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func021Func001Func001Func002Func004A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, GetUnitLoc(GetEnumUnit())), function Trig_Attacks_Func021Func001Func001Func002Func004Func001A )
endfunction
function Trig_Attacks_Func021Func001Func001Func002C takes nothing returns boolean
if ( not ( IsUnitType(udg_DamageEventSource, UNIT_TYPE_MELEE_ATTACKER) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func021Func001Func001Func003Func004Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func021Func001Func001Func003Func004Func001A takes nothing returns nothing
if ( Trig_Attacks_Func021Func001Func001Func003Func004Func001Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( I2R(udg_Allstats) * 0.60 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func021Func001Func001Func003Func004A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, GetUnitLoc(GetEnumUnit())), function Trig_Attacks_Func021Func001Func001Func003Func004Func001A )
endfunction
function Trig_Attacks_Func021Func001Func001Func003C takes nothing returns boolean
if ( not ( IsUnitType(udg_DamageEventSource, UNIT_TYPE_RANGED_ATTACKER) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func021Func001Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 30 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01Z') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func021Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func021C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func022Func001Func001Func002Func004Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func022Func001Func001Func002Func004Func001A takes nothing returns nothing
if ( Trig_Attacks_Func022Func001Func001Func002Func004Func001Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( I2R(udg_Allstats) * 0.95 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func022Func001Func001Func002Func004A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, GetUnitLoc(GetEnumUnit())), function Trig_Attacks_Func022Func001Func001Func002Func004Func001A )
endfunction
function Trig_Attacks_Func022Func001Func001Func002C takes nothing returns boolean
if ( not ( IsUnitType(udg_DamageEventSource, UNIT_TYPE_MELEE_ATTACKER) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func022Func001Func001Func003Func004Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func022Func001Func001Func003Func004Func001A takes nothing returns nothing
if ( Trig_Attacks_Func022Func001Func001Func003Func004Func001Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( I2R(udg_Allstats) * 0.70 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func022Func001Func001Func003Func004A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, GetUnitLoc(GetEnumUnit())), function Trig_Attacks_Func022Func001Func001Func003Func004Func001A )
endfunction
function Trig_Attacks_Func022Func001Func001Func003C takes nothing returns boolean
if ( not ( IsUnitType(udg_DamageEventSource, UNIT_TYPE_RANGED_ATTACKER) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func022Func001Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 35 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I020') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func022Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func022C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func023Func001Func001Func002Func004Func001Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func023Func001Func001Func002Func004Func001A takes nothing returns nothing
if ( Trig_Attacks_Func023Func001Func001Func002Func004Func001Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( I2R(udg_Allstats) * 0.75 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func023Func001Func001Func002Func004A takes nothing returns nothing
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, GetUnitLoc(GetEnumUnit())), function Trig_Attacks_Func023Func001Func001Func002Func004Func001A )
endfunction
function Trig_Attacks_Func023Func001Func001Func002C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func023Func001Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 10 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I020') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func023Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func023C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func027Func001Func001Func002Func001C takes nothing returns boolean
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func027Func001Func001Func002A takes nothing returns nothing
if ( Trig_Attacks_Func027Func001Func001Func002Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), I2R(GetHeroStatBJ(bj_HEROSTAT_STR, udg_DamageEventSource, true)), ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
endfunction
function Trig_Attacks_Func027Func001Func001C takes nothing returns boolean
if ( not ( GetUnitUserData(udg_DamageEventSource) == 1 ) ) then
return false
endif
if ( not ( GetUnitLifePercent(udg_DamageEventTarget) <= 20.00 ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func027Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func027C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func029Func001Func001C takes nothing returns boolean
if ( not ( GetUnitUserData(udg_DamageEventSource) == 2 ) ) then
return false
endif
if ( not ( GetUnitLifePercent(udg_DamageEventTarget) >= 80.00 ) ) then
return false
endif
if ( not ( IsUnitType(udg_DamageEventTarget, UNIT_TYPE_HERO) == false ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func029Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func029C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func031Func001Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 20 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I01V') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func031Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func031C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func033Func001Func003C takes nothing returns boolean
if ( not ( udg_IsDamageSpell == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I027') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 50 ) ) then
return false
endif
if ( not ( IsUnitType(udg_DamageEventSource, UNIT_TYPE_RANGED_ATTACKER) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func033Func001Func004Func005A takes nothing returns nothing
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( udg_DamageEventAmount / 1.33 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
endfunction
function Trig_Attacks_Func033Func001Func004C takes nothing returns boolean
if ( not ( udg_IsDamageSpell == false ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I027') == true ) ) then
return false
endif
if ( not ( GetRandomInt(1, 100) <= 50 ) ) then
return false
endif
if ( not ( IsUnitType(udg_DamageEventSource, UNIT_TYPE_RANGED_ATTACKER) == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func033Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func033C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func035Func001Func001C takes nothing returns boolean
if ( not ( GetRandomInt(1, 100) <= 15 ) ) then
return false
endif
if ( not ( udg_Warbringer_Rage_Int[GetConvertedPlayerId(GetOwningPlayer(udg_DamageEventSource))] == 0 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I02I') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func035Func001Func002Func001Func001Func001C takes nothing returns boolean
if ( not ( IsUnitAliveBJ(GetEnumUnit()) == true ) ) then
return false
endif
if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetOwningPlayer(udg_DamageEventSource)) == true ) ) then
return false
endif
if ( not ( GetEnumUnit() != udg_DamageEventTarget ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func035Func001Func002Func001Func001A takes nothing returns nothing
if ( Trig_Attacks_Func035Func001Func002Func001Func001Func001C() ) then
call AddSpecialEffectTargetUnitBJ( "head", GetEnumUnit(), "Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl" )
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, GetEnumUnit(), ( I2R(udg_Allstats) * 1.50 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
endfunction
function Trig_Attacks_Func035Func001Func002Func001C takes nothing returns boolean
if ( not ( udg_Warbringer_Rage_Int[GetConvertedPlayerId(GetOwningPlayer(udg_DamageEventSource))] > 0 ) ) then
return false
endif
if ( not ( UnitHasItemOfTypeBJ(udg_DamageEventSource, 'I02I') == true ) ) then
return false
endif
return true
endfunction
function Trig_Attacks_Func035Func001Func002C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func035Func001C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Func035C takes nothing returns boolean
return true
endfunction
function Trig_Attacks_Actions takes nothing returns nothing
set udg_Allstats = ( GetHeroStatBJ(bj_HEROSTAT_STR, udg_DamageEventSource, true) + ( GetHeroStatBJ(bj_HEROSTAT_AGI, udg_DamageEventSource, true) + GetHeroStatBJ(bj_HEROSTAT_INT, udg_DamageEventSource, true) ) )
set udg_Player_Number = GetConvertedPlayerId(GetOwningPlayer(udg_DamageEventSource))
set udg_Damager_Pos[udg_Player_Number] = GetUnitLoc(udg_DamageEventSource)
set udg_Damaged_Pos[udg_Player_Number] = GetUnitLoc(udg_DamageEventTarget)
// Manual of Crit
if ( Trig_Attacks_Func006C() ) then
//
//
set udg_DamageEventAmount = ( udg_DamageEventAmount * ( 1.10 + udg_Man_Crit_Timing[GetConvertedPlayerId(GetOwningPlayer(udg_DamageEventSource))] ) )
set udg_DamageEventType = udg_DamageTypeCriticalStrike
else
endif
// Mortal Blade
if ( Trig_Attacks_Func008C() ) then
if ( Trig_Attacks_Func008Func001C() ) then
if ( Trig_Attacks_Func008Func001Func001C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, udg_DamageEventTarget, ( I2R(udg_Allstats) * 0.50 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
set udg_DamageEventType = udg_DamageTypeCriticalStrike
else
endif
if ( Trig_Attacks_Func008Func001Func002C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, udg_DamageEventTarget, ( I2R(udg_Allstats) * 0.50 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
set udg_DamageEventType = udg_DamageTypeCriticalStrike
else
endif
if ( Trig_Attacks_Func008Func001Func003C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, udg_DamageEventTarget, ( I2R(udg_Allstats) * 0.50 ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
set udg_DamageEventType = udg_DamageTypeCriticalStrike
else
endif
else
endif
else
endif
// Moon Glaive
if ( Trig_Attacks_Func014C() ) then
if ( Trig_Attacks_Func014Func001C() ) then
if ( Trig_Attacks_Func014Func001Func001C() ) then
call PlaySoundAtPointBJ( gg_snd_EtherealMediumHit2, 100, GetUnitLoc(udg_DamageEventSource), 0 )
call AddSpecialEffectTargetUnitBJ( "chest", udg_DamageEventSource, "Ephemeral Slash Midnight.mdx" )
call ForGroupBJ( GetUnitsInRangeOfLocAll(250.00, udg_Damager_Pos[udg_Player_Number]), function Trig_Attacks_Func014Func001Func001Func003A )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
if ( Trig_Attacks_Func014Func001Func002C() ) then
call PlaySoundBJ( gg_snd_Moon_Glaive )
call AddSpecialEffectTargetUnitBJ( "chest", udg_DamageEventSource, "Ephemeral Slash Midnight.mdx" )
call ForGroupBJ( GetUnitsInRangeOfLocAll(250.00, udg_Damager_Pos[udg_Player_Number]), function Trig_Attacks_Func014Func001Func002Func003A )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
if ( Trig_Attacks_Func014Func001Func003C() ) then
call PlaySoundBJ( gg_snd_Moon_Glaive )
call AddSpecialEffectTargetUnitBJ( "chest", udg_DamageEventSource, "Ephemeral Slash Midnight.mdx" )
call ForGroupBJ( GetUnitsInRangeOfLocAll(250.00, udg_Damager_Pos[udg_Player_Number]), function Trig_Attacks_Func014Func001Func003Func003A )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
else
endif
else
endif
// Kingdom Come
if ( Trig_Attacks_Func016C() ) then
if ( Trig_Attacks_Func016Func001C() ) then
if ( Trig_Attacks_Func016Func001Func001C() ) then
call AddSpecialEffectLocBJ( udg_Damaged_Pos[udg_Player_Number], "Mana Storm.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call ForGroupBJ( GetUnitsInRangeOfLocAll(300.00, udg_Damaged_Pos[udg_Player_Number]), function Trig_Attacks_Func016Func001Func001Func003A )
else
endif
if ( Trig_Attacks_Func016Func001Func002C() ) then
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 150.00, GetUnitFacing(udg_DamageEventSource)), "Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 300.00, GetUnitFacing(udg_DamageEventSource)), "Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 450.00, GetUnitFacing(udg_DamageEventSource)), "Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 175.00, GetUnitFacing(udg_DamageEventSource))), function Trig_Attacks_Func016Func001Func002Func007A )
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 525.00, GetUnitFacing(udg_DamageEventSource))), function Trig_Attacks_Func016Func001Func002Func008A )
else
endif
if ( Trig_Attacks_Func016Func001Func003C() ) then
call AddSpecialEffectLocBJ( udg_Damaged_Pos[udg_Player_Number], "Mana Storm.mdx" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call ForGroupBJ( GetUnitsInRangeOfLocAll(300.00, udg_Damaged_Pos[udg_Player_Number]), function Trig_Attacks_Func016Func001Func003Func003A )
else
endif
if ( Trig_Attacks_Func016Func001Func004C() ) then
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 150.00, GetUnitFacing(udg_DamageEventSource)), "Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 300.00, GetUnitFacing(udg_DamageEventSource)), "Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call AddSpecialEffectLocBJ( PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 450.00, GetUnitFacing(udg_DamageEventSource)), "Objects\\Spawnmodels\\Human\\HCancelDeath\\HCancelDeath.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 175.00, GetUnitFacing(udg_DamageEventSource))), function Trig_Attacks_Func016Func001Func004Func007A )
call ForGroupBJ( GetUnitsInRangeOfLocAll(175.00, PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], 525.00, GetUnitFacing(udg_DamageEventSource))), function Trig_Attacks_Func016Func001Func004Func008A )
else
endif
if ( Trig_Attacks_Func016Func001Func005C() ) then
set udg_DamageEventAmount = ( udg_DamageEventAmount * 1.10 )
else
endif
if ( Trig_Attacks_Func016Func001Func006C() ) then
set udg_DamageEventAmount = ( udg_DamageEventAmount * 1.15 )
else
endif
if ( Trig_Attacks_Func016Func001Func007C() ) then
set udg_DamageEventAmount = ( udg_DamageEventAmount * 1.20 )
else
endif
else
endif
else
endif
// Attract Life
if ( Trig_Attacks_Func018C() ) then
if ( Trig_Attacks_Func018Func001C() ) then
if ( Trig_Attacks_Func018Func001Func001C() ) then
call ForGroupBJ( GetRandomSubGroup(5, GetUnitsInRangeOfLocAll(700.00, udg_Damager_Pos[udg_Player_Number])), function Trig_Attacks_Func018Func001Func001Func001A )
else
endif
else
endif
else
endif
// Spear of Annihilation
if ( Trig_Attacks_Func020C() ) then
if ( Trig_Attacks_Func020Func001C() ) then
if ( Trig_Attacks_Func020Func001Func001C() ) then
set udg_Spear_of_Annihilation_Facing = GetUnitFacing(udg_DamageEventSource)
if ( Trig_Attacks_Func020Func001Func001Func002C() ) then
// Special Effect
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 1
loop
exitwhen udg_Spear_of_Annihilation_SInteger[udg_Player_Number] > 6
call CreateNUnitsAtLoc( 1, 'u00R', GetOwningPlayer(udg_DamageEventSource), PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], udg_Spear_of_Annihilation_SReal[udg_Player_Number], udg_Spear_of_Annihilation_Facing), udg_Spear_of_Annihilation_Facing )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_SPA_Group )
set udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = ( udg_Spear_of_Annihilation_SReal[udg_Player_Number] + 200.00 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = ( udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1
endloop
// Damage
call ForGroupBJ( udg_SPA_Group, function Trig_Attacks_Func020Func001Func001Func002Func004A )
call GroupClear( udg_SPA_Group )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 0
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = 0.00
set udg_Spear_of_Annihilation_SReal[( udg_Player_Number * 20 )] = 0.00
set udg_Spear_of_Annihilation_SInteger[( udg_Player_Number * 20 )] = 0
else
endif
if ( Trig_Attacks_Func020Func001Func001Func003C() ) then
// Special Effect
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 1
loop
exitwhen udg_Spear_of_Annihilation_SInteger[udg_Player_Number] > 8
call CreateNUnitsAtLoc( 1, 'u00R', GetOwningPlayer(udg_DamageEventSource), PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], udg_Spear_of_Annihilation_SReal[udg_Player_Number], udg_Spear_of_Annihilation_Facing), udg_Spear_of_Annihilation_Facing )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_SPA_Group )
set udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = ( udg_Spear_of_Annihilation_SReal[udg_Player_Number] + 200.00 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = ( udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1
endloop
// Damage
call ForGroupBJ( udg_SPA_Group, function Trig_Attacks_Func020Func001Func001Func003Func004A )
call GroupClear( udg_SPA_Group )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 0
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = 0.00
set udg_Spear_of_Annihilation_SReal[( udg_Player_Number * 20 )] = 0.00
set udg_Spear_of_Annihilation_SInteger[( udg_Player_Number * 20 )] = 0
else
endif
else
endif
else
endif
else
endif
if ( Trig_Attacks_Func021C() ) then
if ( Trig_Attacks_Func021Func001C() ) then
if ( Trig_Attacks_Func021Func001Func001C() ) then
set udg_Spear_of_Annihilation_Facing = GetUnitFacing(udg_DamageEventSource)
if ( Trig_Attacks_Func021Func001Func001Func002C() ) then
// Special Effect
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 1
loop
exitwhen udg_Spear_of_Annihilation_SInteger[udg_Player_Number] > 7
call CreateNUnitsAtLoc( 1, 'u00R', GetOwningPlayer(udg_DamageEventSource), PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], udg_Spear_of_Annihilation_SReal[udg_Player_Number], udg_Spear_of_Annihilation_Facing), udg_Spear_of_Annihilation_Facing )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_SPA_Group )
set udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = ( udg_Spear_of_Annihilation_SReal[udg_Player_Number] + 200.00 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = ( udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1
endloop
// Damage
call ForGroupBJ( udg_SPA_Group, function Trig_Attacks_Func021Func001Func001Func002Func004A )
call GroupClear( udg_SPA_Group )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 0
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = 0.00
set udg_Spear_of_Annihilation_SReal[( udg_Player_Number * 20 )] = 0.00
set udg_Spear_of_Annihilation_SInteger[( udg_Player_Number * 20 )] = 0
else
endif
if ( Trig_Attacks_Func021Func001Func001Func003C() ) then
// Special Effect
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 1
loop
exitwhen udg_Spear_of_Annihilation_SInteger[udg_Player_Number] > 9
call CreateNUnitsAtLoc( 1, 'u00R', GetOwningPlayer(udg_DamageEventSource), PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], udg_Spear_of_Annihilation_SReal[udg_Player_Number], udg_Spear_of_Annihilation_Facing), udg_Spear_of_Annihilation_Facing )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_SPA_Group )
set udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = ( udg_Spear_of_Annihilation_SReal[udg_Player_Number] + 200.00 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = ( udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1
endloop
// Damage
call ForGroupBJ( udg_SPA_Group, function Trig_Attacks_Func021Func001Func001Func003Func004A )
call GroupClear( udg_SPA_Group )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 0
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = 0.00
set udg_Spear_of_Annihilation_SReal[( udg_Player_Number * 20 )] = 0.00
set udg_Spear_of_Annihilation_SInteger[( udg_Player_Number * 20 )] = 0
else
endif
else
endif
else
endif
else
endif
if ( Trig_Attacks_Func022C() ) then
if ( Trig_Attacks_Func022Func001C() ) then
if ( Trig_Attacks_Func022Func001Func001C() ) then
set udg_Spear_of_Annihilation_Facing = GetUnitFacing(udg_DamageEventSource)
if ( Trig_Attacks_Func022Func001Func001Func002C() ) then
// Special Effect
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 1
loop
exitwhen udg_Spear_of_Annihilation_SInteger[udg_Player_Number] > 8
call CreateNUnitsAtLoc( 1, 'u00R', GetOwningPlayer(udg_DamageEventSource), PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], udg_Spear_of_Annihilation_SReal[udg_Player_Number], udg_Spear_of_Annihilation_Facing), udg_Spear_of_Annihilation_Facing )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_SPA_Group )
set udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = ( udg_Spear_of_Annihilation_SReal[udg_Player_Number] + 200.00 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = ( udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1
endloop
// Damage
call ForGroupBJ( udg_SPA_Group, function Trig_Attacks_Func022Func001Func001Func002Func004A )
call GroupClear( udg_SPA_Group )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 0
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = 0.00
set udg_Spear_of_Annihilation_SReal[( udg_Player_Number * 20 )] = 0.00
set udg_Spear_of_Annihilation_SInteger[( udg_Player_Number * 20 )] = 0
else
endif
if ( Trig_Attacks_Func022Func001Func001Func003C() ) then
// Special Effect
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 1
loop
exitwhen udg_Spear_of_Annihilation_SInteger[udg_Player_Number] > 10
call CreateNUnitsAtLoc( 1, 'u00R', GetOwningPlayer(udg_DamageEventSource), PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], udg_Spear_of_Annihilation_SReal[udg_Player_Number], udg_Spear_of_Annihilation_Facing), udg_Spear_of_Annihilation_Facing )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_SPA_Group )
set udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = ( udg_Spear_of_Annihilation_SReal[udg_Player_Number] + 200.00 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = ( udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1
endloop
// Damage
call ForGroupBJ( udg_SPA_Group, function Trig_Attacks_Func022Func001Func001Func003Func004A )
call GroupClear( udg_SPA_Group )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 0
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = 0.00
set udg_Spear_of_Annihilation_SReal[( udg_Player_Number * 20 )] = 0.00
set udg_Spear_of_Annihilation_SInteger[( udg_Player_Number * 20 )] = 0
else
endif
else
endif
else
endif
else
endif
if ( Trig_Attacks_Func023C() ) then
if ( Trig_Attacks_Func023Func001C() ) then
if ( Trig_Attacks_Func023Func001Func001C() ) then
set udg_Spear_of_Annihilation_Facing = GetUnitFacing(udg_DamageEventSource)
if ( Trig_Attacks_Func023Func001Func001Func002C() ) then
// Special Effect
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 1
loop
exitwhen udg_Spear_of_Annihilation_SInteger[udg_Player_Number] > 8
call CreateNUnitsAtLoc( 1, 'u00R', GetOwningPlayer(udg_DamageEventSource), PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], udg_Spear_of_Annihilation_SReal[udg_Player_Number], udg_Spear_of_Annihilation_Facing), udg_Spear_of_Annihilation_Facing )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_SPA_Group )
call PauseUnitBJ( true, GetLastCreatedUnit() )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u00R', GetOwningPlayer(udg_DamageEventSource), PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], udg_Spear_of_Annihilation_SReal[udg_Player_Number], ( udg_Spear_of_Annihilation_Facing + 30.00 )), ( udg_Spear_of_Annihilation_Facing + 30.00 ) )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_SPA_Group )
call PauseUnitBJ( true, GetLastCreatedUnit() )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', GetLastCreatedUnit() )
call CreateNUnitsAtLoc( 1, 'u00R', GetOwningPlayer(udg_DamageEventSource), PolarProjectionBJ(udg_Damager_Pos[udg_Player_Number], udg_Spear_of_Annihilation_SReal[udg_Player_Number], ( udg_Spear_of_Annihilation_Facing - 30.00 )), ( udg_Spear_of_Annihilation_Facing - 30.00 ) )
call GroupAddUnitSimple( GetLastCreatedUnit(), udg_SPA_Group )
set udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] = GetLastCreatedUnit()
call PauseUnitBJ( true, udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
call UnitApplyTimedLifeBJ( 2.00, 'BTLF', udg_Spear_Unit[udg_Spear_of_Annihilation_SInteger[udg_Player_Number]] )
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = ( udg_Spear_of_Annihilation_SReal[udg_Player_Number] + 200.00 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = ( udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1 )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = udg_Spear_of_Annihilation_SInteger[udg_Player_Number] + 1
endloop
// Damage
call ForGroupBJ( udg_SPA_Group, function Trig_Attacks_Func023Func001Func001Func002Func004A )
call GroupClear( udg_SPA_Group )
set udg_Spear_of_Annihilation_SInteger[udg_Player_Number] = 0
set udg_Spear_of_Annihilation_SReal[udg_Player_Number] = 0.00
set udg_Spear_of_Annihilation_SReal[( udg_Player_Number * 20 )] = 0.00
set udg_Spear_of_Annihilation_SInteger[( udg_Player_Number * 20 )] = 0
else
endif
else
endif
else
endif
else
endif
// Katana
// Cleaving Finish
if ( Trig_Attacks_Func027C() ) then
if ( Trig_Attacks_Func027Func001C() ) then
if ( Trig_Attacks_Func027Func001Func001C() ) then
call AddSpecialEffectLocBJ( udg_Damager_Pos[udg_Player_Number], "Reaper's Claws Red.mdx" )
call ForGroupBJ( GetUnitsInRangeOfLocAll(225.00, udg_Damager_Pos[udg_Player_Number]), function Trig_Attacks_Func027Func001Func001Func002A )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
else
endif
else
endif
// Assassination
if ( Trig_Attacks_Func029C() ) then
if ( Trig_Attacks_Func029Func001C() ) then
if ( Trig_Attacks_Func029Func001Func001C() ) then
call AddSpecialEffectTargetUnitBJ( "head", udg_DamageEventTarget, "Objects\\Spawnmodels\\Human\\HumanBlood\\BloodElfSpellThiefBlood.mdl" )
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, udg_DamageEventTarget, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_DamageEventTarget) / 20.00 ), ATTACK_TYPE_MELEE, DAMAGE_TYPE_NORMAL )
call SetUnitLifeBJ( udg_DamageEventSource, ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_DamageEventSource) * 1.04 ) )
call EnableTrigger( GetTriggeringTrigger() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
else
endif
else
endif
// Doom's Might
if ( Trig_Attacks_Func031C() ) then
if ( Trig_Attacks_Func031Func001C() ) then
if ( Trig_Attacks_Func031Func001Func001C() ) then
call AddSpecialEffectLocBJ( udg_Damaged_Pos[udg_Player_Number], "Shining Flare.mdx" )
call DisableTrigger( GetTriggeringTrigger() )
call UnitDamageTargetBJ( udg_DamageEventSource, udg_DamageEventTarget, ( I2R(udg_Allstats) + ( GetUnitStateSwap(UNIT_STATE_LIFE, udg_DamageEventTarget) / 25.00 ) ), ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
call EnableTrigger( GetTriggeringTrigger() )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
else
endif
else
endif
else
endif
// Destroyer Barrage
if ( Trig_Attacks_Func033C() ) then
if ( Trig_Attacks_Func033Func001C() ) then
call UnitRemoveAbilityBJ( 'Aroc', udg_DamageEventSource )
call UnitRemoveAbilityBJ( 'Aimp', udg_DamageEventSource )
if ( Trig_Attacks_Func033Func001Func003C() ) then
call DisableTrigger( GetTriggeringTrigger() )
call UnitAddAbilityBJ( 'Aroc', udg_DamageEventSource )
call EnableTrigger( GetTriggeringTrigger() )
else
endif
if ( Trig_Attacks_Func033Func001Func004C() ) then
call ForGroupBJ( GetUnitsInRangeOfLocAll(150.00, PolarProjectionBJ(GetUnitLoc(udg_DamageEventTarget), 150.00, GetUnitFacing(udg_DamageEventSource))), function Trig_Attacks_Func033Func001Func004Func005A )
else
endif
else
endif
else
endif
// Warbringer's Rage
if ( Trig_Attacks_Func035C() ) then
if ( Trig_Attacks_Func035Func001C() ) then
if ( Trig_Attacks_Func035Func001Func001C() ) then
set udg_Warbringer_Rage_Int[GetConvertedPlayerId(GetOwningPlayer(udg_DamageEventSource))] = 3
else
endif
if ( Trig_Attacks_Func035Func001Func002C() ) then
if ( Trig_Attacks_Func035Func001Func002Func001C() ) then
call ForGroupBJ( GetRandomSubGroup(4, GetUnitsInRangeOfLocAll(300.00, PolarProjectionBJ(GetUnitLoc(udg_DamageEventSource), 300.00, GetUnitFacing(udg_DamageEventSource)))), function Trig_Attacks_Func035Func001Func002Func001Func001A )
set udg_Warbringer_Rage_Int[GetConvertedPlayerId(GetOwningPlayer(udg_DamageEventSource))] = ( udg_Warbringer_Rage_Int[GetConvertedPlayerId(GetOwningPlayer(udg_DamageEventSource))] - 1 )
else
endif
else
endif
else
endif
else
endif
call RemoveLocation(udg_Damaged_Pos[udg_Player_Number])
call RemoveLocation(udg_Damager_Pos[udg_Player_Number])
endfunction
//===========================================================================
function InitTrig_Attacks takes nothing returns nothing
set gg_trg_Attacks = CreateTrigger( )
call TriggerRegisterVariableEvent( gg_trg_Attacks, "udg_DamageModifierEvent", EQUAL, 1.00 )
call TriggerAddCondition( gg_trg_Attacks, Condition( function Trig_Attacks_Conditions ) )
call TriggerAddAction( gg_trg_Attacks, function Trig_Attacks_Actions )
endfunction
function Trig_Manuals_Func001C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01X' ) ) then
return false
endif
return true
endfunction
function Trig_Manuals_Func002C takes nothing returns boolean
if ( not ( GetItemTypeId(GetManipulatedItem()) == 'I01Y' ) ) then
return false
endif
return true
endfunction
function Trig_Manuals_Actions takes nothing returns nothing
if ( Trig_Manuals_Func001C() ) then
call RemoveItem( GetManipulatedItem() )
set udg_Man_Crit_Chance[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] = ( udg_Man_Crit_Chance[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] + 1 )
set udg_Man_Crit_Timing[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] = ( udg_Man_Crit_Timing[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] + 0.03 )
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())), ( "Your Crit chance is " + R2S(( 10.00 + udg_Man_Crit_Chance[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] )) ) )
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())), ( "Your Crit multiply factor is " + R2S(( 1.10 + udg_Man_Crit_Timing[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] )) ) )
else
endif
if ( Trig_Manuals_Func002C() ) then
call RemoveItem( GetManipulatedItem() )
set udg_Spell_Damage[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] = ( udg_Spell_Damage[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] + 0.01 )
call DisplayTextToForce( GetForceOfPlayer(GetOwningPlayer(GetManipulatingUnit())), ( "Your Spell damage is " + R2S(( I2R(( GetHeroStatBJ(bj_HEROSTAT_INT, GetManipulatingUnit(), true) / 500 )) + udg_Spell_Damage[GetConvertedPlayerId(GetOwningPlayer(GetManipulatingUnit()))] )) ) )
else
endif
endfunction
//===========================================================================
function InitTrig_Manuals takes nothing returns nothing
set gg_trg_Manuals = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Manuals, EVENT_PLAYER_UNIT_PICKUP_ITEM )
call TriggerAddAction( gg_trg_Manuals, function Trig_Manuals_Actions )
endfunction